form-data-middleware@0.3.0
Breaking Changes📦 remixView on GitHub →
⚠ 1 breaking🔧 3 symbols
Summary
This release introduces a breaking change in how `formData()` behaves, ensuring it always provides a FormData object, even for requests without a body. It also updates several internal Remix dependencies.
⚠️ Breaking Changes
- The behavior of `formData()` has changed: it now always stores a `FormData` value when the middleware runs successfully. Requests without a form body (like GET/HEAD) will now receive an empty `FormData` in `context.formData` and `context.get(FormData)`.
Migration Steps
- If you relied on `context.formData` or `context.get(FormData)` being absent or null for requests without a body (like GET/HEAD), you must now check if the FormData object is empty instead.