-
Notifications
You must be signed in to change notification settings - Fork 296
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
Update @wordpress/data
to version 4.27.3
using patch-package
#8826
Labels
javascript
Pull requests that update Javascript code
P0
High priority
Team M
Issues for Squad 2
Type: Infrastructure
Engineering infrastructure & tooling
Comments
All sounds good to me 👍🏻 IB ✅ |
18 tasks
18 tasks
18 tasks
QA Update ✅
|
I completed my testing but moving this back to QA. As per QAB it requires |
@tofumatt @techanvil Can you please confirm if all unit, integration and e2e tests are pass locally and in CI during CR ? If yes, then I will move this to approval. |
@mohitwp Yes, everything is passing, this can be moved to Approval 👍🏻 |
Thank you @tofumatt ! Moving this back to approval. |
18 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
javascript
Pull requests that update Javascript code
P0
High priority
Team M
Issues for Squad 2
Type: Infrastructure
Engineering infrastructure & tooling
Feature Description
Following on from the update to
@wordpress/data
4.23.0
in #1769, we should update to version4.27.3
. This is the latest version that supports (via@wordpress/element
) React 16.Based on the learning from #6356 and recent hackathon exploration and its output branch here, we will use patch package to mitigate the bug discovered while working on the aforementioned issue.
This is a temporary solution until we are able to upgrade to
v9.0.0
or later version of@wordpress/data
in which version, the bug has been officially fixed! See this PR.For
patch-package
, see the note about CI and caching here. Note that, our workflows does not cachenode_module
but the global package cache instead, so changes inpatches
folder should not require any changes for caching mechanism, just noting for completeness.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
@wordpress/data
should be updated to version 4.27.3, and necessary patches should be applied usingpatch-package
to mitigate the discovered bug.Implementation Brief
Note for IB author: the hackathon branch can be used for a starting point while drafting the IB and/or implementing the issue in Execution.
package.json
:@wordpress/data
to4.27.3
.@wordpress/compose
to3.25.3
to match with the version used by the updated version of@wordpress/data
.patch-package
as a dev dependency."postinstall": "patch-package"
script inpackage.json
.__experimentalResolveSelect
and replace withresolveSelect
.packages/data/src/components/use-select/index.js
file ingutenberg
repo between thev4.23.0
andv4.27.3
version, and make note of the changes to prepare for a patch.git diff @wordpress/[email protected] @wordpress/[email protected] -- packages/data/src/components/use-select/index.js
.__experimentalSubscribeStore
.node_modules/@wordpress/data/build-module/components/use-select/index.js
(used by jest tests) andnode_modules/@wordpress/data/build/components/use-select/index.js
(used by plugin build).patches/@wordpress+data+4.27.3.patch
file in linked branch for an example.assets/js/googlesitekit/data
that has some additional tests for verifying the changes.createRegistrySelector
.Test Coverage
QA Brief
Changelog entry
@wordpress/data
to version4.27.3
, including a patch to avoid breaking changes.The text was updated successfully, but these errors were encountered: