[node][remix][routing-utils] log diff between current and updated versions of path-to-regexp#12926
Merged
EndangeredMassa merged 13 commits intomainfrom Jan 29, 2025
Merged
Conversation
🦋 Changeset detectedLatest commit: d22392b The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 packages
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 |
path-to-regexp
TooTallNate
reviewed
Jan 27, 2025
packages/node/src/utils.ts
Outdated
| // each of these path-to-regexp comparisons logs an innocuous message | ||
| // so we (1) can easily grab it by querying the build logs | ||
| // and (2) it doesn't spook the user | ||
| console.log(`SYSTEM TEST #${callerId} A: ${path}`); |
Member
There was a problem hiding this comment.
Prefix the log with [vc] and it'll be omitted from the user-facing logs entirely (but still be queryable on the backend).
Member
There was a problem hiding this comment.
Also, should we log the before and after regexps?
erikareads
previously approved these changes
Jan 27, 2025
trek
previously approved these changes
Jan 27, 2025
Contributor
trek
left a comment
There was a problem hiding this comment.
No comments beyond Nate's damn good point.
erikareads
reviewed
Jan 27, 2025
TooTallNate
previously approved these changes
Jan 27, 2025
erikareads
previously approved these changes
Jan 27, 2025
trek
approved these changes
Jan 28, 2025
trek
approved these changes
Jan 28, 2025
TooTallNate
approved these changes
Jan 28, 2025
Contributor
Author
|
That test failure is unrelated and being addressed outside of this PR. I'm going to merge. |
Merged
EndangeredMassa
pushed a commit
that referenced
this pull request
Jan 29, 2025
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Patch Changes - Updated dependencies \[[`16b38a92574695f9961c7cc00cf631fe434c26c8`](16b38a9)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`16b38a92574695f9961c7cc00cf631fe434c26c8`](16b38a9)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`16b38a92574695f9961c7cc00cf631fe434c26c8`](16b38a9)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`16b38a92574695f9961c7cc00cf631fe434c26c8`](16b38a9)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - log diff between current and updated versions of path-to-regexp ([#12926](#12926)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`16b38a92574695f9961c7cc00cf631fe434c26c8`](16b38a9)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - log diff between current and updated versions of path-to-regexp ([#12926](#12926)) ## @vercel/[email protected] ### Patch Changes - log diff between current and updated versions of path-to-regexp ([#12926](#12926)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[]: - @vercel/[email protected] ## @vercel-internals/[email protected] ### Patch Changes - Updated dependencies \[[`16b38a92574695f9961c7cc00cf631fe434c26c8`](16b38a9)]: - @vercel/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
EndangeredMassa
added a commit
that referenced
this pull request
Feb 5, 2025
Updated the `path-to-regexp` comparison: - centralized logic because it was getting coplicated - compared `keys` more carefully - use `keys` in updated `path-to-regexp` function as a clone of the original to avoid duplicate values --- Follow-up to: #12926 --------- Co-authored-by: Nathan Rajlich <[email protected]>
QuietCraftsmanship
pushed a commit
to QuietCraftsmanship/Vercel
that referenced
this pull request
Jul 6, 2025
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Patch Changes - Updated dependencies \[[`b13c164e8a62b37d8542a0af3e6c288a1b0c60c6`](vercel/vercel@b13c164)]: - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`b13c164e8a62b37d8542a0af3e6c288a1b0c60c6`](vercel/vercel@b13c164)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`b13c164e8a62b37d8542a0af3e6c288a1b0c60c6`](vercel/vercel@b13c164)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`b13c164e8a62b37d8542a0af3e6c288a1b0c60c6`](vercel/vercel@b13c164)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - log diff between current and updated versions of path-to-regexp ([#12926](vercel/vercel#12926)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[[`b13c164e8a62b37d8542a0af3e6c288a1b0c60c6`](vercel/vercel@b13c164)]: - @vercel/[email protected] ## @vercel/[email protected] ### Patch Changes - log diff between current and updated versions of path-to-regexp ([#12926](vercel/vercel#12926)) ## @vercel/[email protected] ### Patch Changes - log diff between current and updated versions of path-to-regexp ([#12926](vercel/vercel#12926)) ## @vercel/[email protected] ### Patch Changes - Updated dependencies \[]: - @vercel/[email protected] ## @vercel-internals/[email protected] ### Patch Changes - Updated dependencies \[[`b13c164e8a62b37d8542a0af3e6c288a1b0c60c6`](vercel/vercel@b13c164)]: - @vercel/[email protected] Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
QuietCraftsmanship
pushed a commit
to QuietCraftsmanship/Vercel
that referenced
this pull request
Jul 6, 2025
Updated the `path-to-regexp` comparison: - centralized logic because it was getting coplicated - compared `keys` more carefully - use `keys` in updated `path-to-regexp` function as a clone of the original to avoid duplicate values --- Follow-up to: vercel/vercel#12926 --------- Co-authored-by: Nathan Rajlich <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Using pnpm aliases, this PR installs two different versions of
path-to-regexp. Both are run and the resulting regex is compared. If they are different, an innocuous log message is sent to the build logs.This allows us to test out the new version and be notified of any breaking changes it would have for our users.
Testing: This will be manually tested in the build container before release.