This version of Pinia has no new features, it drops support for Vue 2 and other deprecated APIs. It should be an straightforward upgrade for most users! π
See the migration guide for help.
β BREAKING CHANGES
- We now use the native
Awaited
introduced in TS 4.5, so you need at least TS 4.5 to use Pinia 3.0. That being said, it's always better to have an up to date version of TS. PiniaStorePlugin
is now removed. UsePiniaPlugin
instead.defineStore({ id: 'id' })
is now removed. UsedefineStore('id')
instead- Pinia is now published as a
type: module
package but it still provides CJS versions dist files
Please refer to CHANGELOG.md for details.