Skip to content

Releases: kwhitley/itty-router

Release v5.0.23

26 Feb 05:20

Choose a tag to compare

Release v5.0.22

11 Aug 16:52

Choose a tag to compare

Release v5.0.21

04 Aug 02:09

Choose a tag to compare

Release v5.0.20

26 Jul 19:20

Choose a tag to compare

Release v5.0.19

26 Jul 19:00

Choose a tag to compare

Release v5.0.18

16 Aug 17:28

Choose a tag to compare

Release v5.0.17

28 Apr 15:30

Choose a tag to compare

Release v5.0.16

20 Apr 04:54

Choose a tag to compare

Release v5.0.13

14 Apr 19:49

Choose a tag to compare

see CHANGELOG for notes

v5.0.4

29 Mar 20:57

Choose a tag to compare

itty-router v5

This represents a large shift in the ecosystem. While mostly backwards compatible, a few small tweaks will be needed to swap in the new Router or AutoRouter.

See https://itty.dev/itty-router/migrations/v4-v5 for migration guide and details.

Changes in v5

  • BREAKING router.fetch replaces router.handle to enable cleaner exports.
  • BREAKING createCors() has been replaced with the improved cors().
  • BREAKING RouteHandler (type) has been replaced with RequestHandler.
  • added previous Router is now preserved as IttyRouter.
  • added new Router (backwards-compatible) adds support for stages.
  • added new batteries-included AutoRouter adds default settings to Router.
  • added TypeScript support has been improved in all of the routers, allowing router-level generics AND route-level generic overrides in the same router.