-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
feat: Stabilize Middleware and Context APIs #14215
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
Merged
Merged
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
c9142b0
Remove prefix from client middleware
brophdawg11 56077d4
Remove prefix from server middleware and flag
brophdawg11 f105756
Remove prefix from MiddlewareNextFunction
brophdawg11 755b1f4
Remove prefix from context provider and createContext
brophdawg11 40bfd92
Rename to future.v8_middleware
brophdawg11 f1b0dff
Update docs
brophdawg11 3b7ca86
Remove prefix from getContext
brophdawg11 d127020
Remove prefix from RouterContext
brophdawg11 16d3f8e
Remove prefix from dataStrategy runClientMiddleware
brophdawg11 5755d5b
Remove prefix from static handler generateMiddlewareResponse
brophdawg11 abb7a34
Add changeset
brophdawg11 3704e41
Fix a few missed spots
brophdawg11 b31a724
Merge branch 'dev' into brophdawg11/stabilize-middleware
brophdawg11 f60fe64
Fix rsc test
brophdawg11 30fe5d9
Update e2e test unstable-get-context file
brophdawg11 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,10 @@ | ||
--- | ||
"@react-router/cloudflare": minor | ||
"@react-router/architect": minor | ||
"@react-router/express": minor | ||
"@react-router/node": minor | ||
"@react-router/dev": minor | ||
"react-router": minor | ||
--- | ||
|
||
Stabilize middleware and context APIs |
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
Large diffs are not rendered by default.
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
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
2 changes: 1 addition & 1 deletion
2
integration/helpers/rsc-parcel/src/config/unstable-get-context.ts
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// THIS FILE IS DESIGNED TO BE OVERRIDDEN IN TESTS IF NEEDED | ||
export const unstable_getContext = undefined; | ||
export const getContext = undefined; |
2 changes: 1 addition & 1 deletion
2
integration/helpers/rsc-vite/src/config/unstable-get-context.ts
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// THIS FILE IS DESIGNED TO BE OVERRIDDEN IN TESTS IF NEEDED | ||
export const unstable_getContext = undefined; | ||
export const getContext = undefined; |
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.
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.