Skip to content

chore(deps): Bump konva from 10.3.2 to 10.5.0 - #87

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/konva-10.5.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/konva-10.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 17, 2026

Copy link
Copy Markdown
Contributor

Bumps konva from 10.3.2 to 10.5.0.

Release notes

Sourced from konva's releases.

10.5.0

Features

  • Stage.eventBatchFunc() batches native input for framework integrations (Anton Lavrevov)

Bug Fixes

  • touchcancel releases only the canceled pointers and fires a cancel event (Anton Lavrevov)
  • toBlob() resolves with a Blob instead of unknown (Anton Lavrevov)

Documentation

  • keep the Node class JSDoc attached to the class (Anton Lavrevov)
  • document Path width() and height() for the API reference (Anton Lavrevov)

Performance Improvements

  • Transformer reuses unchanged shape bounds and skips equal anchor updates (Anton Lavrevov)

Commits

  • 8225a78: update CHANGELOG with new version (Anton Lavrevov)
  • 9008123: build for 10.5.0 (Anton Lavrevov)

10.4.0

Features

  • destroy event; Transformer, Tween, pointer captures and stage timers release destroyed nodes (Anton Lavrevov)

Bug Fixes

  • size the buffer canvas of cache() and toCanvas() to the target, allocate it lazily and release it (Anton Lavrevov)
  • memoize isCSSFiltersSupported() and release its probe canvas (Anton Lavrevov)
  • stop the frame interval of a Sprite on destroy() (Anton Lavrevov)
  • keep descendant caches on clearCache() and release the previous canvases on re-cache (Anton Lavrevov)
  • setAbsolutePosition() under a zero-scale ancestor no longer writes NaN (Anton Lavrevov)
  • negative radius and cornerRadius no longer throw and blank the layer (Anton Lavrevov)
  • batchDraw() no longer freezes the layer after a throwing draw (Anton Lavrevov)
  • Blur keeps the colour of semi-transparent pixels and survives large radii (Anton Lavrevov)
  • Tween ownership bookkeeping (Anton Lavrevov)
  • clamp a negative cornerRadius in drawRoundedRectPath (Anton Lavrevov)
  • hasShadow() follows shadowOffsetX and shadowOffsetY changes (Anton Lavrevov)
  • cache() and transform batching clean up after a throw (Anton Lavrevov)
  • split text into graphemes with Intl.Segmenter (Anton Lavrevov)
  • toObject() copies attributes instead of mutating them, accepts frozen values and skips methods named like custom attributes (Anton Lavrevov)
  • drawHitFromCache() honours hitCanvasPixelRatio (Anton Lavrevov)
  • Path arc bounds, SVGO arc flags, empty data, and segment-relative getPointAtLength (Anton Lavrevov)
  • Transformer follows the grabbing pointer, guards zero-size boxes, and resolves its anchors directly (Anton Lavrevov)
  • Tween of component attributes, of array attributes the node lacks, and to() no longer mutates its params (Anton Lavrevov)
  • absolute getters and derived caches of nodes under a cached container, fire(type, null), non-finite child rects (Anton Lavrevov)
  • Canvas size equals the truncated bitmap at a fractional pixel ratio and keeps its logical size; setSizeIfChanged() with NaN (Anton Lavrevov)
  • drag with several pointers releases only the lifted pointer; startDrag() without an event ends on release (Anton Lavrevov)
  • Transformer suppresses the hit graph of its own layers only (gate moved to Layer.shouldDrawHit), forwards getClientRect(config), honours top in getAbsoluteTransform() (Anton Lavrevov)
  • RegularPolygon without sides, Sprite getSelfRect() and guards for a missing animation or frame (Anton Lavrevov)
  • report a non-finite number at the core aggregation points instead of silently drawing nothing (Anton Lavrevov)
  • Tag.getSelfRect() grows by exactly the pointer for a left or right pointer (Anton Lavrevov)
  • eleven one-line bugs (Anton Lavrevov)

... (truncated)

Changelog

Sourced from konva's changelog.

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

Unreleased

  • Added Stage.eventBatchFunc() for framework integrations to batch native input handlers. Note: direct fire() calls and programmatic changes are not batched
  • Improved Transformer performance with many selected nodes: unchanged shape bounds are reused, and anchors are not rebuilt when the selection rectangle is unchanged
  • Fixed touchcancel leaving a Transformer active and releasing the capture of an untouched pointer. Note: cancellation now fires pointercancel/touchcancel in addition to the existing pointerup
  • Fixed toBlob() typed as Promise<unknown>. It resolves with a Blob, and rejects instead of resolving with null when the canvas can not be encoded
  • Fixed the Konva.Node JSDoc block attaching to a private helper, which dropped the Konva.Node page from the API reference

