Skip to content

Releases: neocotic/convert-svg

0.7.1

17 Jun 22:05

Choose a tag to compare

  • Allow import('puppeteer').executablePath to be passed directly in launch options 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

14 Jun 16:01

Choose a tag to compare

  • Breaking Change: All packages now require Node.js v22 or newer
  • Breaking Change: Change createConverter to be async
  • Breaking Change: Rename Converter#destroy to Converter#close
  • Breaking Change: Rename puppeteer option to launch
  • Breaking Change: Change all convert-svg-to-<FORMAT> packages to only depend on puppeteer-core so consumers
    must depend on puppeteer and pass either a Browser instance via the browser option or LaunchOptions via
    the launch option to convert, convertFile, and createConverter functions
  • Breaking Change: Remove CLI support from all convert-svg-to-<FORMAT> packages and create new
    convert-svg-to-<FORMAT>-cli packages for that purpose (which come with puppeteer dependency 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 browser option to convert, convertFile, and createConverter functions to accept optional Browser
    instance
  • Add closeBehavior option to convert, convertFile, and createConverter functions to control the behavior when
    Converter#close is called
  • Add page option to convert, convertFile, and createConverter functions to accept optional options to be passed
    to puppeteer-core when creating a page
  • Add support for CONVERT_SVG_LAUNCH_OPTIONS environment variable to be merged with launch option
  • Change Converter to create and use BrowserContext per instance to use when opening new pages to ensure they are
    isolated and that they can be closed by the Converter accordingly
  • Change Converter#convert and Converter#convertFile to create a new temporary file and open a new Page per
    invocation to support safe concurrent invocations of these methods on the same Converter instance
  • Sanitize attributes on deeply nested SVG elements
  • Apply the round option to SVG width and height when applying the scale option
  • Improve documentation
  • Improve the developer experience for contributors with better tooling
  • Deprecate convert-svg-test-helper and create new convert-svg-core-test package as a replacement
  • Create new convert-svg-core-cli package to support CLI packages
  • Many internal changes to convert-svg-core
  • Bump all dependencies to latest versions

0.6.4

07 Jun 11:04

Choose a tag to compare

  • Retain only allowed attributes from SVG input #84 a43dffa

0.6.3

06 Jun 11:04

Choose a tag to compare

  • Retain only allowed attributes from SVG input #84 a43dffa

0.6.2

29 May 16:16

Choose a tag to compare

  • Add convert-svg-to-webp package 812ea66
  • Strip onload attribute from SVG input #81 7e6031a

0.6.1

29 Apr 12:41

Choose a tag to compare

  • Bump cheerio dependency to latest v1 RC avoid vulnerable dependency

0.6.0

28 Apr 15:27
c9e48d2

Choose a tag to compare

  • 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 pt units
  • Add rounding API and CLI option to control how dimensions are rounded (defaults to "round")
  • Fix CVE-2021-23631 by improving input validation
  • quality CLI option for JPEG not passed correctly #65
  • Bump dependencies (incl. major for Puppeteer)
  • Bump devDependencies
  • Skip inconsistent tests

0.5.0

23 Nov 10:52
361ef32

Choose a tag to compare

  • 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

0.4.0

05 Feb 17:00
6a2a023

Choose a tag to compare

  • Bump Puppeteer to v1 #32
  • Replace chai with assert #34

0.3.3

08 Dec 23:49
2e1dfc7

Choose a tag to compare

  • Add puppeteer.launch options available into CLI #29