Packages

ai

7.0.176 · 17 Nov 2026Apache-2.048.5M / weekRepositoryHomepagenpmAtom feed

Upgrading ai From 3.4.33 to 4.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 3.4.33Clears its advisory5.0.52Latest7.0.176
  1. 3.4.33yours
  2. 4.0.0target
  3. 14 pre
32
changes to make
0
advisories fixed
0
new
4
fixes

Before you upgrade

Tick each one off as you go
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0

Security

1 advisory still affects 4.0.0

Upgrading to 5.0.52 clears it.

Release by release

  1. 4.0.0

    Migration needed18 Nov 20244 fixes
    • Breaking

      Chore (ai): remove LanguageModelResponseMetadataWithHeaders type

    • Breaking

      Remove legacy function/tool calling

    • Breaking

      Chore (ai/core): remove experimental function exports

    • Breaking

      Chore (ai): remove Tokens RSC helper

1 internal line (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.