@onreza/adapter-astro 0.2.0 → 0.3.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/dist/types.d.ts CHANGED
@@ -2,8 +2,22 @@ export interface IsrConfig {
2
2
  exclude?: string[];
3
3
  expiration: number;
4
4
  }
5
+ /**
6
+ * Image optimization configuration
7
+ * Enables platform image optimization via /_onreza/image endpoint
8
+ */
9
+ export interface ImageOptimizationOptions {
10
+ /** Whether to enable image optimization feature in manifest */
11
+ enabled?: boolean;
12
+ /** Allowed image widths (defaults to platform preset) */
13
+ sizes?: number[];
14
+ /** Supported output formats */
15
+ formats?: ("image/avif" | "image/webp")[];
16
+ }
5
17
  export interface OnrezaOptions {
6
18
  excludeFiles?: string[];
7
19
  includeFiles?: string[];
8
20
  isr?: IsrConfig;
21
+ /** Image optimization feature configuration */
22
+ imageOptimization?: ImageOptimizationOptions;
9
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onreza/adapter-astro",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "ONREZA Astro adapter",
5
5
  "license": "MIT",
6
6
  "author": "ONREZA OSS <opensource@onreza.ru>",
@@ -17,6 +17,10 @@
17
17
  "./preview": {
18
18
  "types": "./dist/preview.d.ts",
19
19
  "default": "./dist/preview.js"
20
+ },
21
+ "./image": {
22
+ "types": "./dist/image/index.d.ts",
23
+ "import": "./dist/image/index.js"
20
24
  }
21
25
  },
22
26
  "main": "./dist/index.js",