Packages

ai

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

Upgrading ai From 4.3.14 to 5.0.52

58 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.3.14Newest 4.x4.3.19Latest7.0.176
  1. 4.3.14yours
  2. 5 releases
  3. 5.0.0major
  4. 51 releases
  5. 5.0.52target
  6. 30 pre

Before you upgrade

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

Security

Fixes 1 advisory affecting 4.3.14

Release by release

  1. 5.0.52

    25 Sep 20252 fixes
    • Fixed

      ai: Update uiMessageChunkSchema to satisfy the UIMessageChunk type

    • Fixed

      ai: Download files when intermediate file cannot be downloaded

  2. 5.0.51

    23 Sep 20251 fix
    • Fixed

      Export parseJsonEventStream and uiMessageChunkSchema from "ai" package

  3. 5.0.47 – 5.0.504 releases, nothing new or fixed in the notes

  4. 5.0.46

    18 Sep 20251 new
    • New

      Add safeValidateUIMessages utility to validate UI messages without throwing, returning a success/failure result object like Zod’s safeParse

  5. 5.0.45

    17 Sep 20253 fixes
    • Fixed

      ai: Fix static tool call and result detection when dynamic is undefined

    • Fixed

      ai: Do not filter zero-length text parts that have provider options

    • Fixed

      ai: Fix webp image detection from base64

  6. 5.0.44nothing new or fixed in the note

  7. 5.0.43

    12 Sep 20251 new
  8. 5.0.42

    12 Sep 20251 fix
    • Fixed

      ai: Forwarded providerExecuted flag in validateUIMessages

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