Changelog
@ogygia/image
Every release of @ogygia/image, newest first.
- Latest
- 0.17.1
- Versions
- 6
0.17.1 patch
Dependency updates only @ogygia/image
0.16.5 patch
Dependency updates only @ogygia/image
0.16.4 patch
Dependency updates only @ogygia/image
0.16.3 patch
Patch Changes
- A build, a dev server or Kit's prerender notes prerendered images in a file named by an inherited
__OGYGIA_IMAGE_BUILDonly when it is in a run folder right under a runs folder the image code owns; any other is refused with a warning (image_run_refused), nothing is written or made there, and the build notes in a run of its own (a prerender handed it names its images by the endpoint's URLs). A separate process a build or dev server starts in the app (a test runner's fork, a script) now uses the app's own image cache store it inherits, found where the working folder keeps its cache, instead of warningimage_folder_refusedand making its images again in a temporary store.
Dependencies: @ogygia/compiler@0.16.3, @ogygia/core@0.16.3, @ogygia/machine@0.16.3
0.16.2 patch
Patch Changes
- On SvelteKit 3, a builder asked for an app build again after one that failed its prerender no longer tries to make the images the failed prerender named, so a page mended in between builds.
- On SvelteKit 3, a watch rebuild after a first build that failed to compile no longer publishes pages whose image URLs hold the build's mark host: a page that names a file no build made stops the rebuild with
image_watch_rebuild. - On SvelteKit 3, a watch rebuild after a first build that failed its prerender no longer hangs: it makes the images that prerender named, then goes on to the adapter. An image of them that cannot be made is warned about (
image_owed_end) and stops the rebuild only if a page still names it, and the images that were made keep their names. - An SPA fallback page an adapter renders can no longer hold the build's mark host when another environment was built, a tool resolved the Vite config, or a watch rebuild started, after the build made its images.
- A build deletes its notes folder at its end only when that folder is a real folder right under a runs folder the image code owns: the image cache's, or with no build cache this user's own owner-only folder in the system's temporary folder (
ogygia-image-<uid>/runs); any other folder named by an inherited__OGYGIA_IMAGE_BUILD, or one reached through a link, is kept, and the build warns (image_run_kept) and goes on. A notes folder that cannot be deleted at a build's end no longer replaces the build's own image error: the build warns (image_run_kept) and goes on. With no build cache, a Kit 3 watch rebuild no longer leaves an empty temporary folder behind. - A build, a dev server or the image maker uses a store or remote images folder named by an inherited
__OGYGIA_IMAGE_BUILDonly when it is inside a folder the image code owns (the image cache, the build's own temporary folder, or this user's owner-onlyogygia-image-<uid>folder); any other is refused with a warning (image_folder_refused), its own folder is used instead, and nothing in the refused one is deleted or written. With no build cache and a temporary folder that is not this user's alone, a build's end deletes a run in its own new temporary folder only while that folder is still this user's alone. - Under
vite build --watch, the prerendered pages of a build that could not make an image are removed from the build output if they still hold that build's mark host, so no later rebuild publishes them. If one cannot be removed, the build warns (image_pages_left) beside its own error.
Dependencies: @ogygia/compiler@0.16.2, @ogygia/core@0.16.2, @ogygia/machine@0.16.2
0.16.1 patch
Patch Changes
- On SvelteKit 3, a prerendered page's
<Img>now points at the real image files, and the build writes them: before, every prerendered image URL kept the build's mark host (//<hex>.ogygia.invalid/...) and no file was written, so each image 404'd. Share cards and the remote image list in server chunks now also work on Kit 3. On SvelteKit 3, the build now runs the encoder and platform checks, which it skipped before: an app with sharp missing now fails the build withimage_sharp_missing, an app on Cloudflare with no encoder chosen withimage_option_invalid, and a platform encoder on another adapter withimage_option_invalid(cloudflare()) orimage_vercel_config(vercel()). On SvelteKit 3, avite build --watchrebuild now names the image files a build has already made (the last build's, remote images and share cards included, and the warmed ones), instead of keeping the build's mark; a rebuilt prerendered page that names an image file no build made (a new image, a new remote URL or share card, or new options on one) now stops the rebuild before the adapter withimage_watch_rebuild.
Dependencies: @ogygia/compiler@0.16.1, @ogygia/core@0.16.1, @ogygia/machine@0.16.1