Socket
Socket
Sign inDemoInstall

@emotion/css

Package Overview
Dependencies
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emotion/css - npm Package Compare versions

Comparing version 11.0.0-next.3 to 11.0.0-next.6

17

CHANGELOG.md
# @emotion/css
## 11.0.0-next.6
### Major Changes
- [`843bfb11`](https://github.com/emotion-js/emotion/commit/843bfb1153ee0dbe33d005fdd5c5be185daa5c41) [#1600](https://github.com/emotion-js/emotion/pull/1600) Thanks [@Andarist](https://github.com/Andarist)! - Removed `@emotion/css` - it's main purpose was to allow `css` to be a Babel macro, but since babel-plugin-macros allows us to keep imports nowadays this is no longer needed. `@emotion/core/macro` has been added to account for this use case and appropriate changes has been made to `babel-plugin-emotion` to facilitate those changes.
If you have used `@emotion/css` directly (it was always reexported from `@emotion/core`) or you have been using its macro then you should update your code like this:
```diff
-import css from '@emotion/css'
+import { css } from '@emotion/core'
// or
-import css from '@emotion/css/macro'
+import { css } from '@emotion/core/macro'
```
## 11.0.0-next.3

@@ -4,0 +21,0 @@

14

dist/css.cjs.dev.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var serialize = require('@emotion/serialize');
function css() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return serialize.serializeStyles(args);
}
exports.default = css;
throw new Error("`@emotion/css` package has been replaced with the `css` export from `@emotion/core`. Please import it like this `import { css } from '@emotion/core'`.");
"use strict";
Object.defineProperty(exports, "__esModule", {
value: !0
});
var serialize = require("@emotion/serialize");
function css() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
return serialize.serializeStyles(args);
}
exports.default = css;
throw new Error("`@emotion/css` package has been replaced with the `css` export from `@emotion/core`. Please import it like this `import { css } from '@emotion/core'`.");
{
"name": "@emotion/css",
"version": "11.0.0-next.3",
"version": "11.0.0-next.6",
"description": "a function to serialize css and object styless",
"main": "dist/css.cjs.js",
"module": "dist/css.esm.js",
"types": "types/index.d.ts",
"license": "MIT",
"repository": "https://github.com/emotion-js/emotion/tree/master/packages/css",
"scripts": {
"test:typescript": "dtslint types"
"test:typescript": "exit 0"
},
"dependencies": {
"@emotion/serialize": "^0.11.15-next.1",
"@emotion/utils": "0.11.2",
"babel-plugin-emotion": "^11.0.0-next.3"
},
"devDependencies": {
"dtslint": "^0.3.0"
},
"publishConfig": {
"access": "public"
},
"files": [
"src",
"dist",
"types",
"macro.js",
"macro.d.ts",
"macro.js.flow"
],
"browser": {
"./dist/css.cjs.js": "./dist/css.browser.cjs.js",
"./dist/css.esm.js": "./dist/css.browser.esm.js"
}
"files": ["dist"]
}
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