This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
You can now customize the emotion instance by passing options to the integration! For example, the following option will change the generated class name pattern from e-xxxxx to css-xxxxx:
During development, changes made to css blocks will now reflect immediately on the browser without a full page refresh!
Internal changes:
Naming of the generated css files has been updated to use hashes. This prevents noisy 404 requests that appear when the dev server is restarted while a browser tab is open with the preview.
Breaking changes:
The hashing uses node's crypto.hash() function, which is only available starting Node v20.12. Node 18 is no longer supported. Please use either Node v20 or v22.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
astro-emotion@2.0.0
Major Changes
#104
278199a
Thanks @lilnasy! - New features:e-xxxxx
tocss-xxxxx
:Internal changes:
Breaking changes:
crypto.hash()
function, which is only available starting Node v20.12. Node 18 is no longer supported. Please use either Node v20 or v22.