Skip to content

Releases: blakeembrey/free-style

Automatically strip `debug` in production

27 Oct 23:16
Compare
Choose a tag to compare

A bunch of small changes to reduce overall bundle size, which ultimately impacted backward compatibility.

Changed

  • Remove IS_UNIQUE and DISPLAY_NAME exports in favor of $unique and $displayName keys
  • Remove debug support in favor of process.env.NODE_ENV
    • This enables code stripping in production for Webpack and other bundlers and resulted in a 0.6kB bundle size reduction
  • Remove hash function customization
    • As far as I know no one has used it in production and it increases scope of the package (let me know if you are!)

DISPLAY_NAME style tags

24 Oct 17:18
Compare
Choose a tag to compare

Added

  • Support DISPLAY_NAME on style objects
  • Ignore any keys starting with an _

Reduce object creations during stylize

26 Apr 06:25
Compare
Choose a tag to compare

Changed

  • Reduce one object creation per nested level of styles during stylization to internal object representation

Styles that fire together wire together

25 Apr 06:34
Compare
Choose a tag to compare

Added

  • Keep styles that are registered at the same time together instead of de-duping
    • This should result in a more consistent cache order (based on first insertion instead of last), no re-ordering and no de-duping of partially registered styles

Expose `Cache#values`

04 Apr 04:36
Compare
Choose a tag to compare

Added

  • Expose a function to get the list of values in the current cache ordered as it would be in the sheet output

CSS Numeric Properties

01 May 11:44
Compare
Choose a tag to compare

Added

  • Add more CSS numeric properties to whitelist

Fix Overloaded Property Ordering

02 Nov 23:01
Compare
Choose a tag to compare

Fixed

  • When a property has > 10 overloads, Chrome has an undefined sorting order for matching elements (good breakdown in #66)

Escape Display Name

29 Oct 22:01
Compare
Choose a tag to compare

Changed

  • Escape the display name in output CSS for special character support in class names

Minor Bump

03 Sep 07:11
Compare
Choose a tag to compare

Improved

  • Custom string concatenation is faster than Array#join for the perf tests
  • Update hyphenate regexp matching to do less work

Speed-Up

02 Sep 22:14
Compare
Choose a tag to compare

Improved

  • Internally manage styles via an array of strings instead of computing getStyles() on demand
  • Switch to Object.create(null) for cache maps