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 |
|
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-objwithis-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