Skip to content

v1.0.0

Choose a tag to compare

@TeyKey1 TeyKey1 released this 02 Oct 15:22
· 6 commits to master since this release

breaking changes please refer to the migration guide for detailed examples on how to update.

This Update mainly adds support for Svelte v5 and contains a lot of improvements and breaking changes. It drops support for Svelte v3 and v4 (Keep using v0.3 if you use those Svelte versions).

  • Breaking: Update to Svelte v5
  • Update to SvelteKit v2
  • Breaking: config prop is now splitted into individual props
  • Breaking: Deprecated Svelte on:event syntax is no longer supported and replaced by event hooks named on<konva event name>
  • Breaking: The Konva event object is now directly provided as payload on the new event hooks instead of being provided under the detail property of the payload
  • Breaking: Changes in how reactivity works on dragend and transformend events with staticConfig = false. State changes are now only propagated if the corresponding prop is bound.
  • Breaking: The Konva handle is now a component property that can be accessed directly on the component instance (read only)
  • Breaking: Renamed handle used to access Konva node to node
  • Breaking: stage.handle() is no longer a function. Use stage.node instead, which is immediately defined and never null
  • Breaking: All svelte-konva Component's node objects are immediately defined and usable. It is no longer necessary to wait one rendering cycle using await tick()
  • Improved handle prop safety by preventing the user from overwriting the internal handle of the svelte-konva components (see #136)
  • Breaking: Passing restProps to the wrapper div of the Stage component is no longer supported. Instead props can be passed to the wrapper div using the new divWrapperProps prop on the Stage component.
  • svelte-konva is now a runes-only library and fully compatible with Svelte 5 runes-only projects
  • Only import necessary Konva code per component to minimize bundle size #195 (@CaptainCodeman)
  • Add Konva v10 as compatible version
  • Add a descriptive svelte-konva error if Stage component is used in a non-browser environment (For example SvelteKit SSR or prerendering)
  • Various dependency updates