Skip to content

build(deps): Bump @napi-rs/canvas from 1.1.1 to 1.2.0 in the minor-and-patch group across 1 directory - #158

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/minor-and-patch-6c0937f08d
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/minor-and-patch-6c0937f08d

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor

Bumps the minor-and-patch group with 1 update in the / directory: @napi-rs/canvas.

Updates @napi-rs/canvas from 1.1.1 to 1.2.0

Release notes

Sourced from @​napi-rs/canvas's releases.

v1.2.0

Highlights

@font-face descriptors in GlobalFonts and static font-stretch matching (#1464, #1465, #1467)

GlobalFonts.register(font, nameAlias?, descriptors?) and GlobalFonts.registerFromPath(path, nameAlias?, descriptors?) now accept a descriptors object ({ weight, style, stretch }), matching Chrome's new FontFace(name, data, descriptors):

  • Supports CSS values, ranges ('100 900', 'oblique 10deg 20deg', '75% 125%'), calc(), and 'auto'. Invalid descriptors return null without registering; non-object descriptors throw a TypeError.
  • Variable fonts clamp wght/slnt/wdth to declared descriptor ranges, use the ital axis for italic when available, and apply variation coordinates in SVG <text>.
  • Static (non-variable) font-stretch matching now follows CSS Fonts Level 4 (Width > Style > Weight priority and exact matches for expanded widths).
GlobalFonts.registerFromPath('./fonts/Lato-Regular.ttf', 'MyLato', { weight: 400 })
GlobalFonts.registerFromPath('./fonts/Lato-Bold.ttf', 'MyLato', { weight: 700 })

Behavior change: registered faces without descriptors are all auto, so in a family registered without descriptors, the most recently registered face draws every style (with synthetic bold/italic when needed), matching Chrome @font-face. Pass { weight, style, stretch } for each file in a family, or use loadFontsFromDir to match by each file's own style.

DirectWrite and Fontations on Windows in setTextRenderer('system') (#1468)

setTextRenderer('system') on Windows now uses DirectWrite (with Fontations for color, CFF2, avar2, and unsupported variable fonts) plus Chrome Windows' gamma/contrast and rasterizer settings. The default 'portable' text renderer is unchanged across all OSes.

PNG compressionLevel and filters options (#1463)

encode('png', options), encodeSync('png', options), toBuffer('image/png', options), and the node-canvas compatibility PngConfig now accept compressionLevel (zlib 0–9, default 6) and filters (libpng row filter bitmask via the new PngFilter export, default PngFilter.All / 0xF8):

const { createCanvas, PngFilter } = require('@napi-rs/canvas')
// Fast PNG encoding (Chromium's canvas preset: zlib level 1, Up filter only)
const png = await canvas.encode('png', {
compressionLevel: 1,
filters: PngFilter.Up,
})

ctx.antialias property (#1466)

Adds the node-canvas-compatible ctx.antialias property ('default' | 'none' | 'gray' | 'subpixel', default 'default'), saved and restored with save()/restore()/reset(). Setting 'none' disables antialiasing on raster shapes, strokes, clips, text, and bitmap image borders without affecting measureText().

What's Changed

... (truncated)

Changelog

Sourced from @​napi-rs/canvas's changelog.

1.2.0 (2026-11-20)

Bug Fixes

Features

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the minor-and-patch group with 1 update in the / directory: [@napi-rs/canvas](https://github.com/Brooooooklyn/canvas).


Updates `@napi-rs/canvas` from 1.1.1 to 1.2.0
- [Release notes](https://github.com/Brooooooklyn/canvas/releases)
- [Changelog](https://github.com/Brooooooklyn/canvas/blob/main/CHANGELOG.md)
- [Commits](Brooooooklyn/canvas@v1.1.1...v1.2.0)

---
updated-dependencies:
- dependency-name: "@napi-rs/canvas"
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from iLevyTate as a code owner November 24, 2026 07:38
@iLevyTate iLevyTate added the dependency-repair The dependency autopilot attempted or prepared a fix label Nov 24, 2026
@iLevyTate

Copy link
Copy Markdown
Owner

Required checks failed (ci (ubuntu-latest), ci (windows-latest)). A scheduled agent on the owner's computer is preparing a fix with tests.


Posted by the dependency autopilot in renovate-config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge dependencies dependency-repair The dependency autopilot attempted or prepared a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant