PackageTrack

npm

@pinia/testing

2.0.1vuejs/pinia โ†—

Testing module for Pinia

Release timeline

31 releases since 2021
20212026

One column per quarter.

Releases

  1. 2.0.115 Jul 2026
    Release notes

       ๐Ÿž Bug Fixes

        View changes on GitHub
    Open source โ†’
    Additional notes

    This release correctly removes the deprecated APIs as advertised in v2. The documentation contains a list of all the deprecations compared to v0.x.

    Bug Fixes

    • use assign instead of spread for older browsers (51cf9b6)

    Features

    • warn: improve getActivePinia warn (6a0a209)

    2.0.0 (2021-10-27)

    ๐ŸŽ‰ ๐ŸŽ‰ ๐ŸŽ‰

    Bug Fixes

    • devtools: root store access #732 (90d2c35)
    • plugins: ensure plugins are used only once (#745) (150fdfc)
    • ssr: make skipHydrate compatible with @vue/composition-api (71448b0)

    BREAKING CHANGES

    All deprecated API have been removed.

    2.0.0-rc.15 (2021-10-25)

    Bug Fixes

    • types: remove unused option hydrate for setup stores (37d07fb)

    Code Refactoring

    • ssr: pass storeState instead of store to hydrate (c85edac)

    Features

    • ssr: add skipHydrate to skip hydration on specific refs (55deedb)

    BREAKING CHANGES

    • ssr: the hydrate() option for stores defined with the options api no longers passes the whole store instance. Instead, it passes the storeState so it can be directly modified. This is because it was currently necessary to hydrate the store by setting properties onto store.$state. This change makes it impossible to make the mistake anymore.
     defineStore('main', {
       state: () => ({
         customRef: useLocalStorage('key', 0)
       }),
    -  hydrate(store) {
    -    store.$state.customRef = useLocalStorage('key', 0)
    +  hydrate(storeState) {
    +    storeState.customRef = useLocalStorage('key', 0)
       }
     })
    

    2.0.0-rc.14 (2021-10-19)

    Readme update

    2.0.0-rc.13 (2021-10-12)

    • bump vue-devtools-api version

    2.0.0-rc.12 (2021-10-07)

    Features

    2.0.0-rc.11 (2021-10-03)

    Bug Fixes

    • build: expose mjs correctly (2e9fe33)
    • export the module version in mjs (cffc313)
    • types: correctly type global extensions (cdbdba5), closes #630
    • warn: avoid toRefs warning for Vue 2 (c174fe1), closes #648

    2.0.0-rc.10 (2021-09-30)

    Bug Fixes

    • ssr: always call setActivePinia (83d7d2f), closes #665
    • use assign to set $state (f3a732f), closes #682
    • fix mjs, cjs versions for webpack based builds

    Features

    2.0.0-rc.9 (2021-09-12)

    Bug Fixes

    • correct store in getters vue 2 (3d4080b)
    • vue2: delay getters until stores are ready when cross using them (ed48b00)
    • vue2: fix isComputed check for getters (307078b)

    2.0.0-rc.8 (2021-09-06)

    Bug Fixes

    • correctly set the store properties in Vue 2 (9e40309), closes #657

    2.0.0-rc.7 (2021-09-03)

    Bug Fixes

    • ssr: properly hydrate setup stores (4fbacfc)

    Features

    2.0.0-rc.6 (2021-08-19)

    Fix missing types.

    2.0.0-rc.5 (2021-08-19)

    Bug Fixes

    • ssr: convert hydrated state to refs (3f186a2), closes #619

    Features

    2.0.0-rc.4 (2021-08-09)

    If you are using Vue 2, make sure your @vue/composition-api version is at least 1.1.0, which is currently under the npm dist tag next, which means it has to be installed with npm install @vue/composition-api@next.

    Bug Fixes

    2.0.0-rc.3 (2021-08-05)

    Bug Fixes

    2.0.0-rc.2 (2021-08-04)

    This version supports Vue 2! Here is an example using Vue 2 and Vite for an optimal DX. Note this version requires Vue Devtools 6, and more specifically, they don't work with the current @vue/devtools-api (6.0.0-beta.15) because they require this unreleased fix. To get all the goodness pinia has to offer for Vue 2, you will need to clone vuejs/devtools, run yarn && yarn run build and then load an unpacked extension on a Chromium browser (after activating the developer mode in the extension panel). If you are using Vue 3, you can still use the Vue Devtools 6 regularly.

    Bug Fixes

    • devtools: grouping of actions (3d760f1)
    • devtools: reflect changes on HMR (aebc9a0)

    Features

    • add support for Vue 2 (e1ea1c8)
    • enable devtools with Vue 2 (08cdff5)

    2.0.0-rc.1 (2021-07-30)

    Posted https://github.com/vuejs/pinia/issues/592 to help people installing or upgrading Pinia.

    Bug Fixes

    • collect reactive effects ran in plugins (54cee00)
    • devtools: update when custom properties change (7dcb71e)
    • store: keep original refs with $reset (a7dadff), closes #593

    2.0.0-rc.0 (2021-07-28)

    Open source โ†’
  2. 2.0.014 Jul 2026
    Release notes

       ๐Ÿš€ Features

       ๐Ÿž Bug Fixes

        View changes on GitHub
    Open source โ†’
  3. 1.0.35 Nov 2025

    Nothing published for this version

  4. 1.0.24 Jun 2025
    Release notes

       ๐Ÿš€ Features

       ๐Ÿž Bug Fixes

        View changes on GitHub
    Open source โ†’
  5. 1.0.19 Apr 2025
    Release notes

       ๐Ÿž Bug Fixes

        View changes on GitHub
    Open source โ†’
  6. 1.0.011 Feb 2025
    Release notes

       ๐Ÿš€ Features

       ๐Ÿž Bug Fixes

        View changes on GitHub
    Open source โ†’
  7. 0.1.73 Nov 2024

    Nothing published for this version

  8. 0.1.630 Sept 2024

    Nothing published for this version

  9. 0.1.56 Aug 2024

    Nothing published for this version

  10. 0.1.426 Jul 2024

    Nothing published for this version

  11. 0.1.4-beta.017 Apr 2024pre-release

    Nothing published for this version

  12. 0.1.326 Jul 2023

    Nothing published for this version

  13. 0.1.218 May 2023

    Nothing published for this version

  14. 0.1.117 May 2023

    Nothing published for this version

  15. 0.1.08 May 2023

    Nothing published for this version

  16. 0.0.167 Apr 2023

    Nothing published for this version

  17. 0.0.1520 Feb 2023

    Nothing published for this version

  18. 0.0.1418 Aug 2022

    Nothing published for this version

  19. 0.0.1325 Jul 2022

    Nothing published for this version

  20. 0.0.125 May 2022

    Nothing published for this version

  21. 0.0.1131 Mar 2022

    Nothing published for this version

  22. 0.0.1014 Mar 2022

    Nothing published for this version

  23. 0.0.920 Dec 2021

    Nothing published for this version

  24. 0.0.84 Dec 2021

    Nothing published for this version

  25. 0.0.71 Dec 2021

    Nothing published for this version

  26. 0.0.619 Nov 2021

    Nothing published for this version

  27. 0.0.53 Nov 2021

    Nothing published for this version

  28. 0.0.421 Oct 2021

    Nothing published for this version

  29. 0.0.33 Sept 2021

    Nothing published for this version

  30. 0.0.219 Aug 2021

    Nothing published for this version

  31. 0.0.119 Aug 2021

    Nothing published for this version