ai 3.3.0 → 3.3.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai",
3
- "version": "3.3.0",
3
+ "version": "3.3.2",
4
4
  "description": "Vercel AI SDK - The AI Toolkit for TypeScript and JavaScript",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -58,13 +58,13 @@
58
58
  }
59
59
  },
60
60
  "dependencies": {
61
- "@ai-sdk/provider": "0.0.14",
62
- "@ai-sdk/provider-utils": "1.0.5",
63
- "@ai-sdk/react": "0.0.36",
64
- "@ai-sdk/solid": "0.0.27",
65
- "@ai-sdk/svelte": "0.0.29",
66
- "@ai-sdk/ui-utils": "0.0.24",
67
- "@ai-sdk/vue": "0.0.28",
61
+ "@ai-sdk/provider": "0.0.15",
62
+ "@ai-sdk/provider-utils": "1.0.7",
63
+ "@ai-sdk/react": "0.0.38",
64
+ "@ai-sdk/solid": "0.0.29",
65
+ "@ai-sdk/svelte": "0.0.31",
66
+ "@ai-sdk/ui-utils": "0.0.26",
67
+ "@ai-sdk/vue": "0.0.30",
68
68
  "@opentelemetry/api": "1.9.0",
69
69
  "eventsource-parser": "1.1.2",
70
70
  "jsondiffpatch": "0.6.0",
@@ -146,7 +146,8 @@
146
146
  "nextjs",
147
147
  "svelte",
148
148
  "react",
149
- "vue"
149
+ "vue",
150
+ "solid"
150
151
  ],
151
152
  "scripts": {
152
153
  "build": "tsup && cat react/dist/index.server.d.ts >> react/dist/index.d.ts",
@@ -159,6 +160,7 @@
159
160
  "test:edge": "vitest --config vitest.edge.config.js --run",
160
161
  "test:node": "vitest --config vitest.node.config.js --run",
161
162
  "test:node:core": "pnpm vitest --config vitest.node.config.js --run ./core/",
163
+ "test:node:util": "pnpm vitest --config vitest.node.config.js --run ./util/",
162
164
  "test:ui": "pnpm test:ui:react",
163
165
  "test:ui:react": "vitest --config vitest.ui.react.config.js --run",
164
166
  "test:e2e": "playwright test",
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
1
  import OpenAI from 'openai';
2
+ import { ReactNode } from 'react';
3
3
  import { z } from 'zod';
4
4
  import { LanguageModelV1FinishReason, LanguageModelV1CallWarning, LanguageModelV1 } from '@ai-sdk/provider';
5
5
 
@@ -110,12 +110,12 @@ type StreamableUIWrapper = {
110
110
  done(...args: [React.ReactNode] | []): StreamableUIWrapper;
111
111
  };
112
112
  /**
113
- * Create a piece of changable UI that can be streamed to the client.
113
+ * Create a piece of changeable UI that can be streamed to the client.
114
114
  * On the client side, it can be rendered as a normal React node.
115
115
  */
116
116
  declare function createStreamableUI(initialValue?: React.ReactNode): StreamableUIWrapper;
117
117
  /**
118
- * Create a wrapped, changable value that can be streamed to the client.
118
+ * Create a wrapped, changeable value that can be streamed to the client.
119
119
  * On the client side, the value can be accessed via the readStreamableValue() API.
120
120
  */
121
121
  declare function createStreamableValue<T = any, E = any>(initialValue?: T | ReadableStream<T>): StreamableValueWrapper<T, E>;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
1
  import OpenAI from 'openai';
2
+ import { ReactNode } from 'react';
3
3
  import { z } from 'zod';
4
4
  import { LanguageModelV1FinishReason, LanguageModelV1CallWarning, LanguageModelV1 } from '@ai-sdk/provider';
5
5
 
@@ -108,12 +108,12 @@ type StreamableUIWrapper = {
108
108
  done(...args: [React.ReactNode] | []): StreamableUIWrapper;
109
109
  };
110
110
  /**
111
- * Create a piece of changable UI that can be streamed to the client.
111
+ * Create a piece of changeable UI that can be streamed to the client.
112
112
  * On the client side, it can be rendered as a normal React node.
113
113
  */
114
114
  declare function createStreamableUI(initialValue?: React.ReactNode): StreamableUIWrapper;
115
115
  /**
116
- * Create a wrapped, changable value that can be streamed to the client.
116
+ * Create a wrapped, changeable value that can be streamed to the client.
117
117
  * On the client side, the value can be accessed via the readStreamableValue() API.
118
118
  */
119
119
  declare function createStreamableValue<T = any, E = any>(initialValue?: T | ReadableStream<T>): StreamableValueWrapper<T, E>;