Make CSS easier and more maintainable by using JavaScript
MIT License
Bot releases are hidden (Show)
Improved
https://github.com/blakeembrey/free-style/compare/v5.0.0...v5.0.1
Published by blakeembrey 9 months ago
Changed
Improvements
Added
compile
API for pre-compiling styles to add to multiple sheets.prefix
to create()
so all styles can be namespaced in a single sheet.https://github.com/blakeembrey/free-style/compare/v4.1.0...v5.0.0
Published by blakeembrey over 3 years ago
Changed
null
and undefined
and they will be filtered out as if they weren't setPublished by blakeembrey over 4 years ago
Changed
register*
methods b506c8b
registerStyle
going forward, simplifies the API interface and removes even more bytes in production!free-style
), the commit above shows how it backward compatibility was maintained in 3.x
- you'll just need to implement it yourself nowfree-style
is down to 1.7kB https://bundlephobia.com/[email protected]
Published by blakeembrey over 4 years ago
Fixed
{ color: 'red' }
and { '&:first-child': { color: 'red' } }
should return different hashes, otherwise it'll create some nasty edge cases for the class name getting set to { color: 'red' }
unexpectedlyPublished by blakeembrey over 4 years ago
Fixed
\0
from internal hash stringsPublished by blakeembrey over 4 years ago
Fixed
dist.es5
directory to NPM files, left out of the previous release 😅Published by blakeembrey over 4 years ago
Added
free-style/dist.es5
Published by blakeembrey over 4 years ago
Added
registerStyle
to handle every previous method in one function (e.g. registerHashRule
, registerRule
and registerCss
)
&
(e.g. @keyframes &
), and adding a new flag $global: true
Published by blakeembrey over 4 years ago
Changed
Published by blakeembrey almost 5 years ago
A bunch of small changes to reduce overall bundle size, which ultimately impacted backward compatibility.
Changed
IS_UNIQUE
and DISPLAY_NAME
exports in favor of $unique
and $displayName
keysdebug
support in favor of process.env.NODE_ENV
hash
function customization
Published by blakeembrey almost 5 years ago
Added
DISPLAY_NAME
on style objects_
Published by blakeembrey over 5 years ago
Changed
Published by blakeembrey over 5 years ago
Added
Published by blakeembrey over 5 years ago
Added
Published by blakeembrey over 6 years ago
Added
Published by blakeembrey almost 7 years ago
Fixed
Published by blakeembrey almost 7 years ago
Changed
Published by blakeembrey about 7 years ago
Improved
Array#join
for the perf testshyphenate
regexp matching to do less workPublished by blakeembrey about 7 years ago
Improved
getStyles()
on demandObject.create(null)
for cache maps