v1.0.0
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:
configprop is now splitted into individual props - Breaking: Deprecated Svelte
on:eventsyntax is no longer supported and replaced by event hooks namedon<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
detailproperty 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
handleused to access Konva node tonode - Breaking:
stage.handle()is no longer a function. Usestage.nodeinstead, which is immediately defined and nevernull - Breaking: All svelte-konva Component's
nodeobjects are immediately defined and usable. It is no longer necessary to wait one rendering cycle usingawait 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
Stagecomponent is no longer supported. Instead props can be passed to the wrapper div using the newdivWrapperPropsprop on theStagecomponent. - 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
Stagecomponent is used in a non-browser environment (For example SvelteKit SSR or prerendering) - Various dependency updates