Changelog
New Features
- Abort signal support —
vectorize,vectorizeRaw,readImage,colorExistsInImage, andfindUnusedColorInImagenow accept an optionalAbortSignalfor cancellation - Callback-based streaming — Added
vectorizeToCallbackandvectorizeRawToCallback, which emit SVG chunks incrementally with aprogressvalue (0–100). UseisEOF(chunk, progress)to detect stream completion - SVG optimization — Added
optimizeandoptimizeSyncpowered byoxvg_optimiser, supporting SVGO-compatible plugin config,preset-default/safe/nonepresets, and multipass optimization - CLI optimization —
npx @neplex/vectorizer optimizecommand added for optimizing existing SVGs, with--optimize,--multipass, and--multipass-iterationsflags available during vectorization as well - Exposed internal APIs —
readImage,readImageSync,colorExistsInImage,colorExistsInImageSync,findUnusedColorInImage,findUnusedColorInImageSync, andisEOFare now part of the public API - WASM Support — Added support for
wasm32-wasip1-threads
Full Changelog: v0.0.5...v0.1.0