Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Feb 19, 2024

Bumps itty-router from 3.0.12 to 4.0.27.

Release notes

Sourced from itty-router's releases.

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.

Changelog

  • 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 (credit @​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
    • feature: withParams may be used as upstream middleware (hooray!)
  • v3.0.11 - changed environment build to rollup (from tsup) and code golfed the toQuery logic. (credit @​DrLoopFall)
  • v3.0.9 - fixes some TS issue, previously requiring you to define Router Methods to chain request definitions. (credit @​jahands)
  • v3.0.0 - total TS conversion with improved types, adding greedy params (credit @​markusahlstrand)
  • v2.6.4 - merely a republish, attempting to solve NPM test scores vs CI/CD
  • v2.6.2 - fixes issue with using base path of "/" with route definitions starting with "/" (creating double slash)
  • v2.6.1 - fixes named export in ESM/mjs export
  • v2.6.0 - package now is hybrid export, supporting both ESM (.mjs) and CJS (.js) minified versions
  • v2.5.3 - corrects type for router.handle to return Promise
  • v2.5.2 - fixes issue with arrow functions in CommonJS named exports (rare issue)
  • v2.5.1 - added context to Cloudflare ES module syntax example (credit @​jcapogna)
  • v2.5.0 - improved TypeScript docs/types (thanks @​SupremeTechnopriest!)
  • v2.4.9 - fixed the cursed "optional" file format capturing bug - RIP all the bytes lost
  • v2.4.6 - fixed README issues
  • v2.4.1 - fixed type errors introduced with 2.4.0
  • v2.4.0 - HUGE internal code-golfing refactor thanks to @​taralx! Super cool work on this!!!
  • v2.3.10 - fix: dots now properly escaped (e.g. /image.jpg should not match /imageXjpg)
  • v2.3.9 - dev fixes: @​taralx improved QOL issues for test writers and dev installers
  • v2.3.7 - fix: :id.:format not resolving (only conditional format would match)
  • v2.3.0 - feature: request handler will be passed request.proxy (if found) or request (if not) - allowing for middleware magic downstream...
  • v2.2.0 - feature: base path (option) is now included in the route param parsing...
  • v2.1.1 - fix: should now be strict-mode compatible
  • v2.1.0 - now handles the problematic . character within a param (e.g. /:url/action with /google.com/action)
  • v2.0.7 - shaved a few more characters in the regex
  • v2.0.0 - API break: Router({ else: missingHandler }) has been replaced with router.all('*', missingHandler), and now "all" channel respects order of entry
  • v1.6.0 - added { else: missingHandler } to options for 404 catch-alls (thanks to the discussion with @​martinffx)
  • v1.5.0 - added '.all(route, handler)' handling for passthrough middleware
  • v1.4.3 - fixed nested routers using simple "/" routes
  • v1.4.1 - fixed typings for extra args (thanks @​rodrigoaddor)
  • v1.4.0 - adds support for optional format params (e.g. "/:id.:format?" --> { params: { id: '13', format: 'jpg' }})
  • v1.3.0 - adds support for multiple args to handle(request, ...args) method (@​hunterloftis)
  • v1.2.2 - fix: require verify/build pass before publishing and fixed README badges (should point to v1.x branch)
  • v1.2.0 - feature: chainable route declarations (with test)... that didn't take long...
  • v1.1.1 - updated README to reflect that chaining actually never was working... (not a breaking change, as no code could have been using it)
  • v1.1.0 - feature: added single option { base: '/some/path' } to Router for route prefixing, fix: trailing wildcard issue (e.g. /foo/* should match /foo)
  • v1.0.0 - production release, stamped into gold from x0.9.7

... (truncated)

Commits
  • 415b2c1 released v4.0.27 - fixed toUpperCase serialization issue
  • d3e8c95 adds sourcemaps (#214)
  • 754ce7b added check for router.fetch === router.handle and removed ThrowableRouter test
  • d5a018e added tests for custom router props
  • 53da003 custom-router-props
  • f01628c Slight changes (#211)
  • ef226b5 cleaning up testing syntax (#209)
  • 8c9f21b released v4.0.26 - attempt to fix badges
  • 093960f released v4.0.25 - minification pass
  • d570f40 fixed type on query
  • 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 3.0.12 to 4.0.27.
- [Release notes](https://github.com/kwhitley/itty-router/releases)
- [Changelog](https://github.com/kwhitley/itty-router/blob/v4.x/CHANGELOG.md)
- [Commits](kwhitley/itty-router@v3.0.12...v4.0.27)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 19, 2024
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Mar 18, 2024

Superseded by #46.

@dependabot dependabot bot closed this Mar 18, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/itty-router-4.0.27 branch March 18, 2024 13:46
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.

1 participant