Comparing version 3.1.0 to 3.1.1
@@ -0,3 +1,8 @@ | ||
# 3.1.1 - 30 Jan. 2021 | ||
* Fixes `TypeError` when placing value directive before `!important`. [#218](https://github.com/MohammadYounes/rtlcss/issues/218) | ||
# 3.1.0 - 30 Jan. 2021 | ||
* Use `strict` mode across all files. **Thanks @XhmikosR** | ||
* Decrease package size by around 6%. **Thanks @XhmikosR** | ||
* Add guards against prototype pollution. **Thanks @XhmikosR** | ||
* Allow value directives to be placed any where inside the declaration value. | ||
@@ -4,0 +9,0 @@ * Handle value directives placed after `!important`. |
@@ -124,3 +124,3 @@ /* | ||
const expr = context.util.regexDirective(directive.name) | ||
if (expr.test(`${node.raws.between}${hasRawValue ? node.raws.value.raw : ''}${node.important ? node.raws.important : ''}`)) { | ||
if (expr.test(`${node.raws.between}${hasRawValue ? node.raws.value.raw : ''}${node.important && node.raws.important ? node.raws.important : ''}`)) { | ||
expr.lastIndex = 0 | ||
@@ -130,3 +130,3 @@ if (directive.action(node, expr, context)) { | ||
node.raws.between = context.util.trimDirective(node.raws.between) | ||
if (node.important) { | ||
if (node.important && node.raws.important) { | ||
node.raws.important = context.util.trimDirective(node.raws.important) | ||
@@ -133,0 +133,0 @@ } |
{ | ||
"author": "Mohammad Younes", | ||
"name": "rtlcss", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "Framework for transforming cascading style sheets (CSS) from left-to-right (LTR) to right-to-left (RTL)", | ||
@@ -34,3 +34,3 @@ "homepage": "https://rtlcss.com/", | ||
"mkdirp": "^1.0.4", | ||
"postcss": "^8.2.1", | ||
"postcss": "^8.2.4", | ||
"strip-json-comments": "^3.1.1" | ||
@@ -43,3 +43,3 @@ }, | ||
"peerDependencies": { | ||
"postcss": "^8.2.1" | ||
"postcss": "^8.2.4" | ||
}, | ||
@@ -58,2 +58,2 @@ "scripts": { | ||
] | ||
} | ||
} |
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
65897
Updatedpostcss@^8.2.4