@emotion/css
Advanced tools
Comparing version 11.0.0-next.3 to 11.0.0-next.6
# @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 @@ |
'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"] | ||
} |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
0
0
6729
5
10
1
- Removed@emotion/serialize@^0.11.15-next.1
- Removed@emotion/utils@0.11.2
- Removedbabel-plugin-emotion@^11.0.0-next.3
- Removed@emotion/hash@0.8.0(transitive)
- Removed@emotion/memoize@0.7.4(transitive)
- Removed@emotion/serialize@0.11.16(transitive)
- Removed@emotion/unitless@0.7.5(transitive)
- Removed@emotion/utils@0.11.20.11.3(transitive)
- Removedbabel-plugin-emotion@11.0.0(transitive)
- Removedcsstype@2.6.21(transitive)