Releases: projectwallace/css-analyzer
Releases · projectwallace/css-analyzer
v5.4.0
Improvements
- Restucture atRule analysis to improve memory usage for large files and make it more consistent with recent changes f7e30c6
- Remove an obsolete variable, slightly improving memory usage 932774a
- Replace many calls to
Object.assign
withassign
afterconst assign = Object.assign
, improving bundled output size (4.8kB -> 4.7kB) 3c39408
Chores
- Remove obsolete
benchmark
andwatchlist
devDependencies d2068ab
v5.3.0
Improvements
- 📋 Ordering of font-sizes, font-families, timing-functions, durations now match the source order of your CSS more closely.
Before this release all values from shorthands would be appended to the end of the list. Now they're in the actual position as they are in the source CSS. - 🧠 Lower memory usage by keeping track of less objects
- 🧪 Improved tests for vendor prefixed values
- 🌱 Reduced bundle size (4.91kB -> 4.80kB = -2.2%)
Fixed defects
- Don't minify the
__meta__
property - Don't list
initial
,inherit
or other keywords as font-sizes or font-families - Pick up colors in values that start with a CSS keyword:
background: none 0px 0px repeat scroll rgb(0, 0, 0);
v5.2.1
5.2.1
v5.2.0
What's Changed
Performance improvements
- do not pass around large objects if possible in #223
- Move some analysis to main loop in #225
- avoid getting property basenames if we can in #226
- Lower memory usage when comparing strings in #227
Full Changelog: v5.1.1...v5.1.2
v5.1.1
What's Changed
- Reduce bundle size: 169kB -> 76kB by @bartveneman in #217
Full Changelog: v5.1.0...v5.1.1
v5.1.0
What's Changed
Full Changelog: v5.0.2...v5.1.0
v5.0.2
v5.0.1
v5.0.0
V5: faster, more detailed and browser compatible
Breaking 🔥
- Drop support for Node 8 and 10 (see Node.js releases)
- Rename all metrics ending on
.share
to.ratio
- Rename
stylesheets
tostylesheet
- Remove
stylesheets.browserhacks.*
- Remove
stylesheets.cohesion
(replaced withrules.selectors.mean
) - Remove
atrules.documents.*
- Remove
atrules.mediaqueries.browserhacks.*
- Remove
atrules.namespace.*
- Remove
atrules.page.*
- Remove
atrules.supports.browserhacks.*
- Remove
stylesheets.simplicity (replaced by
rules.selectors.mean`) - Remove
selectors.js.*
- Remove
selectors.browserhacks.*
- Remove
values.total
- Remove
values.browserhacks.*
- Remove
values.colors.duplicate.*
New features
- Add
atrules.keyframes.prefixed.*
- Add
rules.selectors.mean/median/mode/etc
- Add
rules.declarations.mean/median/mode
- Add
selectors.specificity.*
- Add
selectors.complexity.*
Closes #207, #206, #200, #184, #183, #181, #148, #142, #129, #121, #83, #59
v5.0.0-alpha.2
V5: faster, more detailed and browser compatible
- Drop support for Node 8 and 10 (Node.js releases)
- Rename all metrics ending on .share to .ratio
- Rename stylesheets to stylesheet
- Remove stylesheets.browserhacks
- Remove stylesheets.cohesion (now rules.selectors.mean)
- Remove atrules.documents
- Remove atrules.mediaqueries.browserhacks
- Add atrules.keyframes.prefixed
- Drop atrules.namespace.*
- Drop atrules.page.*
- Drop atrules.supports.browserhacks.*
- Remove stylesheets.simplicity(now rules.selectors.mean)
- Add rules.selectors.mean/median/mode/etc
- Add rules.declarations.mea/median/mode
- Remove selectors.js.*
- Add selectors.specificity.*
- Add selectors.complexity.*
- Remove selectors.browserhacks.*
- Remove values.total
- Remove values.browserhacks.*
- Remove values.colors.duplicate.*
Closes #207, #206, #200, #184, #183, #181, #148, #142, #129, #121, #83, #59