github remix-run/remix fetch-router@0.22.0
fetch-router v0.22.0

latest releases: remix@3.0.0-rc.2, static-middleware@0.4.15, spa@0.1.1...
3 hours ago

Minor Changes

  • BREAKING CHANGE: Requests that match one or more route patterns, but no route registered for the request method, now receive a 405 Method Not Allowed response with an Allow header listing the methods registered for that URL. Previously these requests fell through to the router's defaultHandler and produced a 404 Not Found by default. Matching still falls through to less specific routes that can handle the method (including ANY routes) before the 405 applies, so catch-all routes keep handling these requests. Register an ANY route if you want a handler to receive every method at a given URL (see #11767).

  • Routes registered for GET now serve HEAD requests automatically. The GET handler runs as usual and the router strips the body from its response, so HEAD requests observe the same status and headers as the equivalent GET request. Previously a HEAD request only matched routes explicitly registered for HEAD or ANY. An explicit HEAD route for the same pattern still takes precedence over the GET route (see #11767).

Don't miss a new remix release

NewReleases is sending notifications on new releases.