From e7ffb7ddea7d79f56a494e7c57725d20709544d8 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 24 Aug 2021 09:36:37 +0200 Subject: [PATCH] refactor: use PiniaVuePlugin --- packages/nuxt/templates/plugin.js | 4 ++-- packages/pinia/src/vue2-plugin.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/nuxt/templates/plugin.js b/packages/nuxt/templates/plugin.js index 5d3e51b2..150812d9 100644 --- a/packages/nuxt/templates/plugin.js +++ b/packages/nuxt/templates/plugin.js @@ -1,9 +1,9 @@ // @ts-check import { isVue2, Vue2 } from 'vue-demi' -import { createPinia, setActivePinia, PiniaPlugin } from 'pinia' +import { createPinia, setActivePinia, PiniaVuePlugin } from 'pinia' if (isVue2) { - Vue2.use(PiniaPlugin) + Vue2.use(PiniaVuePlugin) } /** diff --git a/packages/pinia/src/vue2-plugin.ts b/packages/pinia/src/vue2-plugin.ts index 25bc75cd..f11d6f63 100644 --- a/packages/pinia/src/vue2-plugin.ts +++ b/packages/pinia/src/vue2-plugin.ts @@ -11,9 +11,9 @@ import { Pinia, piniaSymbol, setActivePinia } from './rootStore' * @example * ```js * import Vue from 'vue' - * import { PiniaPlugin, createPinia } from 'pinia' + * import { PiniaVuePlugin, createPinia } from 'pinia' * - * Vue.use(PiniaPlugin) + * Vue.use(PiniaVuePlugin) * const pinia = createPinia() * * new Vue({ @@ -71,6 +71,6 @@ export const PiniaVuePlugin: Plugin = function (_Vue) { } /** - * @deprecated use PiniaVuePlugin + * @deprecated use `PiniaVuePlugin` instead. */ export const PiniaPlugin = PiniaVuePlugin -- 2.47.3