@ultimat3/seo 5.0.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/image-driver.ts +5 -5
- package/src/routes.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/seo",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Enforced SEO: typed meta, JSON-LD, sitemap, robots, feeds, responsive images, perf budgets",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"test": "bun test"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@ultimat3/core": "
|
|
34
|
+
"@ultimat3/core": "6.0.0"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/image-driver.ts
CHANGED
|
@@ -60,17 +60,17 @@ function requestedFormat(format: string | undefined): ImageFormat | undefined {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* The zero-dependency pipeline in `@ultimat3/core`: PNG and
|
|
64
|
-
* `<picture>` still offers AVIF and
|
|
65
|
-
* raises core's `X_IMAGE_UNSUPPORTED`, and
|
|
63
|
+
* The zero-dependency pipeline in `@ultimat3/core`: PNG, JPEG, WebP and GIF in, PNG, JPEG and
|
|
64
|
+
* WebP out. `<picture>` still offers AVIF, and nothing here synthesises it — asking for one
|
|
65
|
+
* raises core's `X_IMAGE_UNSUPPORTED`, and that variant belongs on a CDN driver instead.
|
|
66
66
|
*/
|
|
67
67
|
export function builtinImageDriver(options: BuiltinImageDriverOptions): ImageTransformDriver {
|
|
68
68
|
return {
|
|
69
69
|
name: 'builtin',
|
|
70
70
|
async transform(request: TransformRequest): Promise<TransformedImage> {
|
|
71
|
-
const bytes = transformImageBytes(await options.read(request.src), {
|
|
71
|
+
const bytes = await transformImageBytes(await options.read(request.src), {
|
|
72
72
|
width: request.width,
|
|
73
|
-
// Omitted means core
|
|
73
|
+
// Omitted means core keeps the source's format when it can write it, PNG otherwise.
|
|
74
74
|
format: requestedFormat(request.format),
|
|
75
75
|
quality: request.quality ?? options.quality,
|
|
76
76
|
});
|
package/src/routes.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import type { RouteMeta } from './meta';
|
|
6
6
|
|
|
7
|
-
export type RenderMode = 'static' | 'isr' | 'ssr' | 'stream'
|
|
7
|
+
export type RenderMode = 'static' | 'isr' | 'ssr' | 'stream';
|
|
8
8
|
|
|
9
9
|
/** `site/` is the only surface SEO applies to; `app/` is behind auth. */
|
|
10
10
|
export type Surface = 'site' | 'app' | 'api';
|