Skip to content

Commit

Permalink
Version Packages (#2872)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Aug 30, 2022
1 parent 89b6dbb commit 6835850
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 31 deletions.
8 changes: 0 additions & 8 deletions .changeset/blue-pears-explode.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-emus-applaud.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/jest/package.json
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/primitives-core/package.json
Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions 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
Expand Down
6 changes: 3 additions & 3 deletions 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": {
Expand Down Expand Up @@ -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"
Expand All @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions 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
Expand Down
6 changes: 3 additions & 3 deletions 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",
Expand All @@ -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": {
Expand All @@ -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"
},
Expand Down
8 changes: 8 additions & 0 deletions 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`.
2 changes: 1 addition & 1 deletion 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",
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 6835850

Please sign in to comment.