From 6835850e39a5df4324e1f4ff4874fdce3d5b51d5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Aug 2022 10:58:59 +0200 Subject: [PATCH] Version Packages (#2872) Co-authored-by: github-actions[bot] --- .changeset/blue-pears-explode.md | 8 -------- .changeset/lemon-emus-applaud.md | 5 ----- packages/jest/package.json | 2 +- packages/primitives-core/package.json | 2 +- packages/react/CHANGELOG.md | 11 +++++++++++ packages/react/package.json | 6 +++--- packages/styled/CHANGELOG.md | 11 +++++++++++ packages/styled/package.json | 6 +++--- .../CHANGELOG.md | 8 ++++++++ .../package.json | 2 +- yarn.lock | 18 +++++++++--------- 11 files changed, 48 insertions(+), 31 deletions(-) delete mode 100644 .changeset/blue-pears-explode.md delete mode 100644 .changeset/lemon-emus-applaud.md create mode 100644 packages/use-insertion-effect-with-fallbacks/CHANGELOG.md diff --git a/.changeset/blue-pears-explode.md b/.changeset/blue-pears-explode.md deleted file mode 100644 index cf1d682e0..000000000 --- a/.changeset/blue-pears-explode.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@emotion/react': patch -'@emotion/styled': patch ---- - -Externalized code referencing `React.useInsertionEffect` to a separate `@emotion/use-insertion-effect-with-fallbacks` package. This package should be used in your defined externals if you bundle Emotion for whatever reason. It references `useInsertionEffect` in a very specific way that allows us to use it conditionally. However, if the code consuming Emotion is bundled as a library with Emotion in it then some bundlers might change the way in which we reference `useInsertionEffect` and that might create problems for bundlers used to consume the said library code. By externalizing this new package you can still bundle Emotion if you want to without running into this problem as you won't "destroy" the carefully crafted reference to `useInsertionEffect` in the process. - -Note that we don't recommend bundling Emotion. You should have very specific reasons to do so. diff --git a/.changeset/lemon-emus-applaud.md b/.changeset/lemon-emus-applaud.md deleted file mode 100644 index ed269d937..000000000 --- a/.changeset/lemon-emus-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@emotion/use-insertion-effect-with-fallbacks': major ---- - -A wrapper package that uses `useInsertionEffect` or a specific fallback for it. It comes with two exports: `useInsertionEffectAlwaysWithSyncFallback` and `useInsertionEffectWithLayoutFallback`. diff --git a/packages/jest/package.json b/packages/jest/package.json index 58cabc597..3c5ddad5e 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -57,7 +57,7 @@ "devDependencies": { "@definitelytyped/dtslint": "0.0.112", "@emotion/css": "11.10.0", - "@emotion/react": "11.10.0", + "@emotion/react": "11.10.4", "@types/jest": "^27.0.3", "enzyme-to-json": "^3.6.1", "pretty-format": "^22.4.3", diff --git a/packages/primitives-core/package.json b/packages/primitives-core/package.json index 9a2798ffb..f211330b1 100644 --- a/packages/primitives-core/package.json +++ b/packages/primitives-core/package.json @@ -17,7 +17,7 @@ "react": ">=16.8.0" }, "devDependencies": { - "@emotion/react": "11.10.0", + "@emotion/react": "11.10.4", "react": "16.14.0" }, "homepage": "https://emotion.sh", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 6b6b941d4..f5ae20624 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,16 @@ # @emotion/react +## 11.10.4 + +### Patch Changes + +- [#2867](https://github.com/emotion-js/emotion/pull/2867) [`89b6dbb3`](https://github.com/emotion-js/emotion/commit/89b6dbb3c13d49ef1fa3d88888672d810853f05a) Thanks [@Andarist](https://github.com/Andarist)! - Externalized code referencing `React.useInsertionEffect` to a separate `@emotion/use-insertion-effect-with-fallbacks` package. This package should be used in your defined externals if you bundle Emotion for whatever reason. It references `useInsertionEffect` in a very specific way that allows us to use it conditionally. However, if the code consuming Emotion is bundled as a library with Emotion in it then some bundlers might change the way in which we reference `useInsertionEffect` and that might create problems for bundlers used to consume the said library code. By externalizing this new package you can still bundle Emotion if you want to without running into this problem as you won't "destroy" the carefully crafted reference to `useInsertionEffect` in the process. + + Note that we don't recommend bundling Emotion. You should have very specific reasons to do so. + +- Updated dependencies [[`89b6dbb3`](https://github.com/emotion-js/emotion/commit/89b6dbb3c13d49ef1fa3d88888672d810853f05a)]: + - @emotion/use-insertion-effect-with-fallbacks@1.0.0 + ## 11.10.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index 9dad7231f..ce2be52db 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/react", - "version": "11.10.0", + "version": "11.10.4", "main": "dist/emotion-react.cjs.js", "module": "dist/emotion-react.esm.js", "browser": { @@ -66,7 +66,7 @@ "@emotion/babel-plugin": "^11.10.0", "@emotion/cache": "^11.10.0", "@emotion/serialize": "^1.1.0", - "@emotion/use-insertion-effect-with-fallbacks": "^0.0.0", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", "@emotion/utils": "^1.2.0", "@emotion/weak-memoize": "^0.3.0", "hoist-non-react-statics": "^3.3.1" @@ -89,7 +89,7 @@ "@emotion/css": "11.10.0", "@emotion/css-prettifier": "1.1.0", "@emotion/server": "11.10.0", - "@emotion/styled": "11.10.0", + "@emotion/styled": "11.10.4", "html-tag-names": "^1.1.2", "react": "16.14.0", "svg-tag-names": "^1.1.1", diff --git a/packages/styled/CHANGELOG.md b/packages/styled/CHANGELOG.md index d0907b14a..dd8bcd504 100644 --- a/packages/styled/CHANGELOG.md +++ b/packages/styled/CHANGELOG.md @@ -1,5 +1,16 @@ # @emotion/styled +## 11.10.4 + +### Patch Changes + +- [#2867](https://github.com/emotion-js/emotion/pull/2867) [`89b6dbb3`](https://github.com/emotion-js/emotion/commit/89b6dbb3c13d49ef1fa3d88888672d810853f05a) Thanks [@Andarist](https://github.com/Andarist)! - Externalized code referencing `React.useInsertionEffect` to a separate `@emotion/use-insertion-effect-with-fallbacks` package. This package should be used in your defined externals if you bundle Emotion for whatever reason. It references `useInsertionEffect` in a very specific way that allows us to use it conditionally. However, if the code consuming Emotion is bundled as a library with Emotion in it then some bundlers might change the way in which we reference `useInsertionEffect` and that might create problems for bundlers used to consume the said library code. By externalizing this new package you can still bundle Emotion if you want to without running into this problem as you won't "destroy" the carefully crafted reference to `useInsertionEffect` in the process. + + Note that we don't recommend bundling Emotion. You should have very specific reasons to do so. + +- Updated dependencies [[`89b6dbb3`](https://github.com/emotion-js/emotion/commit/89b6dbb3c13d49ef1fa3d88888672d810853f05a)]: + - @emotion/use-insertion-effect-with-fallbacks@1.0.0 + ## 11.10.0 ### Minor Changes diff --git a/packages/styled/package.json b/packages/styled/package.json index edf3b187c..55b35e6c8 100644 --- a/packages/styled/package.json +++ b/packages/styled/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/styled", - "version": "11.10.0", + "version": "11.10.4", "description": "styled API for emotion", "main": "dist/emotion-styled.cjs.js", "module": "dist/emotion-styled.esm.js", @@ -15,7 +15,7 @@ "@emotion/babel-plugin": "^11.10.0", "@emotion/is-prop-valid": "^1.2.0", "@emotion/serialize": "^1.1.0", - "@emotion/use-insertion-effect-with-fallbacks": "^0.0.0", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", "@emotion/utils": "^1.2.0" }, "peerDependencies": { @@ -34,7 +34,7 @@ "devDependencies": { "@babel/core": "^7.18.5", "@definitelytyped/dtslint": "0.0.112", - "@emotion/react": "11.10.0", + "@emotion/react": "11.10.4", "react": "16.14.0", "typescript": "^4.5.5" }, diff --git a/packages/use-insertion-effect-with-fallbacks/CHANGELOG.md b/packages/use-insertion-effect-with-fallbacks/CHANGELOG.md new file mode 100644 index 000000000..00aa258b3 --- /dev/null +++ b/packages/use-insertion-effect-with-fallbacks/CHANGELOG.md @@ -0,0 +1,8 @@ +# @emotion/use-insertion-effect-with-fallbacks + +## 1.0.0 +### Major Changes + + + +- [#2867](https://github.com/emotion-js/emotion/pull/2867) [`89b6dbb3`](https://github.com/emotion-js/emotion/commit/89b6dbb3c13d49ef1fa3d88888672d810853f05a) Thanks [@Andarist](https://github.com/Andarist)! - A wrapper package that uses `useInsertionEffect` or a specific fallback for it. It comes with two exports: `useInsertionEffectAlwaysWithSyncFallback` and `useInsertionEffectWithLayoutFallback`. diff --git a/packages/use-insertion-effect-with-fallbacks/package.json b/packages/use-insertion-effect-with-fallbacks/package.json index f2b935930..e33bf5001 100644 --- a/packages/use-insertion-effect-with-fallbacks/package.json +++ b/packages/use-insertion-effect-with-fallbacks/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/use-insertion-effect-with-fallbacks", - "version": "0.0.0", + "version": "1.0.0", "description": "A wrapper package that uses `useInsertionEffect` or a fallback for it", "main": "dist/emotion-use-insertion-effect-with-fallbacks.cjs.js", "module": "dist/emotion-use-insertion-effect-with-fallbacks.esm.js", diff --git a/yarn.lock b/yarn.lock index cf157d328..6d41b2aa0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2471,7 +2471,7 @@ __metadata: "@definitelytyped/dtslint": 0.0.112 "@emotion/css": 11.10.0 "@emotion/css-prettifier": ^1.1.0 - "@emotion/react": 11.10.0 + "@emotion/react": 11.10.4 "@types/jest": ^27.0.3 chalk: ^4.1.0 enzyme-to-json: ^3.6.1 @@ -2539,7 +2539,7 @@ __metadata: version: 0.0.0-use.local resolution: "@emotion/primitives-core@workspace:packages/primitives-core" dependencies: - "@emotion/react": 11.10.0 + "@emotion/react": 11.10.4 css-to-react-native: ^3.0.0 react: 16.14.0 peerDependencies: @@ -2570,7 +2570,7 @@ __metadata: languageName: unknown linkType: soft -"@emotion/react@11.10.0, @emotion/react@^11.4.1, @emotion/react@workspace:packages/react": +"@emotion/react@11.10.4, @emotion/react@^11.4.1, @emotion/react@workspace:packages/react": version: 0.0.0-use.local resolution: "@emotion/react@workspace:packages/react" dependencies: @@ -2583,8 +2583,8 @@ __metadata: "@emotion/css-prettifier": 1.1.0 "@emotion/serialize": ^1.1.0 "@emotion/server": 11.10.0 - "@emotion/styled": 11.10.0 - "@emotion/use-insertion-effect-with-fallbacks": ^0.0.0 + "@emotion/styled": 11.10.4 + "@emotion/use-insertion-effect-with-fallbacks": ^1.0.0 "@emotion/utils": ^1.2.0 "@emotion/weak-memoize": ^0.3.0 hoist-non-react-statics: ^3.3.1 @@ -2648,7 +2648,7 @@ __metadata: languageName: unknown linkType: soft -"@emotion/styled@11.10.0, @emotion/styled@^11.0.0, @emotion/styled@workspace:packages/styled": +"@emotion/styled@11.10.4, @emotion/styled@^11.0.0, @emotion/styled@workspace:packages/styled": version: 0.0.0-use.local resolution: "@emotion/styled@workspace:packages/styled" dependencies: @@ -2657,9 +2657,9 @@ __metadata: "@definitelytyped/dtslint": 0.0.112 "@emotion/babel-plugin": ^11.10.0 "@emotion/is-prop-valid": ^1.2.0 - "@emotion/react": 11.10.0 + "@emotion/react": 11.10.4 "@emotion/serialize": ^1.1.0 - "@emotion/use-insertion-effect-with-fallbacks": ^0.0.0 + "@emotion/use-insertion-effect-with-fallbacks": ^1.0.0 "@emotion/utils": ^1.2.0 react: 16.14.0 typescript: ^4.5.5 @@ -2681,7 +2681,7 @@ __metadata: languageName: unknown linkType: soft -"@emotion/use-insertion-effect-with-fallbacks@^0.0.0, @emotion/use-insertion-effect-with-fallbacks@workspace:packages/use-insertion-effect-with-fallbacks": +"@emotion/use-insertion-effect-with-fallbacks@^1.0.0, @emotion/use-insertion-effect-with-fallbacks@workspace:packages/use-insertion-effect-with-fallbacks": version: 0.0.0-use.local resolution: "@emotion/use-insertion-effect-with-fallbacks@workspace:packages/use-insertion-effect-with-fallbacks" dependencies: