Skip to content
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
6 changes: 5 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
"emotion-site": "9.3.0"
},
"changesets": [
"long-apes-admire",
"flat-adults-add",
"light-mice-relate",
"rare-books-own"
"rare-books-own",
"rare-toes-grow",
"strange-pumas-suffer"
]
}
7 changes: 7 additions & 0 deletions packages/babel-plugin-emotion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# babel-plugin-emotion

## 11.0.0-next.1

### Patch Changes

- Updated dependencies [[`1eaa3a38`](https://github.com/emotion-js/emotion/commit/1eaa3a389876d4a623ce66735dc6db093cb2a8e6)]:
- @emotion/[email protected]

## 11.0.0-next.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-plugin-emotion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-emotion",
"version": "11.0.0-next.0",
"version": "11.0.0-next.1",
"description": "A recommended babel preprocessing plugin for emotion, The Next Generation of CSS-in-JS.",
"main": "dist/babel-plugin-emotion.cjs.js",
"module": "dist/babel-plugin-emotion.esm.js",
Expand All @@ -16,7 +16,7 @@
"@babel/helper-module-imports": "^7.0.0",
"@emotion/hash": "0.7.3",
"@emotion/memoize": "0.7.3",
"@emotion/serialize": "^0.11.14",
"@emotion/serialize": "^1.0.0-next.0",
"babel-plugin-macros": "^2.0.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"convert-source-map": "^1.5.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @emotion/core

## 11.0.0-next.1

### Patch Changes

- Updated dependencies [[`1eaa3a38`](https://github.com/emotion-js/emotion/commit/1eaa3a389876d4a623ce66735dc6db093cb2a8e6), [`22935470`](https://github.com/emotion-js/emotion/commit/2293547000ce78d044d054d17564f6c2aa670687)]:
- @emotion/[email protected]
- [email protected]
- @emotion/[email protected]
- @emotion/[email protected]

## 11.0.0-next.0

### Major Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emotion/core",
"version": "11.0.0-next.0",
"version": "11.0.0-next.1",
"main": "dist/core.cjs.js",
"module": "dist/core.esm.js",
"browser": {
Expand All @@ -21,21 +21,21 @@
"dependencies": {
"@babel/runtime": "^7.5.5",
"@emotion/cache": "^11.0.0-next.0",
"@emotion/css": "^11.0.0-next.0",
"@emotion/serialize": "^0.11.12",
"@emotion/css": "^11.0.0-next.1",
"@emotion/serialize": "^1.0.0-next.0",
"@emotion/sheet": "0.9.3",
"@emotion/utils": "0.11.2"
},
"peerDependencies": {
"react": ">=16.3.0"
},
"devDependencies": {
"@emotion/styled": "^11.0.0-next.0",
"@emotion/styled": "^11.0.0-next.1",
"@types/react": "^16.8.20",
"dtslint": "^0.3.0",
"emotion": "^11.0.0-next.0",
"emotion-server": "^11.0.0-next.0",
"emotion-theming": "^11.0.0-next.0",
"emotion-theming": "^11.0.0-next.1",
"html-tag-names": "^1.1.2",
"react": "^16.5.2",
"svg-tag-names": "^1.1.1"
Expand Down
7 changes: 7 additions & 0 deletions packages/create-emotion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# create-emotion

## 11.0.0-next.1

### Patch Changes

- Updated dependencies [[`1eaa3a38`](https://github.com/emotion-js/emotion/commit/1eaa3a389876d4a623ce66735dc6db093cb2a8e6)]:
- @emotion/[email protected]

## 11.0.0-next.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/create-emotion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-emotion",
"version": "11.0.0-next.0",
"version": "11.0.0-next.1",
"description": "The Next Generation of CSS-in-JS.",
"main": "dist/create-emotion.cjs.js",
"module": "dist/create-emotion.esm.js",
Expand All @@ -15,7 +15,7 @@
},
"dependencies": {
"@emotion/cache": "^11.0.0-next.0",
"@emotion/serialize": "^0.11.8",
"@emotion/serialize": "^1.0.0-next.0",
"@emotion/sheet": "0.9.3",
"@emotion/utils": "0.11.2"
},
Expand Down
42 changes: 42 additions & 0 deletions packages/css/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
# @emotion/css

## 11.0.0-next.1

### Major Changes

- [`1eaa3a38`](https://github.com/emotion-js/emotion/commit/1eaa3a389876d4a623ce66735dc6db093cb2a8e6) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - TypeScript types have been restructured. These changes:

- Reduce build times when using emotion
- In many cases remove the need for manually specifying generic parameters for your emotion components.

If you encounter build issues after upgrade, try removing any manually specified generic types and let them be inferred. Otherwise refer to the breaking changes list below.

## 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)`

**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

- `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<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 }>`

### Patch Changes

- Updated dependencies [[`1eaa3a38`](https://github.com/emotion-js/emotion/commit/1eaa3a389876d4a623ce66735dc6db093cb2a8e6)]:
- @emotion/[email protected]
- [email protected]

## 11.0.0-next.0

### Major Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emotion/css",
"version": "11.0.0-next.0",
"version": "11.0.0-next.1",
"description": "a function to serialize css and object styless",
"main": "dist/css.cjs.js",
"module": "dist/css.esm.js",
Expand All @@ -11,9 +11,9 @@
"test:typescript": "dtslint types"
},
"dependencies": {
"@emotion/serialize": "^0.11.12",
"@emotion/serialize": "^1.0.0-next.0",
"@emotion/utils": "0.11.2",
"babel-plugin-emotion": "^11.0.0-next.0"
"babel-plugin-emotion": "^11.0.0-next.1"
},
"devDependencies": {
"dtslint": "^0.3.0"
Expand Down
42 changes: 42 additions & 0 deletions packages/emotion-theming/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,47 @@
# emotion-theming

## 11.0.0-next.1

### Major Changes

- [`1eaa3a38`](https://github.com/emotion-js/emotion/commit/1eaa3a389876d4a623ce66735dc6db093cb2a8e6) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - TypeScript types have been restructured. These changes:

- Reduce build times when using emotion
- In many cases remove the need for manually specifying generic parameters for your emotion components.

If you encounter build issues after upgrade, try removing any manually specified generic types and let them be inferred. Otherwise refer to the breaking changes list below.

## 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)`

**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

- `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<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 }>`

### Patch Changes

- Updated dependencies [[`1eaa3a38`](https://github.com/emotion-js/emotion/commit/1eaa3a389876d4a623ce66735dc6db093cb2a8e6), [`22935470`](https://github.com/emotion-js/emotion/commit/2293547000ce78d044d054d17564f6c2aa670687)]:
- @emotion/[email protected]
- @emotion/[email protected]

## 11.0.0-next.0

### Major Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/emotion-theming/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "emotion-theming",
"version": "11.0.0-next.0",
"version": "11.0.0-next.1",
"description": "A CSS-in-JS theming solution, inspired by styled-components",
"main": "dist/emotion-theming.cjs.js",
"module": "dist/emotion-theming.esm.js",
Expand Down Expand Up @@ -32,8 +32,8 @@
},
"homepage": "https://emotion.sh",
"devDependencies": {
"@emotion/core": "^11.0.0-next.0",
"@emotion/styled": "^11.0.0-next.0",
"@emotion/core": "^11.0.0-next.1",
"@emotion/styled": "^11.0.0-next.1",
"@types/react": "^16.8.20",
"dtslint": "^0.3.0",
"react": "^16.5.2"
Expand All @@ -44,7 +44,7 @@
"hoist-non-react-statics": "^3.3.0"
},
"peerDependencies": {
"@emotion/core": "^11.0.0-next.0",
"@emotion/core": "^11.0.0-next.1",
"react": ">=16.3.0"
},
"umd:main": "dist/emotion-theming.umd.min.js",
Expand Down
10 changes: 10 additions & 0 deletions packages/jest-emotion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# jest-emotion

## 11.0.0-next.1

### Patch Changes

- [`e67a5be9`](https://github.com/emotion-js/emotion/commit/e67a5be9bffaa12f9ae0e366983dced4c3716f84) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@Andarist](https://github.com/Andarist)! - Take specificity into account when matching styles

* [`e67a5be9`](https://github.com/emotion-js/emotion/commit/e67a5be9bffaa12f9ae0e366983dced4c3716f84) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@Andarist](https://github.com/Andarist)! - Match rules in declarations with component used as a selector
* Updated dependencies []:
- @emotion/[email protected]

## 11.0.0-next.0

### Major Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/jest-emotion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jest-emotion",
"version": "11.0.0-next.0",
"version": "11.0.0-next.1",
"description": "Jest utilities for emotion",
"main": "dist/jest-emotion.cjs.js",
"types": "types/index.d.ts",
Expand All @@ -21,7 +21,7 @@
"specificity": "^0.4.1"
},
"devDependencies": {
"@emotion/core": "^11.0.0-next.0",
"@emotion/core": "^11.0.0-next.1",
"dtslint": "^0.3.0",
"emotion": "^11.0.0-next.0",
"enzyme-to-json": "^3.2.1",
Expand Down
8 changes: 8 additions & 0 deletions packages/native/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @emotion/native

## 11.0.0-next.1

### Patch Changes

- Updated dependencies [[`1eaa3a38`](https://github.com/emotion-js/emotion/commit/1eaa3a389876d4a623ce66735dc6db093cb2a8e6)]:
- [email protected]
- @emotion/[email protected]

## 11.0.0-next.0

### Major Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emotion/native",
"version": "11.0.0-next.0",
"version": "11.0.0-next.1",
"description": "Style and render React Native components using emotion",
"main": "dist/native.cjs.js",
"module": "dist/native.esm.js",
Expand All @@ -12,12 +12,12 @@
"dist"
],
"devDependencies": {
"emotion-theming": "^11.0.0-next.0",
"emotion-theming": "^11.0.0-next.1",
"react": "^16.5.2",
"react-native": "^0.57.0"
},
"dependencies": {
"@emotion/primitives-core": "11.0.0-next.0"
"@emotion/primitives-core": "11.0.0-next.1"
},
"peerDependencies": {
"react-native": ">=0.14.0 <1"
Expand Down
7 changes: 7 additions & 0 deletions packages/primitives-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @emotion/primitives-core

## 11.0.0-next.1

### Patch Changes

- Updated dependencies []:
- @emotion/[email protected]

## 11.0.0-next.0

### Major Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/primitives-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@emotion/primitives-core",
"version": "11.0.0-next.0",
"version": "11.0.0-next.1",
"description": "Shared utilities for emotion primitives and native",
"main": "dist/primitives-core.cjs.js",
"module": "dist/primitives-core.esm.js",
Expand All @@ -16,11 +16,11 @@
"css-to-react-native": "^2.2.1"
},
"peerDependencies": {
"@emotion/core": "^11.0.0-next.0",
"@emotion/core": "^11.0.0-next.1",
"react": ">=16.3.0"
},
"devDependencies": {
"@emotion/core": "^11.0.0-next.0",
"@emotion/core": "^11.0.0-next.1",
"react": "^16.5.2"
},
"homepage": "https://emotion.sh",
Expand Down
9 changes: 9 additions & 0 deletions packages/primitives/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @emotion/primitives

## 11.0.0-next.1

### Patch Changes

- Updated dependencies [[`1eaa3a38`](https://github.com/emotion-js/emotion/commit/1eaa3a389876d4a623ce66735dc6db093cb2a8e6)]:
- [email protected]
- [email protected]
- @emotion/[email protected]

## 11.0.0-next.0

### Major Changes
Expand Down
Loading