NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1717 most downloaded on npm
serialization utils for emotion
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 4 weeks to 12 months
Some releases are documented
notes for 25 of 56 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
68 releases · first in 2018
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.
Updated dependencies [`77d930d`]:
#3270 77d930d Thanks @emmatown! - Fix inconsistent hashes using development vs production bundles/exports conditions when using @emotion/babel-plugin with sourceMap: true (the default). This is particularly visible when using Emotion with the Next.js Pages router where the development condition is used when bundling code but not when importing external code with Node.js.
Updated dependencies [77d930d]:
Updated dependencies [`ad630e3`]:
Updated dependencies [`153cf88`]:
153cf88]:
Development builds (and other environment-specific builds) can be used by using proper conditions (see here). Most modern bundlers/frameworks already
#3198 d8ff8a5 Thanks @Andarist! - Migrated away from relying on process.env.NODE_ENV checks to differentiate between production and development builds.
Development builds (and other environment-specific builds) can be used by using proper conditions (see here). Most modern bundlers/frameworks already preconfigure those for the user so no action has to be taken.
Default files should continue to work in all environments.
Minor Changes #3279 e1bf17e Thanks @Andarist ! - Source code has been migrated to TypeScript.
9ca22c6 Thanks @danilofuchs! - Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.### Patch Changes - #3164 `c9b84dbe` Thanks @Cerber-Ursi! - Make ArrayInterpolation to extend ReadonlyArray to match a similar recent change to ArrayC
c9b84dbe Thanks @Cerber-Ursi! - Make ArrayInterpolation to extend ReadonlyArray to match a similar recent change to ArrayCSSInterpolation. It fixes some compatibility issues when those 2 get mixed together.### Patch Changes - #3141 `45c440fb` Thanks @Cerber-Ursi! - Replace arrays with readonly arrays in CSS type definitions, following changes in csstype
45c440fb Thanks @Cerber-Ursi! - Replace arrays with readonly arrays in CSS type definitions, following changes in csstype### Patch Changes - #2896 `c02b1214` Thanks @Andarist! - Fixed an issue that prevented using content: "element(name)". This is a valid special value a
Updated dependencies [`bbad8c79`, `bbad8c79`]:
bbad8c79 Thanks @nicksrandall! - exports field has been added to the package.json manifest. It limits what files can be imported from a package but we've tried our best to allow importing all the files that were considered to be a part of the public API.### Patch Changes - #2727 `26e4e3e8` Thanks @srmagura! - Changed the error message "Component selectors can only be used in conjunction with @emotion/
26e4e3e8 Thanks @srmagura! - Changed the error message "Component selectors can only be used in conjunction with @emotion/babel-plugin" to reference the new SWC Emotion plugin which will support component selectors soon.5e81f213 Thanks @otakustay! - Changed the registered parameter to be declared as optional in the TypeScript definition to match the runtime requirement.### Patch Changes - #2700 `d9357621` Thanks @arturmuller! - Fixed a false positive warning for content properties that included var().
d9357621 Thanks @arturmuller! - Fixed a false positive warning for content properties that included var().`662f0e0f` #2335 Thanks @iChenLei! - Fixed appending manual labels to Babel-optimized style objects.
`418daad9` #2264 Thanks @lucasweng! - Fix incorrectly throwing error on the gradient content values
418daad9 #2264 Thanks @lucasweng! - Fix incorrectly throwing error on the gradient content values`c6431074` #1609 Thanks @tomsseisums! - Reworked Interpolation-related types. Correct types should now be provided to all flavours of Emotion.
c6431074 #1609 Thanks @tomsseisums! - Reworked Interpolation-related types. Correct types should now be provided to all flavours of Emotion.5d692a6a #1956 Thanks @eps1lon! - Upgraded csstype dependency to its v3. This is what we use to provide TypeScript typings for object styles. The upgrade should not affect any consuming code but it's worth mentioning if any edge case scenarios arise.e3d7db87 #1732 Thanks @Andarist! - An additional semicolon is now inserted after interpolated arrays to cover cases when it doesn't have a trailing semi itself and thus breaking composition with styles coming after it.8a896a31 #1611 Thanks @Andarist! - Throw error about invalid content property values instead of just logging error to the console.`9c4ebc16` #2030 Thanks @Andarist! - Release candidate version.
`76e3dc4d` #2009 Thanks @Andarist! - Re-release latest prerelease version of this package as it has incorrectly been "downgraded" to 0.x version due t
76e3dc4d #2009 Thanks @Andarist! - Re-release latest prerelease version of this package as it has incorrectly been "downgraded" to 0.x version due to a bug in Changesets. This has caused problems because Emotion 10 had a newer 0.x release and thus version targeting Emotion 10 has been fetched on installs as it has been satisfying the specified dependency range.`5d692a6a` #1956 Thanks @eps1lon! - Upgraded `csstype` dependency to its v3. This is what we use to provide TypeScript typings for object styles. The
`e3d7db87` #1732 Thanks @Andarist! - An additional semicolon is now inserted after interpolated arrays to cover cases when it doesn't have a trailing
…and let them be inferred. Otherwise refer to the breaking changes list below.
a72e6dc0 #1501 Thanks @JakeGinnivan! - TypeScript types have been restructured. These changes:
If you encounter build issues after upgrade, try removing any manually specified generic types and let them be inferred. Otherwise refer to the breaking changes list below.
withTheme can now have the Theme type specified when calling it. For example withTheme<MyTheme>(MyComponent)
Breaking change: Generic argument changed, if you were specifying the ComponentType you will need to remove the generic parameter. Recommend following example setup in the TypeScript docs under theming section
css function has been restricted to prevent passing of invalid types
CreateStyled functions no longer take a second ExtraProps argument. Instead move it to after the create styled call. For example
styled<typeof MyComponent, ExtraProps>(MyComponent)({})
to
styled(MyComponent)<ExtraProps>({})
StyledComponent type no longer supports the third generic Theme parameter. Instead add the theme prop to the first Props argument. For example:
StyledComponent<Props, {}, MyTheme>
to
StyledComponent<Props & { theme?: MyTheme }>
`c643107` #1609 Thanks @joltmode! - Reworked Interpolation-related types. Correct types should now be provided to all flavours of emotion.
Updated dependencies [`446e756`]:
446e756]:
`4c62ae9` #1698 Thanks @Andarist! - Add LICENSE file
Updated dependencies [`debaad9a`]:
debaad9a]:
Updated dependencies [`9e998e37`]:
9e998e37]:
`8a896a31` #1611 Thanks @Andarist! - Throw error about invalid content property values instead of just logging error to the console.
`a55f3d49` #1581 Thanks @Andarist! - Don't cause invalid rule to be serialized when using object style with falsy value
`3b7e2f2e` Thanks @emmatown! - Fix flow errors
`4fc5657a` #1219 Thanks @Andarist! - Add dev hint about css object being stringified by accident
Updated dependencies [c81c0033]:
66cda641 #1478 Thanks @Andarist! - Add warnings about using illegal escape sequences
c257d2a3 #1420 Thanks @Andarist! - Fix for opaque keyframes object being used as value for animation & animationName in object styles
c0eb604d #1419 Thanks @emmatown! - Update build tool
757bd86d #1378 Thanks @Andarist! - Fixed issue with camelCased custom properties not being handled correctly in object styles
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →