Bump canvas from 2.11.2 to 3.0.0
Bumps canvas from 2.11.2 to 3.0.0.
Release notes
Sourced from canvas's releases.
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
op
variable to thedefault
switch case to avoid a compiler warning. (#2229)- Use a
default
switch 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
backend
in theBackend
class. (#2229)- Add Node.js v20 to CI. (#2237)
- Replaced
dtslint
withtsd
(#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)
- RGB functions should support real numbers now instead of just integers. (#2339)
- Allow alternate or properly escaped quotes within font-family names
- Fix TextMetrics type to include alphabeticBaseline, emHeightAscent, and emHeightDescent properties
- Fix class properties should have defaults as standard js classes (#2390)
- Fixed Exif orientation in JPEG files being ignored (#1670)
- Align DOMMatrix/DOMPoint to spec by adding missing methods
v3.0.0-rc3
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
op
variable to thedefault
switch case to avoid a compiler warning. (#2229)- Use a
default
switch 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)
... (truncated)
Changelog
Sourced from canvas's changelog.
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
op
variable to thedefault
switch case to avoid a compiler warning. (#2229)- Use a
default
switch 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
backend
in theBackend
class. (#2229)- Add Node.js v20 to CI. (#2237)
- Replaced
dtslint
withtsd
(#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)
- RGB functions should support real numbers now instead of just integers. (#2339)
- Allow alternate or properly escaped quotes within font-family names
- Fix TextMetrics type to include alphabeticBaseline, emHeightAscent, and emHeightDescent properties
- Fix class properties should have defaults as standard js classes (#2390)
- Fixed Exif orientation in JPEG files being ignored (#1670)
- Align DOMMatrix/DOMPoint to spec by adding missing methods
Commits
-
8346512
v3.0.0 -
a8c035f
Revert "select fonts via postscript name on Linux" -
f5894db
fix(DOMMatrix/DOMPoint): spec compatibility -
b6b2dc7
modernize node version matrix -
d027883
update README wrt macOS/aarch64 -
19a3328
v3.0.0-rc3 -
22820e1
fix macos ci config (macos-12 was deleted) -
d1ea3f8
fix windows ci config (url went dead) -
8983c4a
fix windows build (#2458) -
77f0b99
Handle Exif orientations for JPEG images (fixes #1670) (#2296) - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts