@noy-db/in-nuxt 0.8.0-pre.0 → 0.9.0-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
CHANGED
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
import '@noy-db/in-nuxt'
|
|
9
9
|
import type { NuxtConfig } from '@nuxt/schema'
|
|
10
10
|
import { defineNoydbStore } from '@noy-db/in-pinia'
|
|
11
|
+
// ⚠️ `computed` in the SFC blocks below is VUE's, auto-imported inside
|
|
12
|
+
// `<script setup>` — NOT `@noy-db/hub`'s via-field descriptor of the same
|
|
13
|
+
// name. The names genuinely collide, and a reader who resolves the ambiguity
|
|
14
|
+
// the other way gets a field descriptor where they wanted reactivity.
|
|
15
|
+
// Declared here so the blocks are checked against the one they mean.
|
|
16
|
+
import { computed } from 'vue'
|
|
11
17
|
declare function defineNuxtConfig(config: NuxtConfig): NuxtConfig
|
|
12
18
|
interface Invoice { id: string; status: string; dueDate: string }
|
|
13
19
|
-->
|
|
@@ -153,4 +159,4 @@ See [ROADMAP.md](https://github.com/noy-db/docs/blob/main/ROADMAP.md) for the fo
|
|
|
153
159
|
|
|
154
160
|
## License
|
|
155
161
|
|
|
156
|
-
|
|
162
|
+
Apache-2.0 © vLannaAi
|
|
@@ -13,7 +13,14 @@
|
|
|
13
13
|
@click="$emit('select', coll)"
|
|
14
14
|
>
|
|
15
15
|
<span>{{ coll.meta?.label ?? coll.name }}</span>
|
|
16
|
-
|
|
16
|
+
<!-- `records`, not `count`: CollectionStats has no `count` field and never
|
|
17
|
+
has, so this badge NEVER rendered against a real inspector snapshot.
|
|
18
|
+
The test double invented `count`, so the component and its test agreed
|
|
19
|
+
with each other and neither agreed with the contract. Found by putting
|
|
20
|
+
the tests in front of a compiler (core#40) — the .vue itself is still
|
|
21
|
+
unchecked (tsc, not vue-tsc), which is exactly where the bug was
|
|
22
|
+
hiding. -->
|
|
23
|
+
<span v-if="coll.stats?.records" class="noydb-sidebar__badge">{{ coll.stats.records }}</span>
|
|
17
24
|
</button>
|
|
18
25
|
</template>
|
|
19
26
|
<div v-else class="noydb-sidebar__empty">—</div>
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noy-db/in-nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0-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": "Apache-2.0",
|
|
6
6
|
"author": "vLannaAi <vicio@lanna.ai>",
|
|
7
|
-
"homepage": "https://github.com/noy-db/
|
|
7
|
+
"homepage": "https://github.com/noy-db/in/tree/main/in-nuxt#readme",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/noy-db/
|
|
11
|
-
"directory": "
|
|
10
|
+
"url": "git+https://github.com/noy-db/in.git",
|
|
11
|
+
"directory": "in-nuxt"
|
|
12
12
|
},
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/noy-db/
|
|
14
|
+
"url": "https://github.com/noy-db/in/issues"
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"sideEffects": false,
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"node": ">=22.0.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
+
"@noy-db/hub": "^0.8.0 || ^0.9.0-pre.1",
|
|
38
|
+
"@noy-db/in-rest": "^0.8.0 || ^0.9.0-pre.1",
|
|
37
39
|
"nuxt": "^4.0.0",
|
|
38
|
-
"@noy-db/
|
|
39
|
-
"@noy-db/in-
|
|
40
|
-
"@noy-db/in-rest": "^0.8.0-pre.0",
|
|
41
|
-
"@noy-db/in-vue": "^0.8.0-pre.0"
|
|
40
|
+
"@noy-db/in-pinia": "^0.9.0-pre.0",
|
|
41
|
+
"@noy-db/in-vue": "^0.9.0-pre.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"@noy-db/in-rest": {
|
|
@@ -46,9 +46,13 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@noy-db/in-devtools": "0.
|
|
49
|
+
"@noy-db/in-devtools": "0.9.0-pre.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
+
"@noy-db/hub": "0.9.0-pre.2",
|
|
53
|
+
"@noy-db/in-rest": "0.9.0-pre.2",
|
|
54
|
+
"@noy-db/to-browser-idb": "0.9.0-pre.2",
|
|
55
|
+
"@noy-db/to-meter": "0.9.0-pre.2",
|
|
52
56
|
"@nuxt/kit": "^4.4.2",
|
|
53
57
|
"@nuxt/schema": "^4.4.2",
|
|
54
58
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
@@ -57,10 +61,8 @@
|
|
|
57
61
|
"happy-dom": "^18.0.0",
|
|
58
62
|
"nuxt": "^4.4.2",
|
|
59
63
|
"vue": "^3.5.32",
|
|
60
|
-
"@noy-db/
|
|
61
|
-
"@noy-db/in-
|
|
62
|
-
"@noy-db/in-rest": "0.8.0-pre.0",
|
|
63
|
-
"@noy-db/in-vue": "0.8.0-pre.0"
|
|
64
|
+
"@noy-db/in-pinia": "0.9.0-pre.0",
|
|
65
|
+
"@noy-db/in-vue": "0.9.0-pre.0"
|
|
64
66
|
},
|
|
65
67
|
"keywords": [
|
|
66
68
|
"noy-db",
|
|
@@ -81,6 +83,6 @@
|
|
|
81
83
|
"build": "tsup",
|
|
82
84
|
"test": "vitest run",
|
|
83
85
|
"lint": "eslint src/",
|
|
84
|
-
"typecheck": "tsc --noEmit"
|
|
86
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.tests.json"
|
|
85
87
|
}
|
|
86
88
|
}
|