github remix-run/remix form-data-middleware@0.2.0
form-data-middleware v0.2.0

latest releases: component@0.6.0, remix@3.0.0-alpha.4, static-middleware@0.4.5...
7 hours ago

Minor Changes

  • BREAKING CHANGE: Form data middleware no longer reads/writes context.formData or context.files.

    Parsed FormData is now stored on request context with context.set(FormData, formData) and should be read with context.get(FormData), including uploaded files via get(...)/getAll(...).

  • formData() now contributes FormData to fetch-router's typed request context, so apps deriving context from middleware can read context.get(FormData) without manual type assertions.

Patch Changes

  • formData() is now a no-op if FormData has already been parsed earlier in the request pipeline, so the middleware can be registered multiple times without re-reading or re-parsing the request body.

  • Bumped @remix-run/* dependencies:

Don't miss a new remix release

NewReleases is sending notifications on new releases.