From 6928be971a74beec43212c30372bbbf94c49da21 Mon Sep 17 00:00:00 2001 From: Oscar Otero Date: Fri, 5 Jul 2024 18:38:13 +0200 Subject: [PATCH] remove jxl format from transform_images --- CHANGELOG.md | 4 +++- plugins/picture.ts | 2 +- plugins/transform_images.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2dfb1b5..ee5191cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ Go to the `v1` branch to see the changelog of Lume 1. ### Added - New option `caseSensitiveUrls` to allow to export two urls with the same name but different cases [#625]. - Support for `npm` specifiers to postcss and lightningcss plugins [#621]. -- Redirects middleware: added `strict` option. +- Redirects middleware: added `strict` option to configure whether distinguish the trailing slash or not. For backward compatibility is `true` by default. ### Changed - Nav plugin: Improved behavior for sites with pretty urls disabled. @@ -18,6 +18,7 @@ Go to the `v1` branch to see the changelog of Lume 1. - Nav plugin: the `order` option is not applied. - Updated dependencies: `std`, `postcss`, `esbuild`, `katex`, `preact`, `xml`, `vento`, `satori`, `unocss`. - Vento plugin for component doesn't support multiline code. +- Removed `jxl` in `transform_images` plugin because it's not supported by Sharp [#630]. ## [2.2.2] - 2024-06-21 ### Fixed @@ -432,6 +433,7 @@ Go to the `v1` branch to see the changelog of Lume 1. [#619]: https://github.com/lumeland/lume/issues/619 [#621]: https://github.com/lumeland/lume/issues/621 [#625]: https://github.com/lumeland/lume/issues/625 +[#630]: https://github.com/lumeland/lume/issues/630 [2.2.3]: https://github.com/lumeland/lume/compare/v2.2.2...HEAD [2.2.2]: https://github.com/lumeland/lume/compare/v2.2.1...v2.2.2 diff --git a/plugins/picture.ts b/plugins/picture.ts index 7301e1be..229494d1 100644 --- a/plugins/picture.ts +++ b/plugins/picture.ts @@ -26,7 +26,7 @@ export interface Options { // Default options export const defaults: Options = { name: "transformImages", - order: ["jxl", "avif", "webp", "png", "jpg"], + order: ["avif", "webp", "png", "jpg"], }; export default function (userOptions?: Options) { diff --git a/plugins/transform_images.ts b/plugins/transform_images.ts index 4f6a2847..2543627c 100644 --- a/plugins/transform_images.ts +++ b/plugins/transform_images.ts @@ -55,7 +55,7 @@ export const defaults: Options = { export type Format = | "jpeg" | "jp2" - | "jxl" + // | "jxl" Not supported by sharp https://github.com/lumeland/lume/issues/630 | "png" | "webp" | "gif"