[wp-trac] [WordPress Trac] #53685: Update the `caniuse` database when running `grunt precommit:css`
WordPress Trac
noreply at wordpress.org
Fri Mar 4 01:24:42 UTC 2022
#53685: Update the `caniuse` database when running `grunt precommit:css`
------------------------------+------------------------------
Reporter: desrosj | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: css
------------------------------+------------------------------
Comment (by ironprogrammer):
Hi, @desrosj 👋🏻:
In my testing with npm v6.14.16, it is still an issue where `package-
lock.json` indentation is converted to 2 spaces. This can be worked around
by first deleting the lock file, where the `browserslist` update will copy
the indentation from `package.json` (as expected) while regenerating the
lock file. (See "Short Term Maintenance" below.)
On the other hand, in npm v7-8, the indentation issue appears to have been
fixed. During the lock file update, tabs are preserved, but v7 introduced
`"lockFileVersion": 2` to `package.json`. It would seem that in order to
support a pre-commit check for the latest `caniuse-lite` data, it would
need to happen ''after'' migrating npm to a higher version.
=== Short Term Maintenance
I've prepared a patch ([https://core.trac.wordpress.org/ticket/53685 PR
2379]) for the `caniuse-lite` DB with npm 6.14.16, if we ''only'' wanted
to bring the browsers list up to date. Here is the list of changes as of
today:
{{{
Target browser changes:
- and_chr 91
+ and_chr 98
- and_uc 12.12
- android 91
+ android 98
- chrome 91
- chrome 90
+ chrome 98
+ chrome 97
+ chrome 96
- edge 91
- edge 90
+ edge 98
+ edge 97
+ edge 96
- firefox 90
- firefox 89
+ firefox 97
+ firefox 96
+ firefox 95
- ios_saf 14.5-14.7
- ios_saf 14.0-14.4
+ ios_saf 15.2-15.3
+ ios_saf 15.0-15.1
+ ios_saf 14.5-14.8
- opera 77
- opera 76
+ opera 83
+ opera 82
- safari 14
+ safari 15.2-15.3
+ safari 15.1
- samsung 14.0
+ samsung 16.0
}}}
I know this doesn't address the need to update `precommit:css`, but offers
some additional time while an update to npm is considered.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53685#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list