Skip to content

Commit

Permalink
chore: bump up itty-router version to v5 (#9)
Browse files Browse the repository at this point in the history
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [itty-router](https://itty.dev/itty-router) ([source](https://togithub.com/kwhitley/itty-router)) | [`^4.2.2` -> `^5.0.0`](https://renovatebot.com/diffs/npm/itty-router/4.2.2/5.0.17) | [![age](https://developer.mend.io/api/mc/badges/age/npm/itty-router/5.0.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/itty-router/5.0.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/itty-router/4.2.2/5.0.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/itty-router/4.2.2/5.0.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>kwhitley/itty-router (itty-router)</summary>

### [`v5.0.17`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v5017)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.16...v5.0.17)

-   fixed: corsify should clone response before appending headers

### [`v5.0.16`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v5016)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.15...v5.0.16)

-   maintenance: README

### [`v5.0.15`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v5015)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.14...v5.0.15)

-   maintenance: types cleanup and publishing test

### [`v5.0.14`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v5014)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.13...v5.0.14)

-   maintenance: types cleanup and publishing test

### [`v5.0.13`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v5013)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.12...v5.0.13)

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

### [`v5.0.12`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v5012)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.11...v5.0.12)

-   fixed: ./types was not being properly exported

### [`v5.0.11`](https://togithub.com/kwhitley/itty-router/compare/v5.0.10...v5.0.11)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.10...v5.0.11)

### [`v5.0.10`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v5010)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.9...v5.0.10)

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

### [`v5.0.9`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v509)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.8...v5.0.9)

-   fixed: cors preflight should reflect requested headers as the default (required for credentials)

### [`v5.0.8`](https://togithub.com/kwhitley/itty-router/compare/v5.0.7...v5.0.8)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.7...v5.0.8)

### [`v5.0.7`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v507)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.6...v5.0.7)

-   fixed: withParams could attempt to bind null (collision with node adapter)

### [`v5.0.6`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v506)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.5...v5.0.6)

-   fixed: corsify as replacing status codes (now mutates original response)

### [`v5.0.5`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v505)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.4...v5.0.5)

-   fixed: corsify now properly ignores WebSocket responses

### [`v5.0.4`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v504)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.3...v5.0.4)

-   fixed: (TypeScript) middleware corrupting downstream request types and args

### [`v5.0.3`](https://togithub.com/kwhitley/itty-router/compare/v5.0.2...v5.0.3)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.2...v5.0.3)

### [`v5.0.2`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v502)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v5.0.1...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.1`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v5017)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/5f6e42c0774ef981ca096826e7f446a66aab9b3c...v5.0.1)

-   fixed: corsify should clone response before appending headers

### [`v5.0.0`](https://togithub.com/kwhitley/itty-router/blob/HEAD/CHANGELOG.md#v500)

[Compare Source](https://togithub.com/kwhitley/itty-router/compare/v4.2.2...5f6e42c0774ef981ca096826e7f446a66aab9b3c)

-   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](https://togithub.com/kwhitley/itty-router/edit/v4.x/CHANGELOG.md)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/toeverything/affine-workers).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzguMCIsInVwZGF0ZWRJblZlciI6IjM4LjIwLjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
  • Loading branch information
renovate[bot] authored Aug 13, 2024
1 parent e65dfe2 commit 7ec5436
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@affine/utils": "workspace:*",
"@cloudflare/workers-types": "^4.20231218.0",
"@types/node": "^20.10.5",
"itty-router": "^4.2.2",
"itty-router": "^5.0.0",
"tldts": "^6.1.38",
"typescript": "^5.5.4",
"wrangler": "^3.22.1"
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7ec5436

Please sign in to comment.