Releases: projectwallace/css-analyzer
Releases · projectwallace/css-analyzer
v5.7.1
Fixed
- 🐛 calculate embedded size correctly on duplicate embeds by @bartveneman in #282
Full Changelog: v5.7.0...v5.7.1
v5.7.0
What's new
- add embed type analysis by @bartveneman in #272
- report color formats by @bartveneman in #280
- Count !important usage combined with custom properties by @bartveneman in #275
Bug fixes
- Replace specificity analysis with @bramus/specificity by @bartveneman in #270
Misc.
- Use Set() for counting unique declarations and selectors by @bartveneman in #265
- use Sets for keywords instead of object lookups by @bartveneman in #273
- Bump minimatch from 3.0.4 to 3.1.2 by @dependabot in #271
- Bump loader-utils from 3.2.0 to 3.2.1 by @dependabot in #266
- improve stringifyNode performance by @bartveneman in #274
- Adjust test matrix: drop node 12, include node 18 by @bartveneman in #276
- update csstree to 2.3.1 by @bartveneman in #278
- Bump json5 from 2.2.0 to 2.2.2 by @dependabot in #277
- seperate analysis for complexity and isA11y by @bartveneman in #279
Full Changelog: v5.6.0...v5.7.0
v5.6.0
What's new
- Add analysis for browserhacks in
@media
,@supports
, properties and values by @bartveneman in #258 - count extra selector complexity for browser prefixes
- add property complexity
- Add
declarations.totalUnique
+declarations.uniquenessRatio
by @bartveneman in #243
Fixed
- fix: do not add https://github.com/layers to https://github.com/containers
- fix: typings for specifity metrics
Other changes
- reduce bundle size by avoiding ?. syntax
- reduce memory usage for selector analysis
- reduce bundle size (5.25kb -> 5.23) by not repeating DivisionByZero logic
- faster tests: rm assert.not.throws by @bartveneman in #241
- reduce memory usage for OccurrenceCounter by hashing the values by @bartveneman in #242
- Update microbundle & uvu by @bartveneman in #255
- update csstree to 2.2.0 by @bartveneman in #256
- update csstree to 2.2.1 by @bartveneman in #257
Full Changelog: v5.5.0...v5.6.0
v5.5.0
What's Changed
- use node.prelude/block.children.size instead of walking rules separately in #235
- list counts per selectors/rule or declarations/rule, closes #237 in #238
- list counts per selector specificity in #239
- report RuleSet sizes (declarations + selectors) in #240
Full Changelog: v5.4.0...v5.5.0
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