From f1c4831e1b844ffa01230f1a32274ec8a6b4b8bf Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Mon, 22 Jan 2024 17:46:23 +0100 Subject: [PATCH 1/2] Update caniuse-lite package --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2a2fc30b96099..059b710d89811 100644 --- a/package-lock.json +++ b/package-lock.json @@ -166,7 +166,7 @@ "babel-plugin-transform-remove-console": "6.9.4", "benchmark": "2.1.4", "browserslist": "4.21.10", - "caniuse-lite": "1.0.30001538", + "caniuse-lite": "1.0.30001579", "chalk": "4.1.1", "change-case": "4.1.2", "commander": "9.2.0", @@ -21350,9 +21350,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001538", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001538.tgz", - "integrity": "sha512-HWJnhnID+0YMtGlzcp3T9drmBJUVDchPJ08tpUGFLs9CYlwWPH2uLgpHn8fND5pCgXVtnGS3H4QR9XLMHVNkHw==", + "version": "1.0.30001579", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz", + "integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==", "funding": [ { "type": "opencollective", @@ -73290,9 +73290,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001538", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001538.tgz", - "integrity": "sha512-HWJnhnID+0YMtGlzcp3T9drmBJUVDchPJ08tpUGFLs9CYlwWPH2uLgpHn8fND5pCgXVtnGS3H4QR9XLMHVNkHw==" + "version": "1.0.30001579", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz", + "integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==" }, "capital-case": { "version": "1.0.4", diff --git a/package.json b/package.json index 035c8d69cc56f..7d44eda369d68 100644 --- a/package.json +++ b/package.json @@ -178,7 +178,7 @@ "babel-plugin-transform-remove-console": "6.9.4", "benchmark": "2.1.4", "browserslist": "4.21.10", - "caniuse-lite": "1.0.30001538", + "caniuse-lite": "1.0.30001579", "chalk": "4.1.1", "change-case": "4.1.2", "commander": "9.2.0", From 272a7961c28e22bca620ac2c9b61a12bff8508db Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Mon, 22 Jan 2024 18:03:51 +0100 Subject: [PATCH 2/2] Update snapshots "ReadableJsAssetsWebpackPlugin" snapshots webpack output which changes with the updated caniuse-lite data. function() {} becomes ()=>{} in some places where webpack uses functions internally. --- .../test/__snapshots__/build.js.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/readable-js-assets-webpack-plugin/test/__snapshots__/build.js.snap b/packages/readable-js-assets-webpack-plugin/test/__snapshots__/build.js.snap index e5a7d6f6accc8..c033e572e8e5e 100644 --- a/packages/readable-js-assets-webpack-plugin/test/__snapshots__/build.js.snap +++ b/packages/readable-js-assets-webpack-plugin/test/__snapshots__/build.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`ReadableJsAssetsWebpackPlugin should produce the expected output: Asset file index.js should match snapshot 1`] = ` -"/******/ (function() { // webpackBootstrap +"/******/ (() => { // webpackBootstrap var __webpack_exports__ = {}; function notMinified() { // eslint-disable-next-line no-console @@ -16,7 +16,7 @@ notMinified(); exports[`ReadableJsAssetsWebpackPlugin should produce the expected output: Asset file index.min.js should match snapshot 1`] = `"console.log("hello");"`; exports[`ReadableJsAssetsWebpackPlugin should produce the expected output: Asset file view.js should match snapshot 1`] = ` -"/******/ (function() { // webpackBootstrap +"/******/ (() => { // webpackBootstrap var __webpack_exports__ = {}; function notMinified() { // eslint-disable-next-line no-console