Skip to content

Releases: blakeembrey/free-style

Check `process`

23 Mar 18:34
Compare
Choose a tag to compare

Fixed

  • Ensure process exists before using to for env debug mode

Rule Interpolation and De-duplication

18 Feb 02:13
Compare
Choose a tag to compare

Changed

  • registerRule is now treated consistently with the rest of the styles - interpolation and de-duping are working!

Added

  • Exposed registerCss which allows you to register an entire CSS object (instead of individual rules)
  • Exposed registerHashRule which allows for prefixed rules that generate a hash to be registered

JSNext and ES2015 Modules

14 Dec 02:19
Compare
Choose a tag to compare

Added

  • Publish jsnext:main field with es2015 build output to NPM

Missing Unit-less Properties

09 Dec 20:00
Compare
Choose a tag to compare

Changed

  • Add a couple more missing unit-less CSS properties

Add string literal type to unique const export

04 Dec 22:15
Compare
Choose a tag to compare

Changed

  • Add explicit string literal type to IS_UNIQUE export

Unique Style Output

04 Dec 20:18
Compare
Choose a tag to compare

Added

  • Export IS_UNIQUE key that can be used to tag objects for unique style output (skips de-duping by generating a unique hash that wouldn't exist in the project)

Refactor change events and reduce build size

13 Oct 17:06
Compare
Choose a tag to compare

Notable: The entire project (free-style.ts) is around 400 LOC.

Changed

  • Add a second argument to register style/keyframes for debuggable style names
  • Refactor change events - no more event emitters and change listeners, check for FreeStyle#changeId changes instead
  • Removed the join, url and inject utilities

Inline Sources

20 Jun 18:56
Compare
Choose a tag to compare

Changed

  • Remember to inline source map contents into package

Remove TypeScript Definition

18 May 06:38
Compare
Choose a tag to compare

Fixed

  • Remove typescript.definition from package.json (280ae98)

Customise Hash Algorithm and Detect Collisions

29 Apr 17:47
Compare
Choose a tag to compare

Added

  • Expose the hash algorithm configuration (override by passing a function into create())
  • Throw a TypeError when we detect a hash collision
  • Throw a TypeError when using props and nested styles in a rule (can't do both validly)