ai 3.3.19 → 3.3.20

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.19",
3
+ "version": "3.3.20",
4
4
  "description": "Vercel AI SDK - The AI Toolkit for TypeScript and JavaScript",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -16,7 +16,8 @@
16
16
  "prompts/dist/**/*",
17
17
  "rsc/dist/**/*",
18
18
  "google/dist/**/*",
19
- "mistral/dist/**/*"
19
+ "mistral/dist/**/*",
20
+ "CHANGELOG.md"
20
21
  ],
21
22
  "exports": {
22
23
  "./package.json": "./package.json",
@@ -100,8 +101,8 @@
100
101
  "tsup": "^7.2.0",
101
102
  "typescript": "5.5.4",
102
103
  "zod": "3.23.8",
103
- "@vercel/ai-tsconfig": "0.0.0",
104
- "eslint-config-vercel-ai": "0.0.0"
104
+ "eslint-config-vercel-ai": "0.0.0",
105
+ "@vercel/ai-tsconfig": "0.0.0"
105
106
  },
106
107
  "peerDependencies": {
107
108
  "openai": "^4.42.0",
@@ -32,7 +32,8 @@ function getAIStateStoreOrThrow(message) {
32
32
  function withAIState({ state, options }, fn) {
33
33
  return asyncAIStateStorage.run(
34
34
  {
35
- currentState: state,
35
+ currentState: JSON.parse(JSON.stringify(state)),
36
+ // deep clone object
36
37
  originalState: state,
37
38
  sealed: false,
38
39
  options