From aa03f67c4b0c616b665fbfa85254b99132c32fed Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Fri, 22 Oct 2021 03:26:18 +0530 Subject: [PATCH 1/6] chore: use node 17 in CI --- .github/workflows/nodejs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 88ac8fd8..696da0ed 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -56,7 +56,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [12.x, 14.x, 16.x] + node-version: [12.x, 14.x, 16.x, 17.x] webpack-version: [latest] runs-on: ${{ matrix.os }} From 43158169631aae39a641bf3942c8c77ced8fcc94 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Fri, 22 Oct 2021 13:16:36 +0530 Subject: [PATCH 2/6] chore: run tests on node 17.x in CI --- test/helpers/getCompiler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/helpers/getCompiler.js b/test/helpers/getCompiler.js index 25e3e175..1c6ea2f9 100644 --- a/test/helpers/getCompiler.js +++ b/test/helpers/getCompiler.js @@ -17,6 +17,7 @@ export default (fixture, loaderOptions = {}, config = {}) => { publicPath: "/webpack/public/path/", library: "___TEST___", assetModuleFilename: "[name][ext]", + hashingFunction: "md5" }, module: { rules: [ From 3b59dbb2a533e8014694ce1df56ad922c1cbdb5b Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Fri, 22 Oct 2021 13:44:33 +0530 Subject: [PATCH 3/6] chore: run tests on node 17.x in CI --- test/helpers/getCompiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/getCompiler.js b/test/helpers/getCompiler.js index 1c6ea2f9..bc37aabe 100644 --- a/test/helpers/getCompiler.js +++ b/test/helpers/getCompiler.js @@ -17,7 +17,7 @@ export default (fixture, loaderOptions = {}, config = {}) => { publicPath: "/webpack/public/path/", library: "___TEST___", assetModuleFilename: "[name][ext]", - hashingFunction: "md5" + hashFunction: "md5" }, module: { rules: [ From 259d99fee25344a4136a0566617a8a5a7d85da34 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Fri, 22 Oct 2021 13:49:00 +0530 Subject: [PATCH 4/6] chore: run tests on node 17.x in CI --- test/helpers/getCompiler.js | 2 +- test/loader.test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/test/helpers/getCompiler.js b/test/helpers/getCompiler.js index bc37aabe..9594e9f1 100644 --- a/test/helpers/getCompiler.js +++ b/test/helpers/getCompiler.js @@ -17,7 +17,7 @@ export default (fixture, loaderOptions = {}, config = {}) => { publicPath: "/webpack/public/path/", library: "___TEST___", assetModuleFilename: "[name][ext]", - hashFunction: "md5" + hashFunction: "md5", }, module: { rules: [ diff --git a/test/loader.test.js b/test/loader.test.js index 1ff69e3d..5a2f6bc6 100644 --- a/test/loader.test.js +++ b/test/loader.test.js @@ -195,6 +195,7 @@ describe("loader", () => { { output: { publicPath: "http://example.com", + hashFunction: "md5", }, module: { rules: [ From 422c16a6b1010b44882df0f0d1db8b22fb76ec9c Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Fri, 22 Oct 2021 13:53:00 +0530 Subject: [PATCH 5/6] chore: run tests on node 17.x in CI --- test/__snapshots__/loader.test.js.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/__snapshots__/loader.test.js.snap b/test/__snapshots__/loader.test.js.snap index b184597f..586066ce 100644 --- a/test/__snapshots__/loader.test.js.snap +++ b/test/__snapshots__/loader.test.js.snap @@ -93,7 +93,7 @@ exports[`loader should work with "html-webpack-plugin" plugin: result 1`] = `
Text
- \\"image\\" + \\"image\\" " `; From 346c3f14b4aac405dc2b7bd197de28342a70edbe Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Fri, 22 Oct 2021 16:38:21 +0530 Subject: [PATCH 6/6] chore: run tests on node 17.x in CI --- test/__snapshots__/loader.test.js.snap | 2 +- test/helpers/getCompiler.js | 2 +- test/loader.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/__snapshots__/loader.test.js.snap b/test/__snapshots__/loader.test.js.snap index 586066ce..91fba2d2 100644 --- a/test/__snapshots__/loader.test.js.snap +++ b/test/__snapshots__/loader.test.js.snap @@ -93,7 +93,7 @@ exports[`loader should work with "html-webpack-plugin" plugin: result 1`] = `
Text
- \\"image\\" + \\"image\\" " `; diff --git a/test/helpers/getCompiler.js b/test/helpers/getCompiler.js index 9594e9f1..56d39828 100644 --- a/test/helpers/getCompiler.js +++ b/test/helpers/getCompiler.js @@ -17,7 +17,7 @@ export default (fixture, loaderOptions = {}, config = {}) => { publicPath: "/webpack/public/path/", library: "___TEST___", assetModuleFilename: "[name][ext]", - hashFunction: "md5", + hashFunction: "xxhash64", }, module: { rules: [ diff --git a/test/loader.test.js b/test/loader.test.js index 5a2f6bc6..c3b6813b 100644 --- a/test/loader.test.js +++ b/test/loader.test.js @@ -195,7 +195,7 @@ describe("loader", () => { { output: { publicPath: "http://example.com", - hashFunction: "md5", + hashFunction: "xxhash64", }, module: { rules: [