]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
release: @pinia/nuxt@0.1.0 pinia@2.0.0-rc.15 @pinia/nuxt@0.1.0 pinia@2.0.0-rc.15
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 25 Oct 2021 15:47:35 +0000 (17:47 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 25 Oct 2021 15:47:35 +0000 (17:47 +0200)
packages/nuxt/CHANGELOG.md
packages/nuxt/package.json
packages/pinia/CHANGELOG.md
packages/pinia/package.json

index 2ba942ea75d3017665e1d46895df47549ba5fd45..c89076a82ab1805f5d20cbb90131af2c78601dcd 100644 (file)
@@ -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
index c30268946bc233d43e152f08baa6b09fc9c17552..af40945a28291d8e67ffc8cba8ce9e0932deab10 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "@pinia/nuxt",
-  "version": "0.0.9",
+  "version": "0.1.0",
   "description": "Nuxt Module for pinia",
   "keywords": [
     "vue",
@@ -56,7 +56,7 @@
     "siroc": "^0.16.0"
   },
   "peerDependencies": {
-    "pinia": "^2.0.0-0"
+    "pinia": "~2.0.0-rc.15"
   },
   "publishConfig": {
     "access": "public"
index 2d72812509522b0dbca3af2095e84428386f7f98..faeeb97c96c6debf987647b369182dc935923d8c 100644 (file)
@@ -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
index b247882ad343e7c818007ae7c35514e0be4f5d5f..7a0bcaffa5006e98834f2389b3967013e2bc6c01 100644 (file)
@@ -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",