Packages

@ai-sdk/google

4.0.122 · 17 Nov 2026Apache-2.014.6M / weekRepositoryHomepagenpmAtom feed

Upgrading @ai-sdk/google From 3.0.14 to 3.0.147

129 releases in betweennotes for 128

Reading releases, release notes and advisories…

Other targets from 3.0.14Latest4.0.122
  1. 3.0.14yours
  2. 65 releases
  3. 3.0.82security
  4. 6 releases
  5. 3.0.89security
  6. 55 releases
  7. 3.0.147target
?
changes to make
0
advisories fixed
35+
new
71+
fixes

Counted from 128 of 129 release notes. Advisories are counted from the advisory database, in full.

Security

  • Prevent prototype pollution when synchronously parsing provider JSON inputs and expose secureJsonParse from provider-utils.

    3.0.89
  • google: Prevent prototype pollution when streaming tool args

    3.0.82

Release by release

  1. 3.0.147

    17 Nov 20261 fix
    • Fixed

      Limit the size of Google Vertex tool result file downloads with toolResultDownloads.maxBytes, which defaults to 7 MiB. This is lower than the previous 2 GiB default for these downloads; raise toolResultDownloads.maxBytes for larger files.

  2. 3.0.146

    12 Nov 20261 new
    • New

      Add the gemini-4-hydrogen model ID and support Hydrogen's xhigh thinking level in Google Generate Content and Interactions provider options.

  3. 3.0.145

    10 Nov 20261 new
    • New

      Add support for the gemini-4-carbon model with the same capabilities as gemini-4-argon.

  4. 3.0.144

    10 Nov 20262 fixes
    • Fixed

      Preserve the served service tier from the x-gemini-service-tier response header when usage metadata omits it, for generated and streamed responses.

    • Fixed

      Apply contiguous array-index validation to dotted numeric paths in streamed tool arguments, while preserving numeric object keys and valid contiguous array updates.

  5. 3.0.143

    7 Nov 20263 fixes
    • Fixed

      Bound Google JSON Schema conversion work, output size, and depth to prevent excessive resource use when inlining repeated local references. Input inspection and conversion each have a separate budget of 10,000 visited JSON values and a conservative 1,000,000-character serialized-size allowance, with a depth limit of 100. Schemas exceeding these limits now fail with a controlled error, including large schemas that were previously accepted. String-size accounting reserves six characters per UTF-16 code unit for JSON escaping.

    • Fixed

      Pass providerOptions.google.labels through to Google and Vertex AI Interactions requests, including streaming, so callers can attach request metadata such as safety_identifier.

    • Fixed

      Skip streamed tool-call array indexes that leave a gap so a small response can't build a huge sparse array

  6. 3.0.142

    6 Nov 20261 fix
    • Fixed

      Omit Google provider-defined tools, including File Search and Vertex RAG Store, when toolChoice is none so disabled tools cannot retrieve data or execute server-side. Preserve function declarations needed by conversation history while disabling function calling.

  7. 3.0.141

    3 Nov 20263 fixes
    • Fixed

      google: Handle cycles and BigInt in functionResponse and parse string functionCall arguments

    • Fixed

      Omit all Google Interactions tools when toolChoice is none, including provider-defined tools.

    • Fixed

      Map Google RPC status names to HTTP status codes when streamed errors omit a numeric code, so transient failures such as UNAVAILABLE and RESOURCE_EXHAUSTED are marked retryable.

  8. 3.0.140

    29 Oct 20261 new
    • New

      Add videoMetadata support for file parts. Pass startOffset, endOffset, and fps through per-file providerOptions to control video clipping and frame rate with the Google and Google Vertex providers.

61 internal lines (docs, tests, tooling) left out.

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.