@ai-sdk/svelte 4.0.0-beta.38 → 4.0.0-beta.40
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,21 @@
|
|
|
1
1
|
# @ai-sdk/svelte
|
|
2
2
|
|
|
3
|
+
## 4.0.0-beta.40
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [3b1d015]
|
|
8
|
+
- @ai-sdk/provider-utils@4.0.0-beta.14
|
|
9
|
+
- ai@6.0.0-beta.40
|
|
10
|
+
|
|
11
|
+
## 4.0.0-beta.39
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- f6f0c5a: chore: remove zod from ui packages
|
|
16
|
+
- Updated dependencies [f6f0c5a]
|
|
17
|
+
- ai@6.0.0-beta.39
|
|
18
|
+
|
|
3
19
|
## 4.0.0-beta.38
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type FetchFunction
|
|
2
|
-
import { type DeepPartial } from 'ai';
|
|
1
|
+
import { type FetchFunction } from '@ai-sdk/provider-utils';
|
|
2
|
+
import { type DeepPartial, type FlexibleSchema, type InferSchema } from 'ai';
|
|
3
3
|
export type Experimental_StructuredObjectOptions<SCHEMA extends FlexibleSchema, RESULT = InferSchema<SCHEMA>> = {
|
|
4
4
|
/**
|
|
5
5
|
* The API endpoint. It should stream JSON that matches the schema as chunked text.
|
|
6
6
|
*/
|
|
7
7
|
api: string;
|
|
8
8
|
/**
|
|
9
|
-
* A
|
|
9
|
+
* A schema that defines the shape of the complete object.
|
|
10
10
|
*/
|
|
11
11
|
schema: SCHEMA;
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"structured-object.svelte.d.ts","sourceRoot":"","sources":["../src/structured-object.svelte.ts"],"names":[],"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AM,IAAI,WAAW,CAAC,MAAM,CAAC,GAAG,SAAS,CAE5C;IAKD,0CAA0C;IAC1C,IAAI,KAAK,sBAER;IAED;;OAEG;IACH,IAAI,OAAO,YAEV;gBAEW,OAAO,EAAE,oCAAoC,CAAC,MAAM,EAAE,MAAM,CAAC;IAUzE;;OAEG;IACH,IAAI,aASF;IAEF;;OAEG;IACH,MAAM,GAAU,OAAO,KAAK,mBAqF1B;IAEF;;OAEG;IACH,KAAK,aAGH;CAOH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/svelte",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.40",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -27,17 +27,11 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"svelte": "^5.31.0"
|
|
31
|
-
"zod": "^3.25.76 || ^4.1.8"
|
|
32
|
-
},
|
|
33
|
-
"peerDependenciesMeta": {
|
|
34
|
-
"zod": {
|
|
35
|
-
"optional": true
|
|
36
|
-
}
|
|
30
|
+
"svelte": "^5.31.0"
|
|
37
31
|
},
|
|
38
32
|
"dependencies": {
|
|
39
|
-
"@ai-sdk/provider-utils": "4.0.0-beta.
|
|
40
|
-
"ai": "6.0.0-beta.
|
|
33
|
+
"@ai-sdk/provider-utils": "4.0.0-beta.14",
|
|
34
|
+
"ai": "6.0.0-beta.40"
|
|
41
35
|
},
|
|
42
36
|
"devDependencies": {
|
|
43
37
|
"@eslint/compat": "^1.2.5",
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
isAbortError,
|
|
4
4
|
safeValidateTypes,
|
|
5
5
|
type FetchFunction,
|
|
6
|
-
type FlexibleSchema,
|
|
7
|
-
type InferSchema,
|
|
8
6
|
} from '@ai-sdk/provider-utils';
|
|
9
7
|
import {
|
|
10
8
|
asSchema,
|
|
11
9
|
isDeepEqualData,
|
|
12
10
|
parsePartialJson,
|
|
13
11
|
type DeepPartial,
|
|
12
|
+
type FlexibleSchema,
|
|
13
|
+
type InferSchema,
|
|
14
14
|
} from 'ai';
|
|
15
15
|
import {
|
|
16
16
|
getStructuredObjectContext,
|
|
@@ -29,7 +29,7 @@ export type Experimental_StructuredObjectOptions<
|
|
|
29
29
|
api: string;
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
* A
|
|
32
|
+
* A schema that defines the shape of the complete object.
|
|
33
33
|
*/
|
|
34
34
|
schema: SCHEMA;
|
|
35
35
|
|