Minor Changes
-
BREAKING CHANGE: Form data middleware no longer reads/writes
context.formDataorcontext.files.Parsed
FormDatais now stored on request context withcontext.set(FormData, formData)and should be read withcontext.get(FormData), including uploaded files viaget(...)/getAll(...). -
formData()now contributesFormDatatofetch-router's typed request context, so apps deriving context from middleware can readcontext.get(FormData)without manual type assertions.
Patch Changes
-
formData()is now a no-op ifFormDatahas 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: