Change8

fetch-router@0.10.0

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

Summary

This release modularizes the library by moving all middleware into independent npm packages and enhances the html() helper to ensure valid DOCTYPE headers.

⚠️ Breaking Changes

  • Middleware has been extracted from @remix-run/fetch-router into separate standalone npm packages. Imports from the main package will no longer work.

Migration Steps

  1. Install the new individual middleware packages: @remix-run/async-context-middleware, @remix-run/form-data-middleware, @remix-run/logger-middleware, @remix-run/method-override-middleware, @remix-run/session-middleware, and @remix-run/static-middleware.
  2. Update import statements from '@remix-run/fetch-router/<middleware-name>' to the corresponding new package name '@remix-run/<middleware-name>'.

✨ New Features

  • The html() response helper now automatically prepends '<!DOCTYPE html>' to the response body if it is missing.

🔧 Affected Symbols

asyncContextformDataloggermethodOverridesessionstaticFileshtml