diff --git a/.changeset/long-apes-admire/changes.md b/.changeset/long-apes-admire.md similarity index 85% rename from .changeset/long-apes-admire/changes.md rename to .changeset/long-apes-admire.md index b94aae8c4..174467207 100644 --- a/.changeset/long-apes-admire/changes.md +++ b/.changeset/long-apes-admire.md @@ -1,3 +1,11 @@ +--- +'@emotion/css': major +'emotion-theming': major +'@emotion/serialize': major +'@emotion/styled-base': major +'@emotion/styled': major +--- + TypeScript types have been restructured. These changes: - Reduce build times when using emotion @@ -20,12 +28,12 @@ If you encounter build issues after upgrade, try removing any manually specified - `css` function has been restricted to prevent passing of invalid types - `CreateStyled` functions no longer take a second `ExtraProps` argument. Instead move it to after the create styled call. For example - `styled(MyComponent)({})` - to + `styled(MyComponent)({})` + to `styled(MyComponent)({})` - `StyledComponent` type no longer supports the third generic `Theme` parameter. Instead add the `theme` prop to the first `Props` argument. For example: - `StyledComponent` - to + `StyledComponent` + to `StyledComponent` diff --git a/.changeset/long-apes-admire/changes.json b/.changeset/long-apes-admire/changes.json deleted file mode 100644 index 7e72dcf94..000000000 --- a/.changeset/long-apes-admire/changes.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "releases": [ - { "name": "@emotion/css", "type": "major" }, - { "name": "emotion-theming", "type": "major" }, - { "name": "@emotion/serialize", "type": "major" }, - { "name": "@emotion/styled-base", "type": "major" }, - { "name": "@emotion/styled", "type": "major" } - ], - "dependents": [ - { - "name": "babel-plugin-emotion", - "type": "patch", - "dependencies": ["@emotion/serialize"] - }, - { - "name": "@emotion/react", - "type": "patch", - "dependencies": [ - "@emotion/css", - "emotion-theming", - "@emotion/serialize", - "@emotion/styled" - ] - }, - { - "name": "create-emotion", - "type": "patch", - "dependencies": ["@emotion/serialize"] - } - ] -} diff --git a/.changeset/polite-tips-attend/changes.md b/.changeset/polite-tips-attend.md similarity index 93% rename from .changeset/polite-tips-attend/changes.md rename to .changeset/polite-tips-attend.md index 3fe7d946d..044d73f89 100644 --- a/.changeset/polite-tips-attend/changes.md +++ b/.changeset/polite-tips-attend.md @@ -1,3 +1,7 @@ +--- +'@emotion/styled': minor +--- + Added `CreateStyled` overload to handle when `shouldForwardProp` is a custom type guard for intrinsic props. As an example, if you want to override the type of the `color` prop: diff --git a/.changeset/polite-tips-attend/changes.json b/.changeset/polite-tips-attend/changes.json deleted file mode 100644 index f621ff217..000000000 --- a/.changeset/polite-tips-attend/changes.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "releases": [{ "name": "@emotion/styled", "type": "minor" }], - "dependents": [] -}