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

latest releases: @langchain/google-vertexai@2.1.24, @langchain/community@1.1.22, @langchain/google-webauth@2.1.24...
11 hours ago

Patch Changes

  • #10243 96c630d Thanks @hntrl! - fix: add explicit : symbol type annotations to Symbol.for() declarations for cross-version compatibility

    TypeScript infers unique symbol type when Symbol.for() is used without an explicit type annotation, causing type incompatibility when multiple versions of the same package are present in a dependency tree. By adding explicit : symbol annotations, all declarations now use the general symbol type, making them compatible across versions while maintaining identical runtime behavior.

    Changes:

    • Added : symbol to MESSAGE_SYMBOL in messages/base.ts
    • Added : symbol to MIDDLEWARE_BRAND in agents/middleware/types.ts (also changed from Symbol() to Symbol.for() for cross-realm compatibility)
  • #10256 a8b9ccc Thanks @colifran! - fix(core): standard schema type guards don't support callable schemas

  • #10204 a1f22bb Thanks @colifran! - feat(core): implement standard schema support for structured output

Don't miss a new langchainjs release

NewReleases is sending notifications on new releases.