Skip to content

Releases: prazdevs/pinia-plugin-persistedstate

v4.0.2

18 Sep 18:13
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Infer CookieStorageOptions from @nuxt/schema rather than nuxt/schema (9e77053)
  • nuxt: Avoid calling runWithContext (#334)

📖 Documentation

  • Improve readability (code group icons + code titles) (13b6332)

🏡 Chore

❤️ Contributors

v4.0.1

10 Sep 16:58
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Augment @nuxt/schema rather than nuxt/schema (#330)

📖 Documentation

  • Add group icon plugin (#329)

❤️ Contributors

v4.0.0

04 Sep 22:15
Compare
Choose a tag to compare

🚀 Enhancements

  • Support excluding paths from persistence with omit option
  • Support autocompletion for dot-notation paths in pick and omit options
  • ⚠️ Rehydrate only picked/omitted paths (when specified) instead of the whole state
  • ⚠️ Drop global beforeRestore and afterRestore options
  • ⚠️ Drop auto mode
  • nuxt: Include Nuxt module in the base package
  • nuxt: Add global key option using template string

🔥 Performance

  • Deserialize with destr instead of JSON.parse

🩹 Fixes

  • nuxt: Improve SSR handling and store hdyration/persistence behavior in route middleware

💅 Refactors

  • ⚠️ Rename paths option to pick
  • ⚠️ Rename beforeRestore and afterRestore options to beforeHydrate and afterHydrate
  • nuxt: ⚠️ Rename auto-imported storage object to piniaPluginPersistedstate
  • nuxt: ⚠️ Rename Nuxt config option key to piniaPluginPersistedstate

📖 Documentation

  • Rewrite documentation to match v4 API
  • Add references and links to Nuxt-specific details and implementations

📦 Build

  • Build standalone from Nuxt module's runtime

🎨 Styles

  • Add a new identity and logo to the project

⚠️ Breaking Changes

  • ⚠️ Rehydrate only picked/omitted paths (when specified) instead of the whole state
  • ⚠️ Drop global beforeRestore and afterRestore options
  • ⚠️ Drop auto mode
  • ⚠️ Rename paths option to pick
  • ⚠️ Rename beforeRestore and afterRestore options to beforeHydrate and afterHydrate
  • nuxt: ⚠️ Rename auto-imported storage object to piniaPluginPersistedstate
  • nuxt: ⚠️ Rename Nuxt config option key to piniaPluginPersistedstate

❤️ Contributors

v3.2.1

16 Dec 20:55
Compare
Choose a tag to compare

Fixed

  • 🐛 catch persistence initialisation errors (#251) [0f21016]

v3.2.0

26 Oct 21:36
Compare
Choose a tag to compare

Added

  • ✨ add key as function [6db867e]

Fixed

v3.1.0

19 Feb 13:18
Compare
Choose a tag to compare

Added

v3.0.2

28 Dec 17:41
Compare
Choose a tag to compare

Fixed

  • 🩹 map store methods before rehydration (#162) [f71a54f]

v3.0.1

27 Nov 22:28
Compare
Choose a tag to compare

Fixed

  • 🐛 fix key factory implementation [0d8c56e]

v3.0.0

26 Nov 00:39
Compare
Choose a tag to compare

Added

Removed

  • 💥 removed paths 'array' syntax.

[email protected]

26 Nov 01:06
Compare
Choose a tag to compare