From: Eduardo San Martin Morote Date: Tue, 24 Aug 2021 07:36:37 +0000 (+0200) Subject: refactor: use PiniaVuePlugin X-Git-Tag: @pinia/nuxt@0.0.2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7ffb7ddea7d79f56a494e7c57725d20709544d8;p=thirdparty%2Fvuejs%2Fpinia.git refactor: use PiniaVuePlugin --- 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