Pull Requests
#1600
v11
#3180
Update best-practices.mdx
#3175
Fix TypeScript error with function interpolations
#3170
Version Packages
#3164
Fix mismatch between CSSInterpolation and Interpolation<Props>
#3163
@emotion/cache docs - added docs section for createCache insertionPoint option
#3160
Version Packages
#3159
Remove hasOwnProperty from utils
#3156
Add disableRemotePlayback to valid prop-types
#3155
Fix typos in the css-prop.mdx
#3150
Add -webkit-scrollbar pseudo-elements to ignored prefixes
#3146
Support dynamic value
#3144
Use NODE_ENV to detect Jest or Vitest
#3143
Version Packages
#3141
Change `Array` to `ReadonlyArray` in CSS type declarations
#3139
put csstype version in range
#3138
Csstype inrange
#3137
downgrade csstype
#3123
Update install.mdx
#3122
fix: change the way we initialize isBrowser
#3116
fix(regex): global flag should not be reuse without reset lastIndex
#3114
Bump fsevents from 1.2.9 to 1.2.13
#3110
Do not use global cache for createCache() to avoid memory leaks
#3101
Fix Theme import for newer Typescript module resolution modes
#3100
Add @types/react as peer deps
#3096
Remove path-parse 1.0.6 dependency
#3093
Add fetchpriority to props
#3088
Add missing types folder
#3086
Update package.json
#3078
Bump word-wrap from 1.2.3 to 1.2.4
#3076
Reorganize `@emotion/utils` types
#3074
Bump semver from 5.7.0 to 5.7.2
#3070
Add instructions for VS Code support
#3063
Add an example
#3058
Version Packages
#3057
Fix `@emotion/css/create-instance` types in TypeScript module resolution modes that support the `exports` field
#3055
Add docs about SSR with SvelteKit
#3051
Version Packages
#3050
Fix compat with @types/react@18.2.8
#3048
Support JSX.ElementType
#3041
Add part as valid HTML attribute
#3033
Make classNames's cx support obj.toString()
#3031
Add support for cascade `@layer`s
#3030
Version Packages
#3029
Fixed importing in Node ESM
#3026
Version Packages
#3025
Upgrade Stylis to a version with parsing fix for `&` in nested functions
#3020
Version Packages
#3019
Fixed ignore flag not disabling the warning for rules defined inside other rules
#3014
Added shadow-opacity to the unitless keys list
#3012
`aspectRatio` property is made unitless
Build Activity
#72443
Version Packages (#2046)
* Version Packages
* Reorder changelog entries
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
#72435
Emotion 11 post (#2089)
* Emotion 11 post
* Apply suggestions from code review
* Update docs/emotion-11.mdx
* Fix docs build
* update changeset file
* Align changeset files to latest changes in the Emotion 11 post
Co-authored-by: Mit...
#72425
Update README.md
#72315
Remove unnecessary changesets and fixup old changelogs entries
#72221
Fixed `@emotion/server/create-instance` entrypoint configuration
#72216
Use `StyleSheet.create` in React Native (#2060)
* Use `StyleSheet.create` in React Native
* Flatten the styles before passing them to `StyleSheet.create`
* Fix primitives tests
* Update snapshots
* Fix flow errors
* Add changeset
Co-...
#72119
Remove unnecessary changeset
#72116
Exit pre mode
#72115
Add changeset about UMD filenames being renamed
#72110
Preconstruct upgrade (#2088)
* Use experimental entrypoints in preconstruct
* Use newDistFilenames in preconstruct
#71979
Merge branch 'master' into next
# Conflicts:
# packages/babel-preset-css-prop/CHANGELOG.md
# packages/babel-preset-css-prop/package.json
# packages/babel-preset-css-prop/src/index.js
#71683
Make `cssPropOptimization`'s default always `true` (regardless of the `@emotion/react` import presence) (#2080)
#71677
Fixed an issue with dev-only labels not being added when source maps were disabled (#2081)
#71672
Export JSX namespace from automatic runtime entries (#2078)
#71667
Remove the `runtime` option from `@emotion/babel-preset-css-prop` (#2076)
* Remove `runtime` option from `@emotion/babel-preset-css-prop`
* Update .changeset/weak-pears-design.md
* Update packages/babel-preset-css-prop/src/index.js
Co-authore...
#71650
Merge branch 'master' into next
# Conflicts:
# docs/css-prop.mdx
# packages/babel-plugin/README.md
#71355
Fix flow error
#71258
Merge branch 'master' into next
# Conflicts:
# .circleci/config.yml
# babel.config.js
# docs/css-prop.mdx
# package.json
# packages/babel-preset-css-prop/CHANGELOG.md
# packages/babel-preset-css-prop/README.md
# packages/babel-preset-css-prop/__tests_...
#71137
Add support for the `as` prop in React Native related packages (#2058)
* Add support for the `as` prop in React Native related packages
* Do not forward the `as` prop by default
* Add changeset
Co-authored-by: Mateusz Burzyński <mateuszburzyn...
#71134
Upgrade chalk and escape-string-regexp (#2044)
* Upgrade chalk and escape-string-regexp
jest uses the new version of chalk without escape-string-regexp
* Remove changesets
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
#71131
Remove patch for @changesets/cli
#64003
Remove missing key error from production environments (#2042)
#64002
`@types/jest` has been moved from the dependencies to the optional peer dependencies (#2043)
#64000
Downgrade Preconstruct to 1.1.29
#63994
Upgrade Preconstruct
#61827
Version Packages (rc) (#2031)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#61824
Allow ESLint 7 as peer dep of @emotion/eslint-plugin (#2034)
#61822
Adds translate to the list of the valid props (#1971)
* adds translate to the list of valid props
* Add changeset about translate being added to the valid props
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
#61669
Use caret dependency ranges when possible (#2032)
#59801
Upgrade testing related deps (#2033)
* Upgrade testing related deps
* Update snapshots
#59747
Prepare first RC release (#2030)
#59743
Cleanup some changesets that were only relevant during premode
#59739
Version Packages (next) (#2029)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#59656
Fixed an issue with multiple Emotion caches moving SSRed styles to head at their initialization times (#2028)
#59343
Fixed an issue with serializing Enzyme's `ReactWrapper` (what is returned from `mount`) with props containing elements without the css prop (#2027)
#55982
Partial changesets cleanup (#2016)
#55894
Version Packages (next) (#2018)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#55844
Disallow functions as value of style prop in libs related to React Native (#2014)
* Disallow functions as value of style prop in libs related to React Native
* Fixed manypkg errors
* Update snapshots that has popped up after merge
* Remove us...
#54167
Upgrade stylis dependency ranges
#54097
Fixed an issue with rules nested in orphaned pseudo selectors not being adjusted correctly (#2015)
#54084
Fixed an issue with internal buffer being lost for nested factory calls (#2013)
#52359
Version Packages (next) (#2010)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#52356
Trigger re-release of @emotion/serialize package (#2009)
#52353
Upgrade Changesets, Manypkg & Preconstruct
#52222
Version Packages (next) (#2006)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#52219
Trigger re-release of @emotion/serialize package
#52011
Version Packages (next) (#1982)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#52006
Fixed an issue with wrapped class components not having a type for the `ref` prop (#1996)
#52001
Fixed an issue with orphaned pseudos having their selector doubled for descendant at-rules (#2003)
#51998
Styles are now correctly extracted from the correct cache (`key`-sensitive) on the server (#1998)
#51997
Insert empty rule in dev (#1997)
* Revert "Insert empty style elements eagerly in dev (#1962)"
This reverts commit dc1a0c5ed78b27fb7ce49b6296f2ca8631654cd1.
# Conflicts:
# packages/css/test/__snapshots__/component-selector.test.js.snap
* Ins...
#51552
Fixed TypeScript definition of the `EmotionCache` by replacing the non-existent `stylis` method with `insert` that is available at runtime (#1999)
* Update TypeScript definition of EmotionCache (#1990)
Replaced `stylis` function with `insert` funct...
#51434
Fixed an issue with type for as prop not being available for prebound components (#1995)
* Fixed an issue with type for as prop not being available for prebound components
* Tweak TS tests so they dont have to use $ExpectType with huge unions
#51380
Custom `shouldForwardProp` is being preserved now when using `.withComponent` (#1668)
* Forward shouldForwardProp through withComponent
- Fixes a bug that prevented `shouldForwardProp` from forwarding to components created via `withComponent`; Fixe...
#48053
Add Browser Requirements section to the docs (#1979)
#48046
Change the key of a global key (indicating the @emotion/react has been already loaded) to include the major version (#1981)
#48044
Change some changeset bump types and do a few changeset cleanups (#1980)
#47040
Version Packages (next) (#1963)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#47028
Fix changeset header, target `@emotion/react` instead of `@emotion/core`
#47026
Merge branch 'master' into next
# Conflicts:
# packages/core/CHANGELOG.md
# packages/core/package.json
#45098
Add Pressable to the list of supported react-native components (#1958)
* add Pressable component to native types
* add new Pressable component to @emotion/native
* Remove ReactNativeComponentNames and simplify typings in the result
Co-authore...
#45090
Add TS types support for `ref` on class components (including host components) in @emotion/native (#1954)
* Minor TS types tweaks in @emotion/native
* Add TS types support for `ref` on class components (including host components) in @emotion/native...
#45074
Upgrade csstype dependency (#1956)
* Remove grayscale filter from the docs (#1929)
* Add emotion-native-extended to the ecosystem list of packages (#1849)
* Make links more accessible in the docs (#1930)
* run test:typescript for emotion/seri...
#45066
Merge branch 'master' into next
#45063
Fixed `@emotion/jest` toHaveStyleRule on react.elements (#1902)
Co-authored-by: Meno Abels <meno.abels@adviser.com>
#45049
Improved reliability of snapshots by having consistent order of extracted rules (#1880)
* Fix inconsistent style ordering for snapshots
Due to jest writing styles in the order it encounters
rendered styled components across tests, an issue can
oc...
#44932
Upgrade changesets, manypkg & preconstruct deps
#44930
Upgrade changesets, manypkg & preconstruct deps
#44870
Small docs tweaks after changes related to Stylis v4 work (#1949)
#44719
Insert empty style elements eagerly in dev (#1962)
#43524
Version Packages (next) (#1923)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#43519
Minor TS types tweak in @emotion/styled (#1951)
#43516
Fix v11 jsx factory type not allowing children when implictly in component type (#1952)
* Fix issue with jsx pragma type
* Update test
* Fix linting
#43137
Localized jsx namespace (#1941)
* Provide local JSX namespace for `jsx`
* Reuse global JSX namespace defined by React to declare our own
* Add a .d.ts file that can be included in pragma-less projects
* Fixed TSLint errors
* Fix false posi...
#39032
Remove not needed files in jest package extra entrypoints
#38489
Added basic TS type support for `as` prop on styled components (#1874)
* Add type for as prop
* Add changeset
* Simplify type for `as` prop
* Tweak changeset
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
#38189
Add speedy method to the TS type declaration of the sheet object available on Emotion instances (#1848)
* Add sheet.speedy() type to StyleSheet
* Stylesheet.speedy is optional
* No semicolon for consistency
* Add speedy method to the TS type ...
#37700
Adds @types/react as optional peer deps (#1837)
* Adds @types/react as optional peer deps
* Adds changeset
* Add @types/react as optional peer dep to @emotion/react as well
* Tweak changeset
Co-authored-by: Mateusz Burzyński <mateuszburzyn...
#37441
Fix outdated reference to @emotion/core (#1926)
#37270
Merge branch 'master' into next
# Conflicts:
# docs/styled.mdx
# packages/babel-plugin-emotion/CHANGELOG.md
# packages/babel-plugin/__tests__/__fixtures__/already-transpiled-by-babel.js
# packages/babel-plugin/__tests__/__snapshots__/css.js.snap
# pac...
#37263
Upgrade Flow to 0.128.0 (#1925)
#37216
Change which interface gets extended with css prop support (#1762)
* Change which interface gets extended with css prop support
* Add changeset
#37211
Bump Stylis version
#36869
Mention in the docs that `theme` prop is not forwarded to custom components (#1721)
* `theme` not forwarded to custom components
Updated the documentation for `shouldForwardProp` to indicate that the `theme` prop is not forwarded by default for cus...
#36865
Warn about incompatibility with @babel/plugin-transform-react-inline-elements (#1712)
Since there's only the one warning I think it makes more sense to put it at the top where it shows implementing the plugin in `.babelrc`. I also noticed that the ful...
#36856
Cleanup @emotion/jest entrypoints (#1920)
* Cleanup @emotion/jest entrypoints
* Do not use strict-export-declare-modifiers rule in TS tests
* Add changesets
* Tweak changesets
#35587
Remove invalid argument in favor of using @emotion/css over @emotion/react (#1565)
* All options work with unejected create-react-app
* Remove invalid argument in favor of using @emotion/css over @emotion/react
Co-authored-by: Mateusz Burzyński ...
#35404
Update testing reference. (#1445)
Jest has deprecated `setupTestFrameworkScriptFile` in favor of setupFilesAfterEnv. Updating the docs to be current.
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
#33985
Version Packages (next) (#1896)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#33972
Upgrade Stylis version
#33968
Jest serializer new api (#1901)
* Remove redundant isTransformed checks
* Move cache.add closer to printer call
* Drop separate test/print exports from @emotion/jest
* Refactor serializers to use new plugin API
* Use stylis to parse & pret...
#33963
Upgrade Stylis to v4 (#1817)
* Stylis v4 tryout
* Move @import rules in test to be first
* Improved compat plugin
* Add tests for orphanated pseudos
* orphanated -> orphaned
* Upgrade stylis and improve compat plugin
* Improve compat...
#32521
Fix the links fixer (#1903)
#32194
Rename sheet.rehydrate method to sheet.hydrate (#1900)
#31414
Added support for converting assignment expressions to labels (#1893)
#27795
Fix advanced SSR docs
#16740
Add TS test to check for excessive instantiation regressions
#15155
ci(changeset): generate PR with changelog & (next) version updates (#1735)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#15151
Bump version of @emotion/serialize to fixup repo/npm/changesets mismatch
#15113
Relax requirement for label extraction - containing functions dont have to be PascalCased anymore (#1805)
#15104
Add a dev-only warning about opaque styles being passed to `cx` (#1810)
#15101
Change a console.warn to console.error for reporting bad rule insertion attempt in speedy mode (#1811)
#15045
Fixed issue with cache created in render crashing SSRed site (#1572)
* Fixed issue with cache created in render crashing SSRed site
* Update index.d.ts
* Update packages/cache/src/index.js
* Fix flow errors
* add changesets
Co-authored-...
#15032
Do not warn about @emotion/react being loaded twice in Jest (#1806)
* Do not warn about @emotion/react being loaded twice in Jest
* Create plenty-horses-sparkle.md
#14921
Removed a test which was removed as part of #1807
#14894
Improve docs around augmenting the Theme interface (#1803)
#14860
Drop support for interpolating generated class names (#1807)
* Drop support for interpolating generated class names
* Update sharp-frogs-applaud.md
Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
#14843
Merge branch 'master' into next
# Conflicts:
# packages/jest-emotion/CHANGELOG.md
# packages/jest/package.json
#14825
Bring back accidentally removed tests
#14822
Merge branch 'master' into next
# Conflicts:
# packages/babel-preset-css-prop/README.md
# packages/is-prop-valid/CHANGELOG.md
# packages/is-prop-valid/package.json
# packages/primitives/CHANGELOG.md
# packages/primitives/package.json
# packages/styled...
#14793
Remove unnecessary @emotion/styled import from theming declaration file (#1804)
#14529
Fix UMD name for @emotion/react package
#12786
Migrate v1 changesets to v2 ones
#12783
Upgrade changesets deps
#12779
Fix manypkg errors
#12773
Merge branch 'master' into next
# Conflicts:
# packages/babel-plugin-emotion/CHANGELOG.md
# packages/cache/CHANGELOG.md
# packages/cache/package.json
# packages/hash/package.json
# packages/serialize/CHANGELOG.md
# packages/serialize/package.json
# re...
#12623
Fixed some composition issues with styles not containing a final semi (#1732)
#12474
Merge branch 'master' into next
# Conflicts:
# packages/babel-plugin-emotion/CHANGELOG.md
# packages/babel-plugin-emotion/__tests__/__snapshots__/css-requires-options.js.snap
# packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap
# packag...
#12470
Merge branch 'master' into next
# Conflicts:
# packages/babel-plugin-emotion/CHANGELOG.md
# packages/babel-plugin-emotion/__tests__/__snapshots__/css-requires-options.js.snap
# packages/babel-plugin-emotion/__tests__/__snapshots__/css.js.snap
# packag...
#12344
Match supported components to what is exported from the latest version of React Native (0.61.5) (#1750)
* Fixed native typings
* Updated monorepo package.json
* Update changeset
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
#8774
Update jest-related deps (#1733)
#8773
Fixed styles inserted by `<Global/>` component not inheriting `speedy` option (#1734)
#8158
Version Packages (next) (#1711)
#8153
Removed leftover `@emotion/react` import from type definition file (#1726)
#8013
Add types folder to published files for native (#1716)
* Add types folder to published files for native
* Add changeset for emotion/native typings
* Include only definition files in published package for @emotion/native typings
#7504
Fix the type of `props.theme` for StyledComponent without AdditionalProps (#1708)
* Fix Theme type
* Add unit test for theme type
* Extract the Theme test in a separate test
* Add changeset
* Better changeset
Co-Authored-By: Mateusz Bur...
#7150
Version Packages (next) (#1691)
#7099
Rename packages (#1675)
* WIP codemod for renaming
* Lockfile changes
* emotion -> @emotion/css
* core -> react
* Server stuff
* Move removed packages to another directory
* More things
* More things
* Some more things
* Ren...
#7094
Improve support for Enzyme's shallow rendering (#1672)
* Improve support for Enzyme's shallow rendering
* Remove empty className from snapshots
* Fix flow errors
* Remove [transformed] from plain objects, add interesting test case
* Clean-...
#7092
Optimize Babel output a little bit (#1656)
* Optimize Babel output a little bit
* Fix label regression in dev nodes
* Add `autoLabel` validation
* Update more snapshots
* Fix flow error
* Rename auto to dev-only as autoLabel value
* ...
#6336
Fix issue with published TypeScript test files augmenting Theme interface (#1702)
#5883
Add warning if multiple versions are running (addresses #1470) (#1677)
* Add warning if multiple versions are running (addresses #1470)
* Add changeset
#5713
Fix issue with sheet hydration in cache creation (#1699)
#5486
Removed mentions of `maxLength` option (#1697)
#5485
Fix issue with rehydrated style tags not taking into account prepend option (#1696)
#5357
Merge branch 'master' into next
#4984
Added TS types to @emotion/native (#1634)
* adding types for react native
* fixing styled component types
* removing condition type inference for existence of a theme
* Move @emotion/native TS types closer to what we have for @emotion/styled
...
#4863
Remove no longer needed StyleProps type parameter (#1685)
#4472
Version Packages (#1679)
#4194
Add handling of the css prop in syntax-preference rule (#1659)
* Add handling of the css prop in syntax-preference rule
* add changeset
#4191
Created additional overload to prevent AdditionalProps getting inferr… (#1664)
* Created additional overload to prevent AdditionalProps getting inferred as the composed component type
Fixes #1655
* Added additional test showing additional props
...
#4139
Version Packages (#1663)
#4137
Refactor TS types to use builtin Theme interface which can be augmented by consumers (#1609)
* Updated types to support global Theme definition
* Updated documentation to reflect new theme typings
* Simplified MuiTheme import syntax in docs
*...
#3644
Merge branch 'master' into next
# Conflicts:
# packages/jest-emotion/CHANGELOG.md
# packages/jest-emotion/package.json
# packages/jest-emotion/src/utils.js
#3250
Added support for passing theme to functions in array css prop (#1130)
* Added support passing theme to functions in array css prop
* Add changeset
* Adjust how arrays passed to css prop are transformed so function elements can be resolved at ru...
#3072
Merge branch 'master' into next
# Conflicts:
# packages/jest-emotion/CHANGELOG.md
# packages/jest-emotion/package.json
# packages/jest-emotion/src/utils.js
#2928
Merge branch 'master' into next
#2927
Fix repository link for utils package (#1658)
* chore(ci): GH Actions to yarn frozen-lockfile (#1631)
* Fix repository link for utils package
#2751
Version Packages (#1654)
#2749
Update csstype dep
#2669
Fix to what location generated source maps are pointing in case of composed styles (#1653)
#2644
Version Packages (#1638)
#2632
Allow `labelFormat` option to be a function (#1651)
* Allow `labelFormat` option to be a function
* Change name of filename argument to path in function labelFormat
#2538
Allow for pre-pending style tags to container element (#1473)
* Add prepend option to createCache
* changeset
* Simplify implementation a little bit
* Add test
* Tweak changeset
* Add new prepend option to TS types
* Add type for pre...
#1804
Added basic support for accepting custom `shouldForwardProp` option in React Native related packages. (#1642)
#1766
Handle `Global` with Babel (#1639)
* Handle `Global` with Babel
* Fix support for Global transformer with importMap
* Split changesets
#1591
Add @emotion/core/macro, remove @emotion/css (#1630)
* Add @emotion/core/macro, remove @emotion/css
* Apply suggestions from code review
Co-Authored-By: Mitchell Hamilton <mitchell@hamil.town>
* Add changesets
#1556
Version Packages (#1633)
#1486
Fixed missing type from the interpolation intersection type (#1632)
* Fixed missing type from the interpolation intersection type
Fixes theme being optional through create styled
* Create tricky-cameras-notice.md
#1294
Version Packages (next) (#1625)
#1126
Add preinstall script checking if yarn is being used for installation (#1623)
#1116
Upgrade jest-watch-typeahead
#1103
Version Packages (#1612)
#1101
Upgrade Babel-related deps (#1621)
#1088
Tweak styled-base deprecation error message
#1084
Update changesets
#1079
Merge branch 'master' into next
#1054
Update release workflow
#1017
Add babel-plugin-emotion to CodeSandbox CI config
#986
Add missing #__PURE__ annotations (#1613)
* Add missing #__PURE__ annotations
* Update nine-mugs-care.md
#937
Revert "Upgrade to @preconstruct/cli"
This reverts commit ddf30f03b09e7f393b977bf516cca1d3bfd58924.
#934
Upgrade to @preconstruct/cli
#931
Throw error about invalid content property values instead of just logging error to the console. (#1611)
#927
Version Packages (#1610)
#897
Add CodeSandbox CI Config (#1608)
emotion-js/emotion #72443
Loading Sandboxes...
Loading Packages...
Loading Install Instructions...
Finished!