## `PiniaStorePLugin` was renamed
-The type `PiniaStorePlugin` was renamed to `PiniaPlugin`
+The type `PiniaStorePlugin` was renamed to `PiniaPlugin`.
```diff
-import { PiniaStorePlugin } from 'pinia'
-import {
- Pinia,
- PiniaStorePlugin,
- setActivePinia,
- piniaSymbol,
-} from './rootStore'
+import { Pinia, PiniaPlugin, setActivePinia, piniaSymbol } from './rootStore'
import { ref, App, markRaw, effectScope, isVue2 } from 'vue-demi'
import { registerPiniaDevtools, devtoolsPlugin } from './devtools'
import { IS_CLIENT } from './env'
let _p: Pinia['_p'] = []
// plugins added before calling app.use(pinia)
- let toBeInstalled: PiniaStorePlugin[] = []
+ let toBeInstalled: PiniaPlugin[] = []
const pinia: Pinia = markRaw({
install(app: App) {
getCurrentInstance,
inject,
InjectionKey,
- Plugin,
Ref,
} from 'vue-demi'
import {
*
* @param plugin - store plugin to add
*/
- use(plugin: PiniaStorePlugin): Pinia
+ use(plugin: PiniaPlugin): Pinia
/**
* Installed store plugins
*
* @internal
*/
- _p: Array<PiniaStorePlugin>
+ _p: PiniaPlugin[]
/**
* App linked to this Pinia instance
import { App, createApp } from 'vue-demi'
-import { Pinia, PiniaStorePlugin, setActivePinia, createPinia } from 'pinia'
+import { Pinia, PiniaPlugin, setActivePinia, createPinia } from 'pinia'
export interface TestingOptions {
/**
* Plugins to be installed before the testing plugin. Add any plugins used in
* your application that will be used while testing.
*/
- plugins?: PiniaStorePlugin[]
+ plugins?: PiniaPlugin[]
/**
* When set to false, actions are only spied, they still get executed. When