Releases
v3.0.0
Compare
Sorry, something went wrong.
No results found
Major Changes
BREAKING Drop CommonJS build; ship ESM only. 586b392 @duniul
BREAKING Validate all inputs and throw TypeError/RangeError early on invalid arguments. dcfae6a @duniul
Minor Changes
Export assertValidImageData for validating ImageDataLike input at runtime. dcfae6a @duniul
Add JSDoc/TSDoc comments to exported functions and types. 17e56c8 @duniul
Patch Changes
Speed up scalePixels by preallocating the output Uint8ClampedArray (up to 8x faster). 4ec81e7 @duniul
Speed up getPixelScale by iterating data as a Uint32Array (up to 2x faster). 830df11 @duniul
Add early exit in scalePixels when to equals the current scale. 9ee2a9c @duniul
Fix early exit in getPixelScale when only one scale is possible. 7891ae2 @duniul
Fix multiplyPixelScale and dividePixelScale ignoring options.from. f268072 @duniul
Mark the package as side-effect free for better tree-shaking. 8e68eb6 @duniul
You can鈥檛 perform that action at this time.