From 87c6182c4bf61e1f96a4877eb884fd59cf824e1f Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sat, 1 Feb 2025 23:29:08 +0100 Subject: [PATCH] refactor: remove deprecated alias BREAKING CHANGE: `PiniaStorePlugin` is now removed. Use `PiniaPlugin` instead. --- packages/pinia/src/index.ts | 8 +------- packages/pinia/src/rootStore.ts | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/packages/pinia/src/index.ts b/packages/pinia/src/index.ts index be7b8347..7db2b4fd 100644 --- a/packages/pinia/src/index.ts +++ b/packages/pinia/src/index.ts @@ -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 { diff --git a/packages/pinia/src/rootStore.ts b/packages/pinia/src/rootStore.ts index 78e75c6a..2de789f3 100644 --- a/packages/pinia/src/rootStore.ts +++ b/packages/pinia/src/rootStore.ts @@ -147,9 +147,3 @@ export interface PiniaPlugin { context: PiniaPluginContext ): Partial | void } - -/** - * Plugin to extend every store. - * @deprecated use PiniaPlugin instead - */ -export type PiniaStorePlugin = PiniaPlugin -- 2.47.3