Change8

session-middleware@0.2.0

Breaking Changes
📦 remixView on GitHub →
1 breaking1 features🔧 4 symbols

Summary

This release introduces a breaking change in session middleware, moving session state storage to use the Session class as the context key, and updates dependencies.

⚠️ Breaking Changes

  • Session middleware no longer reads/writes to `context.session`. Session state must now be stored on request context using the `Session` class as the context key and accessed via `context.get(Session)`.

Migration Steps

  1. Update session access from `context.session` to `context.get(Session)`.

✨ New Features

  • `session()` now contributes `Session` to `fetch-router`'s typed request context, allowing apps deriving context from middleware to read `context.get(Session)` without manual type assertions.

Affected Symbols