npm / @langchain/google-common
@langchain/google-common
What changed in @langchain/google-common 0.1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
1 breaking2 security12 new APIs and options4 behavior and defaults1 tooling19 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@langchain/google-common 228 changes
Breaking changes 1
Google chat models use the LangSmith gateway only when no credentials are passed; explicit credentials route requests straight to Google.
New APIs and options 6
LangSmith gateway routing now covers ChatVertexAI in the Node and web packages, including streaming, custom gateway URLs, and explicit regional project configuration.
Adds the MINIMAL thinking level for Gemini 3 Flash models.
Structured output now supports standard schemas, allowing developers to use them with Google integrations.
Aborted invoke() calls during streaming throw ModelAbortError with accumulated partialOutput when using streaming callback handlers.
Gemini models now support the thinkingLevel parameter.
withStructuredOutput now supports the jsonSchema method, allowing structured output to be defined with JSON Schema.
Behavior and default changes 4
Adds native Gemini event conversion for streamEvents.
Chat model and LLM invocation parameters are now added to traced metadata.
Packages now stamp their version into runnable metadata at construction time, making version information available in LangSmith trace metadata.
Model profiles were updated, which may affect how model capabilities are represented.
Fixes and other changes 17
Streamed Claude tool-call arguments are preserved on replay.
System prompt cache-control blocks are preserved on Vertex AI.
Vertex Express requests now honor custom endpoints.
Fixes the Google tool choice modes sent to Vertex AI.
Fixes endpoint routing and parameter validation for the eu multi-region location.
Automatically sets this flag when a Gemini request mixes server-side built-in tools with function declarations, avoiding an HTTP 400 response.
Guards against plain object ToolMessage content to prevent a crash.
Fixed missing stream usage metadata on Gemini.
Prevents a 400 error when an AIMessage has empty text content.
Google providers now support ContentBlock.Multimodal types.
Internal fields are stripped from text content blocks before they are sent to the Anthropic API.
Fixes empty text blocks from streaming chunks missing an index when using Claude models.
Claude Vertex formatting preserves
tool_useblocks from assistant content and deduplicates them when they also appear intool_calls.Google models now set the correct _llmType, so code relying on the model type receives the appropriate value.
Google Common and VertexAI provider operations check and propagate abort signals; stream() throws AbortError when aborted, and invoke() supports cancellation during streaming.
Zod-to-Gemini schema conversion now supports nullable object types.
Gemini tools now handle unsupported Zod schema features.
@langchain/google-common 12 changes
Security 1
Updated the polynomial regex to mitigate a ReDoS vulnerability in SseStream.
Fixes and other changes 1
Fixed compatibility with moduleResolution set to node.
@langchain/google-common 0.33 changes
Security 1
A fix for CVE-2025-12735 was included in this release.
Tooling 1
node-gyp was added for Vercel builds.
Fixes and other changes 1
The default temperature option for v0/anthropic was fixed.
@langchain/google-common 0.16 changes
New APIs and options 6
Adds an endpoint to list organization teams with workspace, parent-team, identity, and pagination filters; results are name-ordered and include a cursor for the next page.
Adds an endpoint to get a team in the organization. Organization-scoped teams require organization:teams:read; workspace-scoped teams require workspaces:teams:read in their workspace.
Adds an endpoint to list workspace identities for a workspace-scoped team's members, with cursor pagination and required team-read permissions.
Adds a POST endpoint to grant an organization-wide team a role in a workspace. The grant requires workspace_id and role_id and needs organization:teams:manage-grants.
Adds a GET endpoint to retrieve an organization-wide team's grant in one workspace, requiring organization:teams:read or workspaces:teams:read in that workspace.
Adds an endpoint to attach an existing organization access policy to a team, optionally limiting an organization-wide team's policy to one workspace.