Project Information
- Name of tool/project: Pinia
- Project home page: https://pinia.vuejs.org/
- Name of team requesting review: Design Systems Team
- Primary contact: Anne Tomasevich (@AnneT)
- Target date for deployment: There is currently no project using Pinia, but its lack of security review is preventing teams from using it and leading them to opt for Vuex 4, which has been succeeded by Pinia. Any project built in Vue 3 that needs a state management library should use Pinia, so it will become necessary soon. I will update this if work on a project that uses Pinia begins.
- Link to code repository / patchset: https://github.com/vuejs/pinia, https://www.npmjs.com/package/pinia
Description of the tool/project: Pinia is the new official state management library for use with Vue.js, succeeding Vuex 4. While Vuex 3 and 4 will continue to be maintained, no new features will be added, and the Vue core team recommends using Pinia for new projects (see the note on the Vuex website).
Description of how the tool will be used at WMF: Several WMF Vue projects use Vuex for state management (e.g. MediaSearch, MachineVision, WikiLambda), and some of them may continue to use Vuex if we determine that a migration is not worth it. However, any new project built with Vue 3 that requires complex state management should use Pinia, as recommended by the Vue core team, and to capitalize on its improvements over Vuex (notably its lighter weight, better type safety, modularity, and more intuitive patterns).
Dependencies
None
Has this project been reviewed before?
No. Vuex 4 was reviewed in T288768, but they are distinct projects.
Working test environment
- This demo was set up by the developer of Pinia: https://stackblitz.com/github/piniajs/example-vue-3-vite?file=README.md
- He also wrote one for CodeSandbox: https://codesandbox.io/s/j4qzw
Post-deployment
The Design Systems Team will be responsible for this library: