Comparing version 4.0.0-canary.12 to 4.0.0-canary.13
# ai | ||
## 4.0.0-canary.13 | ||
### Major Changes | ||
- 064257d: chore (ai/core): rename simulateReadableStream values parameter to chunks | ||
### Patch Changes | ||
- Updated dependencies [79c6dd9] | ||
- Updated dependencies [04d3747] | ||
- @ai-sdk/react@1.0.0-canary.9 | ||
- @ai-sdk/ui-utils@1.0.0-canary.9 | ||
## 4.0.0-canary.12 | ||
@@ -4,0 +17,0 @@ |
{ | ||
"name": "ai", | ||
"version": "4.0.0-canary.12", | ||
"version": "4.0.0-canary.13", | ||
"description": "AI SDK by Vercel - The AI Toolkit for TypeScript and JavaScript", | ||
@@ -45,4 +45,4 @@ "license": "Apache-2.0", | ||
"@ai-sdk/provider-utils": "2.0.0-canary.3", | ||
"@ai-sdk/react": "1.0.0-canary.8", | ||
"@ai-sdk/ui-utils": "1.0.0-canary.8", | ||
"@ai-sdk/react": "1.0.0-canary.9", | ||
"@ai-sdk/ui-utils": "1.0.0-canary.9", | ||
"@opentelemetry/api": "1.9.0", | ||
@@ -53,3 +53,3 @@ "jsondiffpatch": "0.6.0", | ||
"devDependencies": { | ||
"@edge-runtime/vm": "^3.2.0", | ||
"@edge-runtime/vm": "^4.0.4", | ||
"@types/node": "^18", | ||
@@ -56,0 +56,0 @@ "@types/react": "^18", |
@@ -48,3 +48,3 @@ export { convertArrayToReadableStream } from '@ai-sdk/provider-utils/test'; | ||
* @param options - The configuration options | ||
* @param options.values - Array of values to be emitted by the stream | ||
* @param options.chunks - Array of values to be emitted by the stream | ||
* @param options.initialDelayInMs - Optional initial delay in milliseconds before emitting the first value (default: 0) | ||
@@ -54,4 +54,4 @@ * @param options.chunkDelayInMs - Optional delay in milliseconds between emitting each value (default: 0) | ||
*/ | ||
declare function simulateReadableStream<T>({ values, initialDelayInMs, chunkDelayInMs, _internal, }: { | ||
values: T[]; | ||
declare function simulateReadableStream<T>({ chunks, initialDelayInMs, chunkDelayInMs, _internal, }: { | ||
chunks: T[]; | ||
initialDelayInMs?: number; | ||
@@ -58,0 +58,0 @@ chunkDelayInMs?: number; |
@@ -101,3 +101,3 @@ "use strict"; | ||
function simulateReadableStream({ | ||
values, | ||
chunks, | ||
initialDelayInMs = 0, | ||
@@ -112,5 +112,5 @@ chunkDelayInMs = 0, | ||
async pull(controller) { | ||
if (index < values.length) { | ||
if (index < chunks.length) { | ||
await delay2(index === 0 ? initialDelayInMs : chunkDelayInMs); | ||
controller.enqueue(values[index++]); | ||
controller.enqueue(chunks[index++]); | ||
} else { | ||
@@ -117,0 +117,0 @@ controller.close(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1609755
305
48
6
239
+ Added@ai-sdk/react@1.0.0-canary.9(transitive)
+ Added@ai-sdk/ui-utils@1.0.0-canary.9(transitive)
- Removed@ai-sdk/react@1.0.0-canary.8(transitive)
- Removed@ai-sdk/ui-utils@1.0.0-canary.8(transitive)
Updated@ai-sdk/react@1.0.0-canary.9