- fixed: corsify should clone response before appending headers
- maintenance: README
- maintenance: types cleanup and publishing test
- maintenance: types cleanup and publishing test
- fixed: Router/AutoRouter stages were not connected to router-level generics
- fixed: ./types was not being properly exported
- fixed: response formatters in finally stage could still cross pollute headers in Node
- fixed: cors preflight should reflect requested headers as the default (required for credentials)
- fixed: withParams could attempt to bind null (collision with node adapter)
- fixed: corsify as replacing status codes (now mutates original response)
- fixed: corsify now properly ignores WebSocket responses
- fixed: (TypeScript) middleware corrupting downstream request types and args
- fixed: AutoRouter was missing the router-level generics support of the other 2 routers.
- fixed: All 3 routers had their 3rd generic argument, ResponseType added per the spec.
- BREAKING: router.fetch replaces router.handle (now deprecated)
- BREAKING: "createCors" has been deprecated in favor of "cors" (new options & requirements)
- changed: previous Router (smallest) is now IttyRouter
- added: Router (full backwards compatability with previous Router) has been added, including:
- "before" stage (array of request handlers)
- "finally" stage (array of response handlers)
- "catch" stage (single error handler)
- added: AutoRouter (batteries-included Router)
- fixed (TS): Routers types have been modified to allow both rotuer-level generics AND route-level generics in the same instance.
- docs: see Migration guide at https://itty.dev/itty-router/migrations/v4-v5
For changes prior to v5, see the v4 CHANGELOG