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

chore(deps): Bump itty-router from 3.0.12 to 5.0.17 #188

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps itty-router from 3.0.12 to 5.0.17.

Release notes

Sourced from itty-router's releases.

Release v5.0.17

See v5.0.17 CHANGELOG entry for notes

Release v5.0.16

See v5.0.16 CHANGELOG entry for notes

Release v5.0.13

see CHANGELOG for notes

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

v4.0.0

This is an extensive v4.x update, bringing a series of quality of life additions, as well as a potentially breaking change for TypeScript users:

!Breaking Changes!

  • TYPES HAVE CHANGED FOR THE ROUTER. The core TypeScript and exposed types for the Router itself have been completely retooled to allow much better, strong type support throughout your routes. Previously this required complex custom setups to work around the lack of internal typing. Now it's included out of the box, but you'll need to follow the instructions.

    This was not an easy change to commit to, but was long overdue. The solution finally settled on allows for a more flexible (yet boiler-platey) approach, or a more rigid one... but allows for many more scenarios than the previous types did.

Other Changes

  • added: nearly all the extras from itty-router-extras have moved in-house to the core library. This library will be deprecated as a result.
  • added: createCors from itty-cors has moved into the core library as well
  • feature: withParams middleware (previously from itty-router-extras) is now possible to use as upstream middleware (e.g. globally) to reduce boilerplate. Previously this was not possible.

Official Documentation Site

We've just launched a itty.dev to house documentation for all the itty projects going forward. Previously, we auto-generated docs from the README, but clearly the documentation needs far outweighed what could feasibly fit within a single long README. See the itty-router section for more details!

See the migration guide for complete details.

Changelog

Sourced from itty-router's changelog.

v5.0.17

  • fixed: corsify should clone response before appending headers

v5.0.16

  • maintenance: README

v5.0.15

  • maintenance: types cleanup and publishing test

v5.0.14

  • maintenance: types cleanup and publishing test

v5.0.13

  • fixed: Router/AutoRouter stages were not connected to router-level generics

v5.0.12

  • fixed: ./types was not being properly exported

v5.0.10

  • fixed: response formatters in finally stage could still cross pollute headers in Node

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

For changes prior to v5, see the v4 CHANGELOG

Commits

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
itty-router [>= 4.a, < 5]

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Apr 29, 2024
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/itty-router-5.0.17 branch from e43a369 to a1078ab Compare May 15, 2024 14:19
@ankurdotb
Copy link
Contributor

@dependabot rebase

Bumps [itty-router](https://github.com/kwhitley/itty-router) from 3.0.12 to 5.0.17.
- [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@v3.0.12...v5.0.17)

---
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 force-pushed the dependabot/npm_and_yarn/itty-router-5.0.17 branch from a1078ab to 22123f2 Compare May 15, 2024 14:32
@ankurdotb
Copy link
Contributor

@dependabot ignore this major version

@dependabot dependabot bot closed this May 15, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github May 15, 2024

OK, I won't notify you about version 5.x.x again, unless you re-open this PR.

@dependabot dependabot bot deleted the dependabot/npm_and_yarn/itty-router-5.0.17 branch May 15, 2024 14:38
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 javascript Pull requests that update Javascript code
Development

Successfully merging this pull request may close these issues.

1 participant