@mongrov/analytics 0.8.0 → 0.8.1
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/UPGRADING.md +22 -0
- package/package.json +5 -5
package/UPGRADING.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Upgrading
|
|
2
2
|
|
|
3
|
+
## @mongrov/data-access 0.2.0 → 0.3.0 — bind only referenced placeholders
|
|
4
|
+
|
|
5
|
+
**Behaviour fix. No API change, but it repairs queries that could never run.**
|
|
6
|
+
|
|
7
|
+
DuckDB binds parameters by NAME and **rejects** any bound parameter the
|
|
8
|
+
statement does not declare — `Failed to retrieve bind parameter index`. The
|
|
9
|
+
dispatcher injected `brand` / `familyId` / `tz` unconditionally, so every
|
|
10
|
+
query whose SQL omitted one of them failed at bind time.
|
|
11
|
+
|
|
12
|
+
Three ZivaOne registry queries did exactly that (`spo2.compareBaseline`,
|
|
13
|
+
`spo2.worthALookInsight`, `device.lastSyncedAt` — all use `$userId`,
|
|
14
|
+
`$brand`, `$familyId` but not `$tz`). It went unnoticed because the app's
|
|
15
|
+
`duckdb` adapter routed to Timon and mapped every error to `[]`.
|
|
16
|
+
|
|
17
|
+
`mergeTenantParams(input, ctx, sql?)` now filters to placeholders the SQL
|
|
18
|
+
actually references. Tenant values still win over caller input, so the
|
|
19
|
+
anti-forgery guarantee is unchanged.
|
|
20
|
+
|
|
21
|
+
If you assert on the params passed to your engine adapter, expect a smaller
|
|
22
|
+
object — only what the SQL uses.
|
|
23
|
+
|
|
24
|
+
|
|
3
25
|
## 0.7.0 → 0.8.0 — `device_config` firmware contract (Sprint 5 §2, T-02/T-09/T-10)
|
|
4
26
|
|
|
5
27
|
**Breaking, and it changes both a table and a mapper input type.**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongrov/analytics",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "DuckDB + R2 Iceberg local analytics for @mongrov apps",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
],
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"@modelcontextprotocol/sdk": ">=1.20.0",
|
|
64
|
-
"@mongrov/types": "^0.5.
|
|
64
|
+
"@mongrov/types": "^0.5.1",
|
|
65
65
|
"ai": ">=4",
|
|
66
66
|
"react": ">=19",
|
|
67
67
|
"react-native": ">=0.81",
|
|
68
68
|
"react-native-duckdb": ">=1.0.0",
|
|
69
|
-
"@mongrov/db": "0.3.0"
|
|
69
|
+
"@mongrov/db": "^0.3.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
72
72
|
"@modelcontextprotocol/sdk": {
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"typescript": "^5.9.3",
|
|
108
108
|
"vitest": "^2.1.9",
|
|
109
109
|
"zod": "^3.23.8",
|
|
110
|
-
"@mongrov/
|
|
111
|
-
"@mongrov/
|
|
110
|
+
"@mongrov/types": "0.5.1",
|
|
111
|
+
"@mongrov/db": "0.3.0"
|
|
112
112
|
},
|
|
113
113
|
"scripts": {
|
|
114
114
|
"build": "tsc -p tsconfig.build.json",
|