Packages

vitest

5.1.1 · 18 Nov 2026MIT194M / weekRepositoryHomepagenpmAtom feed

Upgrading vitest From 0.31.1 to 3.2.6

75 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 0.31.1Newest 0.x0.34.6Latest5.1.1
  1. 0.31.1yours
  2. 3 releases
  3. 0.32.0major
  4. 4 releases
  5. 0.33.0major
  6. 0.34.0major
  7. 6 releases
  8. 1.0.0major
  9. 20 releases
  10. 2.0.0major
  11. 15 releases
  12. 3.0.0major
  13. 3 releases
  14. 3.0.4security
  15. 3.0.5security
  16. 15 releases
  17. 3.2.6target

Start here

Before you upgrade

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

Security

Release by release

  1. 3.2.6

    1 Jun 20261 fix
    • Fixed

      Pin last supported vite-node version

  2. 3.2.5

    1 Jun 20261 new · 1 fix
    • New

      api: Add allowWrite and allowExec options to api [backport to v3]

    • Fixed

      browser: Disable client cdp API when allowWrite/allowExec: false [backport to v3]

  3. 3.2.4

    17 Jun 202513 fixes
    • Fixed

      Use correct path for optimisation of strip-literal

    • Fixed

      Print uint and buffer as a simple string

    • Fixed

      browser: Show a helpful error when spying on an export

    • Fixed

      cli: vitest run --watch should be watch-mode

  4. 3.2.3

    9 Jun 20252 new · 7 fixes
    • New

      browser: Use base url instead of vitest

    • New

      ui: Show test annotations and metadata in the test report tab

    • Fixed

      Rerun tests when project's setup file is changed

    • Fixed

      Revert expect.any return type

  5. 3.2.2

    5 Jun 20251 new · 5 fixes
    • New

      Support rolldown-vite

    • Fixed

      browser: Calculate prepare time from createTesters call on the main thread

    • Fixed

      browser: Optimize build output and always prebundle vitest

    • Fixed

      browser: Make custom locators available in vitest-browser-* packages

    • Fixed

      expect: Ensure we can always self toEqual

    • Fixed

      reporter: Allow dot reporter to work in non interactive terminals

  6. 3.2.1

    3 Jun 20253 fixes
    • Fixed

      Use sha1 instead of md5 for hashing

    • Fixed

      expect: Fix chai import in dts

    • Fixed

      expect: Export DeeplyAllowMatchers

  7. 3.2.0

    Deprecation2 Jun 202519 new · 28 fixes
    • Deprecated

      Deprecate workspace in favor of projects

    • New

      Provide ctx.signal

    • New

      Support custom colors for test.name

    • New

      Add vi.mockObject to automock any object

  8. 3.1.4nothing new or fixed in the note

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

    3.0.1
  • Most of deps. options are now moved to server.deps with a deprecation warning. Please, consider using deps.optimizer instead of deps.inline/deps.external. Ideally, we would like to move away from using server.deps.inline altogether.

    0.34.0

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