<p align="center">
- <a href="https://pinia.esm.dev" target="_blank" rel="noopener noreferrer">
- <img width="180" src="https://pinia.esm.dev/logo.svg" alt="Pinia logo">
+ <a href="https://pinia.vuejs.org" target="_blank" rel="noopener noreferrer">
+ <img width="180" src="https://pinia.vuejs.org/logo.svg" alt="Pinia logo">
</a>
</p>
<br/>
**Q**: _What about dynamic modules?_
-**A**: Dynamic modules are not type safe, so instead [we allow creating different stores](https://pinia.esm.dev/cookbook/composing-stores.html) that can be imported anywhere
+**A**: Dynamic modules are not type safe, so instead [we allow creating different stores](https://pinia.vuejs.org/cookbook/composing-stores.html) that can be imported anywhere
## Roadmap / Ideas
## Documentation
-To learn more about Pinia, check [its documentation](https://pinia.esm.dev).
+To learn more about Pinia, check [its documentation](https://pinia.vuejs.org).
## License
// @ts-check
-const META_URL = 'https://pinia.esm.dev'
+const META_URL = 'https://pinia.vuejs.org'
const META_TITLE = 'Pinia 🍍'
const META_DESCRIPTION =
'Intuitive, type safe, light and flexible Store for Vue'
-const META_IMAGE = 'https://pinia.esm.dev/social.png'
+const META_IMAGE = 'https://pinia.vuejs.org/social.png'
const isProduction = process.env.NODE_ENV
}
```
-Note you also need `@nuxtjs/composition-api` if you are using Nuxt 2 without Bridge. [Refer to docs for more](https://pinia.esm.dev/ssr/nuxt.html).
+Note you also need `@nuxtjs/composition-api` if you are using Nuxt 2 without Bridge. [Refer to docs for more](https://pinia.vuejs.org/ssr/nuxt.html).
## License
## [2.0.1](https://github.com/vuejs/pinia/compare/pinia@2.0.0...pinia@2.0.1) (2021-11-03)
-This release correctly removes the deprecated APIs as advertised in v2. The [documentation](https://pinia.esm.dev/cookbook/migration-v1-v2.html) contains a list of all the deprecations compared to v0.x.
+This release correctly removes the deprecated APIs as advertised in v2. The [documentation](https://pinia.vuejs.org/cookbook/migration-v1-v2.html) contains a list of all the deprecations compared to v0.x.
### Bug Fixes
- Performance: Pinia now uses `effectScope()`, effectively reducing memory consumption and removing the drawbacks mentioned in the Plugin section about `useStore()` creating multiple store instances (still sharing the state).
- Devtools: Many improvements over the information displayed in devtools as well as a few bugfixes
-- HMR (Hot Module Replacement): You can now modify your stores without reloading the page and losing the state, making development much easier. Until 3.2.0 (stable) is released, you can find an example [in the playground](https://github.com/vuejs/pinia/blob/2b98eafe441ea7e9a3ff3cef122c24eb5fa03f1d/playground/src/stores/counter.ts#L66-L68). After that, you can read up to date instructions [in the documentation](https://pinia.esm.dev/cookbook/hot-module-replacement.html).
+- HMR (Hot Module Replacement): You can now modify your stores without reloading the page and losing the state, making development much easier. Until 3.2.0 (stable) is released, you can find an example [in the playground](https://github.com/vuejs/pinia/blob/2b98eafe441ea7e9a3ff3cef122c24eb5fa03f1d/playground/src/stores/counter.ts#L66-L68). After that, you can read up to date instructions [in the documentation](https://pinia.vuejs.org/cookbook/hot-module-replacement.html).
- Setup syntax: You can now define stores with a function instead of options. This enables more complex patterns. See an example [in the playground](https://github.com/vuejs/pinia/blob/75f1fe6aa4ef2629ae1c9840a2d4542ac6e62686/playground/src/stores/jokes-swrv.ts). Setup Stores are unable to group actions like Option Stores due to their very permissive syntax.
- Option syntax: we can now pass the `id` as the first parameter. This syntax is preferred over the object syntax to be consistent with the Setup syntax.
})
```
- For more information, refer to [the updated documentation for getters](https://pinia.esm.dev/core-concepts/getters.html).
+ For more information, refer to [the updated documentation for getters](https://pinia.vuejs.org/core-concepts/getters.html).
- **plugins:** To improve the plugin api capabilities, `pinia.use()`
now receives a context object instead of just `app`:
pinia.use(({ app }) => {})
```
- Check the new documentation for [Plugins](https://pinia.esm.dev/core-concepts/plugins.html)!
+ Check the new documentation for [Plugins](https://pinia.vuejs.org/core-concepts/plugins.html)!
# [2.0.0-alpha.13](https://github.com/vuejs/pinia/compare/v2.0.0-alpha.12...v2.0.0-alpha.13) (2021-04-10)
<p align="center">
- <a href="https://pinia.esm.dev" target="_blank" rel="noopener noreferrer">
- <img width="180" src="https://pinia.esm.dev/logo.svg" alt="Pinia logo">
+ <a href="https://pinia.vuejs.org" target="_blank" rel="noopener noreferrer">
+ <img width="180" src="https://pinia.vuejs.org/logo.svg" alt="Pinia logo">
</a>
</p>
## Documentation
-To learn more about Pinia, check [its documentation](https://pinia.esm.dev).
+To learn more about Pinia, check [its documentation](https://pinia.vuejs.org).
## License
{
id: 'dev.esm.pinia',
label: 'Pinia 🍍',
- logo: 'https://pinia.esm.dev/logo.svg',
+ logo: 'https://pinia.vuejs.org/logo.svg',
packageName: 'pinia',
- homepage: 'https://pinia.esm.dev',
+ homepage: 'https://pinia.vuejs.org',
componentStateTypes,
app,
},
{
id: 'dev.esm.pinia',
label: 'Pinia 🍍',
- logo: 'https://pinia.esm.dev/logo.svg',
+ logo: 'https://pinia.vuejs.org/logo.svg',
packageName: 'pinia',
- homepage: 'https://pinia.esm.dev',
+ homepage: 'https://pinia.vuejs.org',
componentStateTypes,
app,
settings: {
/**
* Vue 2 Plugin that must be installed for pinia to work. Note **you don't need
* this plugin if you are using Nuxt.js**. Use the `buildModule` instead:
- * https://pinia.esm.dev/ssr/nuxt.html.
+ * https://pinia.vuejs.org/ssr/nuxt.html.
*
* @example
* ```js