Skip to content

chore(core): deprecate streamLog, streamEvents v1, RunnableWithMessageHistory and improve threat model verbiage for loads#10833

Merged
Colin Francis (colifran) merged 9 commits into
mainfrom
colifran/depr
May 5, 2026
Merged

chore(core): deprecate streamLog, streamEvents v1, RunnableWithMessageHistory and improve threat model verbiage for loads#10833
Colin Francis (colifran) merged 9 commits into
mainfrom
colifran/depr

Conversation

@colifran

@colifran Colin Francis (colifran) commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Deprecate streamEvents v1 in favor of v2 (v1 callers see IDE strikethrough; version remains required for backwards compatibility)
  • Deprecate streamLog in favor of .stream()
  • Deprecate RunnableWithMessageHistory in favor of langgraph
  • Add threat model documentation to load module and function docstrings

@changeset-bot

changeset-bot Bot commented May 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bd42d11

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 22 packages
Name Type
@langchain/core Patch
@langchain/classic Patch
langchain Patch
@langchain/anthropic Patch
@langchain/cohere Patch
@langchain/deepseek Patch
@langchain/fireworks Patch
@langchain/google-cloud-sql-pg Patch
@langchain/google-common Patch
@langchain/google-genai Patch
@langchain/google-webauth Patch
@langchain/ibm Patch
@langchain/neo4j Patch
@langchain/openai Patch
@langchain/openrouter Patch
@langchain/together-ai Patch
@langchain/xai Patch
@langchain/model-profiles Patch
@langchain/standard-tests Patch
@langchain/google-gauth Patch
@langchain/google-vertexai-web Patch
@langchain/google-vertexai Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added the ready label May 5, 2026
Comment thread libs/langchain-core/src/runnables/base.ts
@colifran Colin Francis (colifran) merged commit 6cf39fe into main May 5, 2026
35 checks passed
@colifran Colin Francis (colifran) deleted the colifran/depr branch May 5, 2026 23:28
Hunter Lovell (hntrl) pushed a commit that referenced this pull request May 7, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @langchain/core@1.1.45

### Patch Changes

- [#10833](#10833)
[`6cf39fe`](6cf39fe)
Thanks [@colifran](https://github.com/colifran)! - chore(core):
deprecate streamLog, streamEvents v1, RunnableWithMessageHistory and
improve threat model verbiage for loads

- [#10835](#10835)
[`0aebe50`](0aebe50)
Thanks [@colifran](https://github.com/colifran)! - fix(core): deno
re-declaration in LangSmith is causing unit test failures

## @langchain/anthropic@1.3.29

### Patch Changes

- [#10735](#10735)
[`1a2a08a`](1a2a08a)
Thanks [@chenzimin](https://github.com/chenzimin)! - feat(anthropic):
add automatic prompt caching via top-level cache_control

## @langchain/aws@1.3.6

### Patch Changes

- [#10839](#10839)
[`c0e8113`](c0e8113)
Thanks [@hntrl](https://github.com/hntrl)! - fix(aws): map Bedrock
prompt cache usage metadata to input token details

Include `cacheReadInputTokens` and `cacheWriteInputTokens` from Bedrock
Converse
responses in `usage_metadata.input_token_details` for both invoke and
stream
    metadata handling.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Filip Żmijewski (FilipZmijewski) pushed a commit to FilipZmijewski/langchainjs that referenced this pull request May 12, 2026
…essageHistory` and improve threat model verbiage for `loads` (langchain-ai#10833)

### Summary

- Deprecate `streamEvents` v1 in favor of v2 (v1 callers see IDE
strikethrough; version remains required for backwards compatibility)
- Deprecate `streamLog` in favor of `.stream()`
- Deprecate `RunnableWithMessageHistory` in favor of langgraph
- Add threat model documentation to `load` module and function
docstrings
Filip Żmijewski (FilipZmijewski) pushed a commit to FilipZmijewski/langchainjs that referenced this pull request May 12, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @langchain/core@1.1.45

### Patch Changes

- [langchain-ai#10833](langchain-ai#10833)
[`6cf39fe`](langchain-ai@6cf39fe)
Thanks [@colifran](https://github.com/colifran)! - chore(core):
deprecate streamLog, streamEvents v1, RunnableWithMessageHistory and
improve threat model verbiage for loads

- [langchain-ai#10835](langchain-ai#10835)
[`0aebe50`](langchain-ai@0aebe50)
Thanks [@colifran](https://github.com/colifran)! - fix(core): deno
re-declaration in LangSmith is causing unit test failures

## @langchain/anthropic@1.3.29

### Patch Changes

- [langchain-ai#10735](langchain-ai#10735)
[`1a2a08a`](langchain-ai@1a2a08a)
Thanks [@chenzimin](https://github.com/chenzimin)! - feat(anthropic):
add automatic prompt caching via top-level cache_control

## @langchain/aws@1.3.6

### Patch Changes

- [langchain-ai#10839](langchain-ai#10839)
[`c0e8113`](langchain-ai@c0e8113)
Thanks [@hntrl](https://github.com/hntrl)! - fix(aws): map Bedrock
prompt cache usage metadata to input token details

Include `cacheReadInputTokens` and `cacheWriteInputTokens` from Bedrock
Converse
responses in `usage_metadata.input_token_details` for both invoke and
stream
    metadata handling.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Filip Żmijewski (FilipZmijewski) pushed a commit to FilipZmijewski/langchainjs that referenced this pull request May 12, 2026
…essageHistory` and improve threat model verbiage for `loads` (langchain-ai#10833)

### Summary

- Deprecate `streamEvents` v1 in favor of v2 (v1 callers see IDE
strikethrough; version remains required for backwards compatibility)
- Deprecate `streamLog` in favor of `.stream()`
- Deprecate `RunnableWithMessageHistory` in favor of langgraph
- Add threat model documentation to `load` module and function
docstrings
Filip Żmijewski (FilipZmijewski) pushed a commit to FilipZmijewski/langchainjs that referenced this pull request May 12, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @langchain/core@1.1.45

### Patch Changes

- [langchain-ai#10833](langchain-ai#10833)
[`6cf39fe`](langchain-ai@6cf39fe)
Thanks [@colifran](https://github.com/colifran)! - chore(core):
deprecate streamLog, streamEvents v1, RunnableWithMessageHistory and
improve threat model verbiage for loads

- [langchain-ai#10835](langchain-ai#10835)
[`0aebe50`](langchain-ai@0aebe50)
Thanks [@colifran](https://github.com/colifran)! - fix(core): deno
re-declaration in LangSmith is causing unit test failures

## @langchain/anthropic@1.3.29

### Patch Changes

- [langchain-ai#10735](langchain-ai#10735)
[`1a2a08a`](langchain-ai@1a2a08a)
Thanks [@chenzimin](https://github.com/chenzimin)! - feat(anthropic):
add automatic prompt caching via top-level cache_control

## @langchain/aws@1.3.6

### Patch Changes

- [langchain-ai#10839](langchain-ai#10839)
[`c0e8113`](langchain-ai@c0e8113)
Thanks [@hntrl](https://github.com/hntrl)! - fix(aws): map Bedrock
prompt cache usage metadata to input token details

Include `cacheReadInputTokens` and `cacheWriteInputTokens` from Bedrock
Converse
responses in `usage_metadata.input_token_details` for both invoke and
stream
    metadata handling.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants