-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Changelog | ||
|
||
## v4.0.0 | ||
|
||
### 🚀 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 | ||
|
||
- Prazdevs <[email protected]> | ||
|
||
*** | ||
|
||
_For changes prior to v4, please refer to the [GitHub Releases](https://github.com/prazdevs/pinia-plugin-persistedstate/releases)_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "pinia-plugin-persistedstate", | ||
"type": "module", | ||
"version": "4.0.0-alpha.11", | ||
"version": "4.0.0", | ||
"packageManager": "[email protected]", | ||
"description": "Configurable persistence and rehydration of Pinia stores.", | ||
"author": "Sacha Bouillez <[email protected]> (https://praz.dev)", | ||
|
@@ -60,7 +60,7 @@ | |
"dev": "nuxi dev playground", | ||
"dev:build": "nuxi build playground", | ||
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground", | ||
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags", | ||
"release": "changelogen --release", | ||
"docs:dev": "vitepress dev docs", | ||
"docs:build": "vitepress build docs", | ||
"docs:preview": "vitepress preview docs", | ||
|