Skip to content

Commit 6835850

Browse files
Version Packages (#2872)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 89b6dbb commit 6835850

File tree

11 files changed

+48
-31
lines changed

11 files changed

+48
-31
lines changed

.changeset/blue-pears-explode.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/lemon-emus-applaud.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/jest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"devDependencies": {
5858
"@definitelytyped/dtslint": "0.0.112",
5959
"@emotion/css": "11.10.0",
60-
"@emotion/react": "11.10.0",
60+
"@emotion/react": "11.10.4",
6161
"@types/jest": "^27.0.3",
6262
"enzyme-to-json": "^3.6.1",
6363
"pretty-format": "^22.4.3",

packages/primitives-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react": ">=16.8.0"
1818
},
1919
"devDependencies": {
20-
"@emotion/react": "11.10.0",
20+
"@emotion/react": "11.10.4",
2121
"react": "16.14.0"
2222
},
2323
"homepage": "https://emotion.sh",

packages/react/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @emotion/react
22

3+
## 11.10.4
4+
5+
### Patch Changes
6+
7+
- [#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.
8+
9+
Note that we don't recommend bundling Emotion. You should have very specific reasons to do so.
10+
11+
- Updated dependencies [[`89b6dbb3`](https://github.com/emotion-js/emotion/commit/89b6dbb3c13d49ef1fa3d88888672d810853f05a)]:
12+
- @emotion/use-insertion-effect-with-fallbacks@1.0.0
13+
314
## 11.10.0
415

516
### Minor Changes

packages/react/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emotion/react",
3-
"version": "11.10.0",
3+
"version": "11.10.4",
44
"main": "dist/emotion-react.cjs.js",
55
"module": "dist/emotion-react.esm.js",
66
"browser": {
@@ -66,7 +66,7 @@
6666
"@emotion/babel-plugin": "^11.10.0",
6767
"@emotion/cache": "^11.10.0",
6868
"@emotion/serialize": "^1.1.0",
69-
"@emotion/use-insertion-effect-with-fallbacks": "^0.0.0",
69+
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.0",
7070
"@emotion/utils": "^1.2.0",
7171
"@emotion/weak-memoize": "^0.3.0",
7272
"hoist-non-react-statics": "^3.3.1"
@@ -89,7 +89,7 @@
8989
"@emotion/css": "11.10.0",
9090
"@emotion/css-prettifier": "1.1.0",
9191
"@emotion/server": "11.10.0",
92-
"@emotion/styled": "11.10.0",
92+
"@emotion/styled": "11.10.4",
9393
"html-tag-names": "^1.1.2",
9494
"react": "16.14.0",
9595
"svg-tag-names": "^1.1.1",

packages/styled/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# @emotion/styled
22

3+
## 11.10.4
4+
5+
### Patch Changes
6+
7+
- [#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.
8+
9+
Note that we don't recommend bundling Emotion. You should have very specific reasons to do so.
10+
11+
- Updated dependencies [[`89b6dbb3`](https://github.com/emotion-js/emotion/commit/89b6dbb3c13d49ef1fa3d88888672d810853f05a)]:
12+
- @emotion/use-insertion-effect-with-fallbacks@1.0.0
13+
314
## 11.10.0
415

516
### Minor Changes

packages/styled/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emotion/styled",
3-
"version": "11.10.0",
3+
"version": "11.10.4",
44
"description": "styled API for emotion",
55
"main": "dist/emotion-styled.cjs.js",
66
"module": "dist/emotion-styled.esm.js",
@@ -15,7 +15,7 @@
1515
"@emotion/babel-plugin": "^11.10.0",
1616
"@emotion/is-prop-valid": "^1.2.0",
1717
"@emotion/serialize": "^1.1.0",
18-
"@emotion/use-insertion-effect-with-fallbacks": "^0.0.0",
18+
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.0",
1919
"@emotion/utils": "^1.2.0"
2020
},
2121
"peerDependencies": {
@@ -34,7 +34,7 @@
3434
"devDependencies": {
3535
"@babel/core": "^7.18.5",
3636
"@definitelytyped/dtslint": "0.0.112",
37-
"@emotion/react": "11.10.0",
37+
"@emotion/react": "11.10.4",
3838
"react": "16.14.0",
3939
"typescript": "^4.5.5"
4040
},
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# @emotion/use-insertion-effect-with-fallbacks
2+
3+
## 1.0.0
4+
### Major Changes
5+
6+
7+
8+
- [#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`.

packages/use-insertion-effect-with-fallbacks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@emotion/use-insertion-effect-with-fallbacks",
3-
"version": "0.0.0",
3+
"version": "1.0.0",
44
"description": "A wrapper package that uses `useInsertionEffect` or a fallback for it",
55
"main": "dist/emotion-use-insertion-effect-with-fallbacks.cjs.js",
66
"module": "dist/emotion-use-insertion-effect-with-fallbacks.esm.js",

yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,7 +2471,7 @@ __metadata:
24712471
"@definitelytyped/dtslint": 0.0.112
24722472
"@emotion/css": 11.10.0
24732473
"@emotion/css-prettifier": ^1.1.0
2474-
"@emotion/react": 11.10.0
2474+
"@emotion/react": 11.10.4
24752475
"@types/jest": ^27.0.3
24762476
chalk: ^4.1.0
24772477
enzyme-to-json: ^3.6.1
@@ -2539,7 +2539,7 @@ __metadata:
25392539
version: 0.0.0-use.local
25402540
resolution: "@emotion/primitives-core@workspace:packages/primitives-core"
25412541
dependencies:
2542-
"@emotion/react": 11.10.0
2542+
"@emotion/react": 11.10.4
25432543
css-to-react-native: ^3.0.0
25442544
react: 16.14.0
25452545
peerDependencies:
@@ -2570,7 +2570,7 @@ __metadata:
25702570
languageName: unknown
25712571
linkType: soft
25722572

2573-
"@emotion/react@11.10.0, @emotion/react@^11.4.1, @emotion/react@workspace:packages/react":
2573+
"@emotion/react@11.10.4, @emotion/react@^11.4.1, @emotion/react@workspace:packages/react":
25742574
version: 0.0.0-use.local
25752575
resolution: "@emotion/react@workspace:packages/react"
25762576
dependencies:
@@ -2583,8 +2583,8 @@ __metadata:
25832583
"@emotion/css-prettifier": 1.1.0
25842584
"@emotion/serialize": ^1.1.0
25852585
"@emotion/server": 11.10.0
2586-
"@emotion/styled": 11.10.0
2587-
"@emotion/use-insertion-effect-with-fallbacks": ^0.0.0
2586+
"@emotion/styled": 11.10.4
2587+
"@emotion/use-insertion-effect-with-fallbacks": ^1.0.0
25882588
"@emotion/utils": ^1.2.0
25892589
"@emotion/weak-memoize": ^0.3.0
25902590
hoist-non-react-statics: ^3.3.1
@@ -2648,7 +2648,7 @@ __metadata:
26482648
languageName: unknown
26492649
linkType: soft
26502650

2651-
"@emotion/styled@11.10.0, @emotion/styled@^11.0.0, @emotion/styled@workspace:packages/styled":
2651+
"@emotion/styled@11.10.4, @emotion/styled@^11.0.0, @emotion/styled@workspace:packages/styled":
26522652
version: 0.0.0-use.local
26532653
resolution: "@emotion/styled@workspace:packages/styled"
26542654
dependencies:
@@ -2657,9 +2657,9 @@ __metadata:
26572657
"@definitelytyped/dtslint": 0.0.112
26582658
"@emotion/babel-plugin": ^11.10.0
26592659
"@emotion/is-prop-valid": ^1.2.0
2660-
"@emotion/react": 11.10.0
2660+
"@emotion/react": 11.10.4
26612661
"@emotion/serialize": ^1.1.0
2662-
"@emotion/use-insertion-effect-with-fallbacks": ^0.0.0
2662+
"@emotion/use-insertion-effect-with-fallbacks": ^1.0.0
26632663
"@emotion/utils": ^1.2.0
26642664
react: 16.14.0
26652665
typescript: ^4.5.5
@@ -2681,7 +2681,7 @@ __metadata:
26812681
languageName: unknown
26822682
linkType: soft
26832683

2684-
"@emotion/use-insertion-effect-with-fallbacks@^0.0.0, @emotion/use-insertion-effect-with-fallbacks@workspace:packages/use-insertion-effect-with-fallbacks":
2684+
"@emotion/use-insertion-effect-with-fallbacks@^1.0.0, @emotion/use-insertion-effect-with-fallbacks@workspace:packages/use-insertion-effect-with-fallbacks":
26852685
version: 0.0.0-use.local
26862686
resolution: "@emotion/use-insertion-effect-with-fallbacks@workspace:packages/use-insertion-effect-with-fallbacks"
26872687
dependencies:

0 commit comments

Comments
 (0)