Skip to content

[node][routing-utils] Update path-to-regexp to v6.3.0 - #12131

Closed
G-Rath wants to merge 11 commits into
vercel:mainfrom
G-Rath:update-path-to-regexp
Closed

G-Rath wants to merge 11 commits into
vercel:mainfrom
G-Rath:update-path-to-regexp

Conversation

@G-Rath

@G-Rath G-Rath commented Sep 17, 2024

Copy link
Copy Markdown
Contributor

This addresses GHSA-9wv6-86v2-598j and also deduplicates packages since previously two different exact versions of path-to-regexp were being required.

Relates to #11543

@changeset-bot

changeset-bot Bot commented Sep 17, 2024 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c1df541

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@vercel/routing-utils Patch
@vercel/node Patch
vercel Patch
@vercel/client Patch
@vercel/fs-detectors Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/redwood Patch
@vercel/static-build Patch
@vercel-internals/types Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ajschmidt8

Copy link
Copy Markdown

@trek @EndangeredMassa, can we get this merged?

@TooTallNate TooTallNate changed the title fix: bump path-to-regexp [node][routing-utils] Update path-to-regexp to v6.3.0 Sep 25, 2024
@trek

trek commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

Opened #12239 to verify tests (external contributors don't currently have access to secrets required for tests)

@trek

trek commented Oct 10, 2024

Copy link
Copy Markdown
Contributor

@G-Rath it seems like this causes failing tests in routing-utils. That pinned version might have been there for a reason. Trying to track it down.

const actual = convertHeaders([
{
source: '(.*)+/(.*)\\.(eot|otf|ttf|ttc|woff|font\\.css)',
source: '(.*)/(.*)\\.(eot|otf|ttf|ttc|woff|font\\.css)',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix (that @jeffsee55 tried before--not sure why it passes now) does pass the test suite.

This + doesn't make sense to me. I was trying to figure out if it was intentional. So, I checked with the original author of this test in case they remembered by this extra + was here, but they don't. They think it was a mistake.

I think this is a fine change for this PR. We'll have to discuss internally how we roll out this breaking change, though.

@EndangeredMassa
EndangeredMassa added this pull request to the merge queue Dec 4, 2024
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 4, 2024
@EndangeredMassa
EndangeredMassa added this pull request to the merge queue Dec 4, 2024
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 4, 2024
@EndangeredMassa
EndangeredMassa added this pull request to the merge queue Dec 4, 2024
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 4, 2024
@EndangeredMassa
EndangeredMassa added this pull request to the merge queue Dec 4, 2024
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 4, 2024
@socket-security

socket-security Bot commented Dec 6, 2024 •

Copy link
Copy Markdown

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/[email protected] None 0 112 kB blakeembrey

View full report↗︎

@EndangeredMassa

Copy link
Copy Markdown
Contributor

I'm going to keep working on this over here: #12734

Our CI is having trouble running tests for external-to-the-org PRs. Sorry about that.

auto-merge was automatically disabled December 11, 2024 20:15

Pull request was closed

github-merge-queue Bot pushed a commit that referenced this pull request Dec 12, 2024
)

Internal version of: #12131

Working on this version because our CI setup is failing to run tests on
external PRs.

---------

Co-authored-by: Gareth Jones <[email protected]>
Co-authored-by: Trek Glowacki <[email protected]>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
…734)

Internal version of: vercel/vercel#12131

Working on this version because our CI setup is failing to run tests on
external PRs.

---------

Co-authored-by: Gareth Jones <[email protected]>
Co-authored-by: Trek Glowacki <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — c1df541f Deployed Dec 9, 2024 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants