Skip to content

Releases: projectwallace/css-analyzer

v5.4.0

11 Apr 20:31
Compare
Choose a tag to compare

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 with assign after const assign = Object.assign, improving bundled output size (4.8kB -> 4.7kB) 3c39408

Chores

  • Remove obsolete benchmark and watchlist devDependencies d2068ab

v5.3.0

07 Apr 21:35
Compare
Choose a tag to compare

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

04 Apr 13:37
Compare
Choose a tag to compare
5.2.1

v5.2.0

04 Apr 11:56
211a4f2
Compare
Choose a tag to compare

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

24 Feb 19:36
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.1.0...v5.1.1

v5.1.0

05 Feb 20:10
Compare
Choose a tag to compare

What's Changed

  • analyze embedded content in #215
  • ship TS types in #216

Full Changelog: v5.0.2...v5.1.0

v5.0.2

01 Feb 15:09
Compare
Choose a tag to compare

Fixes

  • fix cases where .ratio would end up as NaN in #214

Full Changelog: v5.0.1...v5.0.2

v5.0.1

01 Feb 14:07
Compare
Choose a tag to compare

Fixes

  • Fix require() for CommonJS in #212

Full Changelog: v5.0.0...v5.0.1

v5.0.0

30 Dec 14:22
Compare
Choose a tag to compare

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 to stylesheet
  • Remove stylesheets.browserhacks.*
  • Remove stylesheets.cohesion (replaced with rules.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

30 Dec 14:17
Compare
Choose a tag to compare
v5.0.0-alpha.2 Pre-release
Pre-release

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