Pinia 4
Pinia 4 contains only technically breaking changes: ESM only and upgrading @vue/devtools-api which now must be installed alongside pinia. It contains a major refactor of errors and dev warnings with Nostics. They will ensure detected problems are easier to fix, both by humans and by agents.
🚀 Features
- Upgrade devtools-api to v8 - by @posva (25572)
- Use nostics for better errors - by @posva (f3522)
- Gracefully skip nullish values in storeToRefs - by @JSap0914 and @posva in #3134 (cac82)
- Diagnostic on invalid properties when doing storeToRefs - by @posva (e7313)
- Diagnostic wrong values in plugins - by @posva (29835)
- Export piniaSymbol - by @cexoso in #2973 (d715b)
🐞 Bug Fixes
- Use modern Object.hasOwn - by @posva (57ecc)
- Respect skipHydrate marker on non-plain objects in shouldHydrate - by @lestersg5hollis0 and Runecraft in #3126 (2dcb3)
- Prevent duplicate watcher when same callback subscribed twice - by @JSap0914 in #3144 (99dca)
- ci: Pin pnpm to 11.7.0 to match action-setup bootstrap - by @posva (d7973)
- devtools: Make settable getters (computed) editable - by @posva in #3151 (640b1)
- hmr: Preserve runtime-added properties of setup store refs - by @chatman-media in #3132 (aec2a)