Skip to content

Commit

Permalink
Update: Browserlist and caniuse to latest versions
Browse files Browse the repository at this point in the history
Bringing Browserlist to version 4.23.0 and caniuse-lite to version 1.0.30001614
---
Close: #5851
  • Loading branch information
vidorteg authored May 2, 2024
1 parent dac7399 commit 149b5ec
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/create-hintrc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@hint/utils": "^7.0.23",
"@hint/utils-debug": "^1.0.11",
"@hint/utils-fs": "^1.0.16",
"browserslist": "^4.21.5",
"browserslist": "^4.23.0",
"inquirer": "^8.2.2"
},
"description": "webhint's configuration file initializer package",
Expand Down
2 changes: 1 addition & 1 deletion packages/hint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"@hint/utils-network": "^1.0.26",
"@hint/utils-string": "^1.0.14",
"@hint/utils-types": "^1.2.1",
"browserslist": "^4.21.5",
"browserslist": "^4.23.0",
"chalk": "^4.1.2",
"eventemitter2": "^6.4.9",
"globby": "^11.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^4.33.0",
"ava": "^4.3.3",
"browserslist": "^4.21.5",
"browserslist": "^4.23.0",
"copyfiles": "^2.4.1",
"crypto-browserify": "^3.12.0",
"eslint": "^7.32.0",
Expand Down
13 changes: 11 additions & 2 deletions packages/utils-worker/tests/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@ import test from 'ava';
import { getResults } from './helpers/runner';
import { readFile } from './helpers/fixtures';

// NOTE: The tests will timeout if no issue is found.
test('It runs in a real web worker', async (t) => {
const data = { html: await readFile('fixtures/basic-hints.html') };
const results = await getResults({ userConfig: { language: 'en-us' } }, data, t.log);
const results = await getResults({
userConfig: {
browserslist: ['Edge < 70'],
language: 'en-us'
}
}, data, t.log);
const problems = results.problems;

const xContentTypeOptionsResults = problems.filter((problem) => {
Expand Down Expand Up @@ -34,6 +40,7 @@ test('It respects provided configuration', async (t) => {
const data = { html: await readFile('fixtures/basic-hints.html') };
const results = await getResults({
userConfig: {
browserslist: ['Edge < 70'],
hints: {
'axe/language': 'off',
'compat-api/html': ['default', { ignore: ['dialog'] }]
Expand Down Expand Up @@ -63,6 +70,7 @@ test('It allows disabling hints by default', async (t) => {
const results = await getResults({
defaultHintSeverity: 'off',
userConfig: {
browserslist: ['Edge < 70'],
hints: { 'compat-api/html': 'default' },
language: 'en-us'
}
Expand All @@ -83,11 +91,12 @@ test('It allows disabling hints by default', async (t) => {
t.is(compatHtmlResults.length, 1);
});

test.only('Reported problems should have an elementId', async (t) => {
test('Reported problems should have an elementId', async (t) => {
const data = { html: await readFile('fixtures/basic-hints.html') };
const results = await getResults({
defaultHintSeverity: 'off',
userConfig: {
browserslist: ['Edge < 70'],
hints: { 'compat-api/html': 'default' },
language: 'en-us'
}
Expand Down
41 changes: 37 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2530,6 +2530,16 @@ browserslist@^4.14.5, browserslist@^4.21.5:
node-releases "^2.0.8"
update-browserslist-db "^1.0.10"

browserslist@^4.23.0:
version "4.23.0"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab"
integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==
dependencies:
caniuse-lite "^1.0.30001587"
electron-to-chromium "^1.4.668"
node-releases "^2.0.14"
update-browserslist-db "^1.0.13"

buffer-crc32@^0.2.1, buffer-crc32@^0.2.13, buffer-crc32@~0.2.3:
version "0.2.13"
resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
Expand Down Expand Up @@ -2724,10 +2734,15 @@ camelcase@^6.0.0, camelcase@^6.2.0:
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a"
integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==

caniuse-lite@^1.0.30001449:
version "1.0.30001472"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001472.tgz#3f484885f2a2986c019dc416e65d9d62798cdd64"
integrity sha512-xWC/0+hHHQgj3/vrKYY0AAzeIUgr7L9wlELIcAvZdDUHlhL/kNxMdnQLOSOQfP8R51ZzPhmHdyMkI0MMpmxCfg==
caniuse-lite@^1.0.30001449, caniuse-lite@^1.0.30001587:
version "1.0.30001614"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001614.tgz#f894b4209376a0bf923d67d9c361d96b1dfebe39"
integrity sha512-jmZQ1VpmlRwHgdP1/uiKzgiAuGOfLEJsYFP4+GBou/QQ4U6IOJCB4NP1c+1p9RGLpwObcT94jA5/uO+F1vBbog==

caniuse-lite@^1.0.30001614:
version "1.0.30001614"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001614.tgz#f894b4209376a0bf923d67d9c361d96b1dfebe39"
integrity sha512-jmZQ1VpmlRwHgdP1/uiKzgiAuGOfLEJsYFP4+GBou/QQ4U6IOJCB4NP1c+1p9RGLpwObcT94jA5/uO+F1vBbog==

canvas@^2.11.2:
version "2.11.2"
Expand Down Expand Up @@ -4024,6 +4039,11 @@ electron-to-chromium@^1.4.284:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.342.tgz#3c7e199c3aa89c993df4b6f5223d6d26988f58e6"
integrity sha512-dTei3VResi5bINDENswBxhL+N0Mw5YnfWyTqO75KGsVldurEkhC9+CelJVAse8jycWyP8pv3VSj4BSyP8wTWJA==

electron-to-chromium@^1.4.668:
version "1.4.750"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.750.tgz#d278a619af727ed069de1317115187282b1131ee"
integrity sha512-9ItEpeu15hW5m8jKdriL+BQrgwDTXEL9pn4SkillWFu73ZNNNQ2BKKLS+ZHv2vC9UkNhosAeyfxOf/5OSeTCPA==

elegant-spinner@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/elegant-spinner/-/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e"
Expand Down Expand Up @@ -8177,6 +8197,11 @@ node-preload@^0.2.1:
dependencies:
process-on-spawn "^1.0.0"

node-releases@^2.0.14:
version "2.0.14"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b"
integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==

node-releases@^2.0.8:
version "2.0.10"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f"
Expand Down Expand Up @@ -11425,6 +11450,14 @@ update-browserslist-db@^1.0.10:
escalade "^3.1.1"
picocolors "^1.0.0"

update-browserslist-db@^1.0.13:
version "1.0.13"
resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz#3c5e4f5c083661bd38ef64b6328c26ed6c8248c4"
integrity sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==
dependencies:
escalade "^3.1.1"
picocolors "^1.0.0"

[email protected]:
version "6.0.2"
resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-6.0.2.tgz#a6990253dfe6d5a02bd04fbb6a61543f55026b60"
Expand Down

0 comments on commit 149b5ec

Please sign in to comment.