Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial changesets cleanup #2016

Merged
merged 1 commit into from
Sep 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/cyan-apes-join.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dull-carrots-enjoy.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/eleven-apes-cheer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@emotion/jest': minor
---

Improve support for Enzyme's shallow rendering with the addition of the @emotion/jest/enzyme snapshot serializer
Improve support for Enzyme's shallow rendering with the addition of the `@emotion/jest/enzyme-serializer` snapshot serializer.
5 changes: 0 additions & 5 deletions .changeset/few-forks-cheer.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/gentle-colts-think.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-bobcats-turn.md

This file was deleted.

9 changes: 1 addition & 8 deletions .changeset/long-apes-admire.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ If you encounter build issues after upgrade, try removing any manually specified

## Improvements

- useTheme added to EmotionTheming interface and can now create your own closed variation of withTheme. More information in the docs under the theming section.
- Union types as props are better supported and should be inferred properly
- Build times should be reduced significantly in larger projects.

## Breaking changes

- withTheme can now have the Theme type specified when calling it. For example `withTheme<MyTheme>(MyComponent)`
- `withTheme` can now have the Theme type specified when calling it. For example `withTheme<MyTheme>(MyComponent)`

**Breaking change:** Generic argument changed, if you were specifying the ComponentType you will need to remove the generic parameter. Recommend following example setup in the TypeScript docs under theming section

Expand All @@ -28,9 +27,3 @@ If you encounter build issues after upgrade, try removing any manually specified
`styled<typeof MyComponent, ExtraProps>(MyComponent)({})`
to
`styled(MyComponent)<ExtraProps>({})`

- `StyledComponent` type no longer supports the third generic `Theme` parameter. Instead add the `theme` prop to the first `Props` argument. For example:

`StyledComponent<Props, {}, MyTheme>`
to
`StyledComponent<Props & { theme?: MyTheme }>`
5 changes: 0 additions & 5 deletions .changeset/long-geckos-raise.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/lovely-owls-remember.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@emotion/react': minor
---

Support functions in arrays passed to css prop and Global's styles prop. This allows for composition of theme-accepting functions.
Support functions in arrays passed to `css` prop and `Global`'s styles prop. This allows for composition of theme-accepting functions.
5 changes: 0 additions & 5 deletions .changeset/lucky-swans-kneel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/modern-socks-remember.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/neat-ligers-film.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/odd-geese-matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@emotion/sheet': minor
---

Added `rehydrate` method which can be used for SSRed styles. They become a part of a sheet and can be flushed.
Added `hydrate` method which can be used for SSRed styles. They become a part of a sheet and can be flushed.
5 changes: 0 additions & 5 deletions .changeset/odd-insects-cough.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/plenty-horses-sparkle.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/plenty-spoons-sit.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/purple-teachers-clean.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
'jest-emotion': major
---

Rename `jest-emotion` to `@emotion/jest`. Please replace `"snapshotSerializers": ["jest-emotion"]` with `"snapshotSerializers": ["@emotion/jest"]` if you're using the snapshot serializer. Also replace any imports of `jest-emotion` with `@emotion/jest` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`.
Rename `jest-emotion` to `@emotion/jest`. Please replace `"snapshotSerializers": ["jest-emotion"]` with `"snapshotSerializers": ["@emotion/jest/serializer"]` if you're using the snapshot serializer. Also replace any imports of `jest-emotion` with `@emotion/jest` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`.
20 changes: 0 additions & 20 deletions .changeset/rare-books-own.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/red-rockets-joke.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rich-hotels-sing.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shiny-snails-obey.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/small-berries-chew.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sour-lemons-sell.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/sour-poets-move.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@emotion/react': patch
---

Warn if @emotion/react is initialized more than once in the same development environment.
Warn if `@emotion/react` is initialized more than once in the same development environment.
2 changes: 1 addition & 1 deletion .changeset/sour-suns-repeat.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@emotion/cache': major
---

From now on `key` option is required. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.
From now on `key` option is required. Please make sure it's unique (and not equal to `"css"`) as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.
2 changes: 1 addition & 1 deletion .changeset/strange-pumas-suffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@emotion/styled': patch
---

StyledComponent Flow type is now polymorphic, that means you can now define the component prop types to get better type safety.
`StyledComponent` Flow type is now polymorphic, that means you can now define the component prop types to get better type safety.
2 changes: 1 addition & 1 deletion .changeset/stupid-radios-draw.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
'@emotion/babel-preset-css-prop': minor
---

Added the `importMap` option which allows you to tell @emotion/babel-plugin what imports it should look at to determine what it should transform so if you re-export Emotion's exports, you can still use the Babel transforms
Added the `importMap` option which allows you to tell `@emotion/babel-plugin` what imports it should look at to determine what it should transform so if you re-export Emotion's exports, you can still use the Babel transforms
2 changes: 1 addition & 1 deletion .changeset/sweet-hotels-return.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@emotion/css': major
---

From now on `key` option is required when creating a custom instance. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.
From now on `key` option is required when creating a custom instance. Please make sure it's unique (and not equal to `"css"`) as it's used for linking styles to your cache. If multiple caches share the same key they might "fight" for each other's style elements.
5 changes: 0 additions & 5 deletions .changeset/tasty-goats-crash.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/tricky-bears-hope.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@emotion/serialize': major
---

Reworked Interpolation-related types. Correct types should now be provided to all flavours of Emotion.
Reworked `Interpolation`-related types. Correct types should now be provided to all flavours of Emotion.
5 changes: 0 additions & 5 deletions .changeset/tricky-cameras-notice.md

This file was deleted.

2 changes: 1 addition & 1 deletion .changeset/violet-spiders-itch.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@emotion/eslint-plugin': minor
---

Add @emotion/pkg-renaming rule for Emotion 11 migration
Added `@emotion/pkg-renaming` rule for Emotion 11 migration.
5 changes: 0 additions & 5 deletions .changeset/wicked-dolphins-cough.md

This file was deleted.