Packages

vitest

5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed

Upgrading vitest From 0.34.6 to 5.1.1

100 releases in betweenevery note read

Other targets from 0.34.6Clears its advisory3.2.6
  1. 0.34.6yours
  2. 1.0.0major
  3. 20 releases
  4. 2.0.0major
  5. 15 releases
  6. 3.0.0major
  7. 3 releases
  8. 3.0.4security
  9. 3.0.5security
  10. 17 releases
  11. 4.0.0major
  12. 31 releases
  13. 5.0.0major
  14. 6 releases
  15. 5.1.1target
  16. 3 pre

Start here

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

Release by release

  1. 5.1.1

    18 Nov 20262 new · 19 fixes
    • New

      Send source maps to workers as a string

    • New

      Resolve CLI file filters once instead of per test file

    • Fixed

      Rerun on file changes after a config restart

    • Fixed

      Avoid leaking the context expect

  2. 5.1.0

    2 Nov 202624 new · 44 fixes
    • New

      Add --last-failed to run only failed tests

    • New

      Support Temporal.Instant and Temporal.ZonedDateTime in vi.setSystemTime()

    • New

      Introduce --since-last-run flag

    • New

      Expose per-retry/repeat attempt result

  3. 5.0.5

    15 Oct 20261 new · 14 fixes
    • New

      Add data to the import.meta.hot stub

    • Fixed

      Keep vite default fs.deny with api token file

    • Fixed

      Handle quoted file names in --changed

    • Fixed

      Set skip in skipIf, ignore undefined options

  4. 5.0.4

    12 Oct 20266 new · 28 fixes
    • New

      experimental: Tag cache directories with CACHEDIR.TAG

    • New

      experimental: Support test.ui.theme option

    • New

      experimental: Highlight selector multiple matches in trace view

    • New

      experimental: Print how many tests were affected and a total when running --changed

  5. 5.0.3

    30 Sep 202618 fixes
    • Fixed

      Isolate result.status between repeats runs

    • Fixed

      Don't print an interceptor warning in browser mode

    • Fixed

      Don't retry when test.fails expectedly failed

    • Fixed

      Scope cache key generators to projects

  6. 5.0.2

    25 Sep 20269 fixes
    • Fixed

      Bind process in case global is overwritten

    • Fixed

      detect-async-leaks: Ignore process.stdio handles

    • Fixed

      expect: Fix toMatchObject with asymmetric matchers

    • Fixed

      jsdom: Fix Request with Blob body on jsdom 28+

  7. 5.0.1

    Deprecation15 Sep 20262 new · 17 fixes
    • Deprecated

      Warn when deprecated deps.optimizer.web is used

    • New

      ui: Move trace attempts selector to viewer header

    • New

      ui: Add focused trace view layout mode

    • Fixed

      Exit 1 when vitest list fails collection

  8. 5.0.0

    Migration needed3 Sep 2026
    • Breaking

      Replace loupe.inspect with pretty-format

    • Breaking

      Remove quotes from string values in test.for/each title $ variable (take 2)

    • Breaking

      Default attachmentsDir from .vitest-attachements/ to .vitest/attachments/

    • Breaking

      Remove sequential test/suite options in favor of concurrent

1 other line we could not sort, mostly version bumps
  • Revert "fix: re-apply default conditions if using vite 6 or later (#7071)"

    3.0.1

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