@ai-sdk/svelte 3.0.0-beta.21 → 3.0.0-beta.22
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/svelte
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 205077b: fix: improve Zod compatibility
|
|
8
|
+
- Updated dependencies [de2d2ab]
|
|
9
|
+
- Updated dependencies [6c42e56]
|
|
10
|
+
- Updated dependencies [c93a8bc]
|
|
11
|
+
- Updated dependencies [20398f2]
|
|
12
|
+
- Updated dependencies [86293e5]
|
|
13
|
+
- Updated dependencies [205077b]
|
|
14
|
+
- ai@5.0.0-beta.22
|
|
15
|
+
- @ai-sdk/provider-utils@3.0.0-beta.4
|
|
16
|
+
|
|
3
17
|
## 3.0.0-beta.21
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -2,7 +2,7 @@ import { type FetchFunction, type InferSchema } from '@ai-sdk/provider-utils';
|
|
|
2
2
|
import { type DeepPartial, type Schema } from 'ai';
|
|
3
3
|
import type * as z3 from 'zod/v3';
|
|
4
4
|
import type * as z4 from 'zod/v4';
|
|
5
|
-
export type Experimental_StructuredObjectOptions<SCHEMA extends z3.Schema | z4.ZodType | Schema, RESULT = InferSchema<SCHEMA>> = {
|
|
5
|
+
export type Experimental_StructuredObjectOptions<SCHEMA extends z3.Schema | z4.core.$ZodType | Schema, RESULT = InferSchema<SCHEMA>> = {
|
|
6
6
|
/**
|
|
7
7
|
* The API endpoint. It should stream JSON that matches the schema as chunked text.
|
|
8
8
|
*/
|
|
@@ -55,7 +55,7 @@ export type Experimental_StructuredObjectOptions<SCHEMA extends z3.Schema | z4.Z
|
|
|
55
55
|
*/
|
|
56
56
|
credentials?: RequestCredentials;
|
|
57
57
|
};
|
|
58
|
-
export declare class StructuredObject<SCHEMA extends z3.Schema | z4.ZodType | Schema, RESULT = InferSchema<SCHEMA>, INPUT = unknown> {
|
|
58
|
+
export declare class StructuredObject<SCHEMA extends z3.Schema | z4.core.$ZodType | Schema, RESULT = InferSchema<SCHEMA>, INPUT = unknown> {
|
|
59
59
|
#private;
|
|
60
60
|
/**
|
|
61
61
|
* The current value for the generated object. Updated as the API streams JSON chunks.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-object.svelte.d.ts","sourceRoot":"","sources":["../src/structured-object.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,MAAM,EACZ,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAQlC,MAAM,MAAM,oCAAoC,CAC9C,MAAM,SAAS,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"structured-object.svelte.d.ts","sourceRoot":"","sources":["../src/structured-object.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,WAAW,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,MAAM,EACZ,MAAM,IAAI,CAAC;AACZ,OAAO,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;AAQlC,MAAM,MAAM,oCAAoC,CAC9C,MAAM,SAAS,EAAE,CAAC,MAAM,GAAG,EAAE,CAAC,IAAI,CAAC,QAAQ,GAAG,MAAM,EACpD,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,IAC1B;IACF;;OAEG;IACH,GAAG,EAAE,MAAM,CA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te",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.22",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"svelte": "^5.31.0",
|
|
31
|
-
"zod": "^3.25.
|
|
31
|
+
"zod": "^3.25.76 || ^4"
|
|
32
32
|
},
|
|
33
33
|
"peerDependenciesMeta": {
|
|
34
34
|
"zod": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"ai": "5.0.0-beta.
|
|
40
|
-
"@ai-sdk/provider-utils": "3.0.0-beta.
|
|
39
|
+
"ai": "5.0.0-beta.22",
|
|
40
|
+
"@ai-sdk/provider-utils": "3.0.0-beta.4"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/node": "20.17.24",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"typescript-eslint": "^8.20.0",
|
|
59
59
|
"vite": "^6.0.0",
|
|
60
60
|
"vitest": "^3.0.0",
|
|
61
|
-
"zod": "3.25.
|
|
61
|
+
"zod": "3.25.76",
|
|
62
62
|
"@vercel/ai-tsconfig": "0.0.0"
|
|
63
63
|
},
|
|
64
64
|
"homepage": "https://ai-sdk.dev/docs",
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from './structured-object-context.svelte.js';
|
|
23
23
|
|
|
24
24
|
export type Experimental_StructuredObjectOptions<
|
|
25
|
-
SCHEMA extends z3.Schema | z4.ZodType | Schema,
|
|
25
|
+
SCHEMA extends z3.Schema | z4.core.$ZodType | Schema,
|
|
26
26
|
RESULT = InferSchema<SCHEMA>,
|
|
27
27
|
> = {
|
|
28
28
|
/**
|
|
@@ -88,7 +88,7 @@ export type Experimental_StructuredObjectOptions<
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
export class StructuredObject<
|
|
91
|
-
SCHEMA extends z3.Schema | z4.ZodType | Schema,
|
|
91
|
+
SCHEMA extends z3.Schema | z4.core.$ZodType | Schema,
|
|
92
92
|
RESULT = InferSchema<SCHEMA>,
|
|
93
93
|
INPUT = unknown,
|
|
94
94
|
> {
|