Socket
Socket
Sign inDemoInstall

itty-router

Package Overview
Dependencies
0
Maintainers
2
Versions
264
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
27Next

5.0.8

Diff

krwhitley
published 5.0.7 •

Changelog

Source

v5.0.7

  • fixed: withParams could attempt to bind null (collision with node adapter)
krwhitley
published 5.0.6 •

Changelog

Source

v5.0.6

  • fixed: corsify as replacing status codes (now mutates original response)
krwhitley
published 5.0.5 •

Changelog

Source

v5.0.5

  • fixed: corsify now properly ignores WebSocket responses
krwhitley
published 5.0.4 •

Changelog

Source

v5.0.4

  • fixed: (TypeScript) middleware corrupting downstream request types and args
krwhitley
published 5.0.3 •

krwhitley
published 5.0.2 •

Changelog

Source

v5.0.2

  • 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.
krwhitley
published 5.0.1 •

Changelog

Source

v5.0.17

  • fixed: corsify should clone response before appending headers
krwhitley
published 5.0.0 •

Changelog

Source

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

krwhitley
published 6.0.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc