v5.0.0
- 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