Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emotion-server

Package Overview
Dependencies
Maintainers
3
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emotion-server - npm Package Compare versions

Comparing version 11.0.0-next.8 to 11.0.0-next.10

6

CHANGELOG.md
# emotion-server
## 11.0.0-next.10
### Major Changes
- [`b8476e08`](https://github.com/emotion-js/emotion/commit/b8476e08af4a2e8de94a112cb0daf6e8e4d56fe1) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Rename `emotion-server` to `@emotion/server`. Please change any imports of `emotion-server` to import `@emotion/server` or use the `@emotion/pkg-renaming` ESLint rule from `@emotion/eslint-plugin`.
## 11.0.0-next.8

@@ -4,0 +10,0 @@

16

dist/emotion-server.browser.cjs.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var createEmotionServer = _interopDefault(require('create-emotion-server'));
var emotion = require('emotion');
var _createEmotionServer = createEmotionServer(emotion.cache),
extractCritical = _createEmotionServer.extractCritical,
renderStylesToString = _createEmotionServer.renderStylesToString,
renderStylesToNodeStream = _createEmotionServer.renderStylesToNodeStream;
exports.extractCritical = extractCritical;
exports.renderStylesToNodeStream = renderStylesToNodeStream;
exports.renderStylesToString = renderStylesToString;
throw new Error("The `emotion-server` package has been renamed to `@emotion/server`. Please import it like this `import { extractCritical, renderStylesToString, renderStylesToNodeStream } from '@emotion/server'`.");
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var createEmotionServer = _interopDefault(require('create-emotion-server'));
var emotion = require('emotion');
var _createEmotionServer = createEmotionServer(emotion.cache),
extractCritical = _createEmotionServer.extractCritical,
renderStylesToString = _createEmotionServer.renderStylesToString,
renderStylesToNodeStream = _createEmotionServer.renderStylesToNodeStream;
exports.extractCritical = extractCritical;
exports.renderStylesToNodeStream = renderStylesToNodeStream;
exports.renderStylesToString = renderStylesToString;
throw new Error("The `emotion-server` package has been renamed to `@emotion/server`. Please import it like this `import { extractCritical, renderStylesToString, renderStylesToNodeStream } from '@emotion/server'`.");
"use strict";
function _interopDefault(ex) {
return ex && "object" == typeof ex && "default" in ex ? ex.default : ex;
}
Object.defineProperty(exports, "__esModule", {
value: !0
});
var createEmotionServer = _interopDefault(require("create-emotion-server")), emotion = require("emotion"), _createEmotionServer = createEmotionServer(emotion.cache), extractCritical = _createEmotionServer.extractCritical, renderStylesToString = _createEmotionServer.renderStylesToString, renderStylesToNodeStream = _createEmotionServer.renderStylesToNodeStream;
exports.extractCritical = extractCritical, exports.renderStylesToNodeStream = renderStylesToNodeStream,
exports.renderStylesToString = renderStylesToString;
throw new Error("The `emotion-server` package has been renamed to `@emotion/server`. Please import it like this `import { extractCritical, renderStylesToString, renderStylesToNodeStream } from '@emotion/server'`.");
{
"name": "emotion-server",
"version": "11.0.0-next.8",
"version": "11.0.0-next.10",
"description": "Extract and inline critical css with emotion for server side rendering.",

@@ -10,19 +10,7 @@ "main": "dist/emotion-server.cjs.js",

"dist",
"types"
"types/*.d.ts"
],
"scripts": {
"test:typescript": "dtslint types"
"test:typescript": "exit 0"
},
"dependencies": {
"create-emotion-server": "11.0.0-next.0"
},
"peerDependencies": {
"emotion": "^11.0.0-next.8"
},
"devDependencies": {
"@types/node": "^10.11.4",
"babel-plugin-emotion": "^11.0.0-next.8",
"dtslint": "^0.3.0",
"emotion": "^11.0.0-next.8"
},
"author": "Kye Hohenberger",

@@ -29,0 +17,0 @@ "homepage": "https://emotion.sh",

@@ -1,9 +0,3 @@

// @flow
import createEmotionServer from 'create-emotion-server'
import { cache } from 'emotion'
export const {
extractCritical,
renderStylesToString,
renderStylesToNodeStream
} = createEmotionServer(cache)
throw new Error(
"The `emotion-server` package has been renamed to `@emotion/server`. Please import it like this `import { extractCritical, renderStylesToString, renderStylesToNodeStream } from '@emotion/server'`."
)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc