themeConfig: {
editLink: {
- pattern: 'https://github.com/vuejs/pinia/edit/v2/packages/docs/:path',
+ pattern: 'https://github.com/vuejs/pinia/edit/v3/packages/docs/:path',
text: 'Suggest changes to this page',
},
},
{
text: 'Changelog',
- link: 'https://github.com/vuejs/pinia/blob/v2/packages/pinia/CHANGELOG.md',
+ link: 'https://github.com/vuejs/pinia/blob/v3/packages/pinia/CHANGELOG.md',
},
{
text: 'Vue.js Certification',
themeConfig: {
editLink: {
- pattern: 'https://github.com/vuejs/pinia/edit/v2/packages/docs/:path',
+ pattern: 'https://github.com/vuejs/pinia/edit/v3/packages/docs/:path',
text: '对本页提出修改建议',
},
},
{
text: '更新日志',
- link: 'https://github.com/vuejs/pinia/blob/v2/packages/pinia/CHANGELOG.md',
+ link: 'https://github.com/vuejs/pinia/blob/v3/packages/pinia/CHANGELOG.md',
},
{
text: 'Vue.js 认证',
The versions after `0.0.7`: `0.1.0`, and `0.2.0`, came with a few big breaking changes. This guide helps you migrate whether you use Vue 2 or Vue 3. The whole changelog can be found in the repository:
- [For Pinia <= 1 for Vue 2](https://github.com/vuejs/pinia/blob/v1/CHANGELOG.md)
-- [For Pinia >= 2 for Vue 3](https://github.com/vuejs/pinia/blob/v2/packages/pinia/CHANGELOG.md)
+- [For Pinia >= 2 for Vue 3](https://github.com/vuejs/pinia/blob/v3/packages/pinia/CHANGELOG.md)
If you have questions or issues regarding the migration, feel free to [open a discussion](https://github.com/vuejs/pinia/discussions/categories/q-a) to ask for help.
:::
-You can find more examples in [the tests of the testing package](https://github.com/vuejs/pinia/blob/v2/packages/testing/src/testing.spec.ts).
+You can find more examples in [the tests of the testing package](https://github.com/vuejs/pinia/blob/v3/packages/testing/src/testing.spec.ts).
### Mocking getters
The versions after `0.0.7`: `0.1.0`, and `0.2.0`, came with a few big breaking changes. This guide helps you migrate whether you use Vue 2 or Vue 3. The whole changelog can be found in the repository:
- [For Pinia <= 1 for Vue 2](https://github.com/vuejs/pinia/blob/v1/CHANGELOG.md)
-- [For Pinia >= 2 for Vue 3](https://github.com/vuejs/pinia/blob/v2/packages/pinia/CHANGELOG.md)
+- [For Pinia >= 2 for Vue 3](https://github.com/vuejs/pinia/blob/v3/packages/pinia/CHANGELOG.md)
If you have questions or issues regarding the migration, feel free to [open a discussion](https://github.com/vuejs/pinia/discussions/categories/q-a) to ask for help.
})
```
-你可以在[测试包的测试源码](https://github.com/vuejs/pinia/blob/v2/packages/testing/src/testing.spec.ts)中找到更多的例子。
+你可以在[测试包的测试源码](https://github.com/vuejs/pinia/blob/v3/packages/testing/src/testing.spec.ts)中找到更多的例子。
### Mocking getters %{#mocking-getters}%