create-emotion-server
Advanced tools
Comparing version 10.0.0-beta.0 to 10.0.0-beta.1
{ | ||
"name": "create-emotion-server", | ||
"version": "10.0.0-beta.0", | ||
"version": "10.0.0-beta.1", | ||
"description": "SSR and style extraction tooling for emotion, The Next Generation of CSS-in-JS.", | ||
@@ -23,4 +23,4 @@ "main": "dist/index.cjs.js", | ||
"dtslint": "^0.3.0", | ||
"emotion": "^10.0.0-beta.0", | ||
"react-emotion": "^10.0.0-beta.0" | ||
"emotion": "^10.0.0-beta.1", | ||
"react-emotion": "^10.0.0-beta.1" | ||
}, | ||
@@ -27,0 +27,0 @@ "author": "Kye Hohenberger", |
@@ -9,4 +9,9 @@ # create-emotion-server | ||
import createEmotionServer from 'create-emotion-server' | ||
import * as emotion from 'my-emotion-instance' | ||
import { cache } from 'my-emotion-instance' | ||
// or | ||
import createCache from '@emotion/cache' | ||
let cache = createCache() | ||
export const { | ||
@@ -16,5 +21,5 @@ extractCritical, | ||
renderStylesToNodeStream | ||
} = createEmotionServer(emotion) | ||
} = createEmotionServer(cache) | ||
``` | ||
[All of emotion's SSR APIs are documented in their own doc.](https://emotion.sh/docs/ssr) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23818
24
0