ai 6.0.0-beta.94 → 6.0.0-beta.95

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,11 @@
1
1
  # ai
2
2
 
3
+ ## 6.0.0-beta.95
4
+
5
+ ### Patch Changes
6
+
7
+ - eb8d1cb: fix not catching of empty arrays in validateUIMessage
8
+
3
9
  ## 6.0.0-beta.94
4
10
 
5
11
  ### Patch Changes
package/README.md CHANGED
@@ -207,7 +207,7 @@ We've built [templates](https://ai-sdk.dev/docs/introduction#templates) that inc
207
207
 
208
208
  ## Community
209
209
 
210
- The AI SDK community can be found on [GitHub Discussions](https://github.com/vercel/ai/discussions) where you can ask questions, voice ideas, and share your projects with other people.
210
+ The AI SDK community can be found on [the Vercel Community](https://community.vercel.com/c/ai-sdk/62) where you can ask questions, voice ideas, and share your projects with other people.
211
211
 
212
212
  ## Contributing
213
213
 
package/dist/index.js CHANGED
@@ -858,7 +858,7 @@ function detectMediaType({
858
858
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
859
859
 
860
860
  // src/version.ts
861
- var VERSION = true ? "6.0.0-beta.94" : "0.0.0-test";
861
+ var VERSION = true ? "6.0.0-beta.95" : "0.0.0-test";
862
862
 
863
863
  // src/util/download/download.ts
864
864
  var download = async ({ url }) => {
@@ -7308,9 +7308,9 @@ var uiMessagesSchema = (0, import_provider_utils20.lazySchema)(
7308
7308
  })
7309
7309
  })
7310
7310
  ])
7311
- )
7311
+ ).nonempty("Message must contain at least one part")
7312
7312
  })
7313
- )
7313
+ ).nonempty("Messages array must not be empty")
7314
7314
  )
7315
7315
  );
7316
7316
  async function safeValidateUIMessages({