Packages

genkit

1.44.0 · 3 Nov 2026Apache-2.0269.9k / weekRepositoryHomepagenpmAtom feed

Upgrading genkit From 1.39.0 to 1.44.0

6 releases in betweenevery note read

Reading releases, release notes and advisories…

  1. 1.39.0yours
  2. 1.40.0security
  3. 1.40.1
  4. 1.41.0breaking
  5. 1.42.0
  6. 1.43.0
  7. 1.44.0target
  8. 7 pre

Before you upgrade

Tick each one off as you go
  • Breaking1.44.0
  • Breaking1.41.0
  • Breaking1.40.0

Security

  • genkit-tools: Prevent path traversal and bind to localhost

    1.40.0

Release by release

  1. 1.44.0

    Migration needed3 Nov 20265 new · 6 fixes
    • Breaking

      Google GenAI, Interactions API usage: per-modality token counts moved from inputCharacters, inputImages, outputAudioFiles, etc. to usage.custom.*Tokens (e.g. inputTextTokens). Those old fields held token counts by mistake. See #6963 for the full mapping.

    • New

      Added the Gemini Deep Research agent (deep-research-preview-04-2026) to the vertexAI plugin as a background model.

    • New

      googleAI now sends store on generateContent requests when it's set, so you can opt out of the Gemini API's new default request logging for paid projects.

    • New

      Interactions API models now accept Word, Excel and other document types instead of only PDF and CSV.

  2. 1.43.0

    21 Oct 202614 new · 12 fixes
    • New

      throwOnError: false on generate() returns the failure and the conversation up to the last completed tool round, so you can retry from there. Code that doesn't set it still gets the same errors as before.

    • New

      Failed and aborted agent turns are now resume points. A failed turn is saved as a failed snapshot and a stopped run is saved as an aborted snapshot. Both can be resumed. (#6361, #6362, #6360)

    • New

      waitForSnapshot is the blocking version of getSnapshot. It waits on the server until a detached turn finishes, so you don't need a polling loop.

    • New

      Background delegation in the agents middleware. With async: true, delegation tools accept background: true and return a task ID right away. New check_background_tasks, wait_for_background_tasks and abort_background_tasks tools let the orchestrator manage those tasks.

  3. 1.42.0

    1 Sep 20262 new · 2 fixes
    • New

      OpenTelemetry logs are now enabled by default; the GENKIT_OTEL_ENABLE_LOGS flag has been removed, and custom log record processors set in telemetryConfig are no longer overwritten.

    • New

      Add prompt name to render span metadata for better Dev UI usability.

    • Fixed

      plugins/google-genai: Surface API errors from streaming responses by mapping HTTP status codes to Genkit statuses and parsing JSON error bodies returned with HTTP 200 (e.g. overloaded models), so middleware like retry can react appropriately.

    • Fixed

      plugins/compat-oai: Fix inverted 401/403 status mapping so a bad or missing API key now surfaces as UNAUTHENTICATED instead of PERMISSION_DENIED; affects all compat-oai based providers (openai, xai, deepseek).

  4. 1.41.0

    Migration needed11 Aug 202611 new
    • Breaking

      Security hardening for background operations (heads up: minor breaking change). The google-genai plugin no longer persists clientOptions in operation metadata, which previously risked leaking API keys if you returned a full operation object to a client. If you use per-request overrides (like a custom API key) with long-running models, you now need to pass those same overrides to each checkOperation/cancelOperation call.

    • New

      See and edit output config in the Model Runner. The Model Runner now has an editable Output panel. When you load a generation from a trace, you can inspect the inherited format and JSON schema, tweak them, or switch back to plain text for a freeform prompt. The schema shows up as readable JSON Schema instead of a raw Zod blob, and a reset restores the inherited config.

    • New

      Structured JSON output, rendered properly. Model Runner output that comes back as JSON is now rendered as clean, formatted JSON instead of a wall of text.

    • New

      Output conformance in the Prompt Runner. The Prompt Runner now supports output conformance, so prompts that define a structured schema behave consistently with the rest of the tooling.

  5. 1.40.1

    21 Jul 20261 fix
    • Fixed

      js/plugins/google-genai: Map tool role to "user" for Gemini compatibility

  6. 1.40.0

    Security fix17 Jul 2026
    • Security

      genkit-tools: Prevent path traversal and bind to localhost

    • Breaking

      agents: Return not found for missing snapshots

10 other lines we could not sort, mostly version bumps
  • New GPT-5.x models in the OpenAI-compatible plugin. Added gpt-5.2, gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, and gpt-5.5 to compat-oai, so you can reach the latest OpenAI models without waiting on a plugin bump.

    1.41.0
  • Per-request Anthropic API keys. The Anthropic plugin now resolves the API key lazily at request time instead of only at init, so you can override the key per call. Handy for multi-tenant setups and key rotation.

    1.41.0
  • Clearer retry and fallback logs. The retry and fallback model middleware now emit structured warnings explaining what happened: which attempt, how long the backoff is, why a retry was skipped, and which model it's falling back to. AbortError and ToolInterruptError are now correctly treated as non-retryable.

    1.41.0
  • Fixed audio transcription file extensions. compat-oai speech-to-text now derives the right file extension from the content type (.mp3, .wav, .webm, and friends) instead of a generic name, which fixes transcription failures with providers that key off the extension.

    1.41.0
  • More reliable agent resume. validateResumeAgainstHistory now searches history newest-first, fixing an edge case when resuming interrupted conversations.

    1.41.0
  • Options for checkOperation and cancelOperation. You can now pass options (including per-request client config) when polling or cancelling long-running operations. Auth and secrets are also now scrubbed from context logging.

    1.41.0
  • ROUGE evaluator fix on Vertex AI. Corrected the type used by the ROUGE score evaluator and cleaned up duplicated evaluator types.

    1.41.0
  • Structured output now survives "Export to .prompt". When you export from the Dev UI model runner, the output schema is included in the front matter (written as Picoschema) instead of being dropped, so exported prompts keep their structured output config.

    1.41.0
  • Cleaner trace:get output. genkit trace:get <id> gets a readable tree view, and --format json gives you clean JSON that's easy to pipe into other tools.

    1.41.0
  • More reliable startup in ephemeral runtimes. The CLI now waits for actions to finish registering before proceeding, fixing flaky behavior where actions weren't yet available.

    1.41.0

2 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.