@vantage-ui/client 0.5.0 → 0.5.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/CHANGELOG.md +4 -0
- package/dist/mock-query.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.1 — 2026-10-25
|
|
4
|
+
|
|
5
|
+
- MockServer traverses `via` over a numeric foreign key (it compared the number with the wire's string id and found nothing).
|
|
6
|
+
|
|
3
7
|
## 0.5.0 — 2026-10-18
|
|
4
8
|
|
|
5
9
|
- `db.reconnect()` works from any state: it closes an open socket and connects again with `token` called afresh, so a sign-in over an open anonymous connection switches to the new token. Breaking: before, it did nothing unless the connection was `refused`.
|
package/dist/mock-query.js
CHANGED
|
@@ -6,7 +6,7 @@ export function query(schema, rows, spec) {
|
|
|
6
6
|
rows = rows.filter((r) => matches(r[w[0]], w));
|
|
7
7
|
if (spec.via) {
|
|
8
8
|
const fk = schema.tables[spec.via.table]?.hasMany[spec.via.ref]?.foreignKey;
|
|
9
|
-
rows = rows.filter((r) => fk && r[fk] === spec.via.id);
|
|
9
|
+
rows = rows.filter((r) => fk && r[fk] != null && String(r[fk]) === spec.via.id);
|
|
10
10
|
}
|
|
11
11
|
if (spec.search) {
|
|
12
12
|
const q = spec.search.toLowerCase();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vantage-ui/client",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "A vantage-ui project as a typed, live object graph: lazy references and collections, optimistic edits, server-side actions, React bindings.",
|
|
5
5
|
"keywords": ["vantage", "vantage-ui", "websocket", "realtime", "react", "codegen"],
|
|
6
6
|
"homepage": "https://vantage-ui.com",
|