-
Notifications
You must be signed in to change notification settings - Fork 2k
Try #2: Upgrade @wordpress packages to pre-React 18 #73890
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 all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
4819ea4
Update packages to pre- react 18 versions
tyxla 1e7cf25
Noop some type packages with stale @wordpress/data module declarations
tyxla 88e7597
Fix some TS errors
tyxla afb5603
Fix some unit tests
tyxla a63151a
Fix TS errors in wpcom-checkout
tyxla 266cc23
Fix more TS errors
tyxla ba554bb
Fix TS errors in wpcom-plans-ui data store
tyxla 868db66
Fix a bunch of other TS errors
tyxla 2760aa8
Fix a bunch of other TS errors
tyxla bb07c00
Fix a bunch more TS errors
tyxla 97bdf7f
Fix type confusion
tyxla 990750a
Add core/data temp placeholder types
tyxla 6b1ac77
deduplicate packages
tyxla 787a9f2
Ignore some logs
tyxla 2fd2d15
Fix another failing test
tyxla 0684633
Fix a couple more tests
tyxla b8e4a20
Fix a bad import
tyxla 39c8d53
Force @wordpress/element resolution
tyxla 3070be4
Fix more code style errors
tyxla 3f7ba02
Fix some code style errors
tyxla 684a109
Declare TS modules of the nooped types
tyxla c6ffa97
Pin @wordpress/data-controls version
tyxla 5489d74
Fix a ton of ETK TS errors
tyxla 62fc636
Remove some undesired obsolete type packages
tyxla 0131606
Restore @wordpress/data-controls types
tyxla 6aca0fd
Add necessary @wordpress/blocks types inline
tyxla 9254527
Remove a duplicate __i18n_text_domain__
tyxla 3fd901e
Dedupe again
tyxla ebc0e59
Revert "Remove a duplicate __i18n_text_domain__"
tyxla ec4d5a6
Workaround a __i18n_text_domain__ duplication
tyxla bb7139d
Fix a bunch of store and checkout TS errors
tyxla 9487ea0
Fix more package TS errors
tyxla e684094
Start fixing some more TS errors
tyxla 93bdb81
More TS fixes
tyxla e026b9e
Fix a bunch more TS errors
tyxla 5971e49
More TS error fixes
tyxla 80003b4
Fix some imports
tyxla 217d151
More TS errors
tyxla 25f49de
Fix bad import
tyxla effc4d7
A few more TS fixes
tyxla 9c29f87
More TS errors fixed
tyxla ebb6b5d
Add @automattic/global-styles to tsconfig references
tyxla 00f0469
Fix a few more type errors
tyxla cc70ca0
Fix a few more TS errors
tyxla a012406
Ignore another log entry
tyxla c88396f
Fix more TS errors
tyxla 7e8bd30
Pin @wordpress/base-styles
tyxla 2891422
Revert @wordpress/env upgrade
tyxla ed8ceb8
Add missing select dependency
noahtallen 6b61059
Add missing data dependencies to useSelect calls
noahtallen 11edb1a
Remove some now uneeded ts-ignore lines
noahtallen d740121
Polish some useSelect dependencies
tyxla 3f2cac9
Polish another useSelect data dependency
noahtallen c5df3e5
Account for possibly undefined stores
noahtallen cd45678
Add more data dependencies to useSelect calls
noahtallen b8a0f10
Fix render loop caused by obj reference changing each render
noahtallen 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 |
|---|---|---|
|
|
@@ -111,6 +111,12 @@ logFilters: | |
| pattern: "@automattic/global-styles@workspace:packages/global-styles provides react-dom (*) with version 17.0.2, which doesn't satisfy what @wordpress/block-editor and some of its descendants request" | ||
| - level: discard | ||
| pattern: "@automattic/global-styles@workspace:packages/global-styles provides react-dom (*) with version 17.0.2, which doesn't satisfy what @wordpress/components and some of its descendants request" | ||
| - level: discard | ||
| pattern: "@wordpress/data-controls@npm:2.27.0 doesn't provide react (p90380), requested by @wordpress/data" | ||
| - level: discard | ||
| pattern: "@wordpress/notices@npm:3.27.0 doesn't provide react (pcdad4), requested by @wordpress/data" | ||
| - level: discard | ||
| pattern: "calypso@workspace:client provides @wordpress/data (pd64ed) with version 7.6.0, which doesn't satisfy what @automattic/subscription-manager requests" | ||
|
|
||
| nodeLinker: node-modules | ||
|
|
||
|
|
@@ -123,28 +129,13 @@ packageExtensions: | |
| "@signal-noise/[email protected]": | ||
| peerDependencies: | ||
| postcss: "*" | ||
| "@types/[email protected]": | ||
| peerDependencies: | ||
| react: "*" | ||
| react-dom: "*" | ||
| "@types/[email protected]": | ||
| peerDependencies: | ||
| react: "*" | ||
| "@types/[email protected]": | ||
| peerDependencies: | ||
| react: "*" | ||
| "@types/[email protected]": | ||
| peerDependencies: | ||
| react: "*" | ||
| react-dom: "*" | ||
| "@types/[email protected]": | ||
| peerDependencies: | ||
| react: "*" | ||
| react-dom: "*" | ||
| "@types/[email protected]": | ||
| peerDependencies: | ||
| react: "*" | ||
| "@wordpress/stylelint-config@20.0.3": | ||
| "@wordpress/stylelint-config@21.10.0": | ||
| peerDependencies: | ||
| postcss: "*" | ||
| [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
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
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.