From cde1b74ea467aae710886368ecb3c01bd6eee137 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Wed, 4 Sep 2024 16:40:22 +0300 Subject: [PATCH 1/2] visitor.js: warning should not be given if it's not about CSS Property Set --- packages/react-scripts/postcss/postcss-apply/visitor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-scripts/postcss/postcss-apply/visitor.js b/packages/react-scripts/postcss/postcss-apply/visitor.js index 14f92a5e122..75a47ca70d2 100644 --- a/packages/react-scripts/postcss/postcss-apply/visitor.js +++ b/packages/react-scripts/postcss/postcss-apply/visitor.js @@ -93,9 +93,9 @@ class Visitor { } const setName = matches[2]; - const { parent } = decl; + const { parent, value } = decl; - if (parent.selector !== ':root') { + if (value?.indexOf('{') === 0 && parent.selector !== ':root') { decl.warn( this.result, 'Custom property set ignored: not scoped to top-level `:root` ' + From 20153ae6e8de43a1cb31de07273d200b35d0c12c Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Wed, 25 Sep 2024 17:52:31 +0300 Subject: [PATCH 2/2] Update Loadable Components --- package-lock.json | 40 ++++++++++++++--------------- packages/react-scripts/package.json | 6 ++--- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index a0056ca4c38..70d981e2e5c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5647,9 +5647,9 @@ } }, "node_modules/@loadable/babel-plugin": { - "version": "5.13.2", - "resolved": "https://registry.npmjs.org/@loadable/babel-plugin/-/babel-plugin-5.13.2.tgz", - "integrity": "sha512-vSZUVeTH1S1sDbk8Tzft0plZSkN7W4zmVR5w/Bmy4UmvBiu9lin7ztrDpoUTUzxpoups+OJbTc/OosvN0aMXWg==", + "version": "5.16.1", + "resolved": "https://registry.npmjs.org/@loadable/babel-plugin/-/babel-plugin-5.16.1.tgz", + "integrity": "sha512-y+oKjRTt5XXf907ReFxiZyQtkYiIa4NAPQYlxb2qh5rUO/UsOKPq2PhCSHvfwoZOUJaMsY0FnoAPZ6lhFZkayQ==", "dependencies": { "@babel/plugin-syntax-dynamic-import": "^7.7.4" }, @@ -5665,11 +5665,11 @@ } }, "node_modules/@loadable/component": { - "version": "5.15.2", - "resolved": "https://registry.npmjs.org/@loadable/component/-/component-5.15.2.tgz", - "integrity": "sha512-ryFAZOX5P2vFkUdzaAtTG88IGnr9qxSdvLRvJySXcUA4B4xVWurUNADu3AnKPksxOZajljqTrDEDcYjeL4lvLw==", + "version": "5.16.4", + "resolved": "https://registry.npmjs.org/@loadable/component/-/component-5.16.4.tgz", + "integrity": "sha512-fJWxx9b5WHX90QKmizo9B+es2so8DnBthI1mbflwCoOyvzEwxiZ/SVDCTtXEnHG72/kGBdzr297SSIekYtzSOQ==", "dependencies": { - "@babel/runtime": "^7.7.7", + "@babel/runtime": "^7.12.18", "hoist-non-react-statics": "^3.3.1", "react-is": "^16.12.0" }, @@ -5681,7 +5681,7 @@ "url": "https://github.com/sponsors/gregberge" }, "peerDependencies": { - "react": ">=16.3.0" + "react": "^16.3.0 || ^17.0.0 || ^18.0.0" } }, "node_modules/@loadable/component/node_modules/react-is": { @@ -30419,13 +30419,13 @@ }, "packages/react-scripts": { "name": "sharetribe-scripts", - "version": "6.0.0-RC", + "version": "6.0.2-alpha2", "license": "MIT", "dependencies": { "@babel/core": "^7.16.0", "@babel/plugin-transform-runtime": "7.12.1", - "@loadable/babel-plugin": "^5.13.2", - "@loadable/component": "^5.15.2", + "@loadable/babel-plugin": "^5.16.1", + "@loadable/component": "^5.16.4", "@loadable/webpack-plugin": "^5.15.2", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", "@svgr/webpack": "^5.5.0", @@ -34549,19 +34549,19 @@ } }, "@loadable/babel-plugin": { - "version": "5.13.2", - "resolved": "https://registry.npmjs.org/@loadable/babel-plugin/-/babel-plugin-5.13.2.tgz", - "integrity": "sha512-vSZUVeTH1S1sDbk8Tzft0plZSkN7W4zmVR5w/Bmy4UmvBiu9lin7ztrDpoUTUzxpoups+OJbTc/OosvN0aMXWg==", + "version": "5.16.1", + "resolved": "https://registry.npmjs.org/@loadable/babel-plugin/-/babel-plugin-5.16.1.tgz", + "integrity": "sha512-y+oKjRTt5XXf907ReFxiZyQtkYiIa4NAPQYlxb2qh5rUO/UsOKPq2PhCSHvfwoZOUJaMsY0FnoAPZ6lhFZkayQ==", "requires": { "@babel/plugin-syntax-dynamic-import": "^7.7.4" } }, "@loadable/component": { - "version": "5.15.2", - "resolved": "https://registry.npmjs.org/@loadable/component/-/component-5.15.2.tgz", - "integrity": "sha512-ryFAZOX5P2vFkUdzaAtTG88IGnr9qxSdvLRvJySXcUA4B4xVWurUNADu3AnKPksxOZajljqTrDEDcYjeL4lvLw==", + "version": "5.16.4", + "resolved": "https://registry.npmjs.org/@loadable/component/-/component-5.16.4.tgz", + "integrity": "sha512-fJWxx9b5WHX90QKmizo9B+es2so8DnBthI1mbflwCoOyvzEwxiZ/SVDCTtXEnHG72/kGBdzr297SSIekYtzSOQ==", "requires": { - "@babel/runtime": "^7.7.7", + "@babel/runtime": "^7.12.18", "hoist-non-react-statics": "^3.3.1", "react-is": "^16.12.0" }, @@ -49433,8 +49433,8 @@ "requires": { "@babel/core": "^7.16.0", "@babel/plugin-transform-runtime": "7.12.1", - "@loadable/babel-plugin": "^5.13.2", - "@loadable/component": "^5.15.2", + "@loadable/babel-plugin": "^5.16.1", + "@loadable/component": "^5.16.4", "@loadable/webpack-plugin": "^5.15.2", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", "@svgr/webpack": "^5.5.0", diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index aa266d58488..d7683ded91a 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -1,6 +1,6 @@ { "name": "sharetribe-scripts", - "version": "6.0.1", + "version": "6.0.2", "description": "Fork of facebookincubator/create-react-app@5.0.1 with some additional features. This is a major version update to CRA", "repository": { "type": "git", @@ -31,8 +31,8 @@ "dependencies": { "@babel/core": "^7.16.0", "@babel/plugin-transform-runtime": "7.12.1", - "@loadable/babel-plugin": "^5.13.2", - "@loadable/component": "^5.15.2", + "@loadable/babel-plugin": "^5.16.1", + "@loadable/component": "^5.16.4", "@loadable/webpack-plugin": "^5.15.2", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", "@svgr/webpack": "^5.5.0",