@emotion/cache
Advanced tools
Comparing version 11.6.0 to 11.7.1
# @emotion/cache | ||
## 11.7.1 | ||
### Patch Changes | ||
- [#2590](https://github.com/emotion-js/emotion/pull/2590) [`1554a7e2`](https://github.com/emotion-js/emotion/commit/1554a7e264e05780b2c5bd74ccb20a92005ba61d) Thanks [@Andarist](https://github.com/Andarist)! - Upgraded and pinned the version of Stylis - the CSS parser that Emotion uses under the hood. | ||
## 11.6.0 | ||
@@ -4,0 +10,0 @@ |
@@ -87,4 +87,5 @@ 'use strict'; | ||
var compat = function compat(element) { | ||
if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not | ||
!element.length) { | ||
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo | ||
// negative .length indicates that this rule has been already prefixed | ||
element.length < 1) { | ||
return; | ||
@@ -91,0 +92,0 @@ } |
@@ -83,4 +83,5 @@ import { StyleSheet } from '@emotion/sheet'; | ||
var compat = function compat(element) { | ||
if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not | ||
!element.length) { | ||
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo | ||
// negative .length indicates that this rule has been already prefixed | ||
element.length < 1) { | ||
return; | ||
@@ -87,0 +88,0 @@ } |
@@ -92,4 +92,5 @@ 'use strict'; | ||
var compat = function compat(element) { | ||
if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not | ||
!element.length) { | ||
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo | ||
// negative .length indicates that this rule has been already prefixed | ||
element.length < 1) { | ||
return; | ||
@@ -96,0 +97,0 @@ } |
@@ -47,3 +47,3 @@ "use strict"; | ||
}, fixedElements = new WeakMap, compat = function(element) { | ||
if ("rule" === element.type && element.parent && element.length) { | ||
if ("rule" === element.type && element.parent && !(element.length < 1)) { | ||
for (var value = element.value, parent = element.parent, isImplicitRule = element.column === parent.column && element.line === parent.line; "rule" !== parent.type; ) if (!(parent = parent.parent)) return; | ||
@@ -50,0 +50,0 @@ if ((1 !== element.props.length || 58 === value.charCodeAt(0) || fixedElements.get(parent)) && !isImplicitRule) { |
@@ -83,4 +83,5 @@ import { StyleSheet } from '@emotion/sheet'; | ||
var compat = function compat(element) { | ||
if (element.type !== 'rule' || !element.parent || // .length indicates if this rule contains pseudo or not | ||
!element.length) { | ||
if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo | ||
// negative .length indicates that this rule has been already prefixed | ||
element.length < 1) { | ||
return; | ||
@@ -87,0 +88,0 @@ } |
{ | ||
"name": "@emotion/cache", | ||
"version": "11.6.0", | ||
"version": "11.7.1", | ||
"description": "emotion's cache", | ||
@@ -22,3 +22,3 @@ "main": "dist/emotion-cache.cjs.js", | ||
"@emotion/weak-memoize": "^0.2.5", | ||
"stylis": "^4.0.10" | ||
"stylis": "4.0.13" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
@@ -92,4 +92,5 @@ import { | ||
!element.parent || | ||
// .length indicates if this rule contains pseudo or not | ||
!element.length | ||
// positive .length indicates that this rule contains pseudo | ||
// negative .length indicates that this rule has been already prefixed | ||
element.length < 1 | ||
) { | ||
@@ -96,0 +97,0 @@ return |
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
97213
1828
+ Addedstylis@4.0.13(transitive)
- Removedstylis@4.3.4(transitive)
Updatedstylis@4.0.13