@sveltejs/enhanced-img
March 12, 2026 ยท View on GitHub
0.10.4
Patch Changes
- chore: add support for vite-plugin-svelte 7 (#15539)
0.10.3
Patch Changes
- fix: use jpg as a fallback format when source doesn't have an alpha channel (#15243)
0.10.2
Patch Changes
- fix: upgrade vite-imagetools to 9.0.3 for fix to caching bug (#15305)
0.10.1
Patch Changes
- fix: replace erroneous
import.meta.DEVwithimport.meta.env.DEVin generated code (#15285)
0.10.0
Minor Changes
- feat: re-export the
Picturetype fromvite-imagetools(#15225)
0.9.3
Patch Changes
- fix: ensure compatibility with vite-plugin-svelte@7 (use api.filter instead of api.idFilter) (#15179)
0.9.2
Patch Changes
- chore: remove duplicate caching layer (#14988)
0.9.1
Patch Changes
- fix: update vite-imagetools for caching fixes to avoid crashes (#14976)
0.9.0
Minor Changes
- chore(deps): update dependency vite-imagetools to v9 (#14608)
0.8.5
Patch Changes
- fix: warn rather than crash when non-enhanced image dynamically passed to
enhanced:img(#14845)
0.8.4
Patch Changes
- fix: add script block only when there are imports to add (#14604)
0.8.3
Patch Changes
- chore: update "homepage" field in package.json (#14579)
0.8.2
Patch Changes
- chore: upgrade sharp to 0.34.4 (#14478)
0.8.1
Patch Changes
- fix(perf): correctly apply id filter from vite-plugin-svelte (#14248)
0.8.0
Minor Changes
- breaking: upgrade to vite-imagetools 8 to auto-rotate images (#14172)
0.7.1
Patch Changes
- chore: add
.gitto the end ofpackage.jsonrepository url (#14134)
0.7.0
Minor Changes
- breaking: use new filters and enhancements from
vite-plugin-svelte. Requiresvite >= 6.3andvite-plugin-svelte >= 6.0. (#13967)
0.6.1
Patch Changes
- feat: allow
vite-plugin-svelte6 peer dependency (#13921)
0.6.0
Minor Changes
- feat: add validation to ensure plugin occurs in correct order (
1c3f36dc10265fb79c64643c3d7a91469d34e697)
0.5.1
Patch Changes
- chore(deps): upgrade sharp to 0.34.1 (#13611)
0.5.0
Minor Changes
- feat: add support for targeting
enhanced\:imgin CSS (#13617)
0.4.4
Patch Changes
- fix: handle duplicate SVG images (
8073d7c7dcc391d406c658729221a18ac6f18102)
0.4.3
Patch Changes
- fix: properly handle multiple SVGs (#13127)
0.4.2
Patch Changes
-
feat: set intrinsic width and height for SVGs (#13126)
-
perf: directly inline values since Svelte no longer inlines variables into template (#13035)
0.4.1
Patch Changes
- fix: correctly handle
<enhanced:img />elements nested in other DOM elements (#12945)
0.4.0
Minor Changes
- breaking: require Svelte 5 (#12822)
0.3.10
Patch Changes
- docs: update URLs for new svelte.dev site (#12857)
0.3.9
Patch Changes
- chore: upgrade svelte-parse-markup (#12793)
0.3.8
Patch Changes
- fix: import
node:processinstead of using globals (#12641)
0.3.7
Patch Changes
- fix: avoid duplicating width/height attributes (#12673)
0.3.6
Patch Changes
- fix: address Svelte 5 warning (
ec04dae73702c99652e4972d2b7363f2c11ccf5a)
0.3.5
Patch Changes
- perf: hoist vite asset declarations to module block (#12627)
0.3.4
Patch Changes
- perf: apply performance optimization to dev srcset (#12621)
0.3.3
Patch Changes
- chore: configure provenance in a simpler manner (#12570)
0.3.2
Patch Changes
-
chore: package provenance (#12567)
-
fix: ensure src attribute is properly formed (
65931f276ac2102032e3032c864a472eee19b7bb)
0.3.1
Patch Changes
- fix: make
*?enhancedimports available in the ambient context (#12363)
0.3.0
Minor Changes
- breaking: return plugin synchronously from
enhancedImages()(#12297)
Patch Changes
- chore: add keywords for discovery in npm search (#12330)
0.2.1
Patch Changes
- fix: use correct type for
*?enhancedimports (#12224)
0.2.0
Minor Changes
- feat: upgrade vite-imagetools to v7. caches build output by default (#12055)
0.1.9
Patch Changes
- fix: support shorthand attribute syntax (#11884)
0.1.8
Patch Changes
- fix: correct images cache key to avoid collisions when images have same name (#11602)
0.1.7
Patch Changes
-
chore: update primary branch from master to main (
47779436c5f6c4d50011d0ef8b2709a07c0fec5d) -
fix: throw an error if image cannot be resolved (#11346)
-
fix: attempt to address issues accessing images on filesystem (#11403)
0.1.6
Patch Changes
- chore: upgrade vite-imagetools (#11122)
0.1.5
Patch Changes
- fix: correctly generate client-side code (#11059)
0.1.4
Patch Changes
- fix: avoid creating conflicting import statements (#11047)
0.1.3
Patch Changes
- fix: only resolve images if optimizable (#11041)
0.1.2
Patch Changes
0.1.1
Patch Changes
- feat: add experimental
@sveltejs/enhanced-imgpackage (#10788)