You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Upgrade React 18 to its latest RC version
* Refactored tests to RTL to run tests easier against different React version, also run test suite with React 18
* Add separate Jest config to run tests with React 18
* Move rule insertion to the inner `<Insertion/>` for the css prop
* Fixed Enzyme's shallow tests
* Make test pass with real `useInsertionEffect`
* Use `<Insertion/> and `useInsertionEffect` for all injection points in `@emotion/react` and `@emotion/styled``
* Fixed import-prod test problem with production React 18 throwing when used with RTL cause it's using act
* Refactor one last test that was using JSDOM explicitly
* Fixed CI
* Update packages/css/test/no-babel/index.test.js
* add changesets
Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Refactored code to use the upcoming `React.useInsertionEffect` when it's available (this is a new hook that is going to be introduced in React 18). This shouldn't have any effect on existing codebases and the change should be transparent.
Introduced `registerStyles` helper that is shared across between other packages. This is just an internal util that shouldn't be used by packages other than `@emotion/*` packages.
src: local('Patrick Hand SC'),local('PatrickHandSC-Regular'),url(https://fonts.gstatic.com/s/patrickhandsc/v4/OYFWCgfCR-7uHIovjUZXsZ71Uis0Qeb9Gqo8IZV7ckE.woff2) format('woff2');
src: local('Patrick Hand SC'),local('PatrickHandSC-Regular'),url(https://fonts.gstatic.com/s/patrickhandsc/v4/OYFWCgfCR-7uHIovjUZXsZ71Uis0Qeb9Gqo8IZV7ckE.woff2) format('woff2');
0 commit comments