diff --git a/package.json b/package.json index dcc13a82..cc387251 100644 --- a/package.json +++ b/package.json @@ -17,14 +17,13 @@ "version": "./.changeset/version", "release": "./.changeset/release", "release-snapshot": "./.changeset/snapshot" - }, "devDependencies": { "@changesets/changelog-github": "^0.4.4", "@changesets/cli": "^2.22.0", "@sladg/eslint-config-base": "1.4.1", "eslint": "^8.47.0", - "turbo": "1.10.12" + "turbo": "1.10.12" }, "engines": { "node": ">=16", diff --git a/packages/open-next/package.json b/packages/open-next/package.json index a6fdda91..6b7cdea9 100644 --- a/packages/open-next/package.json +++ b/packages/open-next/package.json @@ -45,7 +45,7 @@ "aws4fetch": "^1.0.18", "chalk": "^5.3.0", "esbuild": "0.19.2", - "path-to-regexp": "^6.2.1", + "path-to-regexp": "^8.1.0", "promise.series": "^0.2.0", "urlpattern-polyfill": "^10.0.0" }, diff --git a/packages/open-next/src/core/routing/matcher.ts b/packages/open-next/src/core/routing/matcher.ts index 245629ae..c6a73038 100644 --- a/packages/open-next/src/core/routing/matcher.ts +++ b/packages/open-next/src/core/routing/matcher.ts @@ -4,6 +4,7 @@ import { Match, match, MatchFunction, + ParamData, PathFunction, } from "path-to-regexp"; import type { @@ -115,8 +116,8 @@ const computeParamHas = }; function convertMatch( - match: Match, - toDestination: PathFunction, + match: Match, + toDestination: PathFunction, destination: string, ) { if (match) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 47b40b5a..38253d27 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -277,8 +277,8 @@ importers: specifier: 0.19.2 version: 0.19.2 path-to-regexp: - specifier: ^6.2.1 - version: 6.2.1 + specifier: ^8.1.0 + version: 8.1.0 promise.series: specifier: ^0.2.0 version: 0.2.0 @@ -13276,8 +13276,9 @@ packages: resolution: {integrity: sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==} dev: true - /path-to-regexp@6.2.1: - resolution: {integrity: sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==} + /path-to-regexp@8.1.0: + resolution: {integrity: sha512-Bqn3vc8CMHty6zuD+tG23s6v2kwxslHEhTj4eYaVKGIEB+YX/2wd0/rgXLFD9G9id9KCtbVy/3ZgmvZjpa0UdQ==} + engines: {node: '>=16'} dev: false /path-type@4.0.0: