Skip to content

Commit 3c4e865

Browse files
bloveclaude
andcommitted
fix(chat): drop the now-unused @langchain/core peer dependency
Widening messageContent() to { content: unknown } removed the last LangChain import from the published package, so @nx/dependency-checks fails the declared peer. It stays a peer of @threadplane/langgraph, which is why the install command still lists it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent c63be78 commit 3c4e865

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/website/content/docs/chat/getting-started/installation.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,14 @@ every required peer for you, so the install command above is enough.
5858
| `@threadplane/render` | `0.0.66` | yes |
5959
| `@threadplane/a2ui` | `0.0.66` | yes |
6060
| `@json-render/core` | `^0.16.0` | yes |
61-
| `@langchain/core` | `^1.1.33` | yes |
6261
| `rxjs` | `~7.8.0` | yes |
6362
| `marked` | `^15.0.0 \|\| ^16.0.0` | yes |
6463
| `zod` | `^3.25.0` | yes |
6564
| `katex` | `^0.16.0 \|\| ^0.17.0` | optional |
6665

6766
Installing `@threadplane/chat` therefore also brings in `@threadplane/telemetry`,
68-
`@threadplane/render`, `@threadplane/a2ui`, `@json-render/core`,
69-
`@langchain/core`, `rxjs`, `marked`, and `zod`.
67+
`@threadplane/render`, `@threadplane/a2ui`, `@json-render/core`, `rxjs`,
68+
`marked`, and `zod`.
7069
</Callout>
7170

7271
## 2. Configure the runtime

libs/chat/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
### Removed
66

7+
- **`@langchain/core` is no longer a peer dependency.** `messageContent()` now takes
8+
any `{ content: unknown }`, so nothing in the published package imports LangChain.
9+
Keep installing it for `@threadplane/langgraph`, which still requires it.
710
- **`provideChat()`, `ChatConfig`, and `CHAT_CONFIG` are gone.** No component in the library ever injected the token, so calling `provideChat({})` configured nothing: `renderRegistry`, `avatarLabel`, and `assistantName` were values only your own wrappers could read back. Delete the call and the import; `provideAgent()` from your runtime adapter is the only provider the chat components require, and everything they render is driven by component inputs. If you were reading `CHAT_CONFIG` from your own components, define your own injection token for those values.
811

912
### Fixed

libs/chat/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"@threadplane/render": "0.0.66",
2828
"@threadplane/a2ui": "0.0.66",
2929
"@json-render/core": "^0.16.0",
30-
"@langchain/core": "^1.1.33",
3130
"rxjs": "~7.8.0",
3231
"marked": "^15.0.0 || ^16.0.0",
3332
"katex": "^0.16.0 || ^0.17.0"

0 commit comments

Comments
 (0)