Releases: ripreact/hsl
Releases · ripreact/hsl
Fix
NAPI
Now with NAPI version!
FTL
Experimented with WASM and C, but ended up with some JS optimizations. Now that’s up to 60% faster than original HSLᵤᵥ implementation!
GOTTA GO FAST
- Performance: ≈23% faster than original (+10%).
- Feature: explicit
hsl
andhsla
exports. - Build:
- Babel + TypeScript build.
- Proper entry points for ES modules and CommonJS.
ES3
Now it’s ES3 compatible.
Fast
Performance
Now it is 200% faster than previous version and ≈13% faster than original version (at cost of slightly increased bundle size).
Tests
Now it is guaranteed to be compatible with original HSLᵤᵥ.
Hex RGBA
Now it returns '#rrggbbaa'
string instead of 'rgba(r,g,b,a)'
.
Node ESM & bundlers
Now it provides ES modules for NodeJS and bundlers.
v1.0.1
Fixes
- Replaced
map
withforEach
to slightly improve performance.