@authup/client-web-nuxt 1.0.0-beta.56 → 1.0.0-beta.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@authup/client-web-nuxt",
3
3
  "configKey": "authup",
4
- "version": "1.0.0-beta.56",
4
+ "version": "1.0.0-beta.58",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.3",
7
7
  "unbuild": "3.6.1"
@@ -1,4 +1,5 @@
1
1
  import { install } from "@authup/client-web-kit";
2
+ import { API_URL_DEFAULT } from "@authup/core-http-kit";
2
3
  import { getPathValue } from "pathtrace";
3
4
  import {
4
5
  defineNuxtPlugin,
@@ -52,7 +53,7 @@ function buildApiUrl(runtimeConfig) {
52
53
  }
53
54
  }
54
55
  }
55
- return url || "http://localhost:3010";
56
+ return url || API_URL_DEFAULT;
56
57
  }
57
58
  export default defineNuxtPlugin({
58
59
  name: "authup:kit",
@@ -92,7 +93,20 @@ export default defineNuxtPlugin({
92
93
  }
93
94
  return null;
94
95
  },
95
- isServer: import.meta.server
96
+ isServer: import.meta.server,
97
+ // Same bucket `useAsyncData` transports its results in, so a
98
+ // collection loaded during the server render is handed to the
99
+ // browser through the regular Nuxt payload instead of being
100
+ // fetched a second time on hydration.
101
+ hydrationStore: {
102
+ get: (key) => ctx.payload.data[key],
103
+ set: (key, value) => {
104
+ ctx.payload.data[key] = value;
105
+ },
106
+ delete: (key) => {
107
+ delete ctx.payload.data[key];
108
+ }
109
+ }
96
110
  });
97
111
  }
98
112
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@authup/client-web-nuxt",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.56",
4
+ "version": "1.0.0-beta.58",
5
5
  "description": "Nuxt module for the authup ecosystem",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -30,9 +30,10 @@
30
30
  "node": "^22.13.0 || ^23.5.0 || >=24.0.0"
31
31
  },
32
32
  "dependencies": {
33
- "@authup/access": "^1.0.0-beta.56",
34
- "@authup/client-web-kit": "^1.0.0-beta.56",
35
- "@authup/kit": "^1.0.0-beta.56",
33
+ "@authup/access": "^1.0.0-beta.58",
34
+ "@authup/client-web-kit": "^1.0.0-beta.58",
35
+ "@authup/core-http-kit": "^1.0.0-beta.58",
36
+ "@authup/kit": "^1.0.0-beta.58",
36
37
  "@nuxt/kit": "^4.0.0",
37
38
  "pathtrace": "^2.2.0",
38
39
  "smob": "^1.6.1"
@@ -43,7 +44,7 @@
43
44
  "@pinia/nuxt": "^0.11.3",
44
45
  "fix-dts-default-cjs-exports": "^1.0.1",
45
46
  "mkdist": "^2.3.0",
46
- "nuxt": "^4.5.0",
47
+ "nuxt": "^4.5.1",
47
48
  "pinia": "^3.0.0",
48
49
  "rollup-plugin-dts": "^6.3.0",
49
50
  "strip-literal": "^3.1.0",