From 7206fad62d47f0cae01fb158bd645a587690f2e8 Mon Sep 17 00:00:00 2001 From: "taeyoung.hong" Date: Wed, 30 Dec 2020 10:51:49 +0900 Subject: [PATCH 1/5] PLAT-129601: Upgrade @pmmmwh/react-refresh-webpack-plugin module from 0.3.3 to 0.4.1 --- CHANGELOG.md | 1 + package-lock.json | 22 ++++++++++++---------- package.json | 2 +- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3284c1cf..507df152 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### serve * Fixed https serve is not working. +* Updated CLI dependency of `react-refresh-webpack-plugin` to 0.4.1. ### eject diff --git a/package-lock.json b/package-lock.json index 645d5298..8562f7bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1499,16 +1499,23 @@ } }, "@pmmmwh/react-refresh-webpack-plugin": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.3.3.tgz", - "integrity": "sha512-uc6FmPEegAZawSHjUMFQwU7EjaDn7zy1iD/KD/wBROL9F4378OES8MKMYHoRAKT61Fk7LxVKZSDR5VespMQiqw==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.1.tgz", + "integrity": "sha512-MzM87WdX2r2KRFfhEho7oGyK1XRE/J9WwjB3v6oLQHN0dzBypBZxSWjnoYx+RWneRCsg8Sin1myf+EjX1fqIbQ==", "requires": { "ansi-html": "^0.0.7", "error-stack-parser": "^2.0.6", "html-entities": "^1.2.1", - "lodash.debounce": "^4.0.8", "native-url": "^0.2.6", - "schema-utils": "^2.6.5" + "schema-utils": "^2.6.5", + "source-map": "^0.7.3" + }, + "dependencies": { + "source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==" + } } }, "@sinonjs/commons": { @@ -8395,11 +8402,6 @@ "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz", "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=" }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=" - }, "lodash.escape": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/lodash.escape/-/lodash.escape-4.0.1.tgz", diff --git a/package.json b/package.json index 6166cb23..281eb241 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "@babel/runtime": "7.10.5", "@enact/dev-utils": "3.1.0", "@enact/template-moonstone": "3.1.0", - "@pmmmwh/react-refresh-webpack-plugin": "0.3.3", + "@pmmmwh/react-refresh-webpack-plugin": "0.4.1", "@typescript-eslint/eslint-plugin": "3.6.0", "@typescript-eslint/parser": "3.6.0", "babel-eslint": "10.1.0", From e0cd003e1c421b6404d1c60a0d8d0d6749c93680 Mon Sep 17 00:00:00 2001 From: "taeyoung.hong" <35059065+hong6316@users.noreply.github.com> Date: Thu, 31 Dec 2020 19:15:52 +0900 Subject: [PATCH 2/5] Update CHANGELOG.md --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 507df152..3284c1cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,6 @@ ### serve * Fixed https serve is not working. -* Updated CLI dependency of `react-refresh-webpack-plugin` to 0.4.1. ### eject From c8fec7150951169b9a84ab6941d488bd8315f503 Mon Sep 17 00:00:00 2001 From: "taeyoung.hong" <35059065+hong6316@users.noreply.github.com> Date: Thu, 31 Dec 2020 19:16:28 +0900 Subject: [PATCH 3/5] Update package-lock.json --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9e60a407..be71b1ed 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3430,9 +3430,9 @@ } }, "@pmmmwh/react-refresh-webpack-plugin": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.1.tgz", - "integrity": "sha512-MzM87WdX2r2KRFfhEho7oGyK1XRE/J9WwjB3v6oLQHN0dzBypBZxSWjnoYx+RWneRCsg8Sin1myf+EjX1fqIbQ==", + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@pmmmwh/react-refresh-webpack-plugin/-/react-refresh-webpack-plugin-0.4.3.tgz", + "integrity": "sha512-br5Qwvh8D2OQqSXpd1g/xqXKnK0r+Jz6qVKBbWmpUcrbGOxUrf39V5oZ1876084CGn18uMdR5uvPqBv9UqtBjQ==", "requires": { "ansi-html": "^0.0.7", "error-stack-parser": "^2.0.6", From f639b603e8fa0d999935db72e54098fade2e7349 Mon Sep 17 00:00:00 2001 From: "taeyoung.hong" Date: Thu, 31 Dec 2020 19:55:07 +0900 Subject: [PATCH 4/5] Update commands/eject.js (for fixing lint error) --- commands/eject.js | 57 +++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/commands/eject.js b/commands/eject.js index d893616b..f945b0a8 100755 --- a/commands/eject.js +++ b/commands/eject.js @@ -69,36 +69,35 @@ function displayHelp() { function validateEject() { return prompts({ - type: 'confirm', - name: 'shouldEject', - message: 'Are you sure you want to eject? This action is permanent.', - default: false - }) - .then(answer => { - if (!answer.shouldEject) { - console.log(chalk.cyan('Close one! Eject aborted.')); - return {abort: true}; - } else { - checkGitStatus(); + type: 'confirm', + name: 'shouldEject', + message: 'Are you sure you want to eject? This action is permanent.', + default: false + }).then(answer => { + if (!answer.shouldEject) { + console.log(chalk.cyan('Close one! Eject aborted.')); + return {abort: true}; + } else { + checkGitStatus(); - // Make shallow array of files paths - const files = assets.reduce((list, dir) => { - return list.concat( - fs - .readdirSync(dir.src) - // set full relative path - .map(file => ({ - src: path.join(dir.src, file), - dest: path.join(dir.dest, file) - })) - // omit dirs from file list - .filter(file => fs.lstatSync(file.src).isFile()) - ); - }, []); - files.forEach(verifyAbsent); - return {files}; - } - }); + // Make shallow array of files paths + const files = assets.reduce((list, dir) => { + return list.concat( + fs + .readdirSync(dir.src) + // set full relative path + .map(file => ({ + src: path.join(dir.src, file), + dest: path.join(dir.dest, file) + })) + // omit dirs from file list + .filter(file => fs.lstatSync(file.src).isFile()) + ); + }, []); + files.forEach(verifyAbsent); + return {files}; + } + }); } function checkGitStatus() { From 06bb4ad0591683348ac5a25611331e165dedc942 Mon Sep 17 00:00:00 2001 From: "taeyoung.hong" <35059065+hong6316@users.noreply.github.com> Date: Mon, 11 Jan 2021 17:06:31 +0900 Subject: [PATCH 5/5] Update package.json 2 --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 7a0479d7..e3a291c4 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,6 @@ "fsevents": "^2.1.3" }, "peerDependencies": { - "react": ">= 16", "typescript": "^3.2.1" }, "peerDependenciesMeta": {