-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Packages: Replace is-plain-obj
with is-plain-object
#43511
Conversation
npm publishing will trigger tomorrow together with the Gutenberg plugin release 😄 |
Let's also remove the workaround from the Jest config and we should be done:
|
But we're already removing it: Or are you referring to something else? |
Size Change: +379 B (0%) Total Size: 1.24 MB
ℹ️ View Unchanged
|
Sorry about it. I missed that line 💯 Any idea why Jest is having issues with importing the new package? |
I think it's because the dependency is missing in |
it's a development dependency, so it should be defined in the top-level |
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.
Excellent work @tyxla. Let's fly without imported ES Modules for some more time 😅
It looks like we need to go all in for ES Modules first before we start importing other packages that use only ES Modules.
Thanks for the change! Just a heads up, adding in |
Thanks for letting us know, and please do let me know if you encounter any similar issues in the future. |
What?
In this PR we're replacing
is-plain-obj
withis-plain-object
.Fixes #43434.
Why?
Because the former is ESM-only and this causes problems in CommonJS environments.
Prior attempts to address this were inconclusive: #43179 and #43271.
How?
Just replacing the package everywhere, they're basically drop-in replacements.
@gziolo we'll need to prepare some new package releases once this lands.
Testing Instructions