👩🎤 CSS-in-JS library designed for high performance style composition
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] almost 3 years ago
57be9e8c
Thanks @srmagura! - Changed the implementation of the runtime label extraction in elements using the css prop (that only happens in development) to one that should yield more consistent results across browsers. This fixes some minor issues with React reporting hydration mismatches that wouldn't happen in production.Published by github-actions[bot] almost 3 years ago
eb013d25
Thanks @eps1lon! - Fixed hydration mismatches if React.useId
(an upcoming API in React 18) is used within a tree below our components.9861a18b
]:
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
#2521 516fe458
Thanks @mnajdova! - Added insertionPoint
option to the createCache
. It can be used to insert rules after the specified element. For example, to use it with the CacheProvider
from @emotion/react
you can do this:
const head = document.querySelector('head')
// <meta name="emotion-insertion-point" content="">
const emotionInsertionPoint = document.createElement('meta')
emotionInsertionPoint.setAttribute('name', 'emotion-insertion-point')
emotionInsertionPoint.setAttribute('content', '')
head.appendChild(emotionInsertionPoint)
// the emotion sheets should be inserted right after the meta tag
const cache = createCache({
key: 'my-app',
insertionPoint: emotionInsertionPoint
})
function App() {
return (
<CacheProvider value={cache}>
<Main />
</CacheProvider>
)
}
9e82a991
]:
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] almost 3 years ago
eb013d25
Thanks @eps1lon! - Fixed hydration mismatches if React.useId
(an upcoming API in React 18) is used within a tree below our components.#2551 99fcea04
Thanks @Andarist! - Shorten the path of the "private" isolated-hoist-non-react-statics-do-not-use-this-in-your-code
entrypoint to avoid exeeding path limitations on Windows.
Updated dependencies [9e82a991
, 516fe458
]:
Published by github-actions[bot] almost 3 years ago
Published by github-actions[bot] about 3 years ago
f2eda829
Thanks @mdesantis! - Fixed an issue with sheet.flush()
crashing if its style elements were already detached by something else.Published by github-actions[bot] about 3 years ago
#2498 e5beae8e
Thanks @Andarist! - Fixed an edge case issue with incorrect rules being generated. When a context selector (&
) was used not at the beginning of a selector (which is not valid SCSS but is allowed by the Stylis parser that we are using) within a group of selectors containing a pseudoclass then it was not replaced correctly with the current context selector.
Updated dependencies [e5beae8e
, 9ae4a91a
, f2eda829
]:
Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago
#2498 e5beae8e
Thanks @Andarist! - Fixed an edge case issue with incorrect rules being generated. When a context selector (&
) was used not at the beginning of a selector (which is not valid SCSS but is allowed by the Stylis parser that we are using) within a group of selectors containing a pseudoclass then it was not replaced correctly with the current context selector.
#2500 eda5e687
Thanks @Jarred-Sumner! - Fix error loading @emotion/react in alternative JS environments
Updated dependencies [e5beae8e
, 9ae4a91a
, f2eda829
]:
Published by github-actions[bot] about 3 years ago
Published by github-actions[bot] about 3 years ago
#2498 e5beae8e
Thanks @Andarist! - Fixed an edge case issue with incorrect rules being generated. When a context selector (&
) was used not at the beginning of a selector (which is not valid SCSS but is allowed by the Stylis parser that we are using) within a group of selectors containing a pseudoclass then it was not replaced correctly with the current context selector.
#2493 9ae4a91a
Thanks @Andarist! - Improved the declared types related to Stylis. This should improve the compatibility with the types published in @types/stylis
.
Updated dependencies [f2eda829
]:
Published by github-actions[bot] about 3 years ago
#2441 24557d9d
Thanks @garronej! - Exposed __unsafe_useEmotionCache
which can be used to access the current Emotion's cache in an easier way than before. Using this might break 0-config SSR and is not recommended to be used unless there you know what you are doing and you are OK with the mentioned downside.
#2424 cd25b62d
Thanks @tills13! - Use theme context when rendering components at all times. This removes a conditional usage of a React hook that could break Rules of Hooks in some scenarios.
#2428 a69929d6
Thanks @eps1lon! - Added display names to public React contexts in development builds. This helps to recognize them in React Developer Tools.
Updated dependencies [405af5ca
]:
Published by github-actions[bot] about 3 years ago
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
.Published by github-actions[bot] over 3 years ago
38f9d44f
Thanks @danieldelcore, @mitchellhamilton! - Fixed moving of client-side inserted style tags from Emotion 10 when intending to hydrate Emotion 11 styles resulting in losing styles in productionPublished by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago
#2334 7d9e74f8
Thanks @Andarist! - The Global component no longer replaces style elements from server-rendering on first mount and instead reuses the server-side rendered style element
Updated dependencies [38f9d44f
]:
Published by github-actions[bot] over 3 years ago
Published by github-actions[bot] over 3 years ago