Skip to content

Releases: duniul/pixel-scale

v3.0.0

Choose a tag to compare

@github-actions github-actions released this 24 May 17:15

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

v2.0.1

Choose a tag to compare

@github-actions github-actions released this 13 May 08:01

Patch Changes

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 12 May 12:35

Major Changes

  • Removed default export. Use the scalePixels named export instead. 1505f1c @duniul

Minor Changes

Patch Changes

v1.0.0

Choose a tag to compare

@duniul duniul released this 04 Sep 20:57

1.0.0 (2020-09-04)

Features