Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

itty-router

Package Overview
Dependencies
Maintainers
2
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

itty-router - npm Package Versions

13
27

5.0.9

Diff

Changelog

Source

v5.0.9

  • fixed: cors preflight should reflect requested headers as the default (required for credentials)
krwhitley
published 5.0.8 •

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc