Skip to content

Releases: poppa/sveltekit-svg

v6.0.0 - Upgraded SVGO to v4

01 Sep 05:38

Choose a tag to compare

SVGO is updated to new major version, v4, which changes the default configuration of SVGO. If you rely on some SVGO defaults, take a closer look at the SVGO v3 -> v4 migration guide

Thank to @craig-jennings for the pull request.

v5.0.1 - README updates

20 Mar 06:00

Choose a tag to compare

No code changes

Full Changelog: v5.0.0...v5.0.1

v5.0.0 - Default support for Svelte 5

21 Nov 18:42

Choose a tag to compare

This plugin is now officially, and primarily, for Svelte 5

What's Changed

  • Update decalaration files to use new Component type by @AngelRionCervi in #58
  • SvelteComponent not needed as causing issues passing props by @sansjack in #60

New Contributors

Full Changelog: v4.2.1...v5.0.0

v4.2.1 - Fixed missing dependency

14 Jan 08:35

Choose a tag to compare

@rollup/pluginutils needs to be a dependency. This should fix #54

v4.2.0 - Optimize SVGs imported as URLs

08 Jan 07:08

Choose a tag to compare

SVGs imported as URLs (import svgUrl from ./some.svg?url) will now be SVGO optimized before written to disk on production builds.

NOTE: SVGs imported as URLs will not be optimized in dev mode.

This should fix #52

v4.1.2 - Return the full JS result from compile

31 Aug 10:54

Choose a tag to compare

This will include the map property as well.

This should fix #48.

v4.1.1 - Set Svelte compiler css option to 'none'

31 Aug 06:36

Choose a tag to compare

The css option to Svelte compile() has changed and setting it to a boolean value has been deprecated.

This gave the compilerOptions.css as a boolean is deprecated. Use 'external' instead of false. warning.

Since we're disregarding the css field in the generated result, we can set this option to none and skip all CSS stuff altogether.

v4.1.0 - Added the `preCompileHook` option

07 Aug 05:09

Choose a tag to compare

This is a function that lets the consumer transform the SVG into a Svelte component before being passed to the Svelte compiler.

v4.0.1 - Render the contents of the `<svg>` tag using `{@html}` in the component mode

03 Aug 05:05

Choose a tag to compare

This is to prevent Svelte having to parse the entire SVG.

Thanks @aradalvand for the code.

This solves #39

v4.0.0 - Support Svelte 4

23 Jun 07:46

Choose a tag to compare

This release supports Svelte 4