github langchain-ai/langchainjs @langchain/core@1.1.35

9 hours ago

Patch Changes

  • #10327 5dc11b5 Thanks @hntrl! - fix(core): replace exported zod type references with structural duck-type interfaces to fix TypeScript OOM

    Replaces all exported Zod type references (z3.ZodType, z4.$ZodType, etc.) in @langchain/core's public API with minimal structural ("duck-type") interfaces. This prevents TypeScript from performing expensive deep structural comparisons (~3,400+ lines of mutually recursive generics) when downstream packages resolve a different Zod version than @langchain/core, which was causing OOM crashes and unresponsive language servers in monorepo setups.

  • #10433 7af0b65 Thanks @tanushree-sharma! - feat: Add LangSmith integration metadata to createAgent and initChatModel

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.