Sourced from canvas's releases.
v3.1.0
3.1.0
- Replaced
simple-getwithNode.js builtinfetch(#2309)ctx.fonthas a new C++ parser and is 2x-400x faster. Please file an issue if you experience different results, as caching has been removed.- The restriction of registering fonts before a canvas is created has been removed. You can now register a font as late as right before the
fillTextcall (#1921)Added
- Support for accessibility and links in PDFs
ctx.directionis implemented:'rtl'or'ltr'set the base direction of textctx.textAlign'start'and'end'are now'right'and'left'whenctx.direction === 'rtl'Fixed
- Fix a crash in
getImageDatawhen the rectangle is entirely outside the canvas. (#2024)- Fix
getImageDatacropping the resultingImageDatawhen the given rectangle is partly outside the canvas. (#1849)v3.0.1
3.0.1
Fixed
- Fixed accidental depenency on ambient DOM types
v3.0.0
3.0.0
This release notably changes to using N-API. 🎉
Breaking
- Dropped support for Node.js 16.x and below.
Changed
- Migrated to N-API (by way of node-addon-api) and removed libuv and v8 dependencies
- Change from node-pre-gyp to prebuild-install
- Defer the initialization of the
opvariable to thedefaultswitch case to avoid a compiler warning. (#2229)- Use a
defaultswitch case with a null statement if some enum values aren't suppsed to be handled, this avoids a compiler warning. (#2229)- Migrate from librsvg's deprecated
rsvg_handle_get_dimensions()andrsvg_handle_render_cairo()functions to the newrsvg_handle_get_intrinsic_size_in_pixels()andrsvg_handle_render_document()respectively. (#2229)- Avoid calling virtual methods in constructors/destructors to avoid bypassing virtual dispatch. (#2229)
- Remove unused private field
backendin theBackendclass. (#2229)- Add Node.js v20 to CI. (#2237)
- Replaced
dtslintwithtsd(#2313)- Changed PNG consts to static properties of Canvas class
- Reverted improved font matching on Linux (#1572) because it doesn't work if fonts are installed. If you experience degraded font selection, please file an issue and use v3.0.0-rc3 in the meantime.
Added
- Added string tags to support class detection
- Throw Cairo errors in canvas.toBuffer()
Fixed
... (truncated)
Sourced from canvas's changelog.
3.1.0
- Replaced
simple-getwithNode.js builtinfetch(#2309)ctx.fonthas a new C++ parser and is 2x-400x faster. Please file an issue if you experience different results, as caching has been removed.- The restriction of registering fonts before a canvas is created has been removed. You can now register a font as late as right before the
fillTextcall (#1921)Added
- Support for accessibility and links in PDFs
ctx.directionis implemented:'rtl'or'ltr'set the base direction of textctx.textAlign'start'and'end'are now'right'and'left'whenctx.direction === 'rtl'Fixed
- Fix a crash in
getImageDatawhen the rectangle is entirely outside the canvas. (#2024)- Fix
getImageDatacropping the resultingImageDatawhen the given rectangle is partly outside the canvas. (#1849)3.0.1
Fixed
- Fixed accidental depenency on ambient DOM types
3.0.0
This release notably changes to using N-API. 🎉
Breaking
- Dropped support for Node.js 16.x and below.
Changed
- Migrated to N-API (by way of node-addon-api) and removed libuv and v8 dependencies
- Change from node-pre-gyp to prebuild-install
- Defer the initialization of the
opvariable to thedefaultswitch case to avoid a compiler warning. (#2229)- Use a
defaultswitch case with a null statement if some enum values aren't suppsed to be handled, this avoids a compiler warning. (#2229)- Migrate from librsvg's deprecated
rsvg_handle_get_dimensions()andrsvg_handle_render_cairo()functions to the newrsvg_handle_get_intrinsic_size_in_pixels()andrsvg_handle_render_document()respectively. (#2229)- Avoid calling virtual methods in constructors/destructors to avoid bypassing virtual dispatch. (#2229)
- Remove unused private field
backendin theBackendclass. (#2229)- Add Node.js v20 to CI. (#2237)
- Replaced
dtslintwithtsd(#2313)- Changed PNG consts to static properties of Canvas class
- Reverted improved font matching on Linux (#1572) because it doesn't work if fonts are installed. If you experience degraded font selection, please file an issue and use v3.0.0-rc3 in the meantime.
Added
- Added string tags to support class detection
- Throw Cairo errors in canvas.toBuffer()
Fixed
- Fix a case of use-after-free. (#2229)
- Fix usage of garbage value by filling the allocated memory entirely with zeros if it's not modified. (#2229)
- Fix a potential memory leak. (#2229)
- Fix the wrong type of setTransform
- Fix the improper parsing of rgb functions issue. (#2300)
- Fix issue related to improper parsing of leading and trailing whitespaces in CSS color. (#2301)
... (truncated)
61e474e
3.1.088e9657
allow registerFont after a canvas has been created (#2483)52330b8
support ctx.direction and textAlign start/end0b2edc1
remove reference to old JS parseFonta0c8031
getImageData fixes when rectangle is outside of canvasda33bbe
Add link tags for pdfs728e76c
add C++ parser for the font shorthand7ed0a96
add font setter benchmarks1d956b7
use fetch api80e94ea
v3.0.1