Releases: blakeembrey/free-style
Releases · blakeembrey/free-style
Check `process`
Fixed
- Ensure
process
exists before using to forenv
debug mode
Rule Interpolation and De-duplication
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
Added
- Publish
jsnext:main
field withes2015
build output to NPM
Missing Unit-less Properties
Changed
- Add a couple more missing unit-less CSS properties
Add string literal type to unique const export
Changed
- Add explicit string literal type to
IS_UNIQUE
export
Unique Style Output
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
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
andinject
utilities
Inline Sources
Changed
- Remember to inline source map contents into package
Remove TypeScript Definition
Fixed
- Remove
typescript.definition
frompackage.json
(280ae98)
Customise Hash Algorithm and Detect Collisions
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)