Change8

static-middleware@0.4.0

Breaking Changes
📦 remix
1 breaking1 features🔧 2 symbols

Summary

This release introduces conditional HTTP Range request support via the acceptRanges option and replaces the internal mrmime dependency with a required peer dependency on @remix-run/mime.

⚠️ Breaking Changes

  • The `mrmime` dependency has been replaced with `@remix-run/mime`. Users must now install `@remix-run/mime` as a peer dependency for MIME type detection to function.

Migration Steps

  1. Install `@remix-run/mime` as a peer dependency in your project: `npm install @remix-run/mime`.

✨ New Features

  • Added support for `acceptRanges` function in `staticFiles` configuration to conditionally enable HTTP Range requests based on file properties like size or type.

🔧 Affected Symbols

staticFilesacceptRanges