Comparing version 3.3.1 to 3.4.0
@@ -0,1 +1,7 @@ | ||
## 3.4.0 (November 3, 2017) | ||
- Added percent sign removal for zero percentages for some properties that is safe (@RubaXa, #286) | ||
- Removed unit removal for zero values in `-ms-flex` due it breaks flex in IE10/11 (#362) | ||
- Improved performance of selectors comparison (@smelukov, #343) | ||
## 3.3.1 (October 17, 2017) | ||
@@ -2,0 +8,0 @@ |
@@ -38,4 +38,6 @@ var packNumber = require('./Number').pack; | ||
// issue #200: don't remove units in flex property as it could change value meaning | ||
if (this.declaration.property === 'flex') { | ||
// issue #362: shouldn't remove unit in -ms-flex since it breaks flex in IE10/11 | ||
// issue #200: shouldn't remove unit in flex since it breaks flex in IE10/11 | ||
if (this.declaration.property === '-ms-flex' || | ||
this.declaration.property === 'flex') { | ||
return; | ||
@@ -42,0 +44,0 @@ } |
@@ -7,3 +7,3 @@ var walk = require('css-tree').walkUp; | ||
Dimension: require('./Dimension'), | ||
Percentage: require('./Number'), | ||
Percentage: require('./Percentage'), | ||
Number: require('./Number'), | ||
@@ -10,0 +10,0 @@ String: require('./String'), |
@@ -102,7 +102,19 @@ var hasOwnProperty = Object.prototype.hasOwnProperty; | ||
function hasSimilarSelectors(selectors1, selectors2) { | ||
return selectors1.some(function(a) { | ||
return selectors2.some(function(b) { | ||
return a.compareMarker === b.compareMarker; | ||
}); | ||
}); | ||
var cursor1 = selectors1.head; | ||
while (cursor1 !== null) { | ||
var cursor2 = selectors2.head; | ||
while (cursor2 !== null) { | ||
if (cursor1.data.compareMarker === cursor2.data.compareMarker) { | ||
return true; | ||
} | ||
cursor2 = cursor2.next; | ||
} | ||
cursor1 = cursor1.next; | ||
} | ||
return false; | ||
} | ||
@@ -109,0 +121,0 @@ |
{ | ||
"name": "csso", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "CSS minifier with structural optimisations", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
44
328198
3420