NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #1762 most downloaded on npm
internal utils for emotion
Latest stable
1.4.2
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 4 weeks to 1.3 years
Some releases are documented
notes for 16 of 31 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
37 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Patch Changes - #3270 `77d930d` Thanks @emmatown! - Fix inconsistent hashes using development vs production bundles/exports conditions when using
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.Your coding agent can read these notes before it upgrades. Set up the MCP server →
### Patch Changes - #3244 `ad630e3` Thanks @romgrk! - Minor performance improvement
### Minor Changes - #3306 `dfae1cb` Thanks @EnzoAlbornoz! - Adds popover, popoverTarget and popoverTargetAction to the list of allowed props.
dfae1cb Thanks @EnzoAlbornoz! - Adds popover, popoverTarget and popoverTargetAction to the list of allowed props.#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.
#3215 a9f6912 Thanks @Andarist! - Added edge-light and workerd conditions to package.json manifest to better serve users using Vercel Edge and Cloudflare Workers.
### Minor Changes - #2359 `16d8a8c` Thanks @rjdestigter! - Source code has been migrated to TypeScript. From now on type declarations will be emitted
16d8a8c Thanks @rjdestigter! - Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.#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.
52aadc6 Thanks @sarayourfriend! - Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.52aadc6 Thanks @sarayourfriend! - Type declaration for StyleSheet's constructor has been fixed. It incorrectly was specifying that options were optional when in reality they weren't.a1e881b Thanks @sarayourfriend! - Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.7f8db2d]:
### Patch Changes - #3029 `eed5e6cf` Thanks @Andarist! - Fixed importing in Node ESM
### 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.#2819 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.
#2819 bbad8c79 Thanks @nicksrandall! - Thanks to the added exports field, the package now includes a worker condition that can be utilized by properly configured bundlers when targeting worker-like environments. It fixes the issue with browser-specific files being prioritized by some bundlers when targeting workers.
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.bbad8c79]:
Updated dependencies \[`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.bbad8c79]:
#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.
#3215 a9f6912 Thanks @Andarist! - Added edge-light and workerd conditions to package.json manifest to better serve users using Vercel Edge and Cloudflare Workers.
`9e998e37` #1817 Thanks @Andarist! - insertStyles no longer calls cache.insert with a scoped class name as a selector when inserting keyframes. The ch
9e998e37 #1817 Thanks @Andarist! - @import rules are no longer special-cased - they no longer are always inserted at the beginning of the stylesheet. The responsibility to put them first has been moved to a consumer of this package.4a891bf6 #1473 Thanks @jcharry! - The new prepend option can make Emotion add style tags at the beginning of the specified DOM container instead of the end.
dfe79aca #1696 Thanks @Andarist! - Added hydrate method which can be used for SSRed styles. They become a part of a sheet and can be flushed.
42df3f3b #2028 Thanks @Andarist! - Generated style elements got data-s="1" attribute so @emotion/cache can recognize them as being already owned by another Emotion copy to avoid messing up existing style elements when initializing a new copy.
1e4a741d #1697 Thanks @Andarist! - Removed mentions of maxLength option in types & docs as it has been removed some time ago.
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.
5c55fd17 #1653 Thanks @Andarist! - Fix to what location generated source maps are pointing in case of composed styles.
a085003d #1613 Thanks @Andarist! - Add missing #__PURE__ annotations
Updated dependencies [debaad9a, 9e998e37]:
923ded01 #1643 Thanks @JakeGinnivan! - Allow isPropValid to take any PropertyKey as an argument (instead of just string).69446cb5 #1971 Thanks @mjcampagna! - translate got added to the list of the valid props.`9c4ebc16` #2030 Thanks @Andarist! - Release candidate version.
`debaad9a` #1999 Thanks @RoystonS! - Fixed TypeScript definition of the EmotionCache by replacing the non-existent stylis method with insert that is a
`9e998e37` #1817 Thanks @Andarist! - insertStyles no longer calls cache.insert with a scoped class name as a selector when inserting keyframes. The ch
`4c62ae9` #1698 Thanks @Andarist! - Add LICENSE file
c0eb604d #1419 Thanks @emmatown! - Update build tool
Nothing published for this version
Nothing published for this version
Nothing published for this version
### Minor Changes - #3240 `153cf88` Thanks @justinfernald! - Add scale property as unitless
153cf88 Thanks @justinfernald! - Add scale property as unitless### Minor Changes - #2430 `fc4d27c` Thanks @sarayourfriend! - Source code has been migrated to TypeScript. From now on type declarations will be emitt
fc4d27c Thanks @sarayourfriend! - Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.7f8db2d Thanks @sarayourfriend! - Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.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.Nothing published for this version
### Patch Changes - #3029 `eed5e6cf` Thanks @Andarist! - Fixed importing in Node ESM - #3012 `e6e5b3d7` Thanks @sgrishchenko! - Add aspectRatio as a u
### Minor Changes - #2819 `bbad8c79` Thanks @nicksrandall! - exports field has been added to the package.json manifest. It limits what files can be im
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.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
### Minor Changes - #2429 `b1d16b0` Thanks @sarayourfriend! - Source code has been migrated to TypeScript. From now on type declarations will be emitt
b1d16b0 Thanks @sarayourfriend! - Source code has been migrated to TypeScript. From now on type declarations will be emitted based on that, instead of being hand-written.### Minor Changes - #2819 `bbad8c79` Thanks @nicksrandall! - exports field has been added to the package.json manifest. It limits what files can be im
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.Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.