From fe326a821047603dd26304effee744b89bb86283 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Wed, 2 Jun 2021 18:49:12 +0530 Subject: [PATCH 1/6] fix: add node 16 on 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 d3f7e6e23e..6785235b31 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -57,7 +57,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - node-version: [12.x, 14.x] + node-version: [12.x, 14.x, 16.x] webpack-version: [4, latest] runs-on: ${{ matrix.os }} From 0a97119e14ec8ea20ea43677b36a23b496a75eaa Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Wed, 2 Jun 2021 19:41:56 +0530 Subject: [PATCH 2/6] fix: add node 16 on ci --- test/helpers/test-bin.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/helpers/test-bin.js b/test/helpers/test-bin.js index 86921c5b50..9f8ec57935 100644 --- a/test/helpers/test-bin.js +++ b/test/helpers/test-bin.js @@ -56,6 +56,16 @@ function normalizeStderr(stderr, options = {}) { const networkIPv6 = internalIp.v6.sync(); + // normalize node warnings + normalizedStderr = normalizedStderr.replace( + "(node:3658) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.", + '' + ); + normalizedStderr = normalizedStderr.replace( + '(Use `node --trace-deprecation ...` to show where the warning was created)', + '' + ); + if (networkIPv6) { normalizedStderr = normalizedStderr.replace( new RegExp(networkIPv6, 'g'), From f48156569cf4850958b59748605efa76f9b95acb Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Sat, 5 Jun 2021 18:54:36 +0530 Subject: [PATCH 3/6] feat: serialize warning --- test/helpers/test-bin.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/helpers/test-bin.js b/test/helpers/test-bin.js index 9f8ec57935..bcb495ded4 100644 --- a/test/helpers/test-bin.js +++ b/test/helpers/test-bin.js @@ -57,10 +57,7 @@ function normalizeStderr(stderr, options = {}) { const networkIPv6 = internalIp.v6.sync(); // normalize node warnings - normalizedStderr = normalizedStderr.replace( - "(node:3658) [DEP0111] DeprecationWarning: Access to process.binding('http_parser') is deprecated.", - '' - ); + normalizedStderr = normalizedStderr.replace(/.*DeprecationWarning.*/gm, ''); normalizedStderr = normalizedStderr.replace( '(Use `node --trace-deprecation ...` to show where the warning was created)', '' From 17be714ead823fd0f62894612aa2564e70947cbc Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Sat, 5 Jun 2021 21:22:30 +0530 Subject: [PATCH 4/6] feat: serialize warning --- test/helpers/test-bin.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/helpers/test-bin.js b/test/helpers/test-bin.js index bcb495ded4..7e0e648ad7 100644 --- a/test/helpers/test-bin.js +++ b/test/helpers/test-bin.js @@ -57,7 +57,10 @@ function normalizeStderr(stderr, options = {}) { const networkIPv6 = internalIp.v6.sync(); // normalize node warnings - normalizedStderr = normalizedStderr.replace(/.*DeprecationWarning.*/gm, ''); + normalizedStderr = normalizedStderr.replace( + /.*DeprecationWarning.(\n\n)*/gm, + '' + ); normalizedStderr = normalizedStderr.replace( '(Use `node --trace-deprecation ...` to show where the warning was created)', '' From 205093e2c0d8ee63048aa32c9d94056c554bb75b Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Sat, 5 Jun 2021 21:35:06 +0530 Subject: [PATCH 5/6] feat: serialize warning --- test/helpers/test-bin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helpers/test-bin.js b/test/helpers/test-bin.js index 7e0e648ad7..9875409837 100644 --- a/test/helpers/test-bin.js +++ b/test/helpers/test-bin.js @@ -58,7 +58,7 @@ function normalizeStderr(stderr, options = {}) { // normalize node warnings normalizedStderr = normalizedStderr.replace( - /.*DeprecationWarning.(\n\n)*/gm, + /.*DeprecationWarning.*(\n\n)/gm, '' ); normalizedStderr = normalizedStderr.replace( From 6910397ed2ca5690d7ba6349afd201536c89f7b2 Mon Sep 17 00:00:00 2001 From: Anshuman Verma Date: Sat, 5 Jun 2021 22:16:13 +0530 Subject: [PATCH 6/6] feat: serialize warning --- test/helpers/test-bin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/helpers/test-bin.js b/test/helpers/test-bin.js index 9875409837..3d14d1d1b6 100644 --- a/test/helpers/test-bin.js +++ b/test/helpers/test-bin.js @@ -58,11 +58,11 @@ function normalizeStderr(stderr, options = {}) { // normalize node warnings normalizedStderr = normalizedStderr.replace( - /.*DeprecationWarning.*(\n\n)/gm, + /.*DeprecationWarning.*(\n)*/gm, '' ); normalizedStderr = normalizedStderr.replace( - '(Use `node --trace-deprecation ...` to show where the warning was created)', + /.*Use `node --trace-deprecation ...` to show where the warning was created.*(\n)*/gm, '' );