Packages: Drop suppport for IE 11 and non-LTS Node.js versions#31270
Packages: Drop suppport for IE 11 and non-LTS Node.js versions#31270
Conversation
|
Size Change: 0 B Total Size: 1.31 MB ℹ️ View Unchanged
|
b86e196 to
f2436bf
Compare
packages/a11y/package.json
Outdated
There was a problem hiding this comment.
What's the reason for ^12.13.0 instead of 12.* ?
Also I think you don't need the ||, this field could be represented as 12.* 14.* >=15
There was a problem hiding this comment.
See https://nodejs.org/en/blog/release/v12.13.0/ and https://nodejs.org/en/blog/release/v14.15.0/. Those are versions that were effectively marked as LTS.
Jest uses the same pattern:
https://github.com/facebook/jest/blob/64d5983d20a628d68644a3a4cd0f510dc304805a/package.json#L145-L147
There was a problem hiding this comment.
I think the 12.* 14.* >=15 is logical &&. Not sure though. I have also not found yet references with the ||.
There was a problem hiding this comment.
Those versions are when LTS started, it doesn't mean they are getting updates. Looking at the security releases (eg: https://nodejs.org/en/blog/vulnerability/april-2021-security-releases/), only the very last version of 12.* gets them, so in that sense 12.13.0 is as (in)secure and (un)supported as 12.22.0. Picking the version when the whole 12.* branch was moved to LTS sounds arbitrary to me 🤷🏼
That being said, as we can't specify "latest 12.*", whatever we add in the engines field won't actually prevent them to be installed in unsupported Node versions (even assuming the package managers honors this field by default).
There was a problem hiding this comment.
I don't think that matters that much since it only prints a warning when the version of Node.js is not satisfied. If you are really concerned about that, we can go with a simple >=12.
There was a problem hiding this comment.
Updated to:
"engines": {
"node": ">=12"
},f2436bf to
6cba72b
Compare
6cba72b to
02544bb
Compare
youknowriad
left a comment
There was a problem hiding this comment.
Makes sense, thanks :)
Description
Related to https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
Follow-up for #31110.
This PR ensures that all WordPress packages that run in the browser include the changelog entry that informs about dropped support for IE 11. It also increases the minimum Node.js versions for the same packages to LTS versions:
Node 10.x goes into "End-of-life" mode this Friday (2021-04-30).
The changelog entry added to packages that summarizes all above:
This PR also updates the note included in README.md files of packages to reflect that IE11 is no longer supported and
@babel/polyfillis deprecated:Types of changes
Breaking changes.
Checklist:
*.native.jsfiles for terms that need renaming or removal).