All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.6.2 (2021-06-18)
2.6.1 (2020-06-20)
- remove peerDependency on babel/core (744391d)
- collectCalls: write CallExpressions to the cache dir (17405f5)
- createlookup: handle optional member expression (1af84b2)
- disable sourcemap (59b8b9e)
2.6.0 (2020-02-15)
- referenced-objects: handle multiple references (14a2e97)
- optimize referenced objects (20575e9)
- optimize: handle unnecessary "or" statements (fcdb75e)
- use scope to get expressions (68becac)
- createlookup: modify node instead of recreating it (4800a6b)
- createlookup: skip lookup for just one item (f8d089d)
2.5.0 (2019-10-07)
- combinestrings: set cooked value for templateelement (5e25580), closes #15
- extract: handle spread and method properties (51c8ced)
- optimize: handle ConditionalExpression in LogicalExpression (fa05e72)
- deps: upgrade dependencies (cd02789)
- improve terser output (11ca28b)
- remove rollup-plugin-commonjs (b994f88)
- collectcalls: include the location of the code (1ab1eab)
2.4.1 (2019-08-18)
- babel: target node 8 (a888c69)
2.4.0 (2019-08-18)
- helper: compare literals correctly (d728a45)
- stripliterals: handle all falsy values (721af56)
- stripliterals: handle empty template literals (1e9295c)
- stripliterals: remove more unnecessary truthy values (98d2a9d)
- deps: add babel-plugin-lodash (cd37d10)
- deps-dev: bump husky from 3.0.0 to 3.0.2 (#3) (de0ff50)
- deps-dev: bump rollup from 1.17.0 to 1.19.4 (#12) (0cb7b7e)
- deps-dev: bump standard-version from 6.0.1 to 7.0.0 (#6) (e699d1d)
- flatten and remove arrays (5ca8e7a)
- optimize expressions (236071e)
- support namespace imports (d6c5597)
- helper: avoid unnecessary compares (a5f1312)
- helper: compare type of nodes directly (41ff13f)
- helper: use switch statement over if else chain (b2874ad)
- track removed calls to avoid crawling the AST (28188a8)
- proptypes: skip traversing child nodes (ec883af)
- combine visitors (#8) (d6a9a62)
2.3.0 (2019-07-18)
- handle template and string literals correctly (f90ddaf)
- rimraf dist before each build (d3f9f1f)
- removecalls: handle arrays (524fa51)
- stripliterals: handle conditionalExpressions (18e35ba)
- collect calls before optimizing (c2537e5)
- combinestrings: support template literals (3d63596)
- removecalls: handle template literal (7ccf15f)
- stripliterals: remove empty strings (8672550)
- stripliterals: improve coverage (8b5c717)
2.2.0 (2019-05-31)
- createlookup: handle multiple checks (950dd82)
- create object key lookups (0630c91)
- combinestrings: handle strings in arrays (62c4ce9)
- removecalls: handle nested conditional expressions (2110589)
- removecalls: handle single logical expression (0c453b3)
- removecalls: handle string and logical expression as argument (2b59da8)
2.1.0 (2019-05-27)
- proptypes: handle isRequired and default value (aa244e3)
- use rollup, babel, and terser (29e730f)
- combine string literals (0bc7671)
- remove unnecessary function calls (3ea3d85)
- remove unused imports (8d2ae5f)
- strip literals (f206424)
- use proptypes to minimize expressions (300b006)
2.0.0 (2019-05-21)
- combine: don't create an arrayExpression with just one item (699d6f5)
- extract: transform static keys into string literals (#2) (213ff5b)
- helper: use count instead of total length (5ffec80)
- add support for creating conditional expressions (dab4b1a)
- get function name from imports (#1) (0c18712)
- combine: skip if argument length is less than 2 (2bc0714)
- No longer matches on all
clsx
andclassnames
function calls, instead looks for imports(and require) and uses the names specified there. If the file doesn't contain imports nothing will be done, to get the old behaviour back you can set thefunctionNames
option to['clsx', 'classnames']
1.1.2 (2019-05-07)
- combine: don't compare node against itself (9b990f6)
1.1.1 (2019-05-07)
- combine: don't assume jagged array has dimension [x][1] (3b308a1)
- combine: skip if no node appears more than once (f888818)
- use lodash to compare nodes (b10733e)
1.1.0 (2019-05-05)
- babel/types should not be a devDependency (36107ce)
- add support for classNames (f8de735)
- add support for combining arguments (5708852)
- handle exceptions correctly (7a5c96c)
1.0.1 (2019-05-04)
- add support for optimizing objects (299d0b9)