]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: display migration guide v1
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 29 Sep 2021 12:28:11 +0000 (14:28 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 29 Sep 2021 12:29:26 +0000 (14:29 +0200)
packages/docs/.vitepress/config.js
packages/docs/cookbook/migration-0-0-7.md

index 04ad82970ad4c67e170677534ecae06d728a7b9a..8e013399ead3cb1275c2e043825570b75dba448d 100644 (file)
@@ -234,8 +234,8 @@ module.exports = {
               link: '/cookbook/composing-stores.html',
             },
             {
-              text: 'Migration from 0.0.7',
-              link: '/cookbook/migration-0-0-7.html',
+              text: 'Migration from v0/v1 to v2',
+              link: '/cookbook/migration-v1-v2.html',
             },
           ],
         },
index 9b024c0e1c71c7d9b027f1c66b3332ceee2f7406..f55337539ac836fb4c50c6a3eeb81232aec0d257 100644 (file)
@@ -60,10 +60,10 @@ If you are using Vue 2 (Pinia <= 1):
 
 ```js
 import Vue from 'vue'
-import { createPinia, PiniaPlugin } from 'pinia'
+import { createPinia, PiniaVuePlugin } from 'pinia'
 
 const pinia = createPinia()
-Vue.use(PiniaPlugin)
+Vue.use(PiniaVuePlugin)
 new Vue({
   el: '#app',
   pinia,
@@ -75,7 +75,7 @@ If you are using Vue 3 (Pinia >= 2):
 
 ```js
 import { createApp } from 'vue'
-import { createPinia, PiniaPlugin } from 'pinia'
+import { createPinia, PiniaVuePlugin } from 'pinia'
 import App from './App.vue'
 
 const pinia = createPinia()
@@ -94,12 +94,12 @@ If you are using Vue 2 (Pinia <= 1):
 ```diff
 // entry-server.js
 -import { getRootState, PiniaSsr } from 'pinia',
-+import { createPinia, PiniaPlugin } from 'pinia',
++import { createPinia, PiniaVuePlugin } from 'pinia',
 
 
 -// install plugin to automatically use correct context in setup and onServerPrefetch
 -Vue.use(PiniaSsr);
-+Vue.use(PiniaPlugin)
++Vue.use(PiniaVuePlugin)
 
  export default context => {
 +  const pinia = createPinia()