Skip to content

Commit

Permalink
remove jxl format from transform_images
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jul 5, 2024
1 parent 96abb5c commit 6928be9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/picture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/transform_images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6928be9

Please sign in to comment.