@google/genai migration guide
Review @google/genai migration guides for the webhook rename in 1.50.1 and translation configuration changes in 2.8.0.
The @google/genai guides cover two specific migrations: a webhook method rename in the 1.x line and a Live API translation configuration change in 2.8.0. Choose the release your upgrade crosses. These are selected changes, rather than a complete guide from every 1.x version to 2.x.
Choose your migration path
- Rename the webhook call in 1.50.1: webhooks.retrieve becomes webhooks.get. Emendant can offer the method rename, but it does not rewrite code that reads the old response wrapper. Review the returned Webhook and your downstream field access.
- Update Live API translation in 2.8.0: StreamTranslationConfig becomes TranslationConfig, and LiveConnectConfig uses translationConfig in place of streamTranslationConfig. The guide covers the root, node and web entry points and explains which type references need review.
Check your upgrade
Check your installed version in the manifest and lockfile, then read the release pages your upgrade crosses. Run npx emendant scan to find supported changes in TypeScript and JavaScript source without editing your files. Use npx emendant fix --dry-run to preview deterministic patches where available. The preview does not install dependencies, run your checks or call a model. Assisted patches need a named model provider and a fix run without --dry-run. After updating dependencies, run your typecheck and tests and review the patch grades in the fix guide.
Coverage and limits
The 2.8.0 findings have possible assisted fixes and require a named model provider. Config objects that never name the covered types can escape detection. A clean scan does not confirm that your Live API translation behavior is correct; test that behavior after the upgrade.
The linked release pages list covered findings, possible fixes and tagged sources. A clean scan does not prove that every migration step is complete. Read the supported projects guide for the scan's scope.
@google/genai release pages
- @google/genai 3.0.0: Node support narrows to >=22.0.0
@google/genai 3.0.0, released 6 November 2026. 1 breaking, 0 deprecations. - @google/genai 2.8.0: translation config migration
@google/genai 2.8.0, released 3 June 2026. 6 breaking, 0 deprecations. - @google/genai 1.50.1: webhooks.retrieve became webhooks.get
@google/genai 1.50.1, released 14 April 2026. 1 breaking, 0 deprecations.
Releases without a page here may still be in the feed. Run emendant feed status to see what your snapshot holds.