@noy-db/in-nuxt 0.7.0-pre.9 → 0.7.0

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.
Files changed (2) hide show
  1. package/README.md +7 -4
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -20,9 +20,9 @@ export default defineNuxtConfig({
20
20
  modules: ['@noy-db/in-nuxt'],
21
21
 
22
22
  noydb: {
23
- adapter: 'browser',
23
+ store: 'to-browser-idb', // a HINT for the runtime plugin; you can always construct your own store
24
24
  pinia: true,
25
- sync: { adapter: 'dynamo', table: 'noydb-prod', region: 'ap-southeast-1' },
25
+ sync: { store: 'to-aws-dynamo', table: 'noydb-prod', region: 'ap-southeast-1' },
26
26
  auth: { mode: 'biometric', sessionTimeout: '15m' },
27
27
  },
28
28
  })
@@ -50,10 +50,13 @@ import { setActiveNoydb } from '@noy-db/in-pinia'
50
50
  export default defineNuxtPlugin(async () => {
51
51
  const config = useRuntimeConfig().public.noydb
52
52
 
53
+ // Resolve the secret first — hub takes the resolved string, never a
54
+ // callback. (The deferred-secret pattern lives in the binding layer:
55
+ // see `createNoydbPiniaPlugin`'s `secret` thunk in @noy-db/in-pinia.)
53
56
  const db = await createNoydb({
54
- adapter: browser({ prefix: 'my-app' }),
57
+ store: toBrowserIdb({ prefix: 'my-app' }),
55
58
  user: 'owner',
56
- secret: () => promptUserForSecret(),
59
+ secret: await promptUserForSecret(),
57
60
  })
58
61
 
59
62
  setActiveNoydb(db)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noy-db/in-nuxt",
3
- "version": "0.7.0-pre.9",
3
+ "version": "0.7.0",
4
4
  "description": "Nuxt 4 module for noy-db — auto-imports, SSR-safe runtime plugin, and the @noy-db/in-pinia bridge",
5
5
  "license": "MIT",
6
6
  "author": "vLannaAi <vicio@lanna.ai>",
@@ -34,10 +34,10 @@
34
34
  },
35
35
  "peerDependencies": {
36
36
  "nuxt": "^4.0.0",
37
- "@noy-db/in-pinia": "0.7.0-pre.9",
38
- "@noy-db/in-vue": "0.7.0-pre.9",
39
- "@noy-db/hub": "^0.7.0-pre.9",
40
- "@noy-db/in-rest": "0.7.0-pre.9"
37
+ "@noy-db/hub": "^0.7.0",
38
+ "@noy-db/in-pinia": "^0.7.0",
39
+ "@noy-db/in-rest": "^0.7.0",
40
+ "@noy-db/in-vue": "^0.7.0"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "@noy-db/in-rest": {
@@ -45,7 +45,7 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@noy-db/in-devtools": "0.7.0-pre.9"
48
+ "@noy-db/in-devtools": "0.7.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@nuxt/kit": "^4.4.2",
@@ -53,13 +53,13 @@
53
53
  "@vitejs/plugin-vue": "^5.2.4",
54
54
  "@vue/test-utils": "^2.4.6",
55
55
  "h3": "^1.13.0",
56
- "happy-dom": "^17.4.4",
56
+ "happy-dom": "^18.0.0",
57
57
  "nuxt": "^4.4.2",
58
58
  "vue": "^3.5.32",
59
- "@noy-db/hub": "0.7.0-pre.9",
60
- "@noy-db/in-pinia": "0.7.0-pre.9",
61
- "@noy-db/in-rest": "0.7.0-pre.9",
62
- "@noy-db/in-vue": "0.7.0-pre.9"
59
+ "@noy-db/in-pinia": "0.7.0",
60
+ "@noy-db/hub": "0.7.0",
61
+ "@noy-db/in-rest": "0.7.0",
62
+ "@noy-db/in-vue": "0.7.0"
63
63
  },
64
64
  "keywords": [
65
65
  "noy-db",