-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
feat: Bump path-to-regexp to v8 #9942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
coratgerl
wants to merge
7
commits into
parse-community:alpha
Choose a base branch
from
coratgerl:bump-path-to-regexp
base: alpha
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
03a4d88
feat: bump path-to-regexp to v8
coratgerl 56800e5
fix: feedbacks to have breaking changes
coratgerl 72af572
fix: feedbacks
coratgerl 91fb4c8
fix: feedbacks
coratgerl 650fec2
Merge branch 'alpha' into bump-path-to-regexp
mtrezza 63b2b87
fix: feedbacks
coratgerl 7951abc
fix: definitions
coratgerl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Parse Server 9 Migration Guide <!-- omit in toc --> | ||
|
|
||
| This document only highlights specific changes that require a longer explanation. For a full list of changes in Parse Server 9 please refer to the [changelog](https://github.com/parse-community/parse-server/blob/alpha/CHANGELOG.md). | ||
|
|
||
| --- | ||
| - [Route Path Syntax and Rate Limiting](#route-path-syntax-and-rate-limiting) | ||
| --- | ||
|
|
||
| ## Route Path Syntax and Rate Limiting | ||
| Parse Server 9 standardizes the route pattern syntax across cloud routes and rate-limiting to use the new **path-to-regexp v8** style. This update introduces validation and a clear deprecation error for the old wildcard route syntax. | ||
|
|
||
| ### Key Changes | ||
| - **Standardization**: All route paths now use the path-to-regexp v8 syntax, which provides better consistency and security. | ||
| - **Validation**: Added validation to ensure route paths conform to the new syntax. | ||
| - **Deprecation**: Old wildcard route syntax is deprecated and will trigger a clear error message. | ||
|
|
||
| ### Migration Steps | ||
|
|
||
| #### Path Syntax Examples | ||
|
|
||
| Update your rate limit configurations to use the new path-to-regexp v8 syntax: | ||
|
|
||
| | Old Syntax (deprecated) | New Syntax (v8) | | ||
| |------------------------|-----------------| | ||
| | `/functions/*` | `/functions/*path` | | ||
| | `/classes/*` | `/classes/*path` | | ||
| | `/*` | `/*path` | | ||
| | `*` | `*path` | | ||
|
|
||
| **Before:** | ||
| ```javascript | ||
| rateLimit: { | ||
| requestPath: '/functions/*', | ||
| requestTimeWindow: 10000, | ||
| requestCount: 100 | ||
| } | ||
| ``` | ||
|
|
||
| **After:** | ||
| ```javascript | ||
| rateLimit: { | ||
| requestPath: '/functions/*path', | ||
| requestTimeWindow: 10000, | ||
| requestCount: 100 | ||
| } | ||
| ``` | ||
|
|
||
| - Review your custom cloud routes and ensure they use the new path-to-regexp v8 syntax. | ||
| - Update any rate-limiting configurations to use the new route path format. | ||
| - Test your application to ensure all routes work as expected with the new syntax. | ||
|
|
||
| > [!Note] | ||
| > Consult the [path-to-regexp v8 docs](https://github.com/pillarjs/path-to-regexp) and the [Express 5 migration guide](https://expressjs.com/en/guide/migrating-5.html#path-syntax) for more details on the new path syntax. | ||
|
|
||
| ### Related Pull Request | ||
| - [#9942](https://github.com/parse-community/parse-server/pull/9942) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.