[PR #94] [MERGED] Add MemorySaverAssertImmutable Class For Parity with Python Repo #486

Closed
opened 2026-02-15 18:17:09 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/94
Author: @janvi-codaio
Created: 3/21/2024
Status: Merged
Merged: 3/21/2024
Merged by: @nfcampos

Base: mainHead: janvi-more-test-fixes


📝 Commits (5)

📊 Changes

5 files changed (+47 additions, -33 deletions)

View changed files

📝 langgraph/src/checkpoint/base.ts (+10 -0)
📝 langgraph/src/checkpoint/index.ts (+1 -1)
📝 langgraph/src/checkpoint/memory.ts (+33 -0)
📝 langgraph/src/index.ts (+1 -1)
📝 langgraph/src/tests/pregel.test.ts (+2 -31)

📄 Description

  • Add MemorySaverAssertImmutable class which makes checkpoints in testing immutable, as they are in the Python repo
  • Use this new class in the tests where MemorySaver was previously being used
  • Add corresponding helper copyCheckpoint for checkpoint deep copies
  • Remove dead test code because no longer relevant

Testing: all unit tests still pass.


🔄 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/langgraphjs/pull/94 **Author:** [@janvi-codaio](https://github.com/janvi-codaio) **Created:** 3/21/2024 **Status:** ✅ Merged **Merged:** 3/21/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `janvi-more-test-fixes` --- ### 📝 Commits (5) - [`211b23c`](https://github.com/langchain-ai/langgraphjs/commit/211b23cdeb15615f09969ab6759182090eb1b95a) added test back in and fixed two bugs - [`91da35f`](https://github.com/langchain-ai/langgraphjs/commit/91da35fdab25b5cf86a7137689ab94603f6d3af2) update - [`f49ade6`](https://github.com/langchain-ai/langgraphjs/commit/f49ade6f0a995de4280c5c911e3faf7c86f627c5) update - [`3d14f3d`](https://github.com/langchain-ai/langgraphjs/commit/3d14f3dc9fb9ecd4f5abdf8f890aef084acc2f3e) formatting - [`6ec31c4`](https://github.com/langchain-ai/langgraphjs/commit/6ec31c4f065247db31553281fece96bac003315b) Merge branch 'main' into janvi-more-test-fixes ### 📊 Changes **5 files changed** (+47 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/src/checkpoint/base.ts` (+10 -0) 📝 `langgraph/src/checkpoint/index.ts` (+1 -1) 📝 `langgraph/src/checkpoint/memory.ts` (+33 -0) 📝 `langgraph/src/index.ts` (+1 -1) 📝 `langgraph/src/tests/pregel.test.ts` (+2 -31) </details> ### 📄 Description - Add `MemorySaverAssertImmutable` class which makes checkpoints in testing immutable, as they are in the Python repo - Use this new class in the tests where `MemorySaver` was previously being used - Add corresponding helper `copyCheckpoint` for checkpoint deep copies - Remove dead test code because no longer relevant Testing: all unit tests still pass. --- <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-02-15 18:17:09 -05:00
yindo closed this issue 2026-02-15 18:17:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#486