-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
chore: update memize to v2 #50172
chore: update memize to v2 #50172
Conversation
2ce3e10
to
313114b
Compare
Edit: Sorry I made some mistake, it's all correct now I believe. Edit 2: No there is still some issue, what is the correct version of |
|
313114b
to
a1599ea
Compare
@gziolo I will try reverting the lockfile to the original and using your trick |
If capturing correct lock file changes while upgrading |
fea41fb
to
c74e30c
Compare
fix: update package-lock.json
c74e30c
to
6c452bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thank you @johnhooks for bringing it to the finish line!
@gziolo there were two commented out tests that used an internal api of |
I missed that, along with other changes. Another PR with the cleanup would be more than welcomed 😄 |
What?
Update
memize
to the latest version.Why?
Typing
@wordpress/blocks
and@wordpress/block-editor
depend on a change to howmemize
exports it's types. There are also improvements to the generic function argument ofmemize
that will facilitate more complete typing.Testing Instructions
There are two failing tests in
packages/edit-site/src/store/test/utils.js
which rely on an internal testing API ofmemize
,getCache()
. It is no longer included in the published version. Either the tests need to be removed or tested another way (temporally they are commented out).Notes
An update to how v2 of
memize
defines its exports being worked on in aduth/memize#11, it will need to be published before the unit tests will pass.