[PR #4054] [MERGED] chore: replace uuidv4 with crypto.randomUUID in TypeScript examples #4058

Closed
opened 2026-06-05 19:12:37 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/4054
Author: @open-swe[bot]
Created: 5/18/2026
Status: Merged
Merged: 5/20/2026
Merged by: @npentrel

Base: mainHead: open-swe/replace-uuidv4-with-crypto-randomuuid


📝 Commits (1)

  • 7879b0c chore: replace uuidv4 with crypto.randomUUID in TS examples

📊 Changes

12 files changed (+22 additions, -43 deletions)

View changed files

📝 src/langsmith/generative-ui-react.mdx (+1 -2)
📝 src/langsmith/trace-with-langchain.mdx (+1 -3)
📝 src/oss/deepagents/memory.mdx (+3 -5)
📝 src/oss/javascript/integrations/vectorstores/google_cloudsql_pg.mdx (+1 -2)
📝 src/oss/javascript/integrations/vectorstores/mariadb.mdx (+1 -2)
📝 src/oss/javascript/integrations/vectorstores/pgvector.mdx (+1 -2)
📝 src/oss/javascript/integrations/vectorstores/weaviate.mdx (+1 -2)
📝 src/oss/langchain/multi-agent/handoffs-customer-support.mdx (+1 -2)
📝 src/oss/langchain/multi-agent/skills-sql-assistant.mdx (+2 -5)
📝 src/oss/langchain/voice-agent.mdx (+1 -2)
📝 src/oss/langgraph/add-memory.mdx (+5 -9)
📝 src/oss/langgraph/persistence.mdx (+4 -7)

📄 Description

Description

Replace all usage of uuidv4 (from the uuid package) with the built-in crypto.randomUUID() across TypeScript code samples to drop the external dependency. Also fixes a stale uuidv4() reference in the JS voice-agent example, which was importing uuid7 but calling uuidv4().

Release Note

none

Test Plan

  • Spot-check a couple of the updated MDX pages render correctly in Mintlify preview.

Opened collaboratively by Christian Bromann and open-swe.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/4054 **Author:** [@open-swe[bot]](https://github.com/apps/open-swe) **Created:** 5/18/2026 **Status:** ✅ Merged **Merged:** 5/20/2026 **Merged by:** [@npentrel](https://github.com/npentrel) **Base:** `main` ← **Head:** `open-swe/replace-uuidv4-with-crypto-randomuuid` --- ### 📝 Commits (1) - [`7879b0c`](https://github.com/langchain-ai/docs/commit/7879b0c59bd54f41f3dd0feda163ad8e377feb3c) chore: replace uuidv4 with crypto.randomUUID in TS examples ### 📊 Changes **12 files changed** (+22 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `src/langsmith/generative-ui-react.mdx` (+1 -2) 📝 `src/langsmith/trace-with-langchain.mdx` (+1 -3) 📝 `src/oss/deepagents/memory.mdx` (+3 -5) 📝 `src/oss/javascript/integrations/vectorstores/google_cloudsql_pg.mdx` (+1 -2) 📝 `src/oss/javascript/integrations/vectorstores/mariadb.mdx` (+1 -2) 📝 `src/oss/javascript/integrations/vectorstores/pgvector.mdx` (+1 -2) 📝 `src/oss/javascript/integrations/vectorstores/weaviate.mdx` (+1 -2) 📝 `src/oss/langchain/multi-agent/handoffs-customer-support.mdx` (+1 -2) 📝 `src/oss/langchain/multi-agent/skills-sql-assistant.mdx` (+2 -5) 📝 `src/oss/langchain/voice-agent.mdx` (+1 -2) 📝 `src/oss/langgraph/add-memory.mdx` (+5 -9) 📝 `src/oss/langgraph/persistence.mdx` (+4 -7) </details> ### 📄 Description ## Description Replace all usage of `uuidv4` (from the `uuid` package) with the built-in `crypto.randomUUID()` across TypeScript code samples to drop the external dependency. Also fixes a stale `uuidv4()` reference in the JS voice-agent example, which was importing `uuid7` but calling `uuidv4()`. ## Release Note none ## Test Plan - [ ] Spot-check a couple of the updated MDX pages render correctly in Mintlify preview. _Opened collaboratively by Christian Bromann and open-swe._ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 19:12:37 -04:00
yindo closed this issue 2026-06-05 19:12:37 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#4058