@noy-db/in-nuxt 0.7.0 → 0.7.1-pre.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.
- package/README.md +13 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @noy-db/in-nuxt
|
|
2
2
|
|
|
3
|
+
<!-- prose-preamble
|
|
4
|
+
// Bindings the illustrative blocks below elide. `defineNuxtConfig` is a Nuxt
|
|
5
|
+
// auto-global; declared here against the AUGMENTED NuxtConfig so the `noydb:`
|
|
6
|
+
// key is checked against ModuleOptions — the block that shipped
|
|
7
|
+
// `adapter: 'browser'` was checked by nothing before this (#1310).
|
|
8
|
+
import '@noy-db/in-nuxt'
|
|
9
|
+
import type { NuxtConfig } from '@nuxt/schema'
|
|
10
|
+
import { defineNoydbStore } from '@noy-db/in-pinia'
|
|
11
|
+
declare function defineNuxtConfig(config: NuxtConfig): NuxtConfig
|
|
12
|
+
interface Invoice { id: string; status: string; dueDate: string }
|
|
13
|
+
-->
|
|
14
|
+
|
|
3
15
|
> Nuxt 4 module for [noy-db](https://github.com/vLannaAi/noy-db) — auto-imports, SSR-safe runtime plugin, and the `@noy-db/in-pinia` bridge.
|
|
4
16
|
|
|
5
17
|
**Nuxt 4+ exclusive.** For Nuxt 3, use `@noy-db/in-vue` and `@noy-db/in-pinia` directly with a hand-written plugin.
|
|
@@ -72,7 +84,7 @@ Once `setActiveNoydb` has been called, every Pinia store can transparently use N
|
|
|
72
84
|
```ts
|
|
73
85
|
// stores/invoices.ts
|
|
74
86
|
export const useInvoices = defineNoydbStore<Invoice>('invoices', {
|
|
75
|
-
|
|
87
|
+
vault: 'C101',
|
|
76
88
|
})
|
|
77
89
|
```
|
|
78
90
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noy-db/in-nuxt",
|
|
3
|
-
"version": "0.7.0",
|
|
3
|
+
"version": "0.7.1-pre.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/
|
|
38
|
-
"@noy-db/
|
|
39
|
-
"@noy-db/in-rest": "^0.7.0",
|
|
40
|
-
"@noy-db/in-vue": "^0.7.0"
|
|
37
|
+
"@noy-db/in-pinia": "^0.7.1-pre.0",
|
|
38
|
+
"@noy-db/hub": "^0.7.1-pre.0",
|
|
39
|
+
"@noy-db/in-rest": "^0.7.1-pre.0",
|
|
40
|
+
"@noy-db/in-vue": "^0.7.1-pre.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"
|
|
48
|
+
"@noy-db/in-devtools": "0.7.1-pre.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@nuxt/kit": "^4.4.2",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"happy-dom": "^18.0.0",
|
|
57
57
|
"nuxt": "^4.4.2",
|
|
58
58
|
"vue": "^3.5.32",
|
|
59
|
-
"@noy-db/
|
|
60
|
-
"@noy-db/
|
|
61
|
-
"@noy-db/in-
|
|
62
|
-
"@noy-db/in-vue": "0.7.0"
|
|
59
|
+
"@noy-db/hub": "0.7.1-pre.0",
|
|
60
|
+
"@noy-db/in-rest": "0.7.1-pre.0",
|
|
61
|
+
"@noy-db/in-pinia": "0.7.1-pre.0",
|
|
62
|
+
"@noy-db/in-vue": "0.7.1-pre.0"
|
|
63
63
|
},
|
|
64
64
|
"keywords": [
|
|
65
65
|
"noy-db",
|