New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ai-sdk/ui-utils

Package Overview
Dependencies
Maintainers
2
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ai-sdk/ui-utils - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

9

CHANGELOG.md
# @ai-sdk/ui-utils
## 1.0.2
### Patch Changes
- 88b364b: fix (ui-utils): deep clone messages
- Updated dependencies [b446ae5]
- @ai-sdk/provider@1.0.1
- @ai-sdk/provider-utils@2.0.2
## 1.0.1

@@ -4,0 +13,0 @@

9

dist/index.js

@@ -851,3 +851,10 @@ "use strict";

const copiedMessage = {
...currentMessage,
// deep copy the message to ensure that deep changes (msg attachments) are updated
// with SolidJS. SolidJS uses referential integration of sub-objects to detect changes.
...JSON.parse(JSON.stringify(currentMessage)),
// add a revision id to ensure that the message is updated with SWR. SWR uses a
// hashing approach by default to detect changes, but it only works for shallow
// changes. This is why we need to add a revision id to ensure that the message
// is updated with SWR (without it, the changes get stuck in SWR and are not
// forwarded to rendering):
revisionId: generateId2()

@@ -854,0 +861,0 @@ };

6

package.json
{
"name": "@ai-sdk/ui-utils",
"version": "1.0.1",
"version": "1.0.2",
"license": "Apache-2.0",

@@ -29,4 +29,4 @@ "sideEffects": false,

"dependencies": {
"@ai-sdk/provider": "1.0.0",
"@ai-sdk/provider-utils": "2.0.1",
"@ai-sdk/provider": "1.0.1",
"@ai-sdk/provider-utils": "2.0.2",
"zod-to-json-schema": "^3.23.5"

@@ -33,0 +33,0 @@ },

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc