---
title: "pinia 4.1.0 Breaking Changes on npm | Since.dev"
description: "What each pinia release removed, renamed or changed: 50 breaking changes in 13 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/pinia
last_updated: 2026-12-04
---

# pinia breaking changes

pinia 4.1.0 (October 14, 2026) is its newest release with breaking changes. The first: Signature changed StoreProperties.\_hmrPayload. Every breaking API change we have recorded in pinia on npm: 50 breaking changes in 13 versions. Below, its 13 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.1.0`, released October 14, 2026. [Source repository](https://github.com/vuejs/pinia)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.1](#v-3-0-1) to [4.1.0](#v-4-1-0): 4 breaking changes in 2 versions.
- From [2.0.0](#v-2-0-0) to [4.1.0](#v-4-1-0): 9 breaking changes in 4 versions.

## pinia 4.1.0 breaking changes

pinia 4.1.0, released October 14, 2026: 1 breaking change.

- **Signature changed** `StoreProperties._hmrPayload`  

Was \_hmrPayload: {state: string\[\]; hotState: Ref\<StateTree>; actions: \_ActionsTree; getters: \_ActionsTree;}; now \_hmrPayload: {state: string\[\]; stateKeys: Record\<string, string\[\]>; hotState: Ref\<StateTree>; actions: \_ActionsTree; getters... [npmjs.com](https://www.npmjs.com/package/pinia/v/4.1.0)

## pinia 4.0.0 breaking changes

pinia 4.0.0, released July 14, 2026: 3 breaking changes.

- **Signature changed** `_MapStateObjectReturn`  

Was type \_MapStateObjectReturn\<Id extends string, S extends StateTree, G extends \_GettersTree\<S> | {\[key: string\]: ComputedRef;}, A, T extends Record\<string, keyof S | keyof G | ((store: Store\<Id, S, G, A>) => any)> = {}> = {\[key in keyof... [npmjs.com](https://www.npmjs.com/package/pinia/v/4.0.0)
- **Signature changed** `_StoreWithActions`  

Was type \_StoreWithActions\<A> = {\[k in keyof A\]: A\[k\] extends (...args: infer P) => infer R ? (...args: P) => R : never;}; now type \_StoreWithActions\<A> = {\[k in keyof A\]: A\[k\] extends ((...args: infer P) => infer R) ? (...args: P) => R... [npmjs.com](https://www.npmjs.com/package/pinia/v/4.0.0)
- **Signature changed** `defineStore`  

Was function defineStore\<Id extends string, SS>(id: Id, storeSetup: (helpers: SetupStoreHelpers) => SS, options?: DefineSetupStoreOptions\<Id, \_ExtractStateFromSetupStore\<SS>, \_ExtractGettersFromSetupStore\<SS>... [npmjs.com](https://www.npmjs.com/package/pinia/v/4.0.0)

## pinia 3.0.1 breaking changes

pinia 3.0.1, released February 12, 2025: 1 breaking change.

- **Removed** `PiniaVuePlugin`  

PiniaVuePlugin was removed in pinia 3.0.1 [npmjs.com](https://www.npmjs.com/package/pinia/v/3.0.1)

## pinia 3.0.0 breaking changes

pinia 3.0.0, released February 11, 2025: 4 breaking changes.

- **Removed** `_Awaited`  

\_Awaited was removed in pinia 3.0.0 [npmjs.com](https://www.npmjs.com/package/pinia/v/3.0.0)
- **Removed** `PiniaStorePlugin`  

Use PiniaPlugin instead. [npmjs.com](https://www.npmjs.com/package/pinia/v/3.0.0)
- **Signature changed** `_StoreOnActionListenerContext.after`  

Was after: (callback: A extends Record\<ActionName, \_Method> ? (resolvedReturn: \_Awaited\<ReturnType\<A\[ActionName\]>>) => void : () => void) => void; now after: (callback: A extends Record\<ActionName, \_Method> ? (resolvedReturn... [npmjs.com](https://www.npmjs.com/package/pinia/v/3.0.0)
- **Signature changed** `defineStore`  

The signature of defineStore changed in pinia 3.0.0 [npmjs.com](https://www.npmjs.com/package/pinia/v/3.0.0)

## pinia 2.0.0 breaking changes

pinia 2.0.0, released October 27, 2021: 26 breaking changes.

- **Removed** `_SubscriptionCallbackMutationBase.storeName`  

Use storeId instead. [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)
- **Removed** `GettersTree`  

GettersTree was removed in pinia 2.0.0 [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)
- **Removed** `StoreWithGetters`  

StoreWithGetters was removed in pinia 2.0.0 [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)
- **Removed** `StoreWithState`  

StoreWithState was removed in pinia 2.0.0 [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)
- **Renamed** `ActionsTree`  

Use \_ActionsTree instead. [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)
- **Renamed** `StoreWithActions`  

Use \_StoreWithActions instead. [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)
- **Signature changed** `_MapStateObjectReturn`  

Was type \_MapStateObjectReturn\<Id extends string, S extends StateTree, G extends GettersTree\<S>, A, T extends Record\<string, keyof S | keyof G | ((store: Store\<Id, S, G, A>) => any)>> = {\[key in keyof T\]: () => T\[key\] extends (store... [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)
- **Signature changed** `_MapStateReturn`  

Was type \_MapStateReturn\<S extends StateTree, G extends GettersTree\<S>> = {\[key in keyof S | keyof G\]: () => key extends keyof Store\<string, S, G, {}> ? Store\<string, S, G, {}>\[key\] : never;}; now type \_MapStateReturn\<S extends StateTree... [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)
- **Signature changed** `defineStore`  

Was function defineStore\<Id extends string, S extends StateTree, G extends GettersTree\<S>, A>(options: DefineStoreOptions\<Id, S, G, A>): StoreDefinition\<Id, S, G, A>; now function defineStore\<Id extends string, S extends StateTree = {}, G... [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)
- **Signature changed** `DefineStoreOptions`  

Was interface DefineStoreOptions\<Id extends string, S extends StateTree, G extends GettersTree\<S>, A>; now interface DefineStoreOptions\<Id extends string, S extends StateTree, G, A> extends DefineStoreOptionsBase\<S, Store\<Id, S, G, A>>. [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)

And 16 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## pinia 2.0.0-rc.0 breaking changes

pinia 2.0.0-rc.0, released October 27, 2021: 3 breaking changes.

- **Behavior changed** `DefineStoreOptions`  

To add custom options for all stores, extend DefineStoreOptionsBase; DefineStoreOptions only applies to option stores. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)
- **Behavior changed** `Store`  

Using Store without type arguments now yields an empty store; use StoreGeneric for a generic store type. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)
- **Configuration changed**  

This release requires Vue 3.2.0, which was only available under the beta dist tag at the time, so projects must upgrade Vue. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)

## Older versions

7 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### pinia 2.0.0-beta.1 breaking changes

pinia 2.0.0-beta.1, released October 27, 2021: 1 breaking change.

- **Removed**  

APIs that were deprecated in earlier alpha releases were removed; code still using them will no longer work. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)

### pinia 2.0.0-alpha.17 breaking changes

pinia 2.0.0-alpha.17, released October 27, 2021: 1 breaking change.

- **Behavior changed** `store.$subscribe`  

The type property passed to $subscribe callbacks now uses an enum without emojis; code that matches on the old values must be updated. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)

### pinia 2.0.0-alpha.14 breaking changes

pinia 2.0.0-alpha.14, released October 27, 2021: 2 breaking changes.

- **Behavior changed** `getters`  

Getters receive state as their first argument; getters that read other getters via this need an explicit return type. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)
- **Signature changed** `pinia.use`  

Plugins passed to pinia.use now receive a context object; destructure app from it instead of using the app directly. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)

### pinia 2.0.0-alpha.6 breaking changes

pinia 2.0.0-alpha.6, released October 27, 2021: 1 breaking change.

- **Renamed** `setActiveReq`  

Use setActivePinia instead; it takes the application's pinia as its first parameter rather than an arbitrary object such as a request. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)

### pinia 2.0.0-alpha.5 breaking changes

pinia 2.0.0-alpha.5, released October 27, 2021: 5 breaking changes.

- **Renamed** `store.id`  

Store properties are now prefixed with $; update code that reads or calls them to use the $ names. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)
- **Renamed** `store.patch`  

Store properties are now prefixed with $; update code that reads or calls them to use the $ names. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)

And 3 more in this version.

### pinia 2.0.0-alpha.3 breaking changes

pinia 2.0.0-alpha.3, released October 27, 2021: 1 breaking change.

- **Removed** `createStore`  

Replace createStore with defineStore; createStore was deprecated during the alpha releases. [npmjs.com](https://www.npmjs.com/package/pinia/v/2.0.0)

### pinia 2.0.0-alpha.1 breaking changes

pinia 2.0.0-alpha.1, released October 27, 2021: 1 breaking change.

- **Behavior changed** `store.state`  

State properties no longer need to be read through store.state; access them directly on the store, for example this.myState. [github.com](https://github.com/posva/pinia/blob/pinia@2.0.0/packages/pinia/CHANGELOG.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
