NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1733 most downloaded on npm
emotion's stylesheet
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 8 days to 1.2 years
Some releases are documented
notes for 13 of 30 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
40 releases · first in 2018
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.
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.
### Minor Changes - #2431 `52aadc6` Thanks @sarayourfriend! - Source code has been migrated to TypeScript. From now on type declarations will be emitt
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.### Patch Changes - #3029 `eed5e6cf` Thanks @Andarist! - Fixed importing in Node ESM
### Patch Changes - #2920 `61c66963` Thanks @pvdstel! - Do not log failed rule insertions in the speedy mode for even more vendor-prefixed pseudo-elem
Minor Changes #3279 e1bf17e Thanks @Andarist ! - Source code has been migrated to TypeScript.
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 - #2728 `6c2d7a60` Thanks @Peeja! - TypeScript type for the container option has been adjusted. It will now accept a ShadowRoot, or
### Minor Changes - #2521 `516fe45` Thanks @mnajdova! - Added insertionPoint option to the Sheet's constructor. It can be used to insert rules after t
### Patch Changes - #2447 `f2eda829` Thanks @mdesantis! - Fixed an issue with sheet.flush() crashing if its style elements were already detached by so
f2eda829 Thanks @mdesantis! - Fixed an issue with sheet.flush() crashing if its style elements were already detached by something else.### Patch Changes - #2393 `405af5ca` Thanks @layershifter! - Do not log failed rule insertions in the speedy mode for even more vendor-prefixed pseudo
405af5ca Thanks @layershifter! - Do not log failed rule insertions in the speedy mode for even more vendor-prefixed pseudo-elements/classes like :-moz-focus-inner, :-moz-focusring, and :-ms-clear.`5469d003` #2149 Thanks @Andarist! - Do not log failed rule insertions in the speedy mode for vendor-prefixed pseudo-elements/classes like ::-moz-plac
`9e998e37` #1817 Thanks @Andarist! - @import rules are no longer special-cased - they no longer are always inserted at the beginning of the stylesheet
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.`9c4ebc16` #2030 Thanks @Andarist! - Release candidate version.
`42df3f3b` #2028 Thanks @Andarist! - Generated style elements got data-s attribute so @emotion/cache can recognize them as being already owned by anot
`39be057b` #1997 Thanks @Andarist! - Reverted the change that has started to add an empty element eagerly in non-production environments that has been
39be057b #1997 Thanks @Andarist! - Reverted the change that has started to add an empty <style/> element eagerly in non-production environments that has been introduced in v1.0.0-next.3 as this has found to be problematic for websites using Content-Security-Policy and a nonce. Instead of this @emotion/cache will from now on insert an empty rule in non-production environments but it will only do that if an empty rule gets actually created by the user.`dc1a0c5e` #1962 Thanks @Andarist! - From now on an empty element gets inserted eagerly into the DOM in the constructor in non-production environments
dc1a0c5e #1962 Thanks @Andarist! - From now on an empty <style/> element gets inserted eagerly into the DOM in the constructor in non-production environments. This helps to grab used keys from the (JS)DOM even for sheets/caches that have not inserted any actual rules to the document yet. It allows @emotion/jest to find those and serialize Emotion classes properly in situations like this:
import styled from '@emotion/styled/macro'
import { render } from '@testing-library/react'
const Div = styled.div``
test('foo', () => {
const { container } = render(<Div />)
expect(container).toMatchSnapshot()
})
`9e998e37` #1817 Thanks @Andarist! - @import rules are no longer special-cased - they no longer are always inserted at the beginning of the stylesheet
`dfe79aca` #1572 Thanks @Andarist! - Added rehydrate method which can be used for SSRed styles. They become a part of a sheet and can be flushed.
`4a891bf6` #1473 Thanks @jcharry! - Accept new prepend option to allow for adding style tags at the beginning of the specified DOM container.
`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
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 →