diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b5bafd7d8..453ccbcff 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,6 +6,9 @@ on: - main pull_request: +permissions: + contents: read # to fetch code (actions/checkout) + jobs: test: name: 'Tests on ${{matrix.platform}}' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b4b829fc0..7dfc08baf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,8 +8,14 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} +permissions: {} jobs: release: + permissions: + contents: write # to create release + issues: write # to post issue comments + pull-requests: write # to create pull request + name: Release runs-on: ubuntu-latest steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b4fa5865..ddd10af0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,7 +51,7 @@ Emotion 10 is a big change that we're really excited about with improvements to - Billy Vong ([billyvg](https://github.com/billyvg)) - Kent C. Dodds ([kentcdodds](https://github.com/kentcdodds)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Nitin Tulswani ([nitin42](https://github.com/nitin42)) ## v9.2.6 (2018-07-15) @@ -70,7 +70,7 @@ Emotion 10 is a big change that we're really excited about with improvements to - Iacopo ([pasix](https://github.com/pasix)) - Melvin Groenhoff ([mgroenhoff](https://github.com/mgroenhoff)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v9.2.5 (2018-07-07) @@ -92,12 +92,12 @@ Emotion 10 is a big change that we're really excited about with improvements to - [#748](https://github.com/emotion-js/emotion/pull/748) update link to site in examples section. ([@bpote](https://github.com/bpote)) - [#636](https://github.com/emotion-js/emotion/pull/636) Add eslint-plugin-emotion to docs. ([@alex-pex](https://github.com/alex-pex)) - `babel-plugin-emotion`, `emotion-theming`, `emotion`, `jest-emotion`, `site` - - [#720](https://github.com/emotion-js/emotion/pull/720) Use emotion-next in the site, update to gatsby v2 and add Community page. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#720](https://github.com/emotion-js/emotion/pull/720) Use emotion-next in the site, update to gatsby v2 and add Community page. ([@emmatown](https://github.com/emmatown)) #### :house: Internal - `babel-plugin-emotion`, `create-emotion-server`, `create-emotion-styled`, `create-emotion`, `emotion-server`, `emotion-theming`, `emotion`, `eslint-plugin-emotion`, `jest-emotion`, `preact-emotion`, `react-emotion` - - [#747](https://github.com/emotion-js/emotion/pull/747) Change build system and update Jest. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#747](https://github.com/emotion-js/emotion/pull/747) Change build system and update Jest. ([@emmatown](https://github.com/emmatown)) #### Committers: 7 @@ -106,7 +106,7 @@ Emotion 10 is a big change that we're really excited about with improvements to - Brisha Pote ([bpote](https://github.com/bpote)) - Junyoung Clare Jang ([Ailrun](https://github.com/Ailrun)) - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Nitin Tulswani ([nitin42](https://github.com/nitin42)) ## v9.2.4 (2018-06-22) @@ -114,7 +114,7 @@ Emotion 10 is a big change that we're really excited about with improvements to #### :rocket: Enhancement - `babel-plugin-emotion`, `create-emotion` - - [#741](https://github.com/emotion-js/emotion/pull/741) Improve labels and upgrade @emotion/stylis. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#741](https://github.com/emotion-js/emotion/pull/741) Improve labels and upgrade @emotion/stylis. ([@emmatown](https://github.com/emmatown)) - `jest-emotion` - [#723](https://github.com/emotion-js/emotion/pull/723) Add typings for jest-emotion. ([@Ailrun](https://github.com/Ailrun)) @@ -139,7 +139,7 @@ Emotion 10 is a big change that we're really excited about with improvements to - Junyoung Clare Jang ([Ailrun](https://github.com/Ailrun)) - Konrad Kruk ([konradk](https://github.com/konradk)) - Mateusz Burzyński ([Andarist](https://github.com/Andarist)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v9.2.3 (2018-06-09) @@ -157,11 +157,11 @@ Emotion 10 is a big change that we're really excited about with improvements to #### :bug: Bug Fix - `create-emotion-styled`, `create-emotion`, `emotion-theming`, `emotion`, `preact-emotion`, `react-emotion` - - [#704](https://github.com/emotion-js/emotion/pull/704) Update rollup to fix bundle size regression. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#704](https://github.com/emotion-js/emotion/pull/704) Update rollup to fix bundle size regression. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v9.2.0 (2018-06-07) @@ -189,9 +189,9 @@ Emotion 10 is a big change that we're really excited about with improvements to #### :bug: Bug Fix - `babel-plugin-emotion`, `create-emotion`, `emotion-server`, `emotion` - - [#650](https://github.com/emotion-js/emotion/pull/650) Remove comments from styles in babel-plugin-emotion. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#650](https://github.com/emotion-js/emotion/pull/650) Remove comments from styles in babel-plugin-emotion. ([@emmatown](https://github.com/emmatown)) - `jest-emotion` - - [#641](https://github.com/emotion-js/emotion/pull/641) Fix jest-emotion in certain cases with nested selectors. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#641](https://github.com/emotion-js/emotion/pull/641) Fix jest-emotion in certain cases with nested selectors. ([@emmatown](https://github.com/emmatown)) #### :memo: Documentation @@ -217,7 +217,7 @@ Emotion 10 is a big change that we're really excited about with improvements to - `babel-plugin-emotion`, `site` - [#674](https://github.com/emotion-js/emotion/pull/674) Update yarn.lock. ([@Ailrun](https://github.com/Ailrun)) - `create-emotion`, `emotion` - - [#643](https://github.com/emotion-js/emotion/pull/643) Deprecate passing functions to css and cx. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#643](https://github.com/emotion-js/emotion/pull/643) Deprecate passing functions to css and cx. ([@emmatown](https://github.com/emmatown)) - `react-emotion` - [#635](https://github.com/emotion-js/emotion/pull/635) Add StyledComponent to allowed Interpolation types. ([@mvestergaard](https://github.com/mvestergaard)) @@ -232,7 +232,7 @@ Emotion 10 is a big change that we're really excited about with improvements to - Mateusz Burzyński ([Andarist](https://github.com/Andarist)) - Mathias Vestergaard ([mvestergaard](https://github.com/mvestergaard)) - Melvin Groenhoff ([mgroenhoff](https://github.com/mgroenhoff)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Scott Martin Hutcheson ([smhutch](https://github.com/smhutch)) - osdevisnot ([osdevisnot](https://github.com/osdevisnot)) @@ -241,13 +241,13 @@ Emotion 10 is a big change that we're really excited about with improvements to #### :rocket: Enhancement - `create-emotion`, `emotion` - - [#634](https://github.com/emotion-js/emotion/pull/634) Support array fallback syntax in objects. ([@mitchellhamilton](https://github.com/mitchellhamilton)) - - [#633](https://github.com/emotion-js/emotion/pull/633) Add warning for invalid content values in objects. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#634](https://github.com/emotion-js/emotion/pull/634) Support array fallback syntax in objects. ([@emmatown](https://github.com/emmatown)) + - [#633](https://github.com/emotion-js/emotion/pull/633) Add warning for invalid content values in objects. ([@emmatown](https://github.com/emmatown)) #### Committers: 2 - Andrew Hutchings ([ahutchings](https://github.com/ahutchings)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v9.1.2 (2018-04-17) @@ -263,7 +263,7 @@ Emotion 10 is a big change that we're really excited about with improvements to #### :house: Internal - `babel-plugin-emotion`, `create-emotion-server`, `create-emotion-styled`, `create-emotion`, `emotion-utils`, `emotion`, `site` - - [#628](https://github.com/emotion-js/emotion/pull/628) Remove emotion-utils and use packages from emotion-js/next. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#628](https://github.com/emotion-js/emotion/pull/628) Remove emotion-utils and use packages from emotion-js/next. ([@emmatown](https://github.com/emmatown)) - `create-emotion`, `emotion` - [#624](https://github.com/emotion-js/emotion/pull/624) Closes [#623](https://github.com/emotion-js/emotion/issues/623) (remove redundant HTML attribute). ([@karol-majewski](https://github.com/karol-majewski)) - `create-emotion-styled`, `emotion-utils` @@ -276,7 +276,7 @@ Emotion 10 is a big change that we're really excited about with improvements to - Karol Majewski ([karol-majewski](https://github.com/karol-majewski)) - Kye Hohenberger ([tkh44](https://github.com/tkh44)) - Mateusz Burzyński ([Andarist](https://github.com/Andarist)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Rob Szewczyk ([rszewczyk](https://github.com/rszewczyk)) - Thomas Ingram ([ravinggenius](https://github.com/ravinggenius)) @@ -285,16 +285,16 @@ Emotion 10 is a big change that we're really excited about with improvements to #### :rocket: Enhancement - `create-emotion`, `emotion-server`, `emotion`, `react-emotion` - - [#609](https://github.com/emotion-js/emotion/pull/609) Allow labels to be composed. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#609](https://github.com/emotion-js/emotion/pull/609) Allow labels to be composed. ([@emmatown](https://github.com/emmatown)) #### :house: Internal - `create-emotion-styled` - - [#612](https://github.com/emotion-js/emotion/pull/612) Use @emotion/is-prop-valid for checking valid props on string tags. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#612](https://github.com/emotion-js/emotion/pull/612) Use @emotion/is-prop-valid for checking valid props on string tags. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamiltosn)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v9.1.0 (2018-03-24) @@ -306,13 +306,13 @@ Emotion 10 is a big change that we're really excited about with improvements to #### :bug: Bug Fix - `create-emotion` - - [#605](https://github.com/emotion-js/emotion/pull/605) Fix SSR with multiple createEmotion calls with the same context. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#605](https://github.com/emotion-js/emotion/pull/605) Fix SSR with multiple createEmotion calls with the same context. ([@emmatown](https://github.com/emmatown)) - `emotion` - [#596](https://github.com/emotion-js/emotion/pull/596) Remove fontface type. ([@renanrboliveira](https://github.com/renanrboliveira)) - `react-emotion` - [#590](https://github.com/emotion-js/emotion/pull/590) Fixed TSLint errors. ([@alex-pex](https://github.com/alex-pex)) - `create-emotion-styled`, `react-emotion` - - [#589](https://github.com/emotion-js/emotion/pull/589) Carry styles from flattened components with withComponent. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#589](https://github.com/emotion-js/emotion/pull/589) Carry styles from flattened components with withComponent. ([@emmatown](https://github.com/emmatown)) - `babel-plugin-emotion` - [#584](https://github.com/emotion-js/emotion/pull/584) Preserve existing options passed to styled calls. ([@Andarist](https://github.com/Andarist)) @@ -321,7 +321,7 @@ Emotion 10 is a big change that we're really excited about with improvements to - Alexandre PAIXAO ([alex-pex](https://github.com/alex-pex)) - Felix Jung ([felixjung](https://github.com/felixjung)) - Mateusz Burzyński ([Andarist](https://github.com/Andarist)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Rajan Singh ([woahitsraj](https://github.com/woahitsraj)) - Renan R. Oliveira ([renanrboliveira](https://github.com/renanrboliveira)) - Utopia፲ ([utopiaio](https://github.com/utopiaio)) @@ -356,7 +356,7 @@ Emotion 10 is a big change that we're really excited about with improvements to #### :bug: Bug Fix - `create-emotion-styled`, `create-emotion`, `emotion` - - [#568](https://github.com/emotion-js/emotion/pull/568) Change component selector error throwing. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#568](https://github.com/emotion-js/emotion/pull/568) Change component selector error throwing. ([@emmatown](https://github.com/emmatown)) - `emotion-utils` - [#567](https://github.com/emotion-js/emotion/pull/567) Line clamp property needs webkit vendor prefix. ([@jschr](https://github.com/jschr)) @@ -365,7 +365,7 @@ Emotion 10 is a big change that we're really excited about with improvements to - Alex LaFroscia ([alexlafroscia](https://github.com/alexlafroscia)) - Chris Bolin ([chrisbolin](https://github.com/chrisbolin)) - Jordan Schroter ([jschr](https://github.com/jschr)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Sergey Galchenko ([sgal](https://github.com/sgal)) ## v9.0.0 (2018-02-04) @@ -375,9 +375,9 @@ Emotion 9 introduces [instances](https://emotion.sh/docs/create-emotion), jest-e #### :rocket: Enhancement - `jest-emotion` - - [#495](https://github.com/emotion-js/emotion/pull/495) Add jest-emotion ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#495](https://github.com/emotion-js/emotion/pull/495) Add jest-emotion ([@emmatown](https://github.com/emmatown)) - `emotion-server` - - [#448](https://github.com/emotion-js/emotion/pull/448) Add SSR streaming API and stuff ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#448](https://github.com/emotion-js/emotion/pull/448) Add SSR streaming API and stuff ([@emmatown](https://github.com/emmatown)) #### Migrating from Emotion 8 @@ -443,7 +443,7 @@ npm install --save jest-emotion #### :boom: Breaking Change - `babel-plugin-emotion`, `create-emotion-server`, `create-emotion-styled`, `create-emotion`, `emotion-server`, `emotion-theming`, `emotion-utils`, `emotion`, `jest-emotion`, `preact-emotion`, `react-emotion`, `site` - - [#464](https://github.com/emotion-js/emotion/pull/464) Add Instances. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#464](https://github.com/emotion-js/emotion/pull/464) Add Instances. ([@emmatown](https://github.com/emmatown)) #### :rocket: Enhancement @@ -457,7 +457,7 @@ npm install --save jest-emotion - `emotion-theming` - [#497](https://github.com/emotion-js/emotion/pull/497) Fixed nested themes not being republished on outer theme changes. ([@Andarist](https://github.com/Andarist)) - `jest-emotion` - - [#504](https://github.com/emotion-js/emotion/pull/504) Change class name prefix in jest-emotion. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#504](https://github.com/emotion-js/emotion/pull/504) Change class name prefix in jest-emotion. ([@emmatown](https://github.com/emmatown)) #### :house: Internal @@ -468,14 +468,14 @@ npm install --save jest-emotion - `create-emotion` - [#550](https://github.com/emotion-js/emotion/pull/550) Check for `document` instead of `window`. ([@alexlafroscia](https://github.com/alexlafroscia)) - `emotion-utils` - - [#544](https://github.com/emotion-js/emotion/pull/544) Change hash implementation. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#544](https://github.com/emotion-js/emotion/pull/544) Change hash implementation. ([@emmatown](https://github.com/emmatown)) #### Committers: 12 - Evan Scott ([probablyup](https://github.com/probablyup)) - Mark Holmes ([smlmrkhlms](https://github.com/smlmrkhlms)) - Mateusz Burzyński ([Andarist](https://github.com/Andarist)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Yegor Borisenco ([pimmey](https://github.com/pimmey)) - Dara Hak ([darahak](https://github.com/darahak)) - Divyanshu Maithani ([divyanshu013](https://github.com/divyanshu013)) @@ -492,32 +492,32 @@ npm install --save jest-emotion #### :bug: Bug Fix - `create-emotion-styled`, `emotion`, `site` - - [#540](https://github.com/emotion-js/emotion/pull/540) Fix create-emotion-styled proxy with react-hot-loader and add appearance: none to search input. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#540](https://github.com/emotion-js/emotion/pull/540) Fix create-emotion-styled proxy with react-hot-loader and add appearance: none to search input. ([@emmatown](https://github.com/emmatown)) #### :house: Internal - `create-emotion` - [#550](https://github.com/emotion-js/emotion/pull/550) Check for `document` instead of `window`. ([@alexlafroscia](https://github.com/alexlafroscia)) - `emotion-utils` - - [#544](https://github.com/emotion-js/emotion/pull/544) Change hash implementation. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#544](https://github.com/emotion-js/emotion/pull/544) Change hash implementation. ([@emmatown](https://github.com/emmatown)) #### Committers: 3 - Alex LaFroscia ([alexlafroscia](https://github.com/alexlafroscia)) - Devin Otway ([TroutZen](https://github.com/TroutZen)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v9.0.0-2 (2018-01-17) #### :rocket: Enhancement - `create-emotion-styled`, `create-emotion`, `emotion-utils`, `emotion`, `react-emotion` - - [#516](https://github.com/emotion-js/emotion/pull/516) Throw a nice error when using the styled shorthand without babel-plugin-emotion and remove duplication in component selector code. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#516](https://github.com/emotion-js/emotion/pull/516) Throw a nice error when using the styled shorthand without babel-plugin-emotion and remove duplication in component selector code. ([@emmatown](https://github.com/emmatown)) #### :bug: Bug Fix - `create-emotion`, `emotion` - - [#532](https://github.com/emotion-js/emotion/pull/532) Fix extra whitespace in cx. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#532](https://github.com/emotion-js/emotion/pull/532) Fix extra whitespace in cx. ([@emmatown](https://github.com/emmatown)) #### :memo: Documentation @@ -527,14 +527,14 @@ npm install --save jest-emotion - [#509](https://github.com/emotion-js/emotion/pull/509) fix Readme markdown list syntax. ([@ryota-murakami](https://github.com/ryota-murakami)) - [#505](https://github.com/emotion-js/emotion/pull/505) Fixed jest-glamor-react -> jest-emotion upgrade description. ([@Andarist](https://github.com/Andarist)) - `site` - - [#530](https://github.com/emotion-js/emotion/pull/530) Add search to docs. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#530](https://github.com/emotion-js/emotion/pull/530) Add search to docs. ([@emmatown](https://github.com/emmatown)) - `babel-plugin-emotion` - [#514](https://github.com/emotion-js/emotion/pull/514) Better example for hoist option. ([@Andarist](https://github.com/Andarist)) #### :house: Internal - `create-emotion-styled`, `create-emotion`, `emotion-server`, `emotion`, `site` - - [#534](https://github.com/emotion-js/emotion/pull/534) Update prettier and add .prettierrc.yaml. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#534](https://github.com/emotion-js/emotion/pull/534) Update prettier and add .prettierrc.yaml. ([@emmatown](https://github.com/emmatown)) - `babel-plugin-emotion`, `benchmarks`, `emotion` - [#525](https://github.com/emotion-js/emotion/pull/525) chore: upgrade to babel-plugin-macros. ([@Haroenv](https://github.com/Haroenv)) - Other @@ -547,7 +547,7 @@ npm install --save jest-emotion - Divyanshu Maithani ([divyanshu013](https://github.com/divyanshu013)) - Haroen Viaene ([Haroenv](https://github.com/Haroenv)) - Mateusz Burzyński ([Andarist](https://github.com/Andarist)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Mouad Debbar ([mdebbar](https://github.com/mdebbar)) - Oliver Turner ([oliverturner](https://github.com/oliverturner)) - [ARChilton](https://github.com/ARChilton) @@ -558,18 +558,18 @@ npm install --save jest-emotion #### :bug: Bug Fix - `babel-plugin-emotion`, `create-emotion`, `emotion-theming`, `emotion`, `jest-emotion`, `react-emotion` - - [#504](https://github.com/emotion-js/emotion/pull/504) Change class name prefix in jest-emotion. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#504](https://github.com/emotion-js/emotion/pull/504) Change class name prefix in jest-emotion. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v9.0.0-0 (2017-12-23) #### :boom: Breaking Change - `babel-plugin-emotion`, `create-emotion-server`, `create-emotion-styled`, `create-emotion`, `emotion-server`, `emotion-theming`, `emotion-utils`, `emotion`, `jest-emotion`, `preact-emotion`, `react-emotion`, `site` - - [#464](https://github.com/emotion-js/emotion/pull/464) Add Instances. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#464](https://github.com/emotion-js/emotion/pull/464) Add Instances. ([@emmatown](https://github.com/emmatown)) #### :rocket: Enhancement @@ -595,7 +595,7 @@ npm install --save jest-emotion - Evan Scott ([probablyup](https://github.com/probablyup)) - Mark Holmes ([smlmrkhlms](https://github.com/smlmrkhlms)) - Mateusz Burzyński ([Andarist](https://github.com/Andarist)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Yegor Borisenco ([pimmey](https://github.com/pimmey)) ## v8.0.12 (2017-12-01) @@ -608,7 +608,7 @@ npm install --save jest-emotion #### :bug: Bug Fix - `babel-plugin-emotion` - - [#483](https://github.com/emotion-js/emotion/pull/483) Fix css prop in babel 7 with module transformer and fix source maps in latest babel 7 beta. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#483](https://github.com/emotion-js/emotion/pull/483) Fix css prop in babel 7 with module transformer and fix source maps in latest babel 7 beta. ([@emmatown](https://github.com/emmatown)) - `emotion` - [#480](https://github.com/emotion-js/emotion/pull/480) Do not add px to css custom-properties. ([@TrySound](https://github.com/TrySound)) @@ -616,7 +616,7 @@ npm install --save jest-emotion - Bogdan Chadkin ([TrySound](https://github.com/TrySound)) - Evan Scott ([probablyup](https://github.com/probablyup)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.11 (2017-11-24) @@ -625,19 +625,19 @@ npm install --save jest-emotion - `babel-plugin-emotion`, `emotion`, `react-emotion` - [#465](https://github.com/emotion-js/emotion/pull/465) Add SVG attributes. ([@sleepycat](https://github.com/sleepycat)) - `babel-plugin-emotion`, `emotion` - - [#458](https://github.com/emotion-js/emotion/pull/458) Fix source maps without a semicolon or newline after the last declaration. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#458](https://github.com/emotion-js/emotion/pull/458) Fix source maps without a semicolon or newline after the last declaration. ([@emmatown](https://github.com/emmatown)) #### :house: Internal - `emotion-theming` - - [#459](https://github.com/emotion-js/emotion/pull/459) Create rollup builds with Babel 7. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#459](https://github.com/emotion-js/emotion/pull/459) Create rollup builds with Babel 7. ([@emmatown](https://github.com/emmatown)) - `emotion-theming`, `emotion-utils`, `emotion`, `preact-emotion`, `react-emotion` - - [#457](https://github.com/emotion-js/emotion/pull/457) Update rollup. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#457](https://github.com/emotion-js/emotion/pull/457) Update rollup. ([@emmatown](https://github.com/emmatown)) #### Committers: 2 - Mike Williamson ([sleepycat](https://github.com/sleepycat)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.10 (2017-11-07) @@ -651,7 +651,7 @@ npm install --save jest-emotion #### :bug: Bug Fix - `babel-plugin-emotion`, `benchmarks`, `emotion-server`, `emotion-theming`, `emotion-utils`, `emotion`, `preact-emotion`, `react-emotion`, `site` - - [#440](https://github.com/emotion-js/emotion/pull/440) Babel 7 compatibility and change tests. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#440](https://github.com/emotion-js/emotion/pull/440) Babel 7 compatibility and change tests. ([@emmatown](https://github.com/emmatown)) #### :memo: Documentation @@ -685,7 +685,7 @@ npm install --save jest-emotion - Kye Hohenberger ([tkh44](https://github.com/tkh44)) - Kyle Shevlin ([kyleshevlin](https://github.com/kyleshevlin)) - Kyle Warren ([malectro](https://github.com/malectro)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - ZΛNDΞR ([mrmartineau](https://github.com/mrmartineau)) ## v8.0.9 (2017-10-23) @@ -702,7 +702,7 @@ npm install --save jest-emotion #### :bug: Bug Fix - `babel-plugin-emotion`, `emotion` - - [#428](https://github.com/emotion-js/emotion/pull/428) Fix editing styles in devtools with source maps. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#428](https://github.com/emotion-js/emotion/pull/428) Fix editing styles in devtools with source maps. ([@emmatown](https://github.com/emmatown)) #### :memo: Documentation @@ -728,7 +728,7 @@ npm install --save jest-emotion - Eric Kennedy ([ekeric13](https://github.com/ekeric13)) - Gregg Brewster ([greggb](https://github.com/greggb)) - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Ruslan Vasiliev ([ervasive](https://github.com/ervasive)) ## v8.0.8 (2017-10-16) @@ -768,7 +768,7 @@ npm install --save jest-emotion - Gregg Brewster ([greggb](https://github.com/greggb)) - Justin Hall ([wKovacs64](https://github.com/wKovacs64)) - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Renato Ribeiro ([renatorib](https://github.com/renatorib)) ## v8.0.6 (2017-10-14) @@ -781,7 +781,7 @@ npm install --save jest-emotion #### :house: Internal - `babel-plugin-emotion`, `emotion`, `react-emotion`, `stylis-plugin-emotion` - - [#406](https://github.com/emotion-js/emotion/pull/406) Remove stylis-plugin-emotion and use stylis-rule-sheet. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#406](https://github.com/emotion-js/emotion/pull/406) Remove stylis-plugin-emotion and use stylis-rule-sheet. ([@emmatown](https://github.com/emmatown)) - `emotion` - [#392](https://github.com/emotion-js/emotion/pull/392) Remove flatten. ([@tkh44](https://github.com/tkh44)) @@ -790,7 +790,7 @@ npm install --save jest-emotion - Cameron Martin ([cameron-martin](https://github.com/cameron-martin)) - Hosmel Quintana ([hosmelq](https://github.com/hosmelq)) - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.5 (2017-10-07) @@ -813,11 +813,11 @@ npm install --save jest-emotion #### :house: Internal - `emotion`, `react-emotion` - - [#387](https://github.com/emotion-js/emotion/pull/387) Insert nested selectors differently. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#387](https://github.com/emotion-js/emotion/pull/387) Insert nested selectors differently. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.3 (2017-10-06) @@ -849,33 +849,33 @@ npm install --save jest-emotion #### :bug: Bug Fix - `react-emotion` - - [#364](https://github.com/emotion-js/emotion/pull/364) Make the theme prop always exist. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#364](https://github.com/emotion-js/emotion/pull/364) Make the theme prop always exist. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-13 (2017-10-01) #### :bug: Bug Fix - `react-emotion` - - [#364](https://github.com/emotion-js/emotion/pull/364) Make the theme prop always exist. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#364](https://github.com/emotion-js/emotion/pull/364) Make the theme prop always exist. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-12 (2017-10-01) #### :rocket: Enhancement - `emotion`, `react-emotion` - - [#363](https://github.com/emotion-js/emotion/pull/363) Recursively call functions in styled with props. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#363](https://github.com/emotion-js/emotion/pull/363) Recursively call functions in styled with props. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-11 (2017-09-30) @@ -892,12 +892,12 @@ npm install --save jest-emotion #### :house: Internal - `emotion`, `react-emotion` - - [#359](https://github.com/emotion-js/emotion/pull/359) Hoist some functions in react-emotion. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#359](https://github.com/emotion-js/emotion/pull/359) Hoist some functions in react-emotion. ([@emmatown](https://github.com/emmatown)) #### Committers: 2 - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-10 (2017-09-29) @@ -927,7 +927,7 @@ npm install --save jest-emotion #### :rocket: Enhancement - `emotion` - - [#347](https://github.com/emotion-js/emotion/pull/347) Allow external stylis plugins. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#347](https://github.com/emotion-js/emotion/pull/347) Allow external stylis plugins. ([@emmatown](https://github.com/emmatown)) #### :memo: Documentation @@ -936,7 +936,7 @@ npm install --save jest-emotion #### Committers: 2 - Apostolos Tsakpinis ([apostolos](https://github.com/apostolos)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-7 (2017-09-25) @@ -967,22 +967,22 @@ npm install --save jest-emotion - `react-emotion`, `site` - [#232](https://github.com/emotion-js/emotion/pull/232) Allow Styled tags to be updated via withComponent. ([@ifyoumakeit](https://github.com/ifyoumakeit)) - `emotion` - - [#335](https://github.com/emotion-js/emotion/pull/335) Add a WeakMap cache to createStringFromObject. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#335](https://github.com/emotion-js/emotion/pull/335) Add a WeakMap cache to createStringFromObject. ([@emmatown](https://github.com/emmatown)) - `babel-plugin-emotion`, `emotion`, `site` - [#332](https://github.com/emotion-js/emotion/pull/332) Add support for object arguments in css prop with source maps. ([@tkh44](https://github.com/tkh44)) #### :house: Internal - `emotion` - - [#339](https://github.com/emotion-js/emotion/pull/339) Don't abstract WeakMap cache. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#339](https://github.com/emotion-js/emotion/pull/339) Don't abstract WeakMap cache. ([@emmatown](https://github.com/emmatown)) - Other - - [#333](https://github.com/emotion-js/emotion/pull/333) Run benchmarks and tests in parallel and cache packages node_modules. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#333](https://github.com/emotion-js/emotion/pull/333) Run benchmarks and tests in parallel and cache packages node_modules. ([@emmatown](https://github.com/emmatown)) #### Committers: 3 - Dave Garwacke ([ifyoumakeit](https://github.com/ifyoumakeit)) - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-5 (2017-09-24) @@ -994,44 +994,44 @@ npm install --save jest-emotion #### :bug: Bug Fix - `emotion` - - [#326](https://github.com/emotion-js/emotion/pull/326) At rule fixes. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#326](https://github.com/emotion-js/emotion/pull/326) At rule fixes. ([@emmatown](https://github.com/emmatown)) #### :house: Internal - `benchmarks` - - [#328](https://github.com/emotion-js/emotion/pull/328) Benchmarks on Travis. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#328](https://github.com/emotion-js/emotion/pull/328) Benchmarks on Travis. ([@emmatown](https://github.com/emmatown)) #### Committers: 2 - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-4 (2017-09-22) #### :bug: Bug Fix - `emotion` - - [#324](https://github.com/emotion-js/emotion/pull/324) Fix multiple nested selectors in media queries. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#324](https://github.com/emotion-js/emotion/pull/324) Fix multiple nested selectors in media queries. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-3 (2017-09-22) #### :boom: Breaking Change - `babel-plugin-emotion`, `emotion-server`, `emotion-utils`, `emotion`, `preact-emotion`, `react-emotion` - - [#322](https://github.com/emotion-js/emotion/pull/322) Move emotion to peerDependencies. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#322](https://github.com/emotion-js/emotion/pull/322) Move emotion to peerDependencies. ([@emmatown](https://github.com/emmatown)) #### :bug: Bug Fix - `babel-plugin-emotion`, `emotion-server`, `emotion-utils`, `emotion`, `preact-emotion`, `react-emotion` - - [#322](https://github.com/emotion-js/emotion/pull/322) Move emotion to peerDependencies. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#322](https://github.com/emotion-js/emotion/pull/322) Move emotion to peerDependencies. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-2 (2017-09-22) @@ -1043,18 +1043,18 @@ npm install --save jest-emotion #### Committers: 2 - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-1 (2017-09-21) #### :bug: Bug Fix - `babel-plugin-emotion`, `emotion` - - [#317](https://github.com/emotion-js/emotion/pull/317) Media query nested selector fix. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#317](https://github.com/emotion-js/emotion/pull/317) Media query nested selector fix. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v8.0.2-0 (2017-09-20) @@ -1092,18 +1092,18 @@ npm install --save jest-emotion #### Committers: 2 - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.3.2 (2017-09-14) #### :rocket: Enhancement - `babel-plugin-emotion` - - [#306](https://github.com/emotion-js/emotion/pull/306) Allow all imports to be configurable. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#306](https://github.com/emotion-js/emotion/pull/306) Allow all imports to be configurable. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.3.0 (2017-09-13) @@ -1115,7 +1115,7 @@ npm install --save jest-emotion #### :house: Internal - `babel-plugin-emotion`, `emotion`, `react-emotion` - - [#304](https://github.com/emotion-js/emotion/pull/304) Use babel-plugin-codegen to generate props regex. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#304](https://github.com/emotion-js/emotion/pull/304) Use babel-plugin-codegen to generate props regex. ([@emmatown](https://github.com/emmatown)) - `babel-plugin-emotion` - [#298](https://github.com/emotion-js/emotion/pull/298) upgrade to babel-macros 1.0.0. ([@kentcdodds](https://github.com/kentcdodds)) @@ -1123,7 +1123,7 @@ npm install --save jest-emotion - Christopher Biscardi ([ChristopherBiscardi](https://github.com/ChristopherBiscardi)) - Kent C. Dodds ([kentcdodds](https://github.com/kentcdodds)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.2.1 (2017-09-05) @@ -1138,7 +1138,7 @@ npm install --save jest-emotion - `babel-plugin-emotion` - [#293](https://github.com/emotion-js/emotion/pull/293) Fix flowtype errors in babel-plugin-emotion. ([@bigslycat](https://github.com/bigslycat)) - `babel-plugin-emotion`, `emotion-utils`, `emotion`, `preact-emotion`, `react-emotion` - - [#280](https://github.com/emotion-js/emotion/pull/280) Change rollup config. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#280](https://github.com/emotion-js/emotion/pull/280) Change rollup config. ([@emmatown](https://github.com/emmatown)) - `babel-plugin-emotion`, `emotion-server`, `emotion-utils`, `emotion`, `preact-emotion`, `react-emotion` - [#276](https://github.com/emotion-js/emotion/pull/276) chore: update packages to deeplink into their respective directories. ([@probablyup](https://github.com/probablyup)) @@ -1147,7 +1147,7 @@ npm install --save jest-emotion - Christopher Biscardi ([ChristopherBiscardi](https://github.com/ChristopherBiscardi)) - Divyagnan Kandala ([divyagnan](https://github.com/divyagnan)) - Evan Scott ([probablyup](https://github.com/probablyup)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - Pavel ([bigslycat](https://github.com/bigslycat)) - Siddharth Kshetrapal ([siddharthkp](https://github.com/siddharthkp)) @@ -1156,11 +1156,11 @@ npm install --save jest-emotion #### :rocket: Enhancement - `emotion`, `preact-emotion` - - [#273](https://github.com/tkh44/emotion/pull/273) Add preact-emotion. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#273](https://github.com/tkh44/emotion/pull/273) Add preact-emotion. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.1.1 (2017-08-20) @@ -1172,44 +1172,44 @@ npm install --save jest-emotion #### :memo: Documentation - `emotion` - - [#269](https://github.com/tkh44/emotion/pull/269) Fix react size badges in readme. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#269](https://github.com/tkh44/emotion/pull/269) Fix react size badges in readme. ([@emmatown](https://github.com/emmatown)) #### Commiteters: 2 - Matija Marohnić ([silvenon](https://github.com/silvenon)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.1.0 (2017-08-18) #### :rocket: Enhancement - `babel-plugin-emotion`, `emotion-server`, `emotion` - - [#265](https://github.com/tkh44/emotion/pull/265) Fix nested interpolated media queries and support random interpolations in injectGlobal. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#265](https://github.com/tkh44/emotion/pull/265) Fix nested interpolated media queries and support random interpolations in injectGlobal. ([@emmatown](https://github.com/emmatown)) - `babel-plugin-emotion`, `emotion-server`, `emotion-utils`, `emotion`, `react-emotion` - - [#259](https://github.com/tkh44/emotion/pull/259) Split everything into its own package with Lerna. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#259](https://github.com/tkh44/emotion/pull/259) Split everything into its own package with Lerna. ([@emmatown](https://github.com/emmatown)) - Other - - [#253](https://github.com/tkh44/emotion/pull/253) Add identifier name to styled class. ([@mitchellhamilton](https://github.com/mitchellhamilton)) + - [#253](https://github.com/tkh44/emotion/pull/253) Add identifier name to styled class. ([@emmatown](https://github.com/emmatown)) #### :bug: Bug Fix -- [#256](https://github.com/tkh44/emotion/pull/256) Fix nested selectors without parent declaration. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#256](https://github.com/tkh44/emotion/pull/256) Fix nested selectors without parent declaration. ([@emmatown](https://github.com/emmatown)) #### :memo: Documentation - [#252](https://github.com/tkh44/emotion/pull/252) Add documentation for nested selectors. ([@silvenon](https://github.com/silvenon)) -- [#250](https://github.com/tkh44/emotion/pull/250) Remove Vue from the babel-macros doc. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#250](https://github.com/tkh44/emotion/pull/250) Remove Vue from the babel-macros doc. ([@emmatown](https://github.com/emmatown)) #### Committers: 2 - Matija Marohnić ([silvenon](https://github.com/silvenon)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.0.12 (2017-08-09) #### :bug: Bug Fix -- [#243](https://github.com/tkh44/emotion/pull/243) Pass filename to PostCSS correctly. ([@mitchellhamilton](https://github.com/mitchellhamilton)) -- [#236](https://github.com/tkh44/emotion/pull/236) Filter props on composed components. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#243](https://github.com/tkh44/emotion/pull/243) Pass filename to PostCSS correctly. ([@emmatown](https://github.com/emmatown)) +- [#236](https://github.com/tkh44/emotion/pull/236) Filter props on composed components. ([@emmatown](https://github.com/emmatown)) #### :memo: Documentation @@ -1218,53 +1218,53 @@ npm install --save jest-emotion #### :house: Internal - [#237](https://github.com/tkh44/emotion/pull/237) adding theming to dev dependencies. ([@areai51](https://github.com/areai51)) -- [#238](https://github.com/tkh44/emotion/pull/238) Make the styled content function return an object. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#238](https://github.com/tkh44/emotion/pull/238) Make the styled content function return an object. ([@emmatown](https://github.com/emmatown)) #### Committers: 3 - EGOIST ([egoist](https://github.com/egoist)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) - [areai51](https://github.com/areai51) ## v7.0.11 (2017-08-05) #### :house: Internal -- [#233](https://github.com/tkh44/emotion/pull/233) Add postcss as a dependency. ([@mitchellhamilton](https://github.com/mitchellhamilton)) -- [#231](https://github.com/tkh44/emotion/pull/231) Use ESLint directly. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#233](https://github.com/tkh44/emotion/pull/233) Add postcss as a dependency. ([@emmatown](https://github.com/emmatown)) +- [#231](https://github.com/tkh44/emotion/pull/231) Use ESLint directly. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.0.10 (2017-08-04) #### :memo: Documentation -- [#230](https://github.com/tkh44/emotion/pull/230) Fix typo in react gzip size badge. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#230](https://github.com/tkh44/emotion/pull/230) Fix typo in react gzip size badge. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.0.9 (2017-08-04) #### :rocket: Enhancement -- [#227](https://github.com/tkh44/emotion/pull/227) Prop filtering. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#227](https://github.com/tkh44/emotion/pull/227) Prop filtering. ([@emmatown](https://github.com/emmatown)) - [#228](https://github.com/tkh44/emotion/pull/228) Spread out fragments earlier so that we can do redic nesting. ([@tkh44](https://github.com/tkh44)) - [#225](https://github.com/tkh44/emotion/pull/225) Remove theming. ([@tkh44](https://github.com/tkh44)) #### Committers: 2 - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.0.7 (2017-08-02) #### :rocket: Enhancement -- [#221](https://github.com/tkh44/emotion/pull/221) Random object interpolations. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#221](https://github.com/tkh44/emotion/pull/221) Random object interpolations. ([@emmatown](https://github.com/emmatown)) #### :bug: Bug Fix @@ -1274,7 +1274,7 @@ npm install --save jest-emotion #### Committers: 2 - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.0.6 (2017-08-01) @@ -1290,64 +1290,64 @@ npm install --save jest-emotion #### :bug: Bug Fix -- [#218](https://github.com/tkh44/emotion/pull/218) Fix SSR hydration. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#218](https://github.com/tkh44/emotion/pull/218) Fix SSR hydration. ([@emmatown](https://github.com/emmatown)) - [#214](https://github.com/tkh44/emotion/pull/214) [Fix] #196. ([@bogas04](https://github.com/bogas04)) #### Committers: 2 - Divjot Singh ([bogas04](https://github.com/bogas04)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.0.4 (2017-07-30) #### :bug: Bug Fix -- [#205](https://github.com/tkh44/emotion/pull/205) Fix prefixed selectors in objects. ([@mitchellhamilton](https://github.com/mitchellhamilton)) -- [#204](https://github.com/tkh44/emotion/pull/204) Fix shorthand property syntax in object styles and use spread syntax instead of transform in tests. ([@mitchellhamilton](https://github.com/mitchellhamilton)) -- [#203](https://github.com/tkh44/emotion/pull/203) Component as selector fix. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#205](https://github.com/tkh44/emotion/pull/205) Fix prefixed selectors in objects. ([@emmatown](https://github.com/emmatown)) +- [#204](https://github.com/tkh44/emotion/pull/204) Fix shorthand property syntax in object styles and use spread syntax instead of transform in tests. ([@emmatown](https://github.com/emmatown)) +- [#203](https://github.com/tkh44/emotion/pull/203) Component as selector fix. ([@emmatown](https://github.com/emmatown)) #### :memo: Documentation -- [#207](https://github.com/tkh44/emotion/pull/207) Fix logo alignment on npm. ([@mitchellhamilton](https://github.com/mitchellhamilton)) -- [#206](https://github.com/tkh44/emotion/pull/206) Remove attr from Usage with CSS Modules docs. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#207](https://github.com/tkh44/emotion/pull/207) Fix logo alignment on npm. ([@emmatown](https://github.com/emmatown)) +- [#206](https://github.com/tkh44/emotion/pull/206) Remove attr from Usage with CSS Modules docs. ([@emmatown](https://github.com/emmatown)) - [#190](https://github.com/tkh44/emotion/pull/190) [Update] import `styled` from 'emotion/react'. ([@bogas04](https://github.com/bogas04)) #### Committers: 2 - Divjot Singh ([bogas04](https://github.com/bogas04)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.0.3 (2017-07-28) #### :rocket: Enhancement -- [#202](https://github.com/tkh44/emotion/pull/202) Render fewer components when composing components. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#202](https://github.com/tkh44/emotion/pull/202) Render fewer components when composing components. ([@emmatown](https://github.com/emmatown)) #### Committers: 1 -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.0.2 (2017-07-28) #### :rocket: Enhancement - [#197](https://github.com/tkh44/emotion/pull/197) Prefix objects css props. ([@tkh44](https://github.com/tkh44)) -- [#200](https://github.com/tkh44/emotion/pull/200) Auto import css for css prop. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#200](https://github.com/tkh44/emotion/pull/200) Auto import css for css prop. ([@emmatown](https://github.com/emmatown)) #### :bug: Bug Fix -- [#192](https://github.com/tkh44/emotion/pull/192) Use postcss-nested and postcss-safe-parser instead of styled-components fork and pass filename to postcss. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#192](https://github.com/tkh44/emotion/pull/192) Use postcss-nested and postcss-safe-parser instead of styled-components fork and pass filename to postcss. ([@emmatown](https://github.com/emmatown)) #### :house: Internal -- [#191](https://github.com/tkh44/emotion/pull/191) More tests, use fns from utils and rework core. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#191](https://github.com/tkh44/emotion/pull/191) More tests, use fns from utils and rework core. ([@emmatown](https://github.com/emmatown)) - [#193](https://github.com/tkh44/emotion/pull/193) Use spread over Object.assign. ([@bogas04](https://github.com/bogas04)) #### Committers: 3 - Divjot Singh ([bogas04](https://github.com/bogas04)) - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) ## v7.0.1 (2017-07-27) @@ -1357,12 +1357,12 @@ npm install --save jest-emotion #### :house: Internal -- [#182](https://github.com/tkh44/emotion/pull/182) Move fbjs imports for warning and camelizeStyleName. ([@mitchellhamilton](https://github.com/mitchellhamilton)) -- [#176](https://github.com/tkh44/emotion/pull/176) Update jest-glamor-react. ([@mitchellhamilton](https://github.com/mitchellhamilton)) +- [#182](https://github.com/tkh44/emotion/pull/182) Move fbjs imports for warning and camelizeStyleName. ([@emmatown](https://github.com/emmatown)) +- [#176](https://github.com/tkh44/emotion/pull/176) Update jest-glamor-react. ([@emmatown](https://github.com/emmatown)) - [#175](https://github.com/tkh44/emotion/pull/175) Clean up css operations. ([@tkh44](https://github.com/tkh44)) #### Committers: 3 - Sunil Pai ([threepointone](https://github.com/threepointone)) - Kye Hohenberger ([tkh44](https://github.com/tkh44)) -- Mitchell Hamilton ([mitchellhamilton](https://github.com/mitchellhamilton)) +- Emma Hamilton ([emmatown](https://github.com/emmatown)) diff --git a/README.md b/README.md index a0b2b62d1..1073ab65f 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,7 @@ Look here 👉 _[emotion babel plugin feature table and documentation](https://g ### In the Wild +- [feathery.io](https://feathery.io) - [frontity.org](https://frontity.org) - [abacusfi.com](https://abacusfi.com) - [healthline.com](https://www.healthline.com) @@ -109,6 +110,7 @@ Look here 👉 _[emotion babel plugin feature table and documentation](https://g - [cyberhaven.com](https://cyberhaven.com) - [CommercialRealEstate.com.au](https://www.commercialrealestate.com.au) - [codecademy.com](https://www.codecademy.com) +- [Apache Superset](https://superset.apache.org/) ## Sponsors diff --git a/package.json b/package.json index 7e4b34f34..0fa50d67e 100644 --- a/package.json +++ b/package.json @@ -128,9 +128,8 @@ "react/jsx-runtime": "ReactJSX", "react/jsx-dev-runtime": "ReactJSXDev" }, - "exports": true, - "___experimentalFlags_WILL_CHANGE_IN_PATCH": { - "exports": true + "exports": { + "importConditionDefaultExport": "default" } }, "bugs": { @@ -181,7 +180,7 @@ "@changesets/changelog-github": "^0.4.0", "@changesets/cli": "^2.16.0", "@manypkg/cli": "^0.19.1", - "@preconstruct/cli": "^2.2.1", + "@preconstruct/cli": "^2.6.2", "@testing-library/react": "13.0.0-alpha.5", "@types/jest": "^27.0.3", "@types/node": "^12.20.37", diff --git a/packages/babel-plugin-jsx-pragmatic/CHANGELOG.md b/packages/babel-plugin-jsx-pragmatic/CHANGELOG.md index baf142f0a..2a96ccf4d 100644 --- a/packages/babel-plugin-jsx-pragmatic/CHANGELOG.md +++ b/packages/babel-plugin-jsx-pragmatic/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/babel-plugin-jsx-pragmatic +## 0.2.1 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + ## 0.2.0 ### Minor Changes @@ -22,4 +28,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/babel-plugin-jsx-pragmatic/package.json b/packages/babel-plugin-jsx-pragmatic/package.json index 178af5811..12ebba985 100644 --- a/packages/babel-plugin-jsx-pragmatic/package.json +++ b/packages/babel-plugin-jsx-pragmatic/package.json @@ -1,12 +1,13 @@ { "name": "@emotion/babel-plugin-jsx-pragmatic", - "version": "0.2.0", + "version": "0.2.1", "description": "Insert code to load a module corresponding to JSX pragma.", "main": "dist/emotion-babel-plugin-jsx-pragmatic.cjs.js", "module": "dist/emotion-babel-plugin-jsx-pragmatic.esm.js", "exports": { ".": { "module": "./dist/emotion-babel-plugin-jsx-pragmatic.esm.js", + "import": "./dist/emotion-babel-plugin-jsx-pragmatic.cjs.mjs", "default": "./dist/emotion-babel-plugin-jsx-pragmatic.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/babel-plugin/CHANGELOG.md b/packages/babel-plugin/CHANGELOG.md index ff8f3de43..6a84d04ef 100644 --- a/packages/babel-plugin/CHANGELOG.md +++ b/packages/babel-plugin/CHANGELOG.md @@ -1,5 +1,30 @@ # @emotion/babel-plugin +## 11.11.0 + +### Patch Changes + +- [#3031](https://github.com/emotion-js/emotion/pull/3031) [`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5) Thanks [@Andarist](https://github.com/Andarist)! - Updated the underlying parser ([stylis](https://github.com/thysultan/stylis)) to 4.2.0 + +* [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +* Updated dependencies [[`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/hash@0.9.1 + - @emotion/memoize@0.8.1 + - @emotion/serialize@1.1.2 + +## 11.10.8 + +### Patch Changes + +- [#3025](https://github.com/emotion-js/emotion/pull/3025) [`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f) Thanks [@Andarist](https://github.com/Andarist)! - Updated the underlying parser ([stylis](https://github.com/thysultan/stylis)) to 4.1.4 + +## 11.10.6 + +### Patch Changes + +- [#2985](https://github.com/emotion-js/emotion/pull/2985) [`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc) Thanks [@emmatown](https://github.com/emmatown)! - Remove peer dependency on `@babel/core` + ## 11.10.5 ### Patch Changes @@ -100,9 +125,9 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `babel-plugin-emotion` to `@emotion/babel-plugin`. Please replace `"plugins": ["emotion"]` with `"plugins": ["@emotion"]` in your Babel config. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `babel-plugin-emotion` to `@emotion/babel-plugin`. Please replace `"plugins": ["emotion"]` with `"plugins": ["@emotion"]` in your Babel config. -* [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Removed support for the `instances` option, any usage of it should be replaced with the `importMap` option +* [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@emmatown](https://github.com/emmatown)! - Removed support for the `instances` option, any usage of it should be replaced with the `importMap` option * [`c65c5d88`](https://github.com/emotion-js/emotion/commit/c65c5d887002d76557eaefcb98091d795b13f9a9) [#1622](https://github.com/emotion-js/emotion/pull/1622) Thanks [@Andarist](https://github.com/Andarist)! - Drop Babel 6 support @@ -118,7 +143,7 @@ ### Minor Changes -- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - 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 +- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@emmatown](https://github.com/emmatown)! - 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 - [`c672175b`](https://github.com/emotion-js/emotion/commit/c672175b52e86de43b3d4092a8fe34b2023ceae8) [#1130](https://github.com/emotion-js/emotion/pull/1130) Thanks [@jtmthf](https://github.com/jtmthf)! - Adjust how arrays passed to css prop are transformed so function elements can be resolved at runtime. @@ -220,7 +245,7 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `babel-plugin-emotion` to `@emotion/babel-plugin`. Please replace `"plugins": ["emotion"]` with `"plugins": ["@emotion"]` in your Babel config. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `babel-plugin-emotion` to `@emotion/babel-plugin`. Please replace `"plugins": ["emotion"]` with `"plugins": ["@emotion"]` in your Babel config. * [`c7850e61`](https://github.com/emotion-js/emotion/commit/c7850e61211d6aa26a3388399889a6072ee2f1fe) [#1656](https://github.com/emotion-js/emotion/pull/1656) Thanks [@Andarist](https://github.com/Andarist)! - `autoLabel` option no longer is a simple boolean. Instead we accept now 3 values: `dev-only` (the default), `always` and `never`. @@ -263,17 +288,17 @@ ### Major Changes -- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Removed support for the `instances` option, any usage of it should be replaced with the `importMap` option +- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@emmatown](https://github.com/emmatown)! - Removed support for the `instances` option, any usage of it should be replaced with the `importMap` option -* [`f9feab1a`](https://github.com/emotion-js/emotion/commit/f9feab1a5d1ca88e53c3f7a063be5d5871cc93e8) [#1575](https://github.com/emotion-js/emotion/pull/1575) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Removed support for `@emotion/styled-base` package. It has been moved to `@emotion/styled` and is available as `@emotion/styled/base`. This simplifies how the regular and base versions relate to each other and eliminates problems with stricter package managers when `@emotion/styled-base` was not installed explicitly by a user. +* [`f9feab1a`](https://github.com/emotion-js/emotion/commit/f9feab1a5d1ca88e53c3f7a063be5d5871cc93e8) [#1575](https://github.com/emotion-js/emotion/pull/1575) Thanks [@emmatown](https://github.com/emmatown)! - Removed support for `@emotion/styled-base` package. It has been moved to `@emotion/styled` and is available as `@emotion/styled/base`. This simplifies how the regular and base versions relate to each other and eliminates problems with stricter package managers when `@emotion/styled-base` was not installed explicitly by a user. ### Minor Changes -- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Added the `importMap` option which allows you to tell babel-plugin-emotion 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 +- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@emmatown](https://github.com/emmatown)! - Added the `importMap` option which allows you to tell babel-plugin-emotion 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 ### Patch Changes -- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Fix issue with not updating referenced import when bailing out on already transpiled vanilla emotion nodes (a regression introduced in #1602) +- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@emmatown](https://github.com/emmatown)! - Fix issue with not updating referenced import when bailing out on already transpiled vanilla emotion nodes (a regression introduced in #1602) - Updated dependencies [[`8a896a31`](https://github.com/emotion-js/emotion/commit/8a896a31434a1d2f69e1f1467c446c884c929387), [`a085003d`](https://github.com/emotion-js/emotion/commit/a085003d4c8ca284c116668d7217fb747802ed85)]: - @emotion/serialize@0.11.15-next.1 @@ -288,7 +313,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ### Patch Changes @@ -388,7 +413,7 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool ## 10.0.13 diff --git a/packages/babel-plugin/package.json b/packages/babel-plugin/package.json index 23033422f..7f8773b42 100644 --- a/packages/babel-plugin/package.json +++ b/packages/babel-plugin/package.json @@ -1,12 +1,13 @@ { "name": "@emotion/babel-plugin", - "version": "11.10.5", + "version": "11.11.0", "description": "A recommended babel preprocessing plugin for emotion, The Next Generation of CSS-in-JS.", "main": "dist/emotion-babel-plugin.cjs.js", "module": "dist/emotion-babel-plugin.esm.js", "exports": { ".": { "module": "./dist/emotion-babel-plugin.esm.js", + "import": "./dist/emotion-babel-plugin.cjs.mjs", "default": "./dist/emotion-babel-plugin.cjs.js" }, "./package.json": "./package.json" @@ -18,20 +19,16 @@ ], "dependencies": { "@babel/helper-module-imports": "^7.16.7", - "@babel/plugin-syntax-jsx": "^7.17.12", "@babel/runtime": "^7.18.3", - "@emotion/hash": "^0.9.0", - "@emotion/memoize": "^0.8.0", - "@emotion/serialize": "^1.1.1", + "@emotion/hash": "^0.9.1", + "@emotion/memoize": "^0.8.1", + "@emotion/serialize": "^1.1.2", "babel-plugin-macros": "^3.1.0", "convert-source-map": "^1.5.0", "escape-string-regexp": "^4.0.0", "find-root": "^1.1.0", "source-map": "^0.5.7", - "stylis": "4.1.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "stylis": "4.2.0" }, "devDependencies": { "@babel/core": "^7.18.5", diff --git a/packages/babel-plugin/src/index.js b/packages/babel-plugin/src/index.js index 88b1a751b..95731cd43 100644 --- a/packages/babel-plugin/src/index.js +++ b/packages/babel-plugin/src/index.js @@ -1,5 +1,4 @@ // @flow -import syntaxJsx from '@babel/plugin-syntax-jsx' import { createEmotionMacro, transformers as vanillaTransformers @@ -90,7 +89,21 @@ export default function (babel: *, options: *) { let t = babel.types return { name: '@emotion', - inherits: syntaxJsx, + // https://github.com/babel/babel/blob/0c97749e0fe8ad845b902e0b23a24b308b0bf05d/packages/babel-plugin-syntax-jsx/src/index.ts#L9-L18 + manipulateOptions(opts: *, parserOpts: *) { + const { plugins } = parserOpts + + if ( + plugins.some(p => { + const plugin = Array.isArray(p) ? p[0] : p + return plugin === 'typescript' || plugin === 'jsx' + }) + ) { + return + } + + plugins.push('jsx') + }, visitor: { ImportDeclaration(path: *, state: *) { const macro = state.pluginMacros[path.node.source.value] diff --git a/packages/babel-preset-css-prop/CHANGELOG.md b/packages/babel-preset-css-prop/CHANGELOG.md index d11975462..5dd14d681 100644 --- a/packages/babel-preset-css-prop/CHANGELOG.md +++ b/packages/babel-preset-css-prop/CHANGELOG.md @@ -1,5 +1,15 @@ # @emotion/babel-preset-css-prop +## 11.11.0 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5), [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/babel-plugin@11.11.0 + - @emotion/babel-plugin-jsx-pragmatic@0.2.1 + ## 11.10.0 ### Minor Changes @@ -27,7 +37,7 @@ - [`9e3671c4`](https://github.com/emotion-js/emotion/commit/9e3671c466975fb31cd45431e25cb60ffb677a70) [#2076](https://github.com/emotion-js/emotion/pull/2076) Thanks [@Andarist](https://github.com/Andarist)! - Removed `runtime` option that was introduced to this preset and deprecated shortly after that. If you want to configure `runtime: "automatic"`, replace `@emotion/babel-preset-css-prop` with `@babel/preset-react` and `@emotion/babel-plugin`. You can find out how to configure things properly here: https://emotion.sh/docs/css-prop#babel-preset -- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Removed support for the `instances` option, any usage of it should be replaced with the `importMap` option +- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@emmatown](https://github.com/emmatown)! - Removed support for the `instances` option, any usage of it should be replaced with the `importMap` option * [`c7850e61`](https://github.com/emotion-js/emotion/commit/c7850e61211d6aa26a3388399889a6072ee2f1fe) [#1656](https://github.com/emotion-js/emotion/pull/1656) Thanks [@Andarist](https://github.com/Andarist)! - `autoLabel` option no longer is a simple boolean. Instead we accept now 3 values: `dev-only` (the default), `always` and `never`. @@ -39,7 +49,7 @@ ### Minor Changes -- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - 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 +- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@emmatown](https://github.com/emmatown)! - 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 - [`c672175b`](https://github.com/emotion-js/emotion/commit/c672175b52e86de43b3d4092a8fe34b2023ceae8) [#1130](https://github.com/emotion-js/emotion/pull/1130) Thanks [@jtmthf](https://github.com/jtmthf)! - Adjust how arrays passed to css prop are transformed so function elements can be resolved at runtime. @@ -104,11 +114,11 @@ ### Major Changes -- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Removed support for the `instances` option, any usage of it should be replaced with the `importMap` option +- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@emmatown](https://github.com/emmatown)! - Removed support for the `instances` option, any usage of it should be replaced with the `importMap` option ### Minor Changes -- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Added the `importMap` option which allows you to tell babel-plugin-emotion 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 +- [`c5b12d90`](https://github.com/emotion-js/emotion/commit/c5b12d90316477e95ce3680a3c745cde328a14c1) [#1220](https://github.com/emotion-js/emotion/pull/1220) Thanks [@emmatown](https://github.com/emmatown)! - Added the `importMap` option which allows you to tell babel-plugin-emotion 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 ### Patch Changes @@ -180,4 +190,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/babel-preset-css-prop/package.json b/packages/babel-preset-css-prop/package.json index accd30092..3ed9205ec 100644 --- a/packages/babel-preset-css-prop/package.json +++ b/packages/babel-preset-css-prop/package.json @@ -1,12 +1,13 @@ { "name": "@emotion/babel-preset-css-prop", - "version": "11.10.0", + "version": "11.11.0", "description": "A babel preset to automatically enable emotion's css prop", "main": "dist/emotion-babel-preset-css-prop.cjs.js", "module": "dist/emotion-babel-preset-css-prop.esm.js", "exports": { ".": { "module": "./dist/emotion-babel-preset-css-prop.esm.js", + "import": "./dist/emotion-babel-preset-css-prop.cjs.mjs", "default": "./dist/emotion-babel-preset-css-prop.cjs.js" }, "./package.json": "./package.json" @@ -16,8 +17,8 @@ "dependencies": { "@babel/plugin-transform-react-jsx": "^7.17.12", "@babel/runtime": "^7.18.3", - "@emotion/babel-plugin": "^11.10.0", - "@emotion/babel-plugin-jsx-pragmatic": "^0.2.0" + "@emotion/babel-plugin": "^11.11.0", + "@emotion/babel-plugin-jsx-pragmatic": "^0.2.1" }, "peerDependencies": { "@babel/core": "^7.0.0" diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index 566f3350b..7485a27a6 100644 --- a/packages/cache/CHANGELOG.md +++ b/packages/cache/CHANGELOG.md @@ -1,5 +1,33 @@ # @emotion/cache +## 11.11.0 + +### Minor Changes + +- [#3031](https://github.com/emotion-js/emotion/pull/3031) [`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5) Thanks [@Andarist](https://github.com/Andarist)! - Added support for cascade `@layer`s by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)). + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/memoize@0.8.1 + - @emotion/sheet@1.2.2 + - @emotion/utils@1.2.1 + - @emotion/weak-memoize@0.3.1 + +## 11.10.8 + +### Patch Changes + +- [#3025](https://github.com/emotion-js/emotion/pull/3025) [`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f) Thanks [@Andarist](https://github.com/Andarist)! - Fixed a parsing issue with `&` within nested functions in declaration values by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)). + +## 11.10.7 + +### Patch Changes + +- [#3019](https://github.com/emotion-js/emotion/pull/3019) [`b02be0ba`](https://github.com/emotion-js/emotion/commit/b02be0bae0048df4b3a8567436bc31059b00d213) Thanks [@Andarist](https://github.com/Andarist)! - Fixed `/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */` not disabling the warning for rules defined inside other rules. + ## 11.10.5 ### Patch Changes @@ -107,7 +135,7 @@ ### Patch Changes -- [#2361](https://github.com/emotion-js/emotion/pull/2361) [`38f9d44f`](https://github.com/emotion-js/emotion/commit/38f9d44f919dccbf66c835ccde3f08ab927a4940) Thanks [@danieldelcore](https://github.com/danieldelcore), [@mitchellhamilton](https://github.com/mitchellhamilton)! - Fixed moving of client-side inserted style tags from Emotion 10 when intending to hydrate Emotion 11 styles resulting in losing styles in production +- [#2361](https://github.com/emotion-js/emotion/pull/2361) [`38f9d44f`](https://github.com/emotion-js/emotion/commit/38f9d44f919dccbf66c835ccde3f08ab927a4940) Thanks [@danieldelcore](https://github.com/danieldelcore), [@emmatown](https://github.com/emmatown)! - Fixed moving of client-side inserted style tags from Emotion 10 when intending to hydrate Emotion 11 styles resulting in losing styles in production ## 11.1.3 @@ -266,7 +294,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ## 10.0.29 @@ -297,7 +325,7 @@ ### Patch Changes -- [10514a86](https://github.com/emotion-js/emotion/commit/10514a8635dcaa55b85c7bff90e2a9e14d1ba61f) [#1482](https://github.com/emotion-js/emotion/pull/1482) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Remove react native bundles in favour of different isBrowser detection +- [10514a86](https://github.com/emotion-js/emotion/commit/10514a8635dcaa55b85c7bff90e2a9e14d1ba61f) [#1482](https://github.com/emotion-js/emotion/pull/1482) Thanks [@emmatown](https://github.com/emmatown)! - Remove react native bundles in favour of different isBrowser detection - [16ff2330](https://github.com/emotion-js/emotion/commit/16ff233061e35fe71bfb1671da54ac12d6fc9eeb) [#1483](https://github.com/emotion-js/emotion/pull/1483) Thanks [@JakeGinnivan](https://github.com/JakeGinnivan)! - nth selector will no longer warn when using extract critical ## 10.0.15 @@ -310,4 +338,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/cache/package.json b/packages/cache/package.json index 824edabcd..90aca4adb 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/cache", - "version": "11.10.5", + "version": "11.11.0", "description": "emotion's cache", "main": "dist/emotion-cache.cjs.js", "module": "dist/emotion-cache.esm.js", @@ -14,6 +14,7 @@ "browser": "./dist/emotion-cache.browser.esm.js", "default": "./dist/emotion-cache.esm.js" }, + "import": "./dist/emotion-cache.cjs.mjs", "default": "./dist/emotion-cache.cjs.js" }, "./package.json": "./package.json" @@ -25,11 +26,11 @@ "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/memoize": "^0.8.0", - "@emotion/sheet": "^1.2.1", - "@emotion/utils": "^1.2.0", - "@emotion/weak-memoize": "^0.3.0", - "stylis": "4.1.3" + "@emotion/memoize": "^0.8.1", + "@emotion/sheet": "^1.2.2", + "@emotion/utils": "^1.2.1", + "@emotion/weak-memoize": "^0.3.1", + "stylis": "4.2.0" }, "devDependencies": { "@definitelytyped/dtslint": "0.0.112", diff --git a/packages/cache/src/stylis-plugins.js b/packages/cache/src/stylis-plugins.js index e0fc8f243..1c1bbb821 100644 --- a/packages/cache/src/stylis-plugins.js +++ b/packages/cache/src/stylis-plugins.js @@ -165,8 +165,8 @@ export let createUnsafeSelectorsAlarm = cache => (element, index, children) => { ) if (unsafePseudoClasses) { - const isNested = element.parent === children[0] - // in nested rules comments become children of the "auto-inserted" rule + const isNested = !!element.parent + // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent` // // considering this input: // .a { @@ -182,7 +182,7 @@ export let createUnsafeSelectorsAlarm = cache => (element, index, children) => { // .b {} // } const commentContainer = isNested - ? children[0].children + ? element.parent.children : // global rule at the root level children diff --git a/packages/css-prettifier/CHANGELOG.md b/packages/css-prettifier/CHANGELOG.md index b37a399c3..67f25c409 100644 --- a/packages/css-prettifier/CHANGELOG.md +++ b/packages/css-prettifier/CHANGELOG.md @@ -1,5 +1,22 @@ # @emotion/css-prettifier +## 1.1.3 + +### Patch Changes + +- [#3031](https://github.com/emotion-js/emotion/pull/3031) [`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5) Thanks [@Andarist](https://github.com/Andarist)! - Updated the underlying parser ([stylis](https://github.com/thysultan/stylis)) to 4.2.0 + +* [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +* Updated dependencies [[`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/memoize@0.8.1 + +## 1.1.2 + +### Patch Changes + +- [#3025](https://github.com/emotion-js/emotion/pull/3025) [`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f) Thanks [@Andarist](https://github.com/Andarist)! - Updated the underlying parser ([stylis](https://github.com/thysultan/stylis)) to 4.1.4 + ## 1.1.1 ### Patch Changes diff --git a/packages/css-prettifier/package.json b/packages/css-prettifier/package.json index 314294d7e..ed9c3c79a 100644 --- a/packages/css-prettifier/package.json +++ b/packages/css-prettifier/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/css-prettifier", - "version": "1.1.1", + "version": "1.1.3", "description": "Simple Stylis-based CSS prettifier", "keywords": [ "emotion" @@ -11,6 +11,7 @@ "exports": { ".": { "module": "./dist/emotion-css-prettifier.esm.js", + "import": "./dist/emotion-css-prettifier.cjs.mjs", "default": "./dist/emotion-css-prettifier.cjs.js" }, "./package.json": "./package.json" @@ -19,8 +20,8 @@ "license": "MIT", "repository": "https://github.com/emotion-js/emotion/tree/main/packages/css-prettifier", "dependencies": { - "@emotion/memoize": "^0.8.0", - "stylis": "4.1.3" + "@emotion/memoize": "^0.8.1", + "stylis": "4.2.0" }, "publishConfig": { "access": "public" diff --git a/packages/css/CHANGELOG.md b/packages/css/CHANGELOG.md index 3df7a9093..0f151a327 100644 --- a/packages/css/CHANGELOG.md +++ b/packages/css/CHANGELOG.md @@ -1,5 +1,41 @@ # emotion +## 11.11.0 + +### Minor Changes + +- [#3031](https://github.com/emotion-js/emotion/pull/3031) [`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5) Thanks [@Andarist](https://github.com/Andarist)! - Added support for cascade `@layer`s by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)). + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5), [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247), [`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5)]: + - @emotion/babel-plugin@11.11.0 + - @emotion/cache@11.11.0 + - @emotion/serialize@1.1.2 + - @emotion/sheet@1.2.2 + - @emotion/utils@1.2.1 + +## 11.10.8 + +### Patch Changes + +- [#3025](https://github.com/emotion-js/emotion/pull/3025) [`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f) Thanks [@Andarist](https://github.com/Andarist)! - Fixed a parsing issue with `&` within nested functions in declaration values by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)). + +- Updated dependencies [[`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f), [`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f)]: + - @emotion/babel-plugin@11.10.8 + - @emotion/cache@11.10.8 + +## 11.10.6 + +### Patch Changes + +- [#2985](https://github.com/emotion-js/emotion/pull/2985) [`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc) Thanks [@emmatown](https://github.com/emmatown)! - Remove peer dependency on `@babel/core` + +- Updated dependencies [[`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc)]: + - @emotion/babel-plugin@11.10.6 + ## 11.10.5 ### Patch Changes @@ -69,9 +105,9 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `emotion` to `@emotion/css`. Please change any imports of `emotion` to import `@emotion/css` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `emotion` to `@emotion/css`. Please change any imports of `emotion` to import `@emotion/css` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. -* [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Move create `create-emotion` to `@emotion/css/create-instance`. Please change any imports of `create-emotion` to import `@emotion/css/create-instance` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +* [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Move create `create-emotion` to `@emotion/css/create-instance`. Please change any imports of `create-emotion` to import `@emotion/css/create-instance` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. - [`105de5c8`](https://github.com/emotion-js/emotion/commit/105de5c8752be0983c000e1e26462dc8fcf0708d) [#1572](https://github.com/emotion-js/emotion/pull/1572) Thanks [@Andarist](https://github.com/Andarist)! - The `key` option is now required when creating a custom instance of a cache. 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. @@ -255,9 +291,9 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Move create `create-emotion` to `@emotion/css/create-instance`. Please change any imports of `create-emotion` to import `@emotion/css/create-instance` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Move create `create-emotion` to `@emotion/css/create-instance`. Please change any imports of `create-emotion` to import `@emotion/css/create-instance` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. -* [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `emotion` to `@emotion/css`. Please change any imports of `emotion` to import `@emotion/css` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +* [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `emotion` to `@emotion/css`. Please change any imports of `emotion` to import `@emotion/css` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. ### Patch Changes @@ -270,7 +306,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ### Patch Changes @@ -307,4 +343,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/css/macro.d.mts b/packages/css/macro.d.mts new file mode 100644 index 000000000..5e20dfd3f --- /dev/null +++ b/packages/css/macro.d.mts @@ -0,0 +1 @@ +export * from './macro.js' diff --git a/packages/css/package.json b/packages/css/package.json index ae68a3a8e..01b971520 100644 --- a/packages/css/package.json +++ b/packages/css/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/css", - "version": "11.10.5", + "version": "11.11.0", "description": "The Next Generation of CSS-in-JS.", "main": "dist/emotion-css.cjs.js", "module": "dist/emotion-css.esm.js", @@ -9,31 +9,20 @@ "src", "dist", "types", - "macro.js", - "macro.d.ts", - "macro.js.flow", + "macro.*", "create-instance" ], "scripts": { "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/babel-plugin": "^11.10.5", - "@emotion/cache": "^11.10.5", - "@emotion/serialize": "^1.1.1", - "@emotion/sheet": "^1.2.1", - "@emotion/utils": "^1.2.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - } + "@emotion/babel-plugin": "^11.11.0", + "@emotion/cache": "^11.11.0", + "@emotion/serialize": "^1.1.2", + "@emotion/sheet": "^1.2.2", + "@emotion/utils": "^1.2.1" }, "devDependencies": { - "@babel/core": "^7.18.5", "@definitelytyped/dtslint": "0.0.112", "typescript": "^4.5.5" }, @@ -55,14 +44,22 @@ "exports": { ".": { "module": "./dist/emotion-css.esm.js", + "import": "./dist/emotion-css.cjs.mjs", "default": "./dist/emotion-css.cjs.js" }, "./create-instance": { "module": "./create-instance/dist/emotion-css-create-instance.esm.js", + "import": "./create-instance/dist/emotion-css-create-instance.cjs.mjs", "default": "./create-instance/dist/emotion-css-create-instance.cjs.js" }, "./package.json": "./package.json", - "./macro": "./macro.js" + "./macro": { + "types": { + "import": "./macro.d.mts", + "default": "./macro.d.ts" + }, + "default": "./macro.js" + } }, "preconstruct": { "umdName": "emotion", @@ -72,7 +69,13 @@ ], "exports": { "extra": { - "./macro": "./macro.js" + "./macro": { + "types": { + "import": "./macro.d.mts", + "default": "./macro.d.ts" + }, + "default": "./macro.js" + } } } } diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index eac73c2e1..5ce71f6d3 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/eslint-plugin +## 11.11.0 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + ## 11.10.0 ### Minor Changes @@ -28,11 +34,11 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `eslint-plugin-emotion` to `@emotion/eslint-plugin`. Please replace `"plugins": ["emotion"]` with `"plugins": ["@emotion"]` and `emotion/` with `@emotion/` in your rules config in your ESLint config. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `eslint-plugin-emotion` to `@emotion/eslint-plugin`. Please replace `"plugins": ["emotion"]` with `"plugins": ["@emotion"]` and `emotion/` with `@emotion/` in your rules config in your ESLint config. ### Minor Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Added `@emotion/pkg-renaming` rule for Emotion 11 migration. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Added `@emotion/pkg-renaming` rule for Emotion 11 migration. * [`8b59959f`](https://github.com/emotion-js/emotion/commit/8b59959f0929799f050089b05cafb39ca2c57d2d) [#1659](https://github.com/emotion-js/emotion/pull/1659) Thanks [@Andarist](https://github.com/Andarist)! - Respect `syntax-preference` rule when using css prop. @@ -52,11 +58,11 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `eslint-plugin-emotion` to `@emotion/eslint-plugin`. Please replace `"plugins": ["emotion"]` with `"plugins": ["@emotion"]` and `emotion/` with `@emotion/` in your rules config in your ESLint config. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `eslint-plugin-emotion` to `@emotion/eslint-plugin`. Please replace `"plugins": ["emotion"]` with `"plugins": ["@emotion"]` and `emotion/` with `@emotion/` in your rules config in your ESLint config. ### Minor Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Add @emotion/pkg-renaming rule for Emotion 11 migration +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Add @emotion/pkg-renaming rule for Emotion 11 migration ## 10.0.27 @@ -68,5 +74,5 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool - [4ae88942](https://github.com/emotion-js/emotion/commit/4ae88942) [#1402](https://github.com/emotion-js/emotion/pull/1402) Thanks [@ahutchings](https://github.com/ahutchings)! - jsx-import rule: Add jsx specifier to existing import from @emotion/core when auto-fixing diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 9d6619da1..996c688f9 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/eslint-plugin", - "version": "11.10.0", + "version": "11.11.0", "description": "ESLint rules for emotion", "keywords": [ "eslint", @@ -14,6 +14,7 @@ "exports": { ".": { "module": "./dist/emotion-eslint-plugin.esm.js", + "import": "./dist/emotion-eslint-plugin.cjs.mjs", "default": "./dist/emotion-eslint-plugin.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/hash/CHANGELOG.md b/packages/hash/CHANGELOG.md index 482876365..f52da4163 100644 --- a/packages/hash/CHANGELOG.md +++ b/packages/hash/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/hash +## 0.9.1 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + ## 0.9.0 ### Minor Changes @@ -28,4 +34,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/hash/package.json b/packages/hash/package.json index 35a7e5602..c22396e49 100644 --- a/packages/hash/package.json +++ b/packages/hash/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/hash", - "version": "0.9.0", + "version": "0.9.1", "description": "A MurmurHash2 implementation", "main": "dist/emotion-hash.cjs.js", "module": "dist/emotion-hash.esm.js", @@ -22,6 +22,7 @@ "exports": { ".": { "module": "./dist/emotion-hash.esm.js", + "import": "./dist/emotion-hash.cjs.mjs", "default": "./dist/emotion-hash.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/is-prop-valid/CHANGELOG.md b/packages/is-prop-valid/CHANGELOG.md index 4520749f9..e4c7b6bab 100644 --- a/packages/is-prop-valid/CHANGELOG.md +++ b/packages/is-prop-valid/CHANGELOG.md @@ -1,5 +1,14 @@ # @emotion/is-prop-valid +## 1.2.1 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/memoize@0.8.1 + ## 1.2.0 ### Minor Changes @@ -110,7 +119,7 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool ## 0.8.1 diff --git a/packages/is-prop-valid/package.json b/packages/is-prop-valid/package.json index 0c2bf9b31..a38cfca82 100644 --- a/packages/is-prop-valid/package.json +++ b/packages/is-prop-valid/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/is-prop-valid", - "version": "1.2.0", + "version": "1.2.1", "description": "A function to check whether a prop is valid for HTML and SVG elements", "main": "dist/emotion-is-prop-valid.cjs.js", "module": "dist/emotion-is-prop-valid.esm.js", @@ -14,7 +14,7 @@ "access": "public" }, "dependencies": { - "@emotion/memoize": "^0.8.0" + "@emotion/memoize": "^0.8.1" }, "devDependencies": { "@definitelytyped/dtslint": "0.0.112", @@ -28,6 +28,7 @@ "exports": { ".": { "module": "./dist/emotion-is-prop-valid.esm.js", + "import": "./dist/emotion-is-prop-valid.cjs.mjs", "default": "./dist/emotion-is-prop-valid.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/jest/CHANGELOG.md b/packages/jest/CHANGELOG.md index e849cf9a3..6f2a3abbf 100644 --- a/packages/jest/CHANGELOG.md +++ b/packages/jest/CHANGELOG.md @@ -1,5 +1,25 @@ # @emotion/jest +## 11.11.0 + +### Patch Changes + +- [#3031](https://github.com/emotion-js/emotion/pull/3031) [`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5) Thanks [@Andarist](https://github.com/Andarist)! - Updated the underlying parser ([stylis](https://github.com/thysultan/stylis)) to 4.2.0 + +* [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +* Updated dependencies [[`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5), [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/css-prettifier@1.1.3 + +## 11.10.8 + +### Patch Changes + +- [#3025](https://github.com/emotion-js/emotion/pull/3025) [`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f) Thanks [@Andarist](https://github.com/Andarist)! - Updated the underlying parser ([stylis](https://github.com/thysultan/stylis)) to 4.1.4 + +- Updated dependencies [[`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f)]: + - @emotion/css-prettifier@1.1.2 + ## 11.10.5 ### Patch Changes @@ -107,7 +127,7 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - 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`. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - 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`. * [`ca599c5f`](https://github.com/emotion-js/emotion/commit/ca599c5f392b5b1f51430dc9d8b263ed54856401) [#1901](https://github.com/emotion-js/emotion/pull/1901) Thanks [@Andarist](https://github.com/Andarist)! - `test` & `print` are no longer exported as named exports. If you want to access the default serializer just access the default export. This means that `@emotion/jest`(previously `jest-emotion`) can't be used directly in the `snapshotSerializers` option, you should use `@emotion/jest/serializer` instead for this. @@ -121,7 +141,7 @@ ### Minor Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Improve support for Enzyme's shallow rendering with the addition of the `@emotion/jest/enzyme-serializer` snapshot serializer. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Improve support for Enzyme's shallow rendering with the addition of the `@emotion/jest/enzyme-serializer` snapshot serializer. * [`ca599c5f`](https://github.com/emotion-js/emotion/commit/ca599c5f392b5b1f51430dc9d8b263ed54856401) [#1901](https://github.com/emotion-js/emotion/pull/1901) Thanks [@Andarist](https://github.com/Andarist)! - Improved printing of nested at-rules. @@ -214,11 +234,11 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - 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`. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - 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`. ### Minor Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Improve support for Enzyme's shallow rendering with the addition of the @emotion/jest/enzyme snapshot serializer +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Improve support for Enzyme's shallow rendering with the addition of the @emotion/jest/enzyme snapshot serializer ### Patch Changes @@ -265,7 +285,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ### Patch Changes @@ -312,7 +332,7 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool ## 10.0.11 diff --git a/packages/jest/package.json b/packages/jest/package.json index d35c9d95d..13b38b01b 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -1,24 +1,28 @@ { "name": "@emotion/jest", - "version": "11.10.5", + "version": "11.11.0", "description": "Jest utilities for emotion", "main": "dist/emotion-jest.cjs.js", "module": "dist/emotion-jest.esm.js", "exports": { ".": { "module": "./dist/emotion-jest.esm.js", + "import": "./dist/emotion-jest.cjs.mjs", "default": "./dist/emotion-jest.cjs.js" }, "./enzyme": { "module": "./enzyme/dist/emotion-jest-enzyme.esm.js", + "import": "./enzyme/dist/emotion-jest-enzyme.cjs.mjs", "default": "./enzyme/dist/emotion-jest-enzyme.cjs.js" }, "./serializer": { "module": "./serializer/dist/emotion-jest-serializer.esm.js", + "import": "./serializer/dist/emotion-jest-serializer.cjs.mjs", "default": "./serializer/dist/emotion-jest-serializer.cjs.js" }, "./enzyme-serializer": { "module": "./enzyme-serializer/dist/emotion-jest-enzyme-serializer.esm.js", + "import": "./enzyme-serializer/dist/emotion-jest-enzyme-serializer.cjs.mjs", "default": "./enzyme-serializer/dist/emotion-jest-enzyme-serializer.cjs.js" }, "./package.json": "./package.json" @@ -37,10 +41,10 @@ }, "dependencies": { "@babel/runtime": "^7.18.3", - "@emotion/css-prettifier": "^1.1.1", + "@emotion/css-prettifier": "^1.1.3", "chalk": "^4.1.0", "specificity": "^0.4.1", - "stylis": "4.1.3" + "stylis": "4.2.0" }, "peerDependencies": { "@types/jest": "^26.0.14 || ^27.0.0 || ^28.0.0 || ^29.0.0", @@ -56,8 +60,8 @@ }, "devDependencies": { "@definitelytyped/dtslint": "0.0.112", - "@emotion/css": "11.10.5", - "@emotion/react": "11.10.5", + "@emotion/css": "11.11.0", + "@emotion/react": "11.11.0", "@types/jest": "^27.0.3", "enzyme-to-json": "^3.6.1", "pretty-format": "^22.4.3", diff --git a/packages/memoize/CHANGELOG.md b/packages/memoize/CHANGELOG.md index 9c4560723..29b153ab4 100644 --- a/packages/memoize/CHANGELOG.md +++ b/packages/memoize/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/memoize +## 0.8.1 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + ## 0.8.0 ### Minor Changes @@ -28,4 +34,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/memoize/package.json b/packages/memoize/package.json index fb0a3bfb0..d017e54bf 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/memoize", - "version": "0.8.0", + "version": "0.8.1", "description": "emotion's memoize utility", "main": "dist/emotion-memoize.cjs.js", "module": "dist/emotion-memoize.esm.js", @@ -25,6 +25,7 @@ "exports": { ".": { "module": "./dist/emotion-memoize.esm.js", + "import": "./dist/emotion-memoize.cjs.mjs", "default": "./dist/emotion-memoize.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/native/CHANGELOG.md b/packages/native/CHANGELOG.md index 154206595..70b4cf3de 100644 --- a/packages/native/CHANGELOG.md +++ b/packages/native/CHANGELOG.md @@ -1,5 +1,20 @@ # @emotion/native +## 11.11.0 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/primitives-core@11.11.0 + +## 11.10.6 + +### Patch Changes + +- [#2985](https://github.com/emotion-js/emotion/pull/2985) [`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc) Thanks [@emmatown](https://github.com/emmatown)! - Remove peer dependency on `@babel/core` + ## 11.10.0 ### Minor Changes @@ -29,7 +44,7 @@ * [`139ea336`](https://github.com/emotion-js/emotion/commit/139ea336c7f49a3246813238e388e164b80de4da) [#2060](https://github.com/emotion-js/emotion/pull/2060) Thanks [@efoken](https://github.com/efoken)! - `StyleSheet.create` is used now under the hood. This means that when used in combination with React Native Web atomic class names are applied on components instead of inline styles. -- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools * [`95ea2839`](https://github.com/emotion-js/emotion/commit/95ea2839890629748894b3942d26f608f203d3f9) [#2014](https://github.com/emotion-js/emotion/pull/2014) Thanks [@Andarist](https://github.com/Andarist)! - Updated `css-to-react-native` dependency to the 3.x version - it comes with some breaking changes listed [here](https://github.com/styled-components/css-to-react-native/releases/tag/v3.0.0). @@ -234,7 +249,7 @@ ### Major Changes -- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools ### Patch Changes @@ -254,7 +269,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ### Patch Changes @@ -284,7 +299,7 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool ## 10.0.11 diff --git a/packages/native/macro.d.mts b/packages/native/macro.d.mts new file mode 100644 index 000000000..493f1d7a0 --- /dev/null +++ b/packages/native/macro.d.mts @@ -0,0 +1,3 @@ +import styled from '@emotion/native' +export * from '@emotion/native' +export default styled diff --git a/packages/native/macro.d.ts b/packages/native/macro.d.ts new file mode 100644 index 000000000..493f1d7a0 --- /dev/null +++ b/packages/native/macro.d.ts @@ -0,0 +1,3 @@ +import styled from '@emotion/native' +export * from '@emotion/native' +export default styled diff --git a/packages/native/package.json b/packages/native/package.json index dc7b92c00..2b7f45129 100644 --- a/packages/native/package.json +++ b/packages/native/package.json @@ -1,16 +1,23 @@ { "name": "@emotion/native", - "version": "11.10.0", + "version": "11.11.0", "description": "Style and render React Native components using emotion", "main": "dist/emotion-native.cjs.js", "module": "dist/emotion-native.esm.js", "exports": { ".": { "module": "./dist/emotion-native.esm.js", + "import": "./dist/emotion-native.cjs.mjs", "default": "./dist/emotion-native.cjs.js" }, "./package.json": "./package.json", - "./macro": "./macro.js" + "./macro": { + "types": { + "import": "./macro.d.mts", + "default": "./macro.d.ts" + }, + "default": "./macro.js" + } }, "scripts": { "test:typescript": "dtslint types" @@ -19,11 +26,10 @@ "src", "dist", "types/*.d.ts", - "macro.js" + "macro.*" ], "types": "types/index.d.ts", "devDependencies": { - "@babel/core": "^7.18.5", "@definitelytyped/dtslint": "0.0.112", "@types/react-native": "^0.63.2", "react": "16.14.0", @@ -31,17 +37,11 @@ "typescript": "^4.5.5" }, "dependencies": { - "@emotion/primitives-core": "^11.10.0" + "@emotion/primitives-core": "^11.11.0" }, "peerDependencies": { - "@babel/core": "^7.0.0", "react-native": ">=0.14.0 <1" }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - } - }, "homepage": "https://emotion.sh", "license": "MIT", "repository": "https://github.com/emotion-js/emotion/tree/main/packages/native", @@ -62,7 +62,13 @@ "preconstruct": { "exports": { "extra": { - "./macro": "./macro.js" + "./macro": { + "types": { + "import": "./macro.d.mts", + "default": "./macro.d.ts" + }, + "default": "./macro.js" + } } } } diff --git a/packages/primitives-core/CHANGELOG.md b/packages/primitives-core/CHANGELOG.md index 14e338278..1f4c87690 100644 --- a/packages/primitives-core/CHANGELOG.md +++ b/packages/primitives-core/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/primitives-core +## 11.11.0 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + ## 11.10.0 ### Minor Changes @@ -14,7 +20,7 @@ * [`139ea336`](https://github.com/emotion-js/emotion/commit/139ea336c7f49a3246813238e388e164b80de4da) [#2060](https://github.com/emotion-js/emotion/pull/2060) Thanks [@efoken](https://github.com/efoken)! - `StyleSheet.create` is used now under the hood. This means that when used in combination with React Native Web atomic class names are applied on components instead of inline styles. -- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools * [`95ea2839`](https://github.com/emotion-js/emotion/commit/95ea2839890629748894b3942d26f608f203d3f9) [#2014](https://github.com/emotion-js/emotion/pull/2014) Thanks [@Andarist](https://github.com/Andarist)! - Updated `css-to-react-native` dependency to the 3.x version - it comes with some breaking changes listed [here](https://github.com/styled-components/css-to-react-native/releases/tag/v3.0.0). @@ -180,7 +186,7 @@ ### Major Changes -- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools ### Patch Changes @@ -198,7 +204,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ### Patch Changes @@ -226,4 +232,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/primitives-core/package.json b/packages/primitives-core/package.json index c8b6ce753..6ec11dd0b 100644 --- a/packages/primitives-core/package.json +++ b/packages/primitives-core/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/primitives-core", - "version": "11.10.0", + "version": "11.11.0", "description": "Shared utilities for emotion primitives and native", "main": "dist/emotion-primitives-core.cjs.js", "module": "dist/emotion-primitives-core.esm.js", @@ -17,7 +17,7 @@ "react": ">=16.8.0" }, "devDependencies": { - "@emotion/react": "11.10.5", + "@emotion/react": "11.11.0", "react": "16.14.0" }, "homepage": "https://emotion.sh", @@ -46,6 +46,7 @@ "browser": "./dist/emotion-primitives-core.browser.esm.js", "default": "./dist/emotion-primitives-core.esm.js" }, + "import": "./dist/emotion-primitives-core.cjs.mjs", "default": "./dist/emotion-primitives-core.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/primitives/CHANGELOG.md b/packages/primitives/CHANGELOG.md index 680574e56..750c5ab50 100644 --- a/packages/primitives/CHANGELOG.md +++ b/packages/primitives/CHANGELOG.md @@ -1,5 +1,25 @@ # @emotion/primitives +## 11.11.0 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5), [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/babel-plugin@11.11.0 + - @emotion/is-prop-valid@1.2.1 + - @emotion/primitives-core@11.11.0 + +## 11.10.6 + +### Patch Changes + +- [#2985](https://github.com/emotion-js/emotion/pull/2985) [`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc) Thanks [@emmatown](https://github.com/emmatown)! - Remove peer dependency on `@babel/core` + +- Updated dependencies [[`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc)]: + - @emotion/babel-plugin@11.10.6 + ## 11.10.0 ### Minor Changes @@ -21,7 +41,7 @@ * [`139ea336`](https://github.com/emotion-js/emotion/commit/139ea336c7f49a3246813238e388e164b80de4da) [#2060](https://github.com/emotion-js/emotion/pull/2060) Thanks [@efoken](https://github.com/efoken)! - `StyleSheet.create` is used now under the hood. This means that when used in combination with React Native Web atomic class names are applied on components instead of inline styles. -- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools * [`95ea2839`](https://github.com/emotion-js/emotion/commit/95ea2839890629748894b3942d26f608f203d3f9) [#2014](https://github.com/emotion-js/emotion/pull/2014) Thanks [@Andarist](https://github.com/Andarist)! - Updated `css-to-react-native` dependency to the 3.x version - it comes with some breaking changes listed [here](https://github.com/styled-components/css-to-react-native/releases/tag/v3.0.0). @@ -222,7 +242,7 @@ ### Major Changes -- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools ### Patch Changes @@ -243,7 +263,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ### Patch Changes @@ -314,7 +334,7 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool ## 10.0.13 diff --git a/packages/primitives/package.json b/packages/primitives/package.json index e20ce5924..7f58c1366 100644 --- a/packages/primitives/package.json +++ b/packages/primitives/package.json @@ -1,30 +1,23 @@ { "name": "@emotion/primitives", - "version": "11.10.0", + "version": "11.11.0", "main": "dist/emotion-primitives.cjs.js", "module": "dist/emotion-primitives.esm.js", "files": [ "src", "dist", - "macro.js" + "macro.*" ], "dependencies": { - "@emotion/babel-plugin": "^11.10.0", - "@emotion/is-prop-valid": "^1.2.0", - "@emotion/primitives-core": "^11.10.0" + "@emotion/babel-plugin": "^11.11.0", + "@emotion/is-prop-valid": "^1.2.1", + "@emotion/primitives-core": "^11.11.0" }, "peerDependencies": { - "@babel/core": "^7.0.0", "react": ">=16.8.0", "react-primitives": "^0.8.1" }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - } - }, "devDependencies": { - "@babel/core": "^7.18.5", "enzyme": "^3.11.0", "enzyme-adapter-react-16": "^1.15.5", "react": "16.14.0", @@ -56,6 +49,7 @@ "browser": "./dist/emotion-primitives.browser.esm.js", "default": "./dist/emotion-primitives.esm.js" }, + "import": "./dist/emotion-primitives.cjs.mjs", "default": "./dist/emotion-primitives.cjs.js" }, "./package.json": "./package.json", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index c11a24709..0744e7db3 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,42 @@ # @emotion/react +## 11.11.0 + +### Minor Changes + +- [#3031](https://github.com/emotion-js/emotion/pull/3031) [`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5) Thanks [@Andarist](https://github.com/Andarist)! - Added support for cascade `@layer`s by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)). + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5), [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247), [`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5)]: + - @emotion/babel-plugin@11.11.0 + - @emotion/cache@11.11.0 + - @emotion/serialize@1.1.2 + - @emotion/use-insertion-effect-with-fallbacks@1.0.1 + - @emotion/utils@1.2.1 + - @emotion/weak-memoize@0.3.1 + +## 11.10.8 + +### Patch Changes + +- [#3025](https://github.com/emotion-js/emotion/pull/3025) [`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f) Thanks [@Andarist](https://github.com/Andarist)! - Fixed a parsing issue with `&` within nested functions in declaration values by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)). + +- Updated dependencies [[`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f), [`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f)]: + - @emotion/babel-plugin@11.10.8 + - @emotion/cache@11.10.8 + +## 11.10.6 + +### Patch Changes + +- [#2985](https://github.com/emotion-js/emotion/pull/2985) [`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc) Thanks [@emmatown](https://github.com/emmatown)! - Remove peer dependency on `@babel/core` + +- Updated dependencies [[`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc)]: + - @emotion/babel-plugin@11.10.6 + ## 11.10.5 ### Patch Changes @@ -202,7 +239,7 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `@emotion/core` to `@emotion/react`. Please change any imports of `@emotion/core` to import `@emotion/react` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `@emotion/core` to `@emotion/react`. Please change any imports of `@emotion/core` to import `@emotion/react` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. * [`cbb8b796`](https://github.com/emotion-js/emotion/commit/cbb8b7965c2923cf1922d724de556374323bff61) [#1628](https://github.com/emotion-js/emotion/pull/1628) Thanks [@Andarist](https://github.com/Andarist)! - `emotion-theming` has been removed and all its exports were moved to `@emotion/react` package. Please import them like this `import { useTheme, ThemeProvider, withTheme } from '@emotion/react'` from now on. @@ -259,7 +296,7 @@ You can also use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin` to do this for you. -* [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +* [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools - [`9e998e37`](https://github.com/emotion-js/emotion/commit/9e998e3755c217027ad1be0af4c64644fe14c6bf) [#1817](https://github.com/emotion-js/emotion/pull/1817) Thanks [@Andarist](https://github.com/Andarist)! - The parser we use ([Stylis](https://github.com/thysultan/stylis.js)) got upgraded. It fixes some long-standing parsing edge cases while being smaller and faster 🚀 @@ -435,7 +472,7 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `@emotion/core` to `@emotion/react`. Please change any imports of `@emotion/core` to import `@emotion/react` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `@emotion/core` to `@emotion/react`. Please change any imports of `@emotion/core` to import `@emotion/react` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. ### Patch Changes @@ -520,7 +557,7 @@ ### Major Changes -- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools ### Patch Changes @@ -542,7 +579,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ### Patch Changes @@ -643,7 +680,7 @@ ### Patch Changes - [66cda641](https://github.com/emotion-js/emotion/commit/66cda64128631790b81e3c9df273a972358ea593) [#1478](https://github.com/emotion-js/emotion/pull/1478) Thanks [@Andarist](https://github.com/Andarist)! - Add warnings about using illegal escape sequences - - [10514a86](https://github.com/emotion-js/emotion/commit/10514a8635dcaa55b85c7bff90e2a9e14d1ba61f) [#1482](https://github.com/emotion-js/emotion/pull/1482) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Remove react native bundles in favour of different isBrowser detection + - [10514a86](https://github.com/emotion-js/emotion/commit/10514a8635dcaa55b85c7bff90e2a9e14d1ba61f) [#1482](https://github.com/emotion-js/emotion/pull/1482) Thanks [@emmatown](https://github.com/emmatown)! - Remove react native bundles in favour of different isBrowser detection - [66cda641](https://github.com/emotion-js/emotion/commit/66cda64128631790b81e3c9df273a972358ea593) [#1478](https://github.com/emotion-js/emotion/pull/1478) Thanks [@Andarist](https://github.com/Andarist)! - Update Babel dependencies ## 10.0.16 @@ -656,11 +693,11 @@ ### Patch Changes -- [188dc0e7](https://github.com/emotion-js/emotion/commit/188dc0e7) [#1443](https://github.com/emotion-js/emotion/pull/1443) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Extract styles rather than inline them in compat mode with the Global component +- [188dc0e7](https://github.com/emotion-js/emotion/commit/188dc0e7) [#1443](https://github.com/emotion-js/emotion/pull/1443) Thanks [@emmatown](https://github.com/emmatown)! - Extract styles rather than inline them in compat mode with the Global component - [4a3b18a2](https://github.com/emotion-js/emotion/commit/4a3b18a2) [#1451](https://github.com/emotion-js/emotion/pull/1451) Thanks [@Andarist](https://github.com/Andarist)! - Fixed issue with auto-labelling crashing on \$ at runtime ## 10.0.14 ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/react/__tests__/__snapshots__/warnings.js.snap b/packages/react/__tests__/__snapshots__/warnings.js.snap index 3a8debc49..eca2e7bdc 100644 --- a/packages/react/__tests__/__snapshots__/warnings.js.snap +++ b/packages/react/__tests__/__snapshots__/warnings.js.snap @@ -35,6 +35,16 @@ exports[`global with css prop 1`] = `null`; exports[`unsafe pseudo classes does not warn when using with flag: /* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */ does not warn when using the flag on a global rule 1`] = `null`; +exports[`unsafe pseudo classes does not warn when using with flag: /* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */ does not warn when using the flag on a rule that is defined in another one 1`] = ` +.emotion-0 div span:first-child { + border-bottom-left-radius: 0; +} + +<div + className="emotion-0" +/> +`; + exports[`unsafe pseudo classes does not warn when using with flag: /* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */ does not warn when using the flag on the rule that follows a declaration 1`] = ` .emotion-0 { color: hotpink; @@ -93,6 +103,16 @@ exports[`unsafe pseudo classes does not warn when using with flag: /* emotion-di exports[`unsafe pseudo classes does not warn when using with flag: /* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */ does warn when not using the flag on a global rule 1`] = `null`; +exports[`unsafe pseudo classes does not warn when using with flag: /* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */ does warn when not using the flag on a rule that is defined in another one 1`] = ` +.emotion-0 div span:first-child { + border-bottom-left-radius: 0; +} + +<div + className="emotion-0" +/> +`; + exports[`unsafe pseudo classes does not warn when using with flag: /* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */ does warn when not using the flag on the rule that follows a declaration 1`] = ` .emotion-0 { color: hotpink; diff --git a/packages/react/__tests__/warnings.js b/packages/react/__tests__/warnings.js index 782c6257a..5af566acc 100644 --- a/packages/react/__tests__/warnings.js +++ b/packages/react/__tests__/warnings.js @@ -343,6 +343,50 @@ describe('unsafe pseudo classes', () => { ).toMatchSnapshot() expect(console.error).not.toBeCalled() }) + + test('does warn when not using the flag on a rule that is defined in another one', () => { + expect( + renderer + .create( + <div + css={css` + div { + span:first-child { + border-bottom-left-radius: 0; + } + } + `} + /> + ) + .toJSON() + ).toMatchSnapshot() + expect((console.error: any).mock.calls).toMatchInlineSnapshot(` + [ + [ + "The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type".", + ], + ] + `) + }) + + test('does not warn when using the flag on a rule that is defined in another one', () => { + expect( + renderer + .create( + <div + css={css` + div { + span:first-child${ignoreSsrFlag} { + border-bottom-left-radius: 0; + } + } + `} + /> + ) + .toJSON() + ).toMatchSnapshot() + expect(console.error).not.toBeCalled() + }) }) }) diff --git a/packages/react/macro.d.mts b/packages/react/macro.d.mts new file mode 100644 index 000000000..5e20dfd3f --- /dev/null +++ b/packages/react/macro.d.mts @@ -0,0 +1 @@ +export * from './macro.js' diff --git a/packages/react/package.json b/packages/react/package.json index ae6760145..7c91a1520 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/react", - "version": "11.10.5", + "version": "11.11.0", "main": "dist/emotion-react.cjs.js", "module": "dist/emotion-react.esm.js", "browser": { @@ -13,6 +13,7 @@ "browser": "./dist/emotion-react.browser.esm.js", "default": "./dist/emotion-react.esm.js" }, + "import": "./dist/emotion-react.cjs.mjs", "default": "./dist/emotion-react.cjs.js" }, "./jsx-runtime": { @@ -21,6 +22,7 @@ "browser": "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js", "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js" }, + "import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs", "default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js" }, "./_isolated-hnrs": { @@ -29,6 +31,7 @@ "browser": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js", "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js" }, + "import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs", "default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js" }, "./jsx-dev-runtime": { @@ -37,11 +40,18 @@ "browser": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js", "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js" }, + "import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs", "default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js" }, "./package.json": "./package.json", "./types/css-prop": "./types/css-prop.d.ts", - "./macro": "./macro.js" + "./macro": { + "types": { + "import": "./macro.d.mts", + "default": "./macro.d.ts" + }, + "default": "./macro.js" + } }, "types": "types/index.d.ts", "files": [ @@ -51,9 +61,7 @@ "jsx-dev-runtime", "_isolated-hnrs", "types/*.d.ts", - "macro.js", - "macro.d.ts", - "macro.js.flow" + "macro.*" ], "sideEffects": false, "author": "Emotion Contributors", @@ -63,33 +71,28 @@ }, "dependencies": { "@babel/runtime": "^7.18.3", - "@emotion/babel-plugin": "^11.10.5", - "@emotion/cache": "^11.10.5", - "@emotion/serialize": "^1.1.1", - "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", - "@emotion/utils": "^1.2.0", - "@emotion/weak-memoize": "^0.3.0", + "@emotion/babel-plugin": "^11.11.0", + "@emotion/cache": "^11.11.0", + "@emotion/serialize": "^1.1.2", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", + "@emotion/utils": "^1.2.1", + "@emotion/weak-memoize": "^0.3.1", "hoist-non-react-statics": "^3.3.1" }, "peerDependencies": { - "@babel/core": "^7.0.0", "react": ">=16.8.0" }, "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, "@types/react": { "optional": true } }, "devDependencies": { - "@babel/core": "^7.18.5", "@definitelytyped/dtslint": "0.0.112", - "@emotion/css": "11.10.5", - "@emotion/css-prettifier": "1.1.1", - "@emotion/server": "11.10.0", - "@emotion/styled": "11.10.5", + "@emotion/css": "11.11.0", + "@emotion/css-prettifier": "1.1.3", + "@emotion/server": "11.11.0", + "@emotion/styled": "11.11.0", "html-tag-names": "^1.1.2", "react": "16.14.0", "svg-tag-names": "^1.1.1", @@ -115,7 +118,13 @@ ], "extra": { "./types/css-prop": "./types/css-prop.d.ts", - "./macro": "./macro.js" + "./macro": { + "types": { + "import": "./macro.d.mts", + "default": "./macro.d.ts" + }, + "default": "./macro.js" + } } } } diff --git a/packages/serialize/CHANGELOG.md b/packages/serialize/CHANGELOG.md index 54a13e0d6..9148d4996 100644 --- a/packages/serialize/CHANGELOG.md +++ b/packages/serialize/CHANGELOG.md @@ -1,5 +1,17 @@ # @emotion/serialize +## 1.1.2 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247), [`e6e5b3d7`](https://github.com/emotion-js/emotion/commit/e6e5b3d71ade7b986ab364fc0cb770e7eda16049)]: + - @emotion/hash@0.9.1 + - @emotion/memoize@0.8.1 + - @emotion/unitless@0.8.1 + - @emotion/utils@1.2.1 + ## 1.1.1 ### Patch Changes @@ -208,7 +220,7 @@ ### Patch Changes -- [`3b7e2f2e`](https://github.com/emotion-js/emotion/commit/3b7e2f2e27499b7263341bb83cfc20c8fc51d237) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Fix flow errors +- [`3b7e2f2e`](https://github.com/emotion-js/emotion/commit/3b7e2f2e27499b7263341bb83cfc20c8fc51d237) Thanks [@emmatown](https://github.com/emmatown)! - Fix flow errors ## 0.11.12 @@ -242,7 +254,7 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool ## 0.11.7 diff --git a/packages/serialize/package.json b/packages/serialize/package.json index b20e0f2a0..7755d25c1 100644 --- a/packages/serialize/package.json +++ b/packages/serialize/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/serialize", - "version": "1.1.1", + "version": "1.1.2", "description": "serialization utils for emotion", "main": "dist/emotion-serialize.cjs.js", "module": "dist/emotion-serialize.esm.js", @@ -14,10 +14,10 @@ "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/hash": "^0.9.0", - "@emotion/memoize": "^0.8.0", - "@emotion/unitless": "^0.8.0", - "@emotion/utils": "^1.2.0", + "@emotion/hash": "^0.9.1", + "@emotion/memoize": "^0.8.1", + "@emotion/unitless": "^0.8.1", + "@emotion/utils": "^1.2.1", "csstype": "^3.0.2" }, "devDependencies": { @@ -38,6 +38,7 @@ "browser": "./dist/emotion-serialize.browser.esm.js", "default": "./dist/emotion-serialize.esm.js" }, + "import": "./dist/emotion-serialize.cjs.mjs", "default": "./dist/emotion-serialize.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/server/CHANGELOG.md b/packages/server/CHANGELOG.md index 63b78fa79..68b630067 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,14 @@ # @emotion/server +## 11.11.0 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/utils@1.2.1 + ## 11.10.0 ### Minor Changes @@ -23,9 +32,9 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `emotion-server` to `@emotion/server`. Please change any imports of `emotion-server` to import `@emotion/server` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `emotion-server` to `@emotion/server`. Please change any imports of `emotion-server` to import `@emotion/server` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. -* [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Move `create-emotion-server` to `@emotion/server/create-instance`. Please change any imports of `create-emotion-server` to import `@emotion/server/create-instance` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +* [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Move `create-emotion-server` to `@emotion/server/create-instance`. Please change any imports of `create-emotion-server` to import `@emotion/server/create-instance` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. * [`105de5c8`](https://github.com/emotion-js/emotion/commit/105de5c8752be0983c000e1e26462dc8fcf0708d) [#1572](https://github.com/emotion-js/emotion/pull/1572) Thanks [@Andarist](https://github.com/Andarist)! - `[data-emotion]` attribute on SSRed styled has changed. You should never rely on it though. @@ -107,9 +116,9 @@ ### Major Changes -- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `emotion-server` to `@emotion/server`. Please change any imports of `emotion-server` to import `@emotion/server` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Rename `emotion-server` to `@emotion/server`. Please change any imports of `emotion-server` to import `@emotion/server` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. -* [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Move `create-emotion-server` to `@emotion/server/create-instance`. Please change any imports of `create-emotion-server` to import `@emotion/server/create-instance` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. +* [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1675](https://github.com/emotion-js/emotion/pull/1675) Thanks [@emmatown](https://github.com/emmatown)! - Move `create-emotion-server` to `@emotion/server/create-instance`. Please change any imports of `create-emotion-server` to import `@emotion/server/create-instance` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`. ### Patch Changes @@ -122,7 +131,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ### Patch Changes @@ -151,4 +160,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/server/package.json b/packages/server/package.json index 0dbd82498..2bf0c984b 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/server", - "version": "11.10.0", + "version": "11.11.0", "description": "Extract and inline critical css with emotion for server side rendering.", "main": "dist/emotion-server.cjs.js", "module": "dist/emotion-server.esm.js", @@ -15,7 +15,7 @@ "test:typescript": "dtslint types" }, "dependencies": { - "@emotion/utils": "^1.2.0", + "@emotion/utils": "^1.2.1", "html-tokenize": "^2.0.0", "multipipe": "^1.0.2", "through": "^2.3.8" @@ -30,9 +30,9 @@ }, "devDependencies": { "@definitelytyped/dtslint": "0.0.112", - "@emotion/babel-plugin": "11.10.5", - "@emotion/css": "11.10.5", - "@emotion/css-prettifier": "1.1.1", + "@emotion/babel-plugin": "11.11.0", + "@emotion/css": "11.11.0", + "@emotion/css-prettifier": "1.1.3", "@types/node": "^12.20.37", "typescript": "^4.5.5" }, @@ -61,6 +61,7 @@ "browser": "./dist/emotion-server.browser.esm.js", "default": "./dist/emotion-server.esm.js" }, + "import": "./dist/emotion-server.cjs.mjs", "default": "./dist/emotion-server.cjs.js" }, "./create-instance": { @@ -68,6 +69,7 @@ "browser": "./create-instance/dist/emotion-server-create-instance.browser.esm.js", "default": "./create-instance/dist/emotion-server-create-instance.esm.js" }, + "import": "./create-instance/dist/emotion-server-create-instance.cjs.mjs", "default": "./create-instance/dist/emotion-server-create-instance.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/sheet/CHANGELOG.md b/packages/sheet/CHANGELOG.md index 546bff42c..8c3e1d4d2 100644 --- a/packages/sheet/CHANGELOG.md +++ b/packages/sheet/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/sheet +## 1.2.2 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + ## 1.2.1 ### Patch Changes @@ -132,4 +138,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/sheet/package.json b/packages/sheet/package.json index 1bc5159c9..738ac6945 100644 --- a/packages/sheet/package.json +++ b/packages/sheet/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/sheet", - "version": "1.2.1", + "version": "1.2.2", "description": "emotion's stylesheet", "main": "dist/emotion-sheet.cjs.js", "module": "dist/emotion-sheet.esm.js", @@ -13,6 +13,7 @@ "browser": "./dist/emotion-sheet.browser.esm.js", "default": "./dist/emotion-sheet.esm.js" }, + "import": "./dist/emotion-sheet.cjs.mjs", "default": "./dist/emotion-sheet.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/styled/CHANGELOG.md b/packages/styled/CHANGELOG.md index 48860b9bf..d74650564 100644 --- a/packages/styled/CHANGELOG.md +++ b/packages/styled/CHANGELOG.md @@ -1,5 +1,40 @@ # @emotion/styled +## 11.11.0 + +### Minor Changes + +- [#3031](https://github.com/emotion-js/emotion/pull/3031) [`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5) Thanks [@Andarist](https://github.com/Andarist)! - Added support for cascade `@layer`s by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)). + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +- Updated dependencies [[`336f3d50`](https://github.com/emotion-js/emotion/commit/336f3d50fd684ccbb160fff0c63d5560936f1ee5), [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247)]: + - @emotion/babel-plugin@11.11.0 + - @emotion/is-prop-valid@1.2.1 + - @emotion/serialize@1.1.2 + - @emotion/use-insertion-effect-with-fallbacks@1.0.1 + - @emotion/utils@1.2.1 + +## 11.10.8 + +### Patch Changes + +- [#3025](https://github.com/emotion-js/emotion/pull/3025) [`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f) Thanks [@Andarist](https://github.com/Andarist)! - Fixed a parsing issue with `&` within nested functions in declaration values by updating the underlying parser ([stylis](https://github.com/thysultan/stylis)). + +- Updated dependencies [[`6bd13425`](https://github.com/emotion-js/emotion/commit/6bd13425a2b413150c81e63fad1105d7968b5e6f)]: + - @emotion/babel-plugin@11.10.8 + +## 11.10.6 + +### Patch Changes + +- [#2985](https://github.com/emotion-js/emotion/pull/2985) [`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc) Thanks [@emmatown](https://github.com/emmatown)! - Remove peer dependency on `@babel/core` + +- Updated dependencies [[`4e172c2a`](https://github.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc)]: + - @emotion/babel-plugin@11.10.6 + ## 11.10.5 ### Patch Changes @@ -103,9 +138,9 @@ ### Major Changes -- [`f9feab1a`](https://github.com/emotion-js/emotion/commit/f9feab1a5d1ca88e53c3f7a063be5d5871cc93e8) [#1575](https://github.com/emotion-js/emotion/pull/1575) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Removed support for `@emotion/styled-base` package. It has been moved to `@emotion/styled` and is available as `@emotion/styled/base`. This simplifies how the regular and base versions relate to each other and eliminates problems with stricter package managers when `@emotion/styled-base` was not installed explicitly by a user. +- [`f9feab1a`](https://github.com/emotion-js/emotion/commit/f9feab1a5d1ca88e53c3f7a063be5d5871cc93e8) [#1575](https://github.com/emotion-js/emotion/pull/1575) Thanks [@emmatown](https://github.com/emmatown)! - Removed support for `@emotion/styled-base` package. It has been moved to `@emotion/styled` and is available as `@emotion/styled/base`. This simplifies how the regular and base versions relate to each other and eliminates problems with stricter package managers when `@emotion/styled-base` was not installed explicitly by a user. -* [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Remove support for deprecated `innerRef` prop +* [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Remove support for deprecated `innerRef` prop * [`a72e6dc`](https://github.com/emotion-js/emotion/commit/a72e6dc0f326b7d3d6067698d433018ee8c4cbf1) [#1501](https://github.com/emotion-js/emotion/pull/1501) Thanks [@JakeGinnivan](https://github.com/JakeGinnivan)! - TypeScript types have been significantly restructured. These changes: @@ -133,7 +168,7 @@ - [`105de5c8`](https://github.com/emotion-js/emotion/commit/105de5c8752be0983c000e1e26462dc8fcf0708d) [#1572](https://github.com/emotion-js/emotion/pull/1572) Thanks [@Andarist](https://github.com/Andarist)! - `[data-emotion]` attribute on SSRed styled has changed. You should never rely on it though. -* [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +* [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools - [`9e998e37`](https://github.com/emotion-js/emotion/commit/9e998e3755c217027ad1be0af4c64644fe14c6bf) [#1817](https://github.com/emotion-js/emotion/pull/1817) Thanks [@Andarist](https://github.com/Andarist)! - The parser we use ([Stylis](https://github.com/thysultan/stylis.js)) got upgraded. It fixes some long-standing parsing edge cases while being smaller and faster 🚀 @@ -397,7 +432,7 @@ ### Major Changes -- [`f9feab1a`](https://github.com/emotion-js/emotion/commit/f9feab1a5d1ca88e53c3f7a063be5d5871cc93e8) [#1575](https://github.com/emotion-js/emotion/pull/1575) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Removed support for `@emotion/styled-base` package. It has been moved to `@emotion/styled` and is available as `@emotion/styled/base`. This simplifies how the regular and base versions relate to each other and eliminates problems with stricter package managers when `@emotion/styled-base` was not installed explicitly by a user. +- [`f9feab1a`](https://github.com/emotion-js/emotion/commit/f9feab1a5d1ca88e53c3f7a063be5d5871cc93e8) [#1575](https://github.com/emotion-js/emotion/pull/1575) Thanks [@emmatown](https://github.com/emmatown)! - Removed support for `@emotion/styled-base` package. It has been moved to `@emotion/styled` and is available as `@emotion/styled/base`. This simplifies how the regular and base versions relate to each other and eliminates problems with stricter package managers when `@emotion/styled-base` was not installed explicitly by a user. ### Patch Changes @@ -411,9 +446,9 @@ ### Major Changes -- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Remove support for deprecated `innerRef` prop +- [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Remove support for deprecated `innerRef` prop -* [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Use hooks internally for improved bundle size and a better tree in React DevTools +* [`79036056`](https://github.com/emotion-js/emotion/commit/79036056808eefc81a77225254f7c25c2ff9d967) [#967](https://github.com/emotion-js/emotion/pull/967) Thanks [@emmatown](https://github.com/emmatown)! - Use hooks internally for improved bundle size and a better tree in React DevTools ### Patch Changes @@ -469,7 +504,7 @@ ### Major Changes -- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number +- [`302bdba1`](https://github.com/emotion-js/emotion/commit/302bdba1a6b793484c09edeb668815c5e31ea555) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@emmatown](https://github.com/emmatown)! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number ### Patch Changes @@ -552,7 +587,7 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool ## 10.0.12 diff --git a/packages/styled/macro.d.mts b/packages/styled/macro.d.mts new file mode 100644 index 000000000..e5afadb3b --- /dev/null +++ b/packages/styled/macro.d.mts @@ -0,0 +1,3 @@ +import styled from '@emotion/styled' +export * from '@emotion/styled' +export default styled diff --git a/packages/styled/macro.d.ts b/packages/styled/macro.d.ts index 1c59a2e04..e5afadb3b 100644 --- a/packages/styled/macro.d.ts +++ b/packages/styled/macro.d.ts @@ -1,5 +1,3 @@ -declare module '@emotion/styled/macro' { - import styled from '@emotion/styled' - export * from '@emotion/styled' - export default styled -} +import styled from '@emotion/styled' +export * from '@emotion/styled' +export default styled diff --git a/packages/styled/package.json b/packages/styled/package.json index ab780a673..c0ce92018 100644 --- a/packages/styled/package.json +++ b/packages/styled/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/styled", - "version": "11.10.5", + "version": "11.11.0", "description": "styled API for emotion", "main": "dist/emotion-styled.cjs.js", "module": "dist/emotion-styled.esm.js", @@ -12,29 +12,24 @@ }, "dependencies": { "@babel/runtime": "^7.18.3", - "@emotion/babel-plugin": "^11.10.5", - "@emotion/is-prop-valid": "^1.2.0", - "@emotion/serialize": "^1.1.1", - "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", - "@emotion/utils": "^1.2.0" + "@emotion/babel-plugin": "^11.11.0", + "@emotion/is-prop-valid": "^1.2.1", + "@emotion/serialize": "^1.1.2", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.1", + "@emotion/utils": "^1.2.1" }, "peerDependencies": { - "@babel/core": "^7.0.0", "@emotion/react": "^11.0.0-rc.0", "react": ">=16.8.0" }, "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, "@types/react": { "optional": true } }, "devDependencies": { - "@babel/core": "^7.18.5", "@definitelytyped/dtslint": "0.0.112", - "@emotion/react": "11.10.5", + "@emotion/react": "11.11.0", "react": "16.14.0", "typescript": "^4.5.5" }, @@ -46,9 +41,7 @@ "dist", "base", "types/*.d.ts", - "macro.d.ts", - "macro.js", - "macro.js.flow" + "macro.*" ], "umd:main": "dist/emotion-styled.umd.min.js", "browser": { @@ -61,6 +54,7 @@ "browser": "./base/dist/emotion-styled-base.browser.esm.js", "default": "./base/dist/emotion-styled-base.esm.js" }, + "import": "./base/dist/emotion-styled-base.cjs.mjs", "default": "./base/dist/emotion-styled-base.cjs.js" }, ".": { @@ -69,10 +63,17 @@ "browser": "./dist/emotion-styled.browser.esm.js", "default": "./dist/emotion-styled.esm.js" }, + "import": "./dist/emotion-styled.cjs.mjs", "default": "./dist/emotion-styled.cjs.js" }, "./package.json": "./package.json", - "./macro": "./macro.js" + "./macro": { + "types": { + "import": "./macro.d.mts", + "default": "./macro.d.ts" + }, + "default": "./macro.js" + } }, "preconstruct": { "umdName": "emotionStyled", @@ -86,7 +87,13 @@ "worker" ], "extra": { - "./macro": "./macro.js" + "./macro": { + "types": { + "import": "./macro.d.mts", + "default": "./macro.d.ts" + }, + "default": "./macro.js" + } } } } diff --git a/packages/unitless/CHANGELOG.md b/packages/unitless/CHANGELOG.md index dc4c88677..834068c10 100644 --- a/packages/unitless/CHANGELOG.md +++ b/packages/unitless/CHANGELOG.md @@ -1,5 +1,13 @@ # @emotion/unitless +## 0.8.1 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + +* [#3012](https://github.com/emotion-js/emotion/pull/3012) [`e6e5b3d7`](https://github.com/emotion-js/emotion/commit/e6e5b3d71ade7b986ab364fc0cb770e7eda16049) Thanks [@sgrishchenko](https://github.com/sgrishchenko)! - Add `aspectRatio` as a unitless property + ## 0.8.0 ### Minor Changes @@ -16,4 +24,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/unitless/package.json b/packages/unitless/package.json index 8cbeb7581..30da6a1d0 100644 --- a/packages/unitless/package.json +++ b/packages/unitless/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/unitless", - "version": "0.8.0", + "version": "0.8.1", "description": "An object of css properties that don't accept values with units", "main": "dist/emotion-unitless.cjs.js", "module": "dist/emotion-unitless.esm.js", @@ -16,6 +16,7 @@ "exports": { ".": { "module": "./dist/emotion-unitless.esm.js", + "import": "./dist/emotion-unitless.cjs.mjs", "default": "./dist/emotion-unitless.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/unitless/src/index.js b/packages/unitless/src/index.js index fe8ae2653..66bc957a5 100644 --- a/packages/unitless/src/index.js +++ b/packages/unitless/src/index.js @@ -2,6 +2,7 @@ let unitlessKeys: { [key: string]: 1 } = { animationIterationCount: 1, + aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, diff --git a/packages/use-insertion-effect-with-fallbacks/CHANGELOG.md b/packages/use-insertion-effect-with-fallbacks/CHANGELOG.md index 00aa258b3..3e832f0bf 100644 --- a/packages/use-insertion-effect-with-fallbacks/CHANGELOG.md +++ b/packages/use-insertion-effect-with-fallbacks/CHANGELOG.md @@ -1,8 +1,13 @@ # @emotion/use-insertion-effect-with-fallbacks -## 1.0.0 -### Major Changes +## 1.0.1 + +### Patch Changes +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM +## 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`. diff --git a/packages/use-insertion-effect-with-fallbacks/package.json b/packages/use-insertion-effect-with-fallbacks/package.json index e33bf5001..2c387ea02 100644 --- a/packages/use-insertion-effect-with-fallbacks/package.json +++ b/packages/use-insertion-effect-with-fallbacks/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/use-insertion-effect-with-fallbacks", - "version": "1.0.0", + "version": "1.0.1", "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", @@ -29,6 +29,7 @@ "browser": "./dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js", "default": "./dist/emotion-use-insertion-effect-with-fallbacks.esm.js" }, + "import": "./dist/emotion-use-insertion-effect-with-fallbacks.cjs.mjs", "default": "./dist/emotion-use-insertion-effect-with-fallbacks.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index c7641a76c..67b85138a 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/utils +## 1.2.1 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + ## 1.2.0 ### Minor Changes @@ -52,4 +58,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/utils/package.json b/packages/utils/package.json index 8fccb89aa..880221abd 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/utils", - "version": "1.2.0", + "version": "1.2.1", "description": "internal utils for emotion", "main": "dist/emotion-utils.cjs.js", "module": "dist/emotion-utils.esm.js", @@ -14,6 +14,7 @@ "browser": "./dist/emotion-utils.browser.esm.js", "default": "./dist/emotion-utils.esm.js" }, + "import": "./dist/emotion-utils.cjs.mjs", "default": "./dist/emotion-utils.cjs.js" }, "./package.json": "./package.json" diff --git a/packages/weak-memoize/CHANGELOG.md b/packages/weak-memoize/CHANGELOG.md index 89e127536..e4c0b9b77 100644 --- a/packages/weak-memoize/CHANGELOG.md +++ b/packages/weak-memoize/CHANGELOG.md @@ -1,5 +1,11 @@ # @emotion/weak-memoize +## 0.3.1 + +### Patch Changes + +- [#3029](https://github.com/emotion-js/emotion/pull/3029) [`eed5e6cf`](https://github.com/emotion-js/emotion/commit/eed5e6cf00f94f3011b93825ccce43cb2270c247) Thanks [@Andarist](https://github.com/Andarist)! - Fixed importing in Node ESM + ## 0.3.0 ### Minor Changes @@ -22,4 +28,4 @@ ### Patch Changes -- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Update build tool +- [c0eb604d](https://github.com/emotion-js/emotion/commit/c0eb604d) [#1419](https://github.com/emotion-js/emotion/pull/1419) Thanks [@emmatown](https://github.com/emmatown)! - Update build tool diff --git a/packages/weak-memoize/package.json b/packages/weak-memoize/package.json index 5d57aaa95..4d384abcc 100644 --- a/packages/weak-memoize/package.json +++ b/packages/weak-memoize/package.json @@ -1,6 +1,6 @@ { "name": "@emotion/weak-memoize", - "version": "0.3.0", + "version": "0.3.1", "description": "A memoization function that uses a WeakMap", "main": "dist/emotion-weak-memoize.cjs.js", "module": "dist/emotion-weak-memoize.esm.js", @@ -25,6 +25,7 @@ "exports": { ".": { "module": "./dist/emotion-weak-memoize.esm.js", + "import": "./dist/emotion-weak-memoize.cjs.mjs", "default": "./dist/emotion-weak-memoize.cjs.js" }, "./package.json": "./package.json" diff --git a/yarn.lock b/yarn.lock index 8f3d820e4..5ad6017b5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2333,7 +2333,7 @@ __metadata: languageName: node linkType: hard -"@emotion/babel-plugin-jsx-pragmatic@^0.2.0, @emotion/babel-plugin-jsx-pragmatic@workspace:packages/babel-plugin-jsx-pragmatic": +"@emotion/babel-plugin-jsx-pragmatic@^0.2.1, @emotion/babel-plugin-jsx-pragmatic@workspace:packages/babel-plugin-jsx-pragmatic": version: 0.0.0-use.local resolution: "@emotion/babel-plugin-jsx-pragmatic@workspace:packages/babel-plugin-jsx-pragmatic" dependencies: @@ -2344,26 +2344,23 @@ __metadata: languageName: unknown linkType: soft -"@emotion/babel-plugin@11.10.5, @emotion/babel-plugin@^11.0.0, @emotion/babel-plugin@^11.10.0, @emotion/babel-plugin@^11.10.5, @emotion/babel-plugin@workspace:packages/babel-plugin": +"@emotion/babel-plugin@11.11.0, @emotion/babel-plugin@^11.0.0, @emotion/babel-plugin@^11.11.0, @emotion/babel-plugin@workspace:packages/babel-plugin": version: 0.0.0-use.local resolution: "@emotion/babel-plugin@workspace:packages/babel-plugin" dependencies: "@babel/core": ^7.18.5 "@babel/helper-module-imports": ^7.16.7 - "@babel/plugin-syntax-jsx": ^7.17.12 "@babel/runtime": ^7.18.3 - "@emotion/hash": ^0.9.0 - "@emotion/memoize": ^0.8.0 - "@emotion/serialize": ^1.1.1 + "@emotion/hash": ^0.9.1 + "@emotion/memoize": ^0.8.1 + "@emotion/serialize": ^1.1.2 babel-check-duplicated-nodes: ^1.0.0 babel-plugin-macros: ^3.1.0 convert-source-map: ^1.5.0 escape-string-regexp: ^4.0.0 find-root: ^1.1.0 source-map: ^0.5.7 - stylis: 4.1.3 - peerDependencies: - "@babel/core": ^7.0.0 + stylis: 4.2.0 languageName: unknown linkType: soft @@ -2374,54 +2371,48 @@ __metadata: "@babel/core": ^7.18.5 "@babel/plugin-transform-react-jsx": ^7.17.12 "@babel/runtime": ^7.18.3 - "@emotion/babel-plugin": ^11.10.0 - "@emotion/babel-plugin-jsx-pragmatic": ^0.2.0 + "@emotion/babel-plugin": ^11.11.0 + "@emotion/babel-plugin-jsx-pragmatic": ^0.2.1 peerDependencies: "@babel/core": ^7.0.0 languageName: unknown linkType: soft -"@emotion/cache@^11.10.5, @emotion/cache@workspace:packages/cache": +"@emotion/cache@^11.11.0, @emotion/cache@workspace:packages/cache": version: 0.0.0-use.local resolution: "@emotion/cache@workspace:packages/cache" dependencies: "@definitelytyped/dtslint": 0.0.112 "@emotion/hash": "*" - "@emotion/memoize": ^0.8.0 - "@emotion/sheet": ^1.2.1 - "@emotion/utils": ^1.2.0 - "@emotion/weak-memoize": ^0.3.0 - stylis: 4.1.3 + "@emotion/memoize": ^0.8.1 + "@emotion/sheet": ^1.2.2 + "@emotion/utils": ^1.2.1 + "@emotion/weak-memoize": ^0.3.1 + stylis: 4.2.0 typescript: ^4.5.5 languageName: unknown linkType: soft -"@emotion/css-prettifier@1.1.1, @emotion/css-prettifier@^1.1.1, @emotion/css-prettifier@workspace:packages/css-prettifier": +"@emotion/css-prettifier@1.1.3, @emotion/css-prettifier@^1.1.3, @emotion/css-prettifier@workspace:packages/css-prettifier": version: 0.0.0-use.local resolution: "@emotion/css-prettifier@workspace:packages/css-prettifier" dependencies: - "@emotion/memoize": ^0.8.0 - stylis: 4.1.3 + "@emotion/memoize": ^0.8.1 + stylis: 4.2.0 languageName: unknown linkType: soft -"@emotion/css@11.10.5, @emotion/css@workspace:packages/css": +"@emotion/css@11.11.0, @emotion/css@workspace:packages/css": version: 0.0.0-use.local resolution: "@emotion/css@workspace:packages/css" dependencies: - "@babel/core": ^7.18.5 "@definitelytyped/dtslint": 0.0.112 - "@emotion/babel-plugin": ^11.10.5 - "@emotion/cache": ^11.10.5 - "@emotion/serialize": ^1.1.1 - "@emotion/sheet": ^1.2.1 - "@emotion/utils": ^1.2.0 + "@emotion/babel-plugin": ^11.11.0 + "@emotion/cache": ^11.11.0 + "@emotion/serialize": ^1.1.2 + "@emotion/sheet": ^1.2.2 + "@emotion/utils": ^1.2.1 typescript: ^4.5.5 - peerDependencies: - "@babel/core": ^7.0.0 - peerDependenciesMeta: - "@babel/core": - optional: true languageName: unknown linkType: soft @@ -2435,7 +2426,7 @@ __metadata: languageName: unknown linkType: soft -"@emotion/hash@*, @emotion/hash@^0.9.0, @emotion/hash@workspace:packages/hash": +"@emotion/hash@*, @emotion/hash@^0.9.1, @emotion/hash@workspace:packages/hash": version: 0.0.0-use.local resolution: "@emotion/hash@workspace:packages/hash" dependencies: @@ -2444,12 +2435,12 @@ __metadata: languageName: unknown linkType: soft -"@emotion/is-prop-valid@^1.2.0, @emotion/is-prop-valid@workspace:packages/is-prop-valid": +"@emotion/is-prop-valid@^1.2.1, @emotion/is-prop-valid@workspace:packages/is-prop-valid": version: 0.0.0-use.local resolution: "@emotion/is-prop-valid@workspace:packages/is-prop-valid" dependencies: "@definitelytyped/dtslint": 0.0.112 - "@emotion/memoize": ^0.8.0 + "@emotion/memoize": ^0.8.1 typescript: ^4.5.5 languageName: unknown linkType: soft @@ -2469,9 +2460,9 @@ __metadata: dependencies: "@babel/runtime": ^7.18.3 "@definitelytyped/dtslint": 0.0.112 - "@emotion/css": 11.10.5 - "@emotion/css-prettifier": ^1.1.1 - "@emotion/react": 11.10.5 + "@emotion/css": 11.11.0 + "@emotion/css-prettifier": ^1.1.3 + "@emotion/react": 11.11.0 "@types/jest": ^27.0.3 chalk: ^4.1.0 enzyme-to-json: ^3.6.1 @@ -2479,7 +2470,7 @@ __metadata: react: 16.14.0 react-dom: 16.14.0 specificity: ^0.4.1 - stylis: 4.1.3 + stylis: 4.2.0 typescript: ^4.5.5 peerDependencies: "@types/jest": ^26.0.14 || ^27.0.0 || ^28.0.0 || ^29.0.0 @@ -2492,7 +2483,7 @@ __metadata: languageName: unknown linkType: soft -"@emotion/memoize@^0.8.0, @emotion/memoize@workspace:packages/memoize": +"@emotion/memoize@^0.8.1, @emotion/memoize@workspace:packages/memoize": version: 0.0.0-use.local resolution: "@emotion/memoize@workspace:packages/memoize" dependencies: @@ -2519,27 +2510,22 @@ __metadata: version: 0.0.0-use.local resolution: "@emotion/native@workspace:packages/native" dependencies: - "@babel/core": ^7.18.5 "@definitelytyped/dtslint": 0.0.112 - "@emotion/primitives-core": ^11.10.0 + "@emotion/primitives-core": ^11.11.0 "@types/react-native": ^0.63.2 react: 16.14.0 react-native: ^0.63.2 typescript: ^4.5.5 peerDependencies: - "@babel/core": ^7.0.0 react-native: ">=0.14.0 <1" - peerDependenciesMeta: - "@babel/core": - optional: true languageName: unknown linkType: soft -"@emotion/primitives-core@^11.10.0, @emotion/primitives-core@workspace:packages/primitives-core": +"@emotion/primitives-core@^11.11.0, @emotion/primitives-core@workspace:packages/primitives-core": version: 0.0.0-use.local resolution: "@emotion/primitives-core@workspace:packages/primitives-core" dependencies: - "@emotion/react": 11.10.5 + "@emotion/react": 11.11.0 css-to-react-native: ^3.0.0 react: 16.14.0 peerDependencies: @@ -2552,80 +2538,71 @@ __metadata: version: 0.0.0-use.local resolution: "@emotion/primitives@workspace:packages/primitives" dependencies: - "@babel/core": ^7.18.5 - "@emotion/babel-plugin": ^11.10.0 - "@emotion/is-prop-valid": ^1.2.0 - "@emotion/primitives-core": ^11.10.0 + "@emotion/babel-plugin": ^11.11.0 + "@emotion/is-prop-valid": ^1.2.1 + "@emotion/primitives-core": ^11.11.0 enzyme: ^3.11.0 enzyme-adapter-react-16: ^1.15.5 react: 16.14.0 react-primitives: ^0.8.1 peerDependencies: - "@babel/core": ^7.0.0 react: ">=16.8.0" react-primitives: ^0.8.1 - peerDependenciesMeta: - "@babel/core": - optional: true languageName: unknown linkType: soft -"@emotion/react@11.10.5, @emotion/react@^11.4.1, @emotion/react@workspace:packages/react": +"@emotion/react@11.11.0, @emotion/react@^11.4.1, @emotion/react@workspace:packages/react": version: 0.0.0-use.local resolution: "@emotion/react@workspace:packages/react" dependencies: - "@babel/core": ^7.18.5 "@babel/runtime": ^7.18.3 "@definitelytyped/dtslint": 0.0.112 - "@emotion/babel-plugin": ^11.10.5 - "@emotion/cache": ^11.10.5 - "@emotion/css": 11.10.5 - "@emotion/css-prettifier": 1.1.1 - "@emotion/serialize": ^1.1.1 - "@emotion/server": 11.10.0 - "@emotion/styled": 11.10.5 - "@emotion/use-insertion-effect-with-fallbacks": ^1.0.0 - "@emotion/utils": ^1.2.0 - "@emotion/weak-memoize": ^0.3.0 + "@emotion/babel-plugin": ^11.11.0 + "@emotion/cache": ^11.11.0 + "@emotion/css": 11.11.0 + "@emotion/css-prettifier": 1.1.3 + "@emotion/serialize": ^1.1.2 + "@emotion/server": 11.11.0 + "@emotion/styled": 11.11.0 + "@emotion/use-insertion-effect-with-fallbacks": ^1.0.1 + "@emotion/utils": ^1.2.1 + "@emotion/weak-memoize": ^0.3.1 hoist-non-react-statics: ^3.3.1 html-tag-names: ^1.1.2 react: 16.14.0 svg-tag-names: ^1.1.1 typescript: ^4.5.5 peerDependencies: - "@babel/core": ^7.0.0 react: ">=16.8.0" peerDependenciesMeta: - "@babel/core": - optional: true "@types/react": optional: true languageName: unknown linkType: soft -"@emotion/serialize@^1.1.1, @emotion/serialize@workspace:packages/serialize": +"@emotion/serialize@^1.1.2, @emotion/serialize@workspace:packages/serialize": version: 0.0.0-use.local resolution: "@emotion/serialize@workspace:packages/serialize" dependencies: "@definitelytyped/dtslint": 0.0.112 - "@emotion/hash": ^0.9.0 - "@emotion/memoize": ^0.8.0 - "@emotion/unitless": ^0.8.0 - "@emotion/utils": ^1.2.0 + "@emotion/hash": ^0.9.1 + "@emotion/memoize": ^0.8.1 + "@emotion/unitless": ^0.8.1 + "@emotion/utils": ^1.2.1 csstype: ^3.0.2 typescript: ^4.5.5 languageName: unknown linkType: soft -"@emotion/server@11.10.0, @emotion/server@workspace:packages/server": +"@emotion/server@11.11.0, @emotion/server@workspace:packages/server": version: 0.0.0-use.local resolution: "@emotion/server@workspace:packages/server" dependencies: "@definitelytyped/dtslint": 0.0.112 - "@emotion/babel-plugin": 11.10.5 - "@emotion/css": 11.10.5 - "@emotion/css-prettifier": 1.1.1 - "@emotion/utils": ^1.2.0 + "@emotion/babel-plugin": 11.11.0 + "@emotion/css": 11.11.0 + "@emotion/css-prettifier": 1.1.3 + "@emotion/utils": ^1.2.1 "@types/node": ^12.20.37 html-tokenize: ^2.0.0 multipipe: ^1.0.2 @@ -2639,7 +2616,7 @@ __metadata: languageName: unknown linkType: soft -"@emotion/sheet@^1.2.1, @emotion/sheet@workspace:packages/sheet": +"@emotion/sheet@^1.2.2, @emotion/sheet@workspace:packages/sheet": version: 0.0.0-use.local resolution: "@emotion/sheet@workspace:packages/sheet" dependencies: @@ -2648,40 +2625,36 @@ __metadata: languageName: unknown linkType: soft -"@emotion/styled@11.10.5, @emotion/styled@^11.0.0, @emotion/styled@workspace:packages/styled": +"@emotion/styled@11.11.0, @emotion/styled@^11.0.0, @emotion/styled@workspace:packages/styled": version: 0.0.0-use.local resolution: "@emotion/styled@workspace:packages/styled" dependencies: - "@babel/core": ^7.18.5 "@babel/runtime": ^7.18.3 "@definitelytyped/dtslint": 0.0.112 - "@emotion/babel-plugin": ^11.10.5 - "@emotion/is-prop-valid": ^1.2.0 - "@emotion/react": 11.10.5 - "@emotion/serialize": ^1.1.1 - "@emotion/use-insertion-effect-with-fallbacks": ^1.0.0 - "@emotion/utils": ^1.2.0 + "@emotion/babel-plugin": ^11.11.0 + "@emotion/is-prop-valid": ^1.2.1 + "@emotion/react": 11.11.0 + "@emotion/serialize": ^1.1.2 + "@emotion/use-insertion-effect-with-fallbacks": ^1.0.1 + "@emotion/utils": ^1.2.1 react: 16.14.0 typescript: ^4.5.5 peerDependencies: - "@babel/core": ^7.0.0 "@emotion/react": ^11.0.0-rc.0 react: ">=16.8.0" peerDependenciesMeta: - "@babel/core": - optional: true "@types/react": optional: true languageName: unknown linkType: soft -"@emotion/unitless@^0.8.0, @emotion/unitless@workspace:packages/unitless": +"@emotion/unitless@^0.8.1, @emotion/unitless@workspace:packages/unitless": version: 0.0.0-use.local resolution: "@emotion/unitless@workspace:packages/unitless" languageName: unknown linkType: soft -"@emotion/use-insertion-effect-with-fallbacks@^1.0.0, @emotion/use-insertion-effect-with-fallbacks@workspace:packages/use-insertion-effect-with-fallbacks": +"@emotion/use-insertion-effect-with-fallbacks@^1.0.1, @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: @@ -2691,7 +2664,7 @@ __metadata: languageName: unknown linkType: soft -"@emotion/utils@^1.2.0, @emotion/utils@workspace:packages/utils": +"@emotion/utils@^1.2.1, @emotion/utils@workspace:packages/utils": version: 0.0.0-use.local resolution: "@emotion/utils@workspace:packages/utils" dependencies: @@ -2700,7 +2673,7 @@ __metadata: languageName: unknown linkType: soft -"@emotion/weak-memoize@^0.3.0, @emotion/weak-memoize@workspace:packages/weak-memoize": +"@emotion/weak-memoize@^0.3.1, @emotion/weak-memoize@workspace:packages/weak-memoize": version: 0.0.0-use.local resolution: "@emotion/weak-memoize@workspace:packages/weak-memoize" dependencies: @@ -3394,6 +3367,17 @@ __metadata: languageName: node linkType: hard +"@jridgewell/gen-mapping@npm:^0.3.0": + version: 0.3.3 + resolution: "@jridgewell/gen-mapping@npm:0.3.3" + dependencies: + "@jridgewell/set-array": ^1.0.1 + "@jridgewell/sourcemap-codec": ^1.4.10 + "@jridgewell/trace-mapping": ^0.3.9 + checksum: 4a74944bd31f22354fc01c3da32e83c19e519e3bbadafa114f6da4522ea77dd0c2842607e923a591d60a76699d819a2fbb6f3552e277efdb9b58b081390b60ab + languageName: node + linkType: hard + "@jridgewell/gen-mapping@npm:^0.3.2": version: 0.3.2 resolution: "@jridgewell/gen-mapping@npm:0.3.2" @@ -3419,6 +3403,16 @@ __metadata: languageName: node linkType: hard +"@jridgewell/source-map@npm:^0.3.2": + version: 0.3.3 + resolution: "@jridgewell/source-map@npm:0.3.3" + dependencies: + "@jridgewell/gen-mapping": ^0.3.0 + "@jridgewell/trace-mapping": ^0.3.9 + checksum: ae1302146339667da5cd6541260ecbef46ae06819a60f88da8f58b3e64682f787c09359933d050dea5d2173ea7fa40f40dd4d4e7a8d325c5892cccd99aaf8959 + languageName: node + linkType: hard + "@jridgewell/sourcemap-codec@npm:^1.4.10": version: 1.4.14 resolution: "@jridgewell/sourcemap-codec@npm:1.4.14" @@ -3426,6 +3420,13 @@ __metadata: languageName: node linkType: hard +"@jridgewell/sourcemap-codec@npm:^1.4.13": + version: 1.4.15 + resolution: "@jridgewell/sourcemap-codec@npm:1.4.15" + checksum: b881c7e503db3fc7f3c1f35a1dd2655a188cc51a3612d76efc8a6eb74728bef5606e6758ee77423e564092b4a518aba569bbb21c9bac5ab7a35b0c6ae7e344c8 + languageName: node + linkType: hard + "@jridgewell/trace-mapping@npm:^0.3.9": version: 0.3.14 resolution: "@jridgewell/trace-mapping@npm:0.3.14" @@ -4558,9 +4559,9 @@ __metadata: languageName: node linkType: hard -"@preconstruct/cli@npm:^2.2.1": - version: 2.2.1 - resolution: "@preconstruct/cli@npm:2.2.1" +"@preconstruct/cli@npm:^2.6.2": + version: 2.6.2 + resolution: "@preconstruct/cli@npm:2.6.2" dependencies: "@babel/code-frame": ^7.5.5 "@babel/core": ^7.7.7 @@ -4584,7 +4585,7 @@ __metadata: is-ci: ^2.0.0 is-reference: ^1.2.1 jest-worker: ^26.3.0 - magic-string: ^0.25.7 + magic-string: ^0.30.0 meow: ^7.1.0 ms: ^2.1.2 normalize-path: ^3.0.0 @@ -4595,13 +4596,13 @@ __metadata: quick-lru: ^5.1.1 resolve: ^1.17.0 resolve-from: ^5.0.0 - rollup: ^2.32.0 + rollup: ^2.79.1 semver: ^7.3.4 - terser: ^5.2.1 + terser: ^5.16.8 v8-compile-cache: ^2.1.1 bin: preconstruct: bin.js - checksum: 9c43cb57ee307e718f5da1c3470dbc8abe1984c4c622bb7c22fd22c26a3c52a40c3385904fbf1eeb5aac65f6aabdeb3bbaf938ff60fb3420810f6e1cf1e38628 + checksum: ea1459cbc62c0478036c19052f66898201e2408648027260c96cc8b844930bda011ef3bd0439aca586a8ab984d4bf4b4cbc3bf1158856b68c43baa8f9d3ce4b3 languageName: node linkType: hard @@ -11553,7 +11554,7 @@ __metadata: "@changesets/changelog-github": ^0.4.0 "@changesets/cli": ^2.16.0 "@manypkg/cli": ^0.19.1 - "@preconstruct/cli": ^2.2.1 + "@preconstruct/cli": ^2.6.2 "@testing-library/react": 13.0.0-alpha.5 "@types/jest": ^27.0.3 "@types/node": ^12.20.37 @@ -13913,7 +13914,7 @@ __metadata: languageName: node linkType: hard -"fsevents@npm:^2.1.2, fsevents@npm:~2.1.2": +"fsevents@npm:^2.1.2": version: 2.1.3 resolution: "fsevents@npm:2.1.3" dependencies: @@ -13923,7 +13924,7 @@ __metadata: languageName: node linkType: hard -"fsevents@npm:^2.1.3, fsevents@npm:^2.3.2, fsevents@npm:~2.3.1": +"fsevents@npm:^2.1.3, fsevents@npm:^2.3.2, fsevents@npm:~2.3.1, fsevents@npm:~2.3.2": version: 2.3.2 resolution: "fsevents@npm:2.3.2" dependencies: @@ -13943,7 +13944,7 @@ __metadata: languageName: node linkType: hard -"fsevents@patch:fsevents@^2.1.2#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.1.2#~builtin<compat/fsevents>": +"fsevents@patch:fsevents@^2.1.2#~builtin<compat/fsevents>": version: 2.1.3 resolution: "fsevents@patch:fsevents@npm%3A2.1.3#~builtin<compat/fsevents>::version=2.1.3&hash=18f3a7" dependencies: @@ -13952,7 +13953,7 @@ __metadata: languageName: node linkType: hard -"fsevents@patch:fsevents@^2.1.3#~builtin<compat/fsevents>, fsevents@patch:fsevents@^2.3.2#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.1#~builtin<compat/fsevents>": +"fsevents@patch:fsevents@^2.1.3#~builtin<compat/fsevents>, fsevents@patch:fsevents@^2.3.2#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.1#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>": version: 2.3.2 resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7" dependencies: @@ -19142,6 +19143,15 @@ __metadata: languageName: node linkType: hard +"magic-string@npm:^0.30.0": + version: 0.30.0 + resolution: "magic-string@npm:0.30.0" + dependencies: + "@jridgewell/sourcemap-codec": ^1.4.13 + checksum: 7bdf22e27334d8a393858a16f5f840af63a7c05848c000fd714da5aa5eefa09a1bc01d8469362f25cc5c4a14ec01b46557b7fff8751365522acddf21e57c488d + languageName: node + linkType: hard + "make-dir@npm:^2.0.0, make-dir@npm:^2.1.0": version: 2.1.0 resolution: "make-dir@npm:2.1.0" @@ -26487,17 +26497,17 @@ __metadata: languageName: node linkType: hard -"rollup@npm:^2.32.0": - version: 2.33.1 - resolution: "rollup@npm:2.33.1" +"rollup@npm:^2.79.1": + version: 2.79.1 + resolution: "rollup@npm:2.79.1" dependencies: - fsevents: ~2.1.2 + fsevents: ~2.3.2 dependenciesMeta: fsevents: optional: true bin: rollup: dist/bin/rollup - checksum: b9c869bd24cb02d950b8665af6ba592219c68787227bb856ba54753181b1e150f2c96d27f8911dced051c5a0d6fc22dc51a782e98dec64e31dcf7096dc67ff1c + checksum: 6a2bf167b3587d4df709b37d149ad0300692cc5deb510f89ac7bdc77c8738c9546ae3de9322b0968e1ed2b0e984571f5f55aae28fa7de4cfcb1bc5402a4e2be6 languageName: node linkType: hard @@ -27442,7 +27452,7 @@ __metadata: languageName: node linkType: hard -"source-map-support@npm:^0.5.16, source-map-support@npm:~0.5.19": +"source-map-support@npm:^0.5.16": version: 0.5.19 resolution: "source-map-support@npm:0.5.19" dependencies: @@ -28332,10 +28342,10 @@ __metadata: languageName: node linkType: hard -"stylis@npm:4.1.3": - version: 4.1.3 - resolution: "stylis@npm:4.1.3" - checksum: d04dbffcb9bf2c5ca8d8dc09534203c75df3bf711d33973ea22038a99cc475412a350b661ebd99cbc01daa50d7eedcf0d130d121800eb7318759a197023442a6 +"stylis@npm:4.2.0": + version: 4.2.0 + resolution: "stylis@npm:4.2.0" + checksum: 0eb6cc1b866dc17a6037d0a82ac7fa877eba6a757443e79e7c4f35bacedbf6421fadcab4363b39667b43355cbaaa570a3cde850f776498e5450f32ed2f9b7584 languageName: node linkType: hard @@ -28722,29 +28732,30 @@ __metadata: languageName: node linkType: hard -"terser@npm:^5.2.0, terser@npm:^5.3.4, terser@npm:^5.8.0": - version: 5.9.0 - resolution: "terser@npm:5.9.0" +"terser@npm:^5.16.8": + version: 5.17.1 + resolution: "terser@npm:5.17.1" dependencies: + "@jridgewell/source-map": ^0.3.2 + acorn: ^8.5.0 commander: ^2.20.0 - source-map: ~0.7.2 source-map-support: ~0.5.20 bin: terser: bin/terser - checksum: 11c1246b1991015a8881742878af779e3863fad42f626ffda957dbf28c94bf51e7994cffb9ffbec86ff3c23ab45ffa6d79d453c15e664306e35fc7b2c4eee5f4 + checksum: 69b0e80e3c4084db2819de4d6ae8a2ba79f2fcd7ed6df40fe4b602ec7bfd8e889cc63c7d5268f30990ffecbf6eeda18f857adad9386fe2c2331b398d58ed855c languageName: node linkType: hard -"terser@npm:^5.2.1": - version: 5.3.5 - resolution: "terser@npm:5.3.5" +"terser@npm:^5.2.0, terser@npm:^5.3.4, terser@npm:^5.8.0": + version: 5.9.0 + resolution: "terser@npm:5.9.0" dependencies: commander: ^2.20.0 source-map: ~0.7.2 - source-map-support: ~0.5.19 + source-map-support: ~0.5.20 bin: terser: bin/terser - checksum: 01f37776669f4650a6429d2960d003f2b1d318e626adfead24c1700c9c0cefb211de12c3c65a695ccc097bbf99a39c7cd97f5191f9998aecddd01b97de906b0d + checksum: 11c1246b1991015a8881742878af779e3863fad42f626ffda957dbf28c94bf51e7994cffb9ffbec86ff3c23ab45ffa6d79d453c15e664306e35fc7b2c4eee5f4 languageName: node linkType: hard