Skip to content

Commit

Permalink
Add changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Nov 15, 2019
1 parent c1162b6 commit 746a850
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/five-paws-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@emotion/native': minor
'@emotion/primitives': minor
---

`@emotion/native` & `@emotion/primitives` packages come with macros now. Both can be used as `@emotion/native/macro` & `@emotion/primitives/macro` respectively.
18 changes: 18 additions & 0 deletions .changeset/smooth-carpets-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'babel-plugin-emotion': major
'@emotion/core': major
'@emotion/css': major
---

Removed `@emotion/css` - it's main purpose was to allow `css` to be a Babel macro, but since babel-plugin-macros allows us to keep imports nowadays this is no longer needed. `@emotion/core/macro` has been added to account for this use case and appropriate changes has been made to `babel-plugin-emotion` to facilitate those changes.

If you have used `@emotion/css` directly (it was always reexported from `@emotion/core`) or you have been using its macro then you should update your code like this:

```diff
-import css from '@emotion/css'
+import { css } from '@emotion/core'

// or
-import css from '@emotion/css/macro'
+import { css } from '@emotion/core/macro'
```

0 comments on commit 746a850

Please sign in to comment.