-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[graphiql]: support react 19, drop support react 16 and react 17 #3897
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
+675
−779
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
1b6b507
upd
dimaMachina 84ec2f8
upd
dimaMachina b3cc341
upd
dimaMachina 178e594
upd
dimaMachina 942afb1
upd
dimaMachina 84b9983
exclude react-dom/client from bundle
dimaMachina e394bb6
bump react everywhere to v19
dimaMachina b2eb509
bump react everywhere to v19
dimaMachina 58d9607
polish
dimaMachina 9b0d339
fix failing text, to unblock canary
dimaMachina 54b0dee
Merge branch 'main' into react19
dimaMachina 3f3dc5e
upd
dimaMachina c58df79
Merge branch 'main' into react19
dimaMachina efc7c3f
try `minor` for graphiql/react, otherwise it pines to `1.0.0-next.2` …
dimaMachina 07a0905
try workaround
dimaMachina c3b73f3
try workaround
dimaMachina adbdb8f
try workaround
dimaMachina a408e42
try workaround
dimaMachina 4b34b10
this should fix vitest
dimaMachina 284c2fa
try
dimaMachina 2382b03
try
dimaMachina 5242c56
lint
dimaMachina 46b304f
try
dimaMachina 6325cda
fix test
dimaMachina efbd430
try SOURCEMAP var
dimaMachina c1ab45d
try ESM_SH_BUILD var
dimaMachina d23559f
try
dimaMachina 1b248df
rm some unneeded code
dimaMachina 6fc5225
try to fix esbuild: package 'uWebSockets.js' not found
dimaMachina 1d41eb0
update vite to see if it fix esbuild error?
dimaMachina cb95709
bump module "@emotion/is-prop-valid" not found to fix `module "@emoti…
dimaMachina 9e856e6
upd
dimaMachina 9efda10
upd
dimaMachina 0f373b9
upd
dimaMachina 78a8246
Merge branch 'main' into react19
dimaMachina c587f92
fix e2e
dimaMachina 9fe2edb
add changeset
dimaMachina 55c2aa3
add migration markdown file
dimaMachina ec81b20
fix
dimaMachina 168c364
Merge branch 'v4' into react19
dimaMachina 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,8 @@ | ||
--- | ||
'@graphiql/plugin-code-exporter': major | ||
'@graphiql/plugin-explorer': major | ||
'@graphiql/react': minor | ||
'graphiql': major | ||
--- | ||
|
||
drop commonjs build files |
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 @@ | ||
--- | ||
'@graphiql/plugin-code-exporter': major | ||
'@graphiql/plugin-explorer': major | ||
'@graphiql/react': minor | ||
'graphiql': major | ||
--- | ||
|
||
- support react 19, drop support react 16 and react 17 | ||
- replace deprecated `ReactDOM.unmountComponentAtNode()` and `ReactDOM.render()` with `root.unmount()` and `createRoot(container).render()` | ||
- update `@radix-ui` and `@headlessui/react` dependencies |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Upgrading `graphiql` from `3.x` to `4.0.0` | ||
|
||
## `graphiql` changes | ||
|
||
- Drop CommonJS build output | ||
- Drop support React 16/17 | ||
- Support React 19 | ||
|
||
## `@graphiql/react` changes | ||
|
||
- Drop CommonJS build output | ||
- Drop support React 16/17 | ||
- Support React 19 | ||
- Update `@radix-ui` and `@headlessui/react` dependencies | ||
|
||
## `@graphiql/plugin-code-exporter` changes | ||
|
||
- Drop CommonJS build output | ||
- Drop support React 16/17 | ||
- Support React 19 | ||
|
||
## `@graphiql/plugin-explorer` changes | ||
|
||
- Drop CommonJS build output | ||
- Drop support React 16/17 | ||
- Support React 19 |
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare var React: import('react'); | ||
declare var ReactDOM: import('react-dom/client'); | ||
declare var GraphiQL: import('./cdn'); |
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.
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.