]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: remove deprecated alias
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 1 Feb 2025 22:29:08 +0000 (23:29 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Sat, 1 Feb 2025 22:29:08 +0000 (23:29 +0100)
BREAKING CHANGE: `PiniaStorePlugin` is now removed. Use `PiniaPlugin`
instead.

packages/pinia/src/index.ts
packages/pinia/src/rootStore.ts

index be7b83475b6b2e906b898192e7c5263d1a00bae0..7db2b4fd39ce46044897f904f76553f7c9cee8d3 100644 (file)
@@ -3,13 +3,7 @@
  */
 export { setActivePinia, getActivePinia } from './rootStore'
 export { createPinia, disposePinia } from './createPinia'
-export type {
-  Pinia,
-  // TODO: remove in next release
-  PiniaStorePlugin,
-  PiniaPlugin,
-  PiniaPluginContext,
-} from './rootStore'
+export type { Pinia, PiniaPlugin, PiniaPluginContext } from './rootStore'
 
 export { defineStore, skipHydrate, shouldHydrate } from './store'
 export type {
index 78e75c6a2bfccdbeafa1c61cfdaaaae9773c875b..2de789f34dee7ab84a53b24c1b5433ddcfc87e5c 100644 (file)
@@ -147,9 +147,3 @@ export interface PiniaPlugin {
     context: PiniaPluginContext
   ): Partial<PiniaCustomProperties & PiniaCustomStateProperties> | void
 }
-
-/**
- * Plugin to extend every store.
- * @deprecated use PiniaPlugin instead
- */
-export type PiniaStorePlugin = PiniaPlugin