All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
- back-porting the latest v7.0.13 to CJS and releasing as non-pure ESM (no
type: module
in package.json).
- trailing line break to be correctly set in CR files (849ff16)
- Minimum supported Node version is v14.18; we're dropping v12 support
- fix result
log.originalLength
(994b27d)
- export types (11b5fb9)
- export
Opts
andRes
types (398a7d1)
- fix a bug where selectors ending with colon were misinterpreted (f279a19)
- tweak types (a6acd6a)
- migrate to ES Modules (8c9d95d)
- programs now are in ES Modules and won't work with Common JS
require()
- recognise Nunjucks/Jinja within head CSS @font-face (4fd803b)
- correct the name of the package in the throw messages (2d1ad58)
- add
testStats
to npmignore (f3c84e9)
- rewrite in TS (402f4a2)
- Now you must consume like
import { comb } from ...
- leave quote-less attributes intact, don't try to restore quotes (cf591db)
- correct the typo in the
log.timeTakenInMilliseconds
(ddc2dec)
Accidental version bump during migration to SourceHut. Sorry about that.
- leave the trailing line break condition as it comes in, unless it's excessive (trim then) (f2dee90), closes #40
- improvements to algorithm when class is joined with a known ESP tag (366c13b)
- correctly recognise single and double apostrophes within the text, outside tags (5f7f428)
- recognise single-double-single/double-single-double quotes within attr values (3eeaf1e)
- remove leading spaces in cleaned like
class=" zz"
and tighten upclass
/id
recognition (a900e4e)
- recognise bracket notation (ce0a0b1)
- support quoteless attributes that come out of other minifiers (9129fad)
- support for liquid template engine double curlies as CSS style values in head CSS (819df36)
- Add perf measurement, comparing and recording (44f7a9e)
- Output object's new keys
countBeforeCleaning
andcountAfterCleaning
(55b13e7) - Uglification legend does not mention entries which were not uglified because of being whitelisted (b6bacfc)
opts.removeCSSComments
(b848d1c)- Uglification based on class/id characters but not class/id position in the reference array (c839977)
- If uglification was turned on, output legend under
log.uglified
(805ce2d) opts.reportProgressFunc
(f5935fb)opts.reportProgressFuncFrom
andopts.reportProgressFuncTo
(8734cc5)
- Change the default export to { comb } instead of function exported as default (3db706e)
- Now you must consume importing or requiring { comb } instead of assigning to any variable you like as before
- The comma bug where unused chunk was sandwiched by used chunks (cb6fa4c)
- Empty media queries in tight scenarios not being removed completely (d4f1d8e)
- Fix the Create New Issue URLs (c5ee4a6)
- Various documentation and setup tweaks after we migrated to monorepo
- Setup refresh: updated dependencies and all config files using automated tools
- Renaming
email-remove-unused-css
toemail-comb
and resetting versions to1.0.0