diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..5e783aa --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "semi": false, + "tabWidth": 2, + "singleQuote": true, + "printWidth": 100 +} diff --git a/CHANGELOG.md b/CHANGELOG.md index c67b701..54434fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.8.3 + +_2019-11-12_ + +Added auto-px exception for `flex`. In IE `px` was being added even though numbers without units numbers should be accepted. + ## 0.8.2 _2019-11-08_ diff --git a/package-lock.json b/package-lock.json index 7a8da45..aa3d8be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "zaftig", - "version": "0.8.2", + "version": "0.8.3", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -887,9 +887,9 @@ "dev": true }, "source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.16.tgz", + "integrity": "sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==", "dev": true, "requires": { "buffer-from": "^1.0.0", @@ -941,9 +941,9 @@ "dev": true }, "terser": { - "version": "4.3.9", - "resolved": "https://registry.npmjs.org/terser/-/terser-4.3.9.tgz", - "integrity": "sha512-NFGMpHjlzmyOtPL+fDw3G7+6Ueh/sz4mkaUYa4lJCxOPTNzd0Uj0aZJOmsDYoSQyfuVoWDMSWTPU3huyOm2zdA==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-4.4.0.tgz", + "integrity": "sha512-oDG16n2WKm27JO8h4y/w3iqBGAOSCtq7k8dRmrn4Wf9NouL0b2WpMHGChFGZq4nFAQy1FsNJrVQHfurXOSTmOA==", "dev": true, "requires": { "commander": "^2.20.0", diff --git a/package.json b/package.json index 848fc70..25ca93d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zaftig", - "version": "0.8.2", + "version": "0.8.3", "description": "css for your js", "source": "src/index.js", "main": "dist/zaftig.es5.min.js", @@ -28,6 +28,6 @@ "buble": "^0.19.8", "jsdom": "^15.2.1", "ospec": "^4.0.1", - "terser": "^4.3.9" + "terser": "^4.4.0" } } diff --git a/src/index.js b/src/index.js index 15fcc54..43317b7 100644 --- a/src/index.js +++ b/src/index.js @@ -78,6 +78,7 @@ const needsPx = memo( return testDiv.style.cssText.slice(-3) == 'px;' }), { + flex: false, border: true, 'border-left': true, 'border-right': true,