You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+37Lines changed: 37 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,45 @@ project adheres to [Semantic Versioning](http://semver.org/).
8
8
(Unreleased)
9
9
==================
10
10
### Changed
11
+
* Defer the initialization of the `op` variable to the `default` switch case to avoid a compiler warning. (#2229)
12
+
* 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)
13
+
* Migrate from librsvg's deprecated `rsvg_handle_get_dimensions()` and `rsvg_handle_render_cairo()` functions to the new `rsvg_handle_get_intrinsic_size_in_pixels()` and `rsvg_handle_render_document()` respectively. (#2229)
14
+
* Avoid calling virtual methods in constructors/destructors to avoid bypassing virtual dispatch. (#2229)
15
+
* Remove unused private field `backend` in the `Backend` class. (#2229)
16
+
* Add Node.js v20 to CI. (#2237)
11
17
### Added
18
+
* Added string tags to support class detection
12
19
### Fixed
20
+
* Fix a case of use-after-free. (#2229)
21
+
* Fix usage of garbage value by filling the allocated memory entirely with zeros if it's not modified. (#2229)
22
+
* Fix a potential memory leak. (#2229)
23
+
24
+
2.11.2
25
+
==================
26
+
### Fixed
27
+
* Building on Windows in CI (and maybe other Windows configurations?) (#2216)
28
+
29
+
2.11.1
30
+
==================
31
+
### Fixed
32
+
* Add missing property `canvas` to the `CanvasRenderingContext2D` type
33
+
* Fixed glyph positions getting rounded, resulting text having a slight `letter-spacing` effect
34
+
* Fixed `ctx.font` not being restored correctly after `ctx.restore()` (#1946)
35
+
36
+
2.11.0
37
+
==================
38
+
### Fixed
39
+
* Replace triple-slash directive in types with own types to avoid polluting TS modules with globals ([#1656](https://github.com/Automattic/node-canvas/issues/1656))
40
+
41
+
2.10.2
42
+
==================
43
+
### Fixed
44
+
* Fix `Assertion failed: (object->InternalFieldCount() > 0), function Unwrap, file nan_object_wrap.h, line 32.` ([#2025](https://github.com/Automattic/node-canvas/issues/2025))
45
+
*`textBaseline` and `textAlign` were not saved/restored by `save()`/`restore()`. ([#1936](https://github.com/Automattic/node-canvas/issues/2029))
46
+
* Update nan to v2.17.0 to ensure Node.js v18+ support.
47
+
### Changed
48
+
* Improve performance and memory usage of `save()`/`restore()`.
49
+
*`save()`/`restore()` no longer have a maximum depth (previously 64 states).
0 commit comments