Change8

static-middleware@0.3.0

Breaking Changes
📦 remix
1 breaking1 features🔧 3 symbols

Summary

This release introduces directory listing support via the listFiles option and migrates response handling to the @remix-run/response package.

⚠️ Breaking Changes

  • File and HTML responses now use @remix-run/response instead of @remix-run/fetch-router/response-helpers. Users must now install @remix-run/response as a peer dependency.

Migration Steps

  1. Install @remix-run/response as a peer dependency in your project.
  2. Update any custom response handling that relied on @remix-run/fetch-router/response-helpers.

✨ New Features

  • Added listFiles option to staticFiles to enable directory listing when a directory is requested.

🔧 Affected Symbols

staticFiles@remix-run/response@remix-run/fetch-router/response-helpers