This is the changelog for session-middleware. It follows semantic versioning.
- Bumped
@remix-run/*dependencies:
- Bumped
@remix-run/*dependencies:
- Bumped
@remix-run/*dependencies:
- Bumped
@remix-run/*dependencies:
- Added
context.sessionas a direct property installed by the session middleware.context.get(Session)remains supported for keyed context access.
- Bumped
@remix-run/*dependencies:
- Bumped
@remix-run/*dependencies:
- Bumped
@remix-run/*dependencies:
-
BREAKING CHANGE: Session middleware no longer reads/writes
context.session.Session state is now stored on request context using the
Sessionclass itself as the context key and accessed withcontext.get(Session). -
session()now contributesSessiontofetch-router's typed request context, so apps deriving context from middleware can readcontext.get(Session)without manual type assertions.
- Bumped
@remix-run/*dependencies:
-
Ensure response is mutable before modifying.
-
Bumped
@remix-run/*dependencies:
- Bumped
@remix-run/*dependencies:
- Changed
@remix-run/*peer dependencies to regular dependencies
- Use
response.headers.append('Set-Cookie', ...)instead ofresponse.headers.set('Set-Cookie', ...)to not overwrite cookies set by other middleware/handlers
Initial release extracted from @remix-run/fetch-router v0.9.0.
See the README for more details.