[wp-trac] [WordPress Trac] #52331: Consider using more precise browser versions for `browserslist`
WordPress Trac
noreply at wordpress.org
Fri Jan 29 06:53:48 UTC 2021
#52331: Consider using more precise browser versions for `browserslist`
-------------------------------------------------+-------------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Build/Test Tools | Version: 4.9
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by netweb):
Replying to [comment:3 desrosj]:
> Was playing around with some of this today. It looks like the
`browserlist` package does not recognize the "Spartan" releases of Edge
listed
[https://en.wikipedia.org/wiki/Microsoft_Edge#Spartan_release_history
here]. The
[https://en.wikipedia.org/wiki/Microsoft_Edge#Anaheim_release_history
current version is within the "Anaheim" series], but this series was not
released until 1/15/2020 (shortly after WordPress 5.3).
>
> Running `npx browserslist "Edge >= 1"` produces the following output
(which does not include any Spartan releases):
> {{{
> edge 87
> edge 86
> edge 85
> edge 84
> edge 83
> edge 81
> edge 80
> edge 79
> edge 18
> edge 17
> edge 16
> edge 15
> edge 14
> edge 13
> edge 12
> }}}
>
> With this in mind, I'm not sure what the versions for `Edge` should be
for branches <= 5.3, but these adjustments to the table above are needed:
> - 5.6: >= 85
> - 5.5: >= 83
> - 5.4: >= 79
This is due to browserslist uses caniuse data, and it itself doesn't
include the spartan series versions either:
> https://caniuse.com/usage-table
It's also useful to run `npx browserslist at latest --update-db` as this
updates the caniuse database data in browserslist without having to update
browserslist directly, this can also be used in CI code to ensure the
caniuse data is always up to date independent of any browserslist release
And per my previous comment, I don't think we should support any of the
Edge Spartan releases, IE11 and latest 2 versions of Edge which is v87 &
v88 as of yesterday with the v88 release
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52331#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list