Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump itty-router from 4.0.13 to 5.0.9 #13

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Apr 8, 2024

Bumps itty-router from 4.0.13 to 5.0.9.

Release notes

Sourced from itty-router's releases.

v5.0.4

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

Changelog

Sourced from itty-router's changelog.

Changelog

  • v5.0.9
    • fixed: cors preflight should reflect requested headers as the default (required for credentials)
  • v5.0.7
    • fixed: withParams could attempt to bind null (collision with node adapter)
  • v5.0.6
    • fixed: corsify as replacing status codes (now mutates original response)
  • v5.0.5
    • fixed: corsify now properly ignores WebSocket responses
  • v5.0.4
    • fixed: (TypeScript) middleware corrupting downstream request types and args
  • 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.
  • 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
  • v4.2.2
    • fixed: withContent should return undefined if request.body is undefined
  • v4.2.1
    • maintenance: updated deps, test coverage, removed isomorphic-fetch dev dep
  • v4.2.0
    • added: withContent now parses JSON->formData->text with fallthrough
  • v4.1.1
    • fixed: withContent will successfully parse non-JSON as fallback, preventing errors
  • v4.1.0
    • added: createResponse and all Response helpers support web standards Headers class
  • v4.0.28
    • fixed: withContent throws 400 (instead of 500) on failed JSON parse (@​smcstewart)
  • v4.0.27
    • fixed: .toUpperCase issue that prevented serialization of entire router
  • v4.0.24
    • fixed: createResponse(undefined) should return undefined (not a Response)
  • v4.1.0
    • added: HasContent<ContentType> type to withContent (@​alexrosenfeld10)
    • added: Adds basic text/formData support to supplement the native JSON support of withContent
  • v4.0.00 - Partial changelog below
    • BREAKING: heavy TS rewrite for core Router (thank you, ChatGPT)
    • added: nearly all extras from itty-router-extras
    • added: createCors from itty-cors
    • added: complete documentation at https://itty.dev

... (truncated)

Commits
  • 23705fc released v5.0.9 - cors preflight should reflect requested headers as the defa...
  • 3645c6b V5 fix cors headers reflection (#235)
  • 38d4448 released v5.0.8 - accidentally released unminified previously
  • 6c6afc1 released v5.0.7 - withParams has more explicit check to prevent binding null
  • ddc41f9 released v5.0.6 - fixed #233 cors not honoring response.status
  • 1ab9ca7 fix #233 - cors eats status message (#234)
  • 33d1ef6 expanded middleware example to include second middleware
  • a3d9181 released v5.0.5 - corsify should ignore websockets
  • 8d31172 corrected CHANGELOG
  • 95ce51e released v5.0.4 - fixed cascading route types
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [itty-router](https://github.com/kwhitley/itty-router) from 4.0.13 to 5.0.9.
- [Release notes](https://github.com/kwhitley/itty-router/releases)
- [Changelog](https://github.com/kwhitley/itty-router/blob/v5.x/CHANGELOG.md)
- [Commits](kwhitley/itty-router@v4.0.13...v5.0.9)

---
updated-dependencies:
- dependency-name: itty-router
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 8, 2024
Copy link
Author

dependabot bot commented on behalf of github Apr 15, 2024

Superseded by #14.

@dependabot dependabot bot closed this Apr 15, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/itty-router-5.0.9 branch April 15, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants