Change8

session-middleware@0.1.1

Breaking Changes
📦 remixView on GitHub →
1 breaking🐛 1 fixes🔧 2 symbols

Summary

This update changes the recommended method for setting cookies from .set() to .append() to prevent overwriting cookies from other sources.

⚠️ Breaking Changes

  • Using response.headers.set('Set-Cookie', ...) will now overwrite all existing cookies. Use response.headers.append('Set-Cookie', ...) to preserve cookies set by other middleware or handlers.

Migration Steps

  1. Search for response.headers.set('Set-Cookie', ...) in your codebase and replace with response.headers.append('Set-Cookie', ...) if you need to preserve multiple cookies.

🐛 Bug Fixes

  • Fixed an issue where cookies set by middleware or other handlers were being overwritten by subsequent .set() calls on the Set-Cookie header.

🔧 Affected Symbols

response.headers.setresponse.headers.append