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
On this page
Latest version 4.1.0, released October 14, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.0.1 to 4.1.0: 4 breaking changes in 2 versions.
- From 2.0.0 to 4.1.0: 9 breaking changes in 4 versions.
pinia 4.1.0 breaking changes
- 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
pinia 4.0.0 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 - 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 - 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
pinia 3.0.1 breaking changes
- Removed
PiniaVuePlugin
PiniaVuePlugin was removed in pinia 3.0.1 npmjs.com
pinia 3.0.0 breaking changes
- Removed
_Awaited
_Awaited was removed in pinia 3.0.0 npmjs.com - Removed
PiniaStorePlugin
Use PiniaPlugin instead. npmjs.com - 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 - Signature changed
defineStore
The signature of defineStore changed in pinia 3.0.0 npmjs.com
pinia 2.0.0 breaking changes
- Removed
_SubscriptionCallbackMutationBase.storeName
Use storeId instead. npmjs.com - Removed
GettersTree
GettersTree was removed in pinia 2.0.0 npmjs.com - Removed
StoreWithGetters
StoreWithGetters was removed in pinia 2.0.0 npmjs.com - Removed
StoreWithState
StoreWithState was removed in pinia 2.0.0 npmjs.com - Renamed
ActionsTree
Use _ActionsTree instead. npmjs.com - Renamed
StoreWithActions
Use _StoreWithActions instead. npmjs.com - 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 - 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 - 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 - 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
And 16 more in this version. Sign up to see every change
pinia 2.0.0-rc.0 breaking changes
- Behavior changed
DefineStoreOptions
To add custom options for all stores, extend DefineStoreOptionsBase; DefineStoreOptions only applies to option stores. github.com - Behavior changed
Store
Using Store without type arguments now yields an empty store; use StoreGeneric for a generic store type. github.com - 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
Older versions
7 older versions, each with its first changes. Sign up to see every change
Show 7 older versions
pinia 2.0.0-beta.1 breaking changes
- Removed
APIs that were deprecated in earlier alpha releases were removed; code still using them will no longer work. github.com
pinia 2.0.0-alpha.17 breaking changes
- 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
pinia 2.0.0-alpha.14 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 - 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
pinia 2.0.0-alpha.6 breaking changes
- 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
pinia 2.0.0-alpha.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 - Renamed
store.patch
Store properties are now prefixed with $; update code that reads or calls them to use the $ names. github.com
And 3 more in this version.
pinia 2.0.0-alpha.3 breaking changes
- Removed
createStore
Replace createStore with defineStore; createStore was deprecated during the alpha releases. npmjs.com
pinia 2.0.0-alpha.1 breaking changes
- 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
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.