ai 3.1.9 → 3.1.11
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/index.d.mts +57 -6
- package/dist/index.d.ts +57 -6
- package/dist/index.js +178 -75
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +176 -75
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
- package/react/dist/index.d.mts +2 -5
- package/react/dist/index.d.ts +2 -5
- package/rsc/dist/rsc-server.mjs.map +1 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ai",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.11",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"main": "./dist/index.js",
|
@@ -74,12 +74,12 @@
|
|
74
74
|
"devDependencies": {
|
75
75
|
"@anthropic-ai/sdk": "0.18.0",
|
76
76
|
"@aws-sdk/client-bedrock-runtime": "3.451.0",
|
77
|
-
"@edge-runtime/vm": "^3.
|
77
|
+
"@edge-runtime/vm": "^3.2.0",
|
78
78
|
"@google/generative-ai": "0.1.1",
|
79
79
|
"@huggingface/inference": "2.6.4",
|
80
80
|
"@mistralai/mistralai": "0.1.3",
|
81
81
|
"@solidjs/testing-library": "0.8.4",
|
82
|
-
"@testing-library/jest-dom": "^6.
|
82
|
+
"@testing-library/jest-dom": "^6.4.5",
|
83
83
|
"@testing-library/react": "^14.0.0",
|
84
84
|
"@testing-library/user-event": "^14.5.1",
|
85
85
|
"@testing-library/vue": "^8.0.1",
|
@@ -91,7 +91,7 @@
|
|
91
91
|
"@vitejs/plugin-vue": "4.5.0",
|
92
92
|
"cohere-ai": "^7.6.2",
|
93
93
|
"eslint": "^7.32.0",
|
94
|
-
"jsdom": "^
|
94
|
+
"jsdom": "^24.0.0",
|
95
95
|
"langchain": "0.0.196",
|
96
96
|
"msw": "2.0.9",
|
97
97
|
"openai": "4.47.1",
|
@@ -162,15 +162,15 @@
|
|
162
162
|
"type-check": "tsc --noEmit",
|
163
163
|
"prettier-check": "prettier --check \"./**/*.ts*\"",
|
164
164
|
"test": "pnpm test:node && pnpm test:edge && pnpm test:ui",
|
165
|
-
"test:edge": "vitest --config vitest.edge.config.js --run
|
166
|
-
"test:node": "vitest --config vitest.node.config.js --run
|
167
|
-
"test:node:core": "pnpm vitest --config vitest.node.config.js --run
|
165
|
+
"test:edge": "vitest --config vitest.edge.config.js --run",
|
166
|
+
"test:node": "vitest --config vitest.node.config.js --run",
|
167
|
+
"test:node:core": "pnpm vitest --config vitest.node.config.js --run ./core/",
|
168
168
|
"test:ui": "pnpm test:ui:react && pnpm test:ui:vue && pnpm test:ui:solid",
|
169
169
|
"test:ui:react": "vitest --config vitest.ui.react.config.js --run",
|
170
170
|
"test:ui:solid": "vitest --config vitest.ui.solid.config.js --run",
|
171
171
|
"test:ui:vue": "vitest --config vitest.ui.vue.config.js --run",
|
172
|
-
"test:edge:watch": "vitest --config vitest.edge.config.js
|
173
|
-
"test:node:watch": "vitest --config vitest.node.config.js
|
172
|
+
"test:edge:watch": "vitest --config vitest.edge.config.js",
|
173
|
+
"test:node:watch": "vitest --config vitest.node.config.js",
|
174
174
|
"test:ui:react:watch": "vitest --config vitest.ui.react.config.js",
|
175
175
|
"test:ui:solid:watch": "vitest --config vitest.ui.solid.config.js",
|
176
176
|
"test:ui:vue:watch": "vitest --config vitest.ui.vue.config.js"
|
package/react/dist/index.d.mts
CHANGED
@@ -362,12 +362,9 @@ type JSONValue = null | string | number | boolean | {
|
|
362
362
|
declare class StreamData {
|
363
363
|
private encoder;
|
364
364
|
private controller;
|
365
|
-
stream:
|
366
|
-
private isClosedPromise;
|
367
|
-
private isClosedPromiseResolver;
|
365
|
+
stream: ReadableStream<Uint8Array>;
|
368
366
|
private isClosed;
|
369
|
-
private
|
370
|
-
private messageAnnotations;
|
367
|
+
private warningTimeout;
|
371
368
|
constructor();
|
372
369
|
close(): Promise<void>;
|
373
370
|
append(value: JSONValue): void;
|
package/react/dist/index.d.ts
CHANGED
@@ -362,12 +362,9 @@ type JSONValue = null | string | number | boolean | {
|
|
362
362
|
declare class StreamData {
|
363
363
|
private encoder;
|
364
364
|
private controller;
|
365
|
-
stream:
|
366
|
-
private isClosedPromise;
|
367
|
-
private isClosedPromiseResolver;
|
365
|
+
stream: ReadableStream<Uint8Array>;
|
368
366
|
private isClosed;
|
369
|
-
private
|
370
|
-
private messageAnnotations;
|
367
|
+
private warningTimeout;
|
371
368
|
constructor();
|
372
369
|
close(): Promise<void>;
|
373
370
|
append(value: JSONValue): void;
|