Skip to content

v0.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 31 May 06:44

Changelog

New Features

  • Abort signal supportvectorize, vectorizeRaw, readImage, colorExistsInImage, and findUnusedColorInImage now accept an optional AbortSignal for cancellation
  • Callback-based streaming — Added vectorizeToCallback and vectorizeRawToCallback, which emit SVG chunks incrementally with a progress value (0–100). Use isEOF(chunk, progress) to detect stream completion
  • SVG optimization — Added optimize and optimizeSync powered by oxvg_optimiser, supporting SVGO-compatible plugin config, preset-default/safe/none presets, and multipass optimization
  • CLI optimizationnpx @neplex/vectorizer optimize command added for optimizing existing SVGs, with --optimize, --multipass, and --multipass-iterations flags available during vectorization as well
  • Exposed internal APIsreadImage, readImageSync, colorExistsInImage, colorExistsInImageSync, findUnusedColorInImage, findUnusedColorInImageSync, and isEOF are now part of the public API
  • WASM Support — Added support for wasm32-wasip1-threads

Full Changelog: v0.0.5...v0.1.0