Releases: neocotic/convert-svg
Releases · neocotic/convert-svg
0.7.1
- Allow
import('puppeteer').executablePathto be passed directly inlaunchoptions to allow other launch options to
be passed to it as a function - Document supported
CONVERT_SVG_*environment variables - Document potential issues with reduced quality on macOS
- Add Docker support for running the test suite on a Linux-based image
- Bump all dependencies to latest versions
0.7.0
- Breaking Change: All packages now require Node.js v22 or newer
- Breaking Change: Change
createConverterto be async - Breaking Change: Rename
Converter#destroytoConverter#close - Breaking Change: Rename
puppeteeroption tolaunch - Breaking Change: Change all
convert-svg-to-<FORMAT>packages to only depend onpuppeteer-coreso consumers
must depend onpuppeteerand pass either aBrowserinstance via thebrowseroption orLaunchOptionsvia
thelaunchoption toconvert,convertFile, andcreateConverterfunctions - Breaking Change: Remove CLI support from all
convert-svg-to-<FORMAT>packages and create new
convert-svg-to-<FORMAT>-clipackages for that purpose (which come withpuppeteerdependency to ensure browser is
downloaded and installed for ease-of-use) - Rewrite the entire codebase in TypeScript and support both ESM and CJS usage
- Add
browseroption toconvert,convertFile, andcreateConverterfunctions to accept optionalBrowser
instance - Add
closeBehavioroption toconvert,convertFile, andcreateConverterfunctions to control the behavior when
Converter#closeis called - Add
pageoption toconvert,convertFile, andcreateConverterfunctions to accept optional options to be passed
topuppeteer-corewhen creating a page - Add support for
CONVERT_SVG_LAUNCH_OPTIONSenvironment variable to be merged withlaunchoption - Change
Converterto create and useBrowserContextper instance to use when opening new pages to ensure they are
isolated and that they can be closed by theConverteraccordingly - Change
Converter#convertandConverter#convertFileto create a new temporary file and open a newPageper
invocation to support safe concurrent invocations of these methods on the sameConverterinstance - Sanitize attributes on deeply nested SVG elements
- Apply the
roundoption to SVG width and height when applying thescaleoption - Improve documentation
- Improve the developer experience for contributors with better tooling
- Deprecate
convert-svg-test-helperand create newconvert-svg-core-testpackage as a replacement - Create new
convert-svg-core-clipackage to support CLI packages - Many internal changes to
convert-svg-core - Bump all dependencies to latest versions
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
- Breaking Change: All packages now require Node.js version 12.20.0 or newer
- Support UTF-8 characters in SVG
- Support SVG dimensions (width, height) that use
ptunits - Add
roundingAPI and CLI option to control how dimensions are rounded (defaults to"round") - Fix CVE-2021-23631 by improving input validation
qualityCLI option for JPEG not passed correctly #65- Bump dependencies (incl. major for Puppeteer)
- Bump devDependencies
- Skip inconsistent tests
0.5.0
- moved from !ninja to neocotic ad5aa55
- modified CI to now target Node.js 8, 10, and 11 63fcb27
- bump dependencies 6daedb1
- bumped devDependenices 3a8ae85
- fixed linting errors 96e7e06
- fixed broken tests by regenerating expected fixtures bf34770
- preventing lerna breaking build when calling "npm ci" on bootstrap 1391071