Packages

langchain

1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed

Your version

1.4.6

17 Jun 2026Where it was published

1.6.7 is the newest release of 1.x.

In short

2 new

Release note

Patch Changes

  • langchain: Add when predicate to human-in-the-loop middleware

    Add an optional when callback on InterruptOnConfig so callers can
    dynamically skip interrupts for specific tool calls. The predicate receives
    a ToolCallRequest (batch afterModel context) and returns whether to
    interrupt or auto-approve, matching Python HumanInTheLoopMiddleware.

  • aws: Bedrock prompt caching middleware

    Adds bedrockPromptCachingMiddleware. The interface largely matches what was previous implemented with anthropicPromptCachingMiddleware, making a best-effort attempt at utilizing prompt caching features for supported models.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.