10.4.0 (2026-09-07)

  • Added destroy event, fired at the start of node.destroy(). Transformer drops a destroyed node from nodes() and Tween stops the tweens of a destroyed node
  • Added width() and height() to Path
  • Added Konva.Transform#isInvertible()
  • Added grapheme-aware text layout: flag emoji and ZWJ sequences stay together for letterSpacing, charRenderFunc and wrapping. letterSpacing now adds one spacing per grapheme instead of per UTF-16 code unit
  • Improved Transformer performance: anchors are resolved directly instead of by selector
  • Improved Text performance with charRenderFunc and when wrapping a long text (both were quadratic in text length)
  • Improved Text and TextPath creation performance. Note: relayout listeners now live on the prototype, so text.off('textChange.konva') no longer removes them
  • Improved TextPath layout performance on paths with many segments
  • Improved hit detection on the edges of shapes: thin lines are hittable on their own pixels, and edge search is faster and no longer walks to an unrelated shape nearby
  • Improved container.getClientRect(), drag and drop, Animation start/stop, component getters and Image drawing performance. Note: Konva.Animation.animations is now a Set
  • Reduced memory usage of cache(), toCanvas(), toDataURL(), toImage() and toBlob(). Note: a cropped export no longer includes shadows of shapes lying fully outside the crop
  • Reduced memory usage per node. hasStroke() returns a boolean instead of the stroke width
  • Reduced canvas memory usage of Text, TextPath and CSS filter strings, and fixed a canvas leak on every draw of a node with CSS filters
  • Published type declarations keep their JSDoc, so editors show the documentation on hover
  • Fixed Transformer ignoring changes of attached nodes made between pointer moves during a resize (regression in 10.3.1)
  • Fixed Transformer following the wrong finger during a pinch, writing NaN when resizing a zero-size node, not refreshing on padding change, blanking the hit graph of unrelated layers, and being misplaced inside a cached or transformed container
  • Fixed layer.size() shrinking the layer canvas. A layer follows the stage size
  • Fixed container.getChildren() and stage.getLayers() returning the internal array. They return a copy
  • Fixed clearCache() of a container un-caching every descendant and leaking their canvases
  • Fixed cache(), setAttrs() and setPosition() leaving a node in a broken state after an exception in a sceneFunc, a filter or a setter
  • Fixed setAbsolutePosition() and dragging writing NaN under an ancestor with a zero scale
  • Fixed a negative radius or cornerRadius throwing during draw and blanking the shapes after it
  • Fixed layer.batchDraw() never drawing again after a draw threw
  • Fixed toObject() and toJSON() modifying the node: circular or DOM attributes were lost, frozen state threw, and a custom attribute named like a node method invoked it
  • Fixed the absolute getters and Transformer of a node inside a cached container. Note: getClientRect() under a cached ancestor is now absolute like everywhere else
  • Fixed hasShadow() not updating when only shadowOffsetX or shadowOffsetY changes
  • Fixed node.fire(type, null, true) throwing
  • Fixed node.clone() sharing nested array attributes with the original
  • Fixed Tween: component attributes (scale, offset...) wrote junk attributes, gradient color stops were replaced in the node's own array, onUpdate/onReset were tweened, the first tween of a page could not be cancelled, and node.to() modified its params. node.to() returns the tween
  • Fixed deprecated setDashArray() setting nothing and deprecated aliases returning nothing
  • Fixed Path bounds for rotated elliptical arcs and empty paths, parsing of SVGO-compressed arcs and 00 coordinates, and getPointAtLength() past the end of an arc. Degenerate data (truncated commands, zero-radius arcs, a number after z) follows SVG instead of producing NaN or hanging
  • Fixed Sprite keeping its interval after destroy(), throwing on an unknown animation or frame, and missing getSelfRect()
  • Fixed RegularPolygon without sides throwing from every draw
  • Fixed Tag.getSelfRect() with pointerDirection left or right
  • Fixed TextPath with a kerningFunc, and its underline thickness now matches Text

... (truncated)

Commits
  • 9008123 build for 10.5.0
  • 8225a78 update CHANGELOG with new version
  • cfef216 fix: toBlob() resolves with a Blob instead of unknown
  • 4c09428 perf: Transformer reuses unchanged shape bounds and skips equal anchor updates
  • a36b6e8 feat: Stage.eventBatchFunc() batches native input for framework integrations
  • f81ddce fix: touchcancel releases only the canceled pointers and fires a cancel event
  • 0824e3b docs: document Path width() and height() for the API reference
  • ad35066 docs: keep the Node class JSDoc attached to the class
  • e51c16d build for 10.4.0
  • ac581a4 update CHANGELOG with new version
  • Additional commits viewable in compare view

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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [konva](https://github.com/konvajs/konva) from 10.3.2 to 10.5.0.
- [Release notes](https://github.com/konvajs/konva/releases)
- [Changelog](https://github.com/konvajs/konva/blob/master/CHANGELOG.md)
- [Commits](konvajs/konva@10.3.2...10.5.0)

---
updated-dependencies:
- dependency-name: konva
  dependency-version: 10.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants