Skip to content

Commit

Permalink
release: @pinia/nuxt@0.1.0 pinia@2.0.0-rc.15
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Oct 25, 2021
1 parent 34d7586 commit c28d8ea
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/nuxt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# [0.1.0](https://github.com/posva/pinia/compare/@pinia/nuxt@0.0.9...@pinia/nuxt@0.1.0) (2021-10-25)

- Adapt paths of dist files

## [0.0.9](https://github.com/posva/pinia/compare/@pinia/nuxt@0.0.8...@pinia/nuxt@0.0.9) (2021-10-21)

### Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pinia/nuxt",
"version": "0.0.9",
"version": "0.1.0",
"description": "Nuxt Module for pinia",
"keywords": [
"vue",
Expand Down Expand Up @@ -56,7 +56,7 @@
"siroc": "^0.16.0"
},
"peerDependencies": {
"pinia": "^2.0.0-0"
"pinia": "~2.0.0-rc.15"
},
"publishConfig": {
"access": "public"
Expand Down
36 changes: 36 additions & 0 deletions packages/pinia/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
# [2.0.0-rc.15](https://github.com/posva/pinia/compare/pinia@2.0.0-rc.14...pinia@2.0.0-rc.15) (2021-10-25)

### Bug Fixes

- **types:** remove unused option hydrate for setup stores ([37d07fb](https://github.com/posva/pinia/commit/37d07fb29ef2885d94cae3b3f212cea83772a073))

### Code Refactoring

- **ssr:** pass storeState instead of store to hydrate ([c85edac](https://github.com/posva/pinia/commit/c85edacefc8c69a54e84afbcd577b8d1027b3065))

### Features

- **ssr:** add skipHydrate to skip hydration on specific refs ([55deedb](https://github.com/posva/pinia/commit/55deedbc492a26ab98d96ed40ddfdf6ebac45aae))

### BREAKING CHANGES

- **ssr:** the `hydrate()` option for stores defined with the
options api no longers passes the whole store instance. Instead, it
passes the `storeState` so it can be directly modified. This is because
it was currently necessary to hydrate the store by setting properties
onto `store.$state`. This change makes it impossible to make the mistake
anymore.

```diff
defineStore('main', {
state: () => ({
customRef: useLocalStorage('key', 0)
}),
- hydrate(store) {
- store.$state.customRef = useLocalStorage('key', 0)
+ hydrate(storeState) {
+ storeState.customRef = useLocalStorage('key', 0)
}
})
```

# [2.0.0-rc.14](https://github.com/posva/pinia/compare/pinia@2.0.0-rc.13...pinia@2.0.0-rc.14) (2021-10-19)

Readme update
Expand Down
2 changes: 1 addition & 1 deletion packages/pinia/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pinia",
"version": "2.0.0-rc.14",
"version": "2.0.0-rc.15",
"description": "Intuitive, type safe and flexible Store for Vue",
"main": "index.js",
"module": "dist/pinia.mjs",
Expand Down

0 comments on commit c28d8ea

Please sign in to comment.