diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f7c471..48b957c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.8.1 + +_2019-10-28_ + +Made a couple tweaks to shave some unnecessary bytes. + ## 0.8.0 _2019-10-28_ diff --git a/package-lock.json b/package-lock.json index 9933729..73f389f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "zaftig", - "version": "0.8.0", + "version": "0.8.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 6c0b5ae..f922d16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zaftig", - "version": "0.8.0", + "version": "0.8.1", "description": "css for your js", "source": "src/index.js", "main": "dist/zaftig.es5.min.js", diff --git a/src/index.js b/src/index.js index c6a35d6..cbb5d78 100644 --- a/src/index.js +++ b/src/index.js @@ -165,7 +165,7 @@ const makeZ = (conf = {}) => { let { style, debug = false } = conf let idCount = 0 - const addToSheet = (sel, body, prefix = false) => { + const addToSheet = (sel, body, prefix) => { const rule = wrap(prefix ? prefixSelector(sel) : sel, body) if (!rule) return if (!style) { @@ -196,7 +196,7 @@ const makeZ = (conf = {}) => { if (ctx.sub) ctx.sub.forEach(appendSpecialRule) } - const appendSpecial = (sel, rules, psel = '', pctx = null) => { + const appendSpecial = (sel, rules, psel = '', pctx) => { const media = sel.indexOf('@media') == 0 const ctx = { sel: media ? sel.slice(sel.indexOf(' ') + 1) : sel, @@ -209,7 +209,7 @@ const makeZ = (conf = {}) => { else appendSpecialRule(ctx) } - const appendRule = (sel, rules, psel = '', pctx = null) => { + const appendRule = (sel, rules, psel = '', pctx) => { if (/^@(media|keyframes)/.test(sel)) return appendSpecial(sel, rules, psel == '' ? ':root' : psel, pctx) if (psel && (!pctx || pctx.media)) sel = processSelector(sel, psel)