Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"initialVersions": {
"@solidjs/image": "0.2.0"
},
"changesets": []
"changesets": [
"solid-two-line",
"swift-owls-cache"
]
}
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @solidjs/image

## 1.0.0-next.0

### Major Changes

- d0a8758: Support Solid 2.0. This release line needs `solid-js` and `@solidjs/web` 2.0 or newer, and apps compile it with `@solidjs/vite-plugin`. Solid 1.x stays on the 0.x line of this package.

The eager image preload now goes through Solid's `useHead`, so it reaches the page head on the server and in the browser.

### Minor Changes

- ad3867c: AVIF now encodes at quality 50 by default, and other formats at 80. AVIF reaches similar visual quality at a lower number, and the old shared default of 80 made AVIF files several times larger. `quality` also accepts an object to set formats one by one.

Cached files now carry a pipeline version, so a plugin update that changes encoding does not reuse old files. Previews are cached on disk like the variants, each image's file and metadata are read once per build, and cached files unused for a week are removed at startup.

GIF is now a supported input and is processed by default. Animated GIFs keep every frame when the output is WebP or GIF.

An eager image is now preloaded from the head and gets a high fetch priority. Lazy images decode asynchronously by default. Props that are set still win.

Image processing is capped at the number of CPU cores at once. Set `concurrency` to change it.

## 0.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solidjs/image",
"version": "0.2.0",
"version": "1.0.0-next.0",
"description": "Optimized image components and Vite tooling for Solid.",
"type": "module",
"license": "MIT",
Expand Down