Releases: artginzburg/css-clamper
Releases · artginzburg/css-clamper
v0.2.0
What's Changed
- Feature: extend size by @artginzburg in #10
- Updated devDependencies in 01501c1
- Refactor — improve readability and performance
Full Changelog: v0.1.5...v0.2.0
v0.1.5
v0.1.4
Use a simpler implementation of Array.at()
instead of a core-js
polyfill
v0.1.3
v0.1.2
Hotfix
- Use
"type": "module"
inpackage.json
- Use
.cjs
extension instead of.js
for Jest config (jest.config.cjs
)
v0.1.1
First working version
Features
- Calculates from
px
andrem
values - Swaps params if needed to go from max to min
- Simplified creation of custom clamper function (for different viewport limits)
Additional behavior
- Returns zeroes if provided with unsupported input (empty string)
Maintenance logic
- Fully written in TypeScript
- 100% covered in Unit-tests (with Jest)
- Automatic publishing to NPM Registry based on a GitHub Release