-
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
Update caniuse-lite package #58087
Update caniuse-lite package #58087
Conversation
Size Change: -5.76 kB (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
Flaky tests detected in 730a6d0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7614549837
|
056c9b9
to
adead4d
Compare
"ReadableJsAssetsWebpackPlugin" snapshots webpack output which changes with the updated caniuse-lite data. function() {} becomes ()=>{} in some places where webpack uses functions internally.
adead4d
to
272a796
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.
Nice one, thank you!
@desrosj, it's about time in the release cycle to do the same in WordPress core.
@gziolo Thanks for the ping! We have https://core.trac.wordpress.org/ticket/59657 on Trac for this. I'll look at it today! |
What?
Update the
caniuse-lite
package.Why?
This package determines how Gutenberg is compiled. It's a database of browsers and the features they support and affects how compilation tools like webpack and babel behave.
When the package is out of date, the data is inaccurate especially around things like the global usage percentages and "last X versions" we rely on:
gutenberg/packages/browserslist-config/index.js
Lines 3 to 11 in f4c34a4
Some of this outdated data is currently blocking some work on modules: #57924
This should also improve the build size in some minor ways overall.
How?
Update the package to its latest version.
Testing Instructions
Not necessary, although you can confirm the differences in browser support by comparing this branch and trunk. Run
npx browserslist
from thepackages/browserslist-config
directory. Here's the change in support as a diff: