From e3f18f802ced6ecd49e42993f9d279fe0edfce0f Mon Sep 17 00:00:00 2001 From: hainenber Date: Sun, 11 Aug 2024 18:58:09 +0700 Subject: [PATCH 01/13] build(deps): upgrade @emotion/react to v11.3.0 + corresponding Jest test refactor Signed-off-by: hainenber --- superset-frontend/package-lock.json | 66 +++++++++---------- superset-frontend/package.json | 2 +- .../src/components/Button/Button.test.tsx | 4 +- .../ImportModal/ImportModal.test.tsx | 6 +- .../src/components/Label/Label.test.tsx | 2 +- 5 files changed, 40 insertions(+), 40 deletions(-) diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json index 525f9e3c12ad..3259904792f7 100644 --- a/superset-frontend/package-lock.json +++ b/superset-frontend/package-lock.json @@ -16,7 +16,7 @@ "dependencies": { "@ant-design/icons": "^5.2.6", "@emotion/cache": "^11.4.0", - "@emotion/react": "^11.4.1", + "@emotion/react": "^11.13.0", "@emotion/styled": "^11.3.0", "@fontsource/fira-code": "^5.0.18", "@fontsource/inter": "^5.0.20", @@ -4662,10 +4662,6 @@ "version": "0.9.0", "license": "MIT" }, - "node_modules/@emotion/cache/node_modules/@emotion/weak-memoize": { - "version": "0.4.0", - "license": "MIT" - }, "node_modules/@emotion/css": { "version": "11.13.0", "license": "MIT", @@ -4724,25 +4720,23 @@ "license": "MIT" }, "node_modules/@emotion/react": { - "version": "11.4.1", - "license": "MIT", + "version": "11.13.0", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.13.0.tgz", + "integrity": "sha512-WkL+bw1REC2VNV1goQyfxjx1GYJkcc23CRQkXX+vZNLINyfI7o+uUn/rTGPt/xJ3bJHd5GcljgnxHf4wRw5VWQ==", "dependencies": { - "@babel/runtime": "^7.13.10", - "@emotion/cache": "^11.4.0", - "@emotion/serialize": "^1.0.2", - "@emotion/sheet": "^1.0.2", - "@emotion/utils": "^1.0.0", - "@emotion/weak-memoize": "^0.2.5", + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.12.0", + "@emotion/cache": "^11.13.0", + "@emotion/serialize": "^1.3.0", + "@emotion/use-insertion-effect-with-fallbacks": "^1.1.0", + "@emotion/utils": "^1.4.0", + "@emotion/weak-memoize": "^0.4.0", "hoist-non-react-statics": "^3.3.1" }, "peerDependencies": { - "@babel/core": "^7.0.0", "react": ">=16.8.0" }, "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, "@types/react": { "optional": true } @@ -4811,8 +4805,9 @@ "license": "MIT" }, "node_modules/@emotion/use-insertion-effect-with-fallbacks": { - "version": "1.0.1", - "license": "MIT", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.1.0.tgz", + "integrity": "sha512-+wBOcIV5snwGgI2ya3u99D7/FJquOIniQT1IKyDsBmEgwvpxMNeS65Oib7OnE2d2aY+3BU4OiH+0Wchf8yk3Hw==", "peerDependencies": { "react": ">=16.8.0" } @@ -4822,8 +4817,9 @@ "license": "MIT" }, "node_modules/@emotion/weak-memoize": { - "version": "0.2.5", - "license": "MIT" + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz", + "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==" }, "node_modules/@encodable/color": { "version": "1.1.1", @@ -59436,9 +59432,6 @@ "dependencies": { "@emotion/memoize": { "version": "0.9.0" - }, - "@emotion/weak-memoize": { - "version": "0.4.0" } } }, @@ -59484,14 +59477,17 @@ "version": "0.7.4" }, "@emotion/react": { - "version": "11.4.1", + "version": "11.13.0", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.13.0.tgz", + "integrity": "sha512-WkL+bw1REC2VNV1goQyfxjx1GYJkcc23CRQkXX+vZNLINyfI7o+uUn/rTGPt/xJ3bJHd5GcljgnxHf4wRw5VWQ==", "requires": { - "@babel/runtime": "^7.13.10", - "@emotion/cache": "^11.4.0", - "@emotion/serialize": "^1.0.2", - "@emotion/sheet": "^1.0.2", - "@emotion/utils": "^1.0.0", - "@emotion/weak-memoize": "^0.2.5", + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.12.0", + "@emotion/cache": "^11.13.0", + "@emotion/serialize": "^1.3.0", + "@emotion/use-insertion-effect-with-fallbacks": "^1.1.0", + "@emotion/utils": "^1.4.0", + "@emotion/weak-memoize": "^0.4.0", "hoist-non-react-statics": "^3.3.1" } }, @@ -59541,14 +59537,18 @@ "version": "0.7.5" }, "@emotion/use-insertion-effect-with-fallbacks": { - "version": "1.0.1", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@emotion/use-insertion-effect-with-fallbacks/-/use-insertion-effect-with-fallbacks-1.1.0.tgz", + "integrity": "sha512-+wBOcIV5snwGgI2ya3u99D7/FJquOIniQT1IKyDsBmEgwvpxMNeS65Oib7OnE2d2aY+3BU4OiH+0Wchf8yk3Hw==", "requires": {} }, "@emotion/utils": { "version": "1.4.0" }, "@emotion/weak-memoize": { - "version": "0.2.5" + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.4.0.tgz", + "integrity": "sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==" }, "@encodable/color": { "version": "1.1.1", diff --git a/superset-frontend/package.json b/superset-frontend/package.json index cdeec7d4fe99..79a27c0cfd3b 100644 --- a/superset-frontend/package.json +++ b/superset-frontend/package.json @@ -82,7 +82,7 @@ "dependencies": { "@ant-design/icons": "^5.2.6", "@emotion/cache": "^11.4.0", - "@emotion/react": "^11.4.1", + "@emotion/react": "^11.13.0", "@emotion/styled": "^11.3.0", "@fontsource/fira-code": "^5.0.18", "@fontsource/inter": "^5.0.20", diff --git a/superset-frontend/src/components/Button/Button.test.tsx b/superset-frontend/src/components/Button/Button.test.tsx index f65267f9f1d4..04ffe61c4c29 100644 --- a/superset-frontend/src/components/Button/Button.test.tsx +++ b/superset-frontend/src/components/Button/Button.test.tsx @@ -38,14 +38,14 @@ describe('Button', () => { it('works with an onClick handler', () => { const mockAction = jest.fn(); wrapper = mount(