@fieldnotes/sync-redis 0.1.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/LICENSE +21 -0
- package/README.md +71 -0
- package/dist/index.cjs +65 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Irakli Iremashvili
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# @fieldnotes/sync-redis
|
|
2
|
+
|
|
3
|
+
A `HubBackend` that persists Field Notes relay room state in Redis — state survives relay restarts and is
|
|
4
|
+
shared across relay instances.
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
pnpm add @fieldnotes/sync-redis
|
|
10
|
+
# plus your Redis client of choice, e.g.:
|
|
11
|
+
pnpm add redis # node-redis v4
|
|
12
|
+
# or
|
|
13
|
+
pnpm add ioredis
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`@fieldnotes/sync-redis` has **no Redis dependency of its own** — you inject a client that satisfies a
|
|
17
|
+
minimal `RedisHashClient` interface (`hGetAll` / `hSet` / `hDel` / `del`).
|
|
18
|
+
|
|
19
|
+
## node-redis v4 (direct)
|
|
20
|
+
|
|
21
|
+
node-redis v4's client already matches `RedisHashClient`, so you can pass it straight through:
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import { createClient } from 'redis';
|
|
25
|
+
import { createSyncServer } from '@fieldnotes/sync-server';
|
|
26
|
+
import { RedisHubBackend } from '@fieldnotes/sync-redis';
|
|
27
|
+
|
|
28
|
+
const client = createClient({ url: process.env.REDIS_URL });
|
|
29
|
+
await client.connect();
|
|
30
|
+
createSyncServer({ port: 8080, backend: new RedisHubBackend(client) });
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## ioredis (shim)
|
|
34
|
+
|
|
35
|
+
ioredis uses lowercased method names, so wrap it in a small adapter:
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import Redis from 'ioredis';
|
|
39
|
+
import { RedisHubBackend } from '@fieldnotes/sync-redis';
|
|
40
|
+
|
|
41
|
+
const io = new Redis(process.env.REDIS_URL);
|
|
42
|
+
const client = {
|
|
43
|
+
hGetAll: (k: string) => io.hgetall(k),
|
|
44
|
+
hSet: (k: string, f: string, v: string) => io.hset(k, f, v),
|
|
45
|
+
hDel: (k: string, f: string) => io.hdel(k, f),
|
|
46
|
+
del: (k: string) => io.del(k),
|
|
47
|
+
};
|
|
48
|
+
const backend = new RedisHubBackend(client);
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Key schema
|
|
52
|
+
|
|
53
|
+
Each room is stored as a Redis **HASH** at `{keyPrefix}{room}` (default prefix `fieldnotes:room:`):
|
|
54
|
+
|
|
55
|
+
- **field** = element id
|
|
56
|
+
- **value** = `JSON.stringify(element)`
|
|
57
|
+
|
|
58
|
+
The prefix is configurable:
|
|
59
|
+
|
|
60
|
+
```ts
|
|
61
|
+
new RedisHubBackend(client, { keyPrefix: 'myapp:room:' });
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Single vs. multiple relay instances
|
|
65
|
+
|
|
66
|
+
Persistence and shared state work with any number of relay instances — every instance reads and writes the
|
|
67
|
+
same Redis, so room state survives restarts and is visible to all of them.
|
|
68
|
+
|
|
69
|
+
However, for clients connected to **different** relay instances to see each other's **live** ops, you also
|
|
70
|
+
need cross-instance fan-out (Redis pub/sub) — a planned follow-up. A **single** relay instance is fully live
|
|
71
|
+
today.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
RedisHubBackend: () => RedisHubBackend
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
|
|
27
|
+
// src/redis-hub-backend.ts
|
|
28
|
+
var import_sync = require("@fieldnotes/sync");
|
|
29
|
+
var RedisHubBackend = class {
|
|
30
|
+
client;
|
|
31
|
+
keyPrefix;
|
|
32
|
+
constructor(client, options = {}) {
|
|
33
|
+
this.client = client;
|
|
34
|
+
this.keyPrefix = options.keyPrefix ?? "fieldnotes:room:";
|
|
35
|
+
}
|
|
36
|
+
key(room) {
|
|
37
|
+
return `${this.keyPrefix}${room}`;
|
|
38
|
+
}
|
|
39
|
+
async snapshot(room) {
|
|
40
|
+
const map = await this.client.hGetAll(this.key(room));
|
|
41
|
+
const out = [];
|
|
42
|
+
for (const value of Object.values(map)) {
|
|
43
|
+
let parsed;
|
|
44
|
+
try {
|
|
45
|
+
parsed = JSON.parse(value);
|
|
46
|
+
} catch {
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if ((0, import_sync.isValidElement)(parsed)) out.push(parsed);
|
|
50
|
+
}
|
|
51
|
+
return out;
|
|
52
|
+
}
|
|
53
|
+
async apply(room, op) {
|
|
54
|
+
const key = this.key(room);
|
|
55
|
+
if (op.kind === "upsert")
|
|
56
|
+
await this.client.hSet(key, op.element.id, JSON.stringify(op.element));
|
|
57
|
+
else if (op.kind === "remove") await this.client.hDel(key, op.id);
|
|
58
|
+
else if (op.kind === "clear") await this.client.del(key);
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
RedisHubBackend
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/redis-hub-backend.ts"],"sourcesContent":["export { RedisHubBackend } from './redis-hub-backend';\nexport type { RedisHubBackendOptions } from './redis-hub-backend';\nexport type { RedisHashClient } from './redis-hash-client';\n","import { isValidElement, type SyncOp } from '@fieldnotes/sync';\nimport type { CanvasElement } from '@fieldnotes/core';\nimport type { HubBackend } from '@fieldnotes/sync-server';\nimport type { RedisHashClient } from './redis-hash-client';\n\nexport interface RedisHubBackendOptions {\n keyPrefix?: string; // default 'fieldnotes:room:'\n}\n\nexport class RedisHubBackend implements HubBackend {\n private readonly client: RedisHashClient;\n private readonly keyPrefix: string;\n\n constructor(client: RedisHashClient, options: RedisHubBackendOptions = {}) {\n this.client = client;\n this.keyPrefix = options.keyPrefix ?? 'fieldnotes:room:';\n }\n\n private key(room: string): string {\n return `${this.keyPrefix}${room}`;\n }\n\n async snapshot(room: string): Promise<CanvasElement[]> {\n const map = await this.client.hGetAll(this.key(room));\n const out: CanvasElement[] = [];\n for (const value of Object.values(map)) {\n let parsed: unknown;\n try {\n parsed = JSON.parse(value);\n } catch {\n continue; // skip a corrupt stored value rather than throwing the whole snapshot\n }\n if (isValidElement(parsed)) out.push(parsed);\n }\n return out;\n }\n\n async apply(room: string, op: SyncOp): Promise<void> {\n const key = this.key(room);\n if (op.kind === 'upsert')\n await this.client.hSet(key, op.element.id, JSON.stringify(op.element));\n else if (op.kind === 'remove') await this.client.hDel(key, op.id);\n else if (op.kind === 'clear') await this.client.del(key);\n // request-snapshot/snapshot never reach apply (the hub only applies data ops)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAA4C;AASrC,IAAM,kBAAN,MAA4C;AAAA,EAChC;AAAA,EACA;AAAA,EAEjB,YAAY,QAAyB,UAAkC,CAAC,GAAG;AACzE,SAAK,SAAS;AACd,SAAK,YAAY,QAAQ,aAAa;AAAA,EACxC;AAAA,EAEQ,IAAI,MAAsB;AAChC,WAAO,GAAG,KAAK,SAAS,GAAG,IAAI;AAAA,EACjC;AAAA,EAEA,MAAM,SAAS,MAAwC;AACrD,UAAM,MAAM,MAAM,KAAK,OAAO,QAAQ,KAAK,IAAI,IAAI,CAAC;AACpD,UAAM,MAAuB,CAAC;AAC9B,eAAW,SAAS,OAAO,OAAO,GAAG,GAAG;AACtC,UAAI;AACJ,UAAI;AACF,iBAAS,KAAK,MAAM,KAAK;AAAA,MAC3B,QAAQ;AACN;AAAA,MACF;AACA,cAAI,4BAAe,MAAM,EAAG,KAAI,KAAK,MAAM;AAAA,IAC7C;AACA,WAAO;AAAA,EACT;AAAA,EAEA,MAAM,MAAM,MAAc,IAA2B;AACnD,UAAM,MAAM,KAAK,IAAI,IAAI;AACzB,QAAI,GAAG,SAAS;AACd,YAAM,KAAK,OAAO,KAAK,KAAK,GAAG,QAAQ,IAAI,KAAK,UAAU,GAAG,OAAO,CAAC;AAAA,aAC9D,GAAG,SAAS,SAAU,OAAM,KAAK,OAAO,KAAK,KAAK,GAAG,EAAE;AAAA,aACvD,GAAG,SAAS,QAAS,OAAM,KAAK,OAAO,IAAI,GAAG;AAAA,EAEzD;AACF;","names":[]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SyncOp } from '@fieldnotes/sync';
|
|
2
|
+
import { CanvasElement } from '@fieldnotes/core';
|
|
3
|
+
import { HubBackend } from '@fieldnotes/sync-server';
|
|
4
|
+
|
|
5
|
+
interface RedisHashClient {
|
|
6
|
+
hGetAll(key: string): Promise<Record<string, string>>;
|
|
7
|
+
hSet(key: string, field: string, value: string): Promise<unknown>;
|
|
8
|
+
hDel(key: string, field: string): Promise<unknown>;
|
|
9
|
+
del(key: string): Promise<unknown>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface RedisHubBackendOptions {
|
|
13
|
+
keyPrefix?: string;
|
|
14
|
+
}
|
|
15
|
+
declare class RedisHubBackend implements HubBackend {
|
|
16
|
+
private readonly client;
|
|
17
|
+
private readonly keyPrefix;
|
|
18
|
+
constructor(client: RedisHashClient, options?: RedisHubBackendOptions);
|
|
19
|
+
private key;
|
|
20
|
+
snapshot(room: string): Promise<CanvasElement[]>;
|
|
21
|
+
apply(room: string, op: SyncOp): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { type RedisHashClient, RedisHubBackend, type RedisHubBackendOptions };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SyncOp } from '@fieldnotes/sync';
|
|
2
|
+
import { CanvasElement } from '@fieldnotes/core';
|
|
3
|
+
import { HubBackend } from '@fieldnotes/sync-server';
|
|
4
|
+
|
|
5
|
+
interface RedisHashClient {
|
|
6
|
+
hGetAll(key: string): Promise<Record<string, string>>;
|
|
7
|
+
hSet(key: string, field: string, value: string): Promise<unknown>;
|
|
8
|
+
hDel(key: string, field: string): Promise<unknown>;
|
|
9
|
+
del(key: string): Promise<unknown>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface RedisHubBackendOptions {
|
|
13
|
+
keyPrefix?: string;
|
|
14
|
+
}
|
|
15
|
+
declare class RedisHubBackend implements HubBackend {
|
|
16
|
+
private readonly client;
|
|
17
|
+
private readonly keyPrefix;
|
|
18
|
+
constructor(client: RedisHashClient, options?: RedisHubBackendOptions);
|
|
19
|
+
private key;
|
|
20
|
+
snapshot(room: string): Promise<CanvasElement[]>;
|
|
21
|
+
apply(room: string, op: SyncOp): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { type RedisHashClient, RedisHubBackend, type RedisHubBackendOptions };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/redis-hub-backend.ts
|
|
2
|
+
import { isValidElement } from "@fieldnotes/sync";
|
|
3
|
+
var RedisHubBackend = class {
|
|
4
|
+
client;
|
|
5
|
+
keyPrefix;
|
|
6
|
+
constructor(client, options = {}) {
|
|
7
|
+
this.client = client;
|
|
8
|
+
this.keyPrefix = options.keyPrefix ?? "fieldnotes:room:";
|
|
9
|
+
}
|
|
10
|
+
key(room) {
|
|
11
|
+
return `${this.keyPrefix}${room}`;
|
|
12
|
+
}
|
|
13
|
+
async snapshot(room) {
|
|
14
|
+
const map = await this.client.hGetAll(this.key(room));
|
|
15
|
+
const out = [];
|
|
16
|
+
for (const value of Object.values(map)) {
|
|
17
|
+
let parsed;
|
|
18
|
+
try {
|
|
19
|
+
parsed = JSON.parse(value);
|
|
20
|
+
} catch {
|
|
21
|
+
continue;
|
|
22
|
+
}
|
|
23
|
+
if (isValidElement(parsed)) out.push(parsed);
|
|
24
|
+
}
|
|
25
|
+
return out;
|
|
26
|
+
}
|
|
27
|
+
async apply(room, op) {
|
|
28
|
+
const key = this.key(room);
|
|
29
|
+
if (op.kind === "upsert")
|
|
30
|
+
await this.client.hSet(key, op.element.id, JSON.stringify(op.element));
|
|
31
|
+
else if (op.kind === "remove") await this.client.hDel(key, op.id);
|
|
32
|
+
else if (op.kind === "clear") await this.client.del(key);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
RedisHubBackend
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/redis-hub-backend.ts"],"sourcesContent":["import { isValidElement, type SyncOp } from '@fieldnotes/sync';\nimport type { CanvasElement } from '@fieldnotes/core';\nimport type { HubBackend } from '@fieldnotes/sync-server';\nimport type { RedisHashClient } from './redis-hash-client';\n\nexport interface RedisHubBackendOptions {\n keyPrefix?: string; // default 'fieldnotes:room:'\n}\n\nexport class RedisHubBackend implements HubBackend {\n private readonly client: RedisHashClient;\n private readonly keyPrefix: string;\n\n constructor(client: RedisHashClient, options: RedisHubBackendOptions = {}) {\n this.client = client;\n this.keyPrefix = options.keyPrefix ?? 'fieldnotes:room:';\n }\n\n private key(room: string): string {\n return `${this.keyPrefix}${room}`;\n }\n\n async snapshot(room: string): Promise<CanvasElement[]> {\n const map = await this.client.hGetAll(this.key(room));\n const out: CanvasElement[] = [];\n for (const value of Object.values(map)) {\n let parsed: unknown;\n try {\n parsed = JSON.parse(value);\n } catch {\n continue; // skip a corrupt stored value rather than throwing the whole snapshot\n }\n if (isValidElement(parsed)) out.push(parsed);\n }\n return out;\n }\n\n async apply(room: string, op: SyncOp): Promise<void> {\n const key = this.key(room);\n if (op.kind === 'upsert')\n await this.client.hSet(key, op.element.id, JSON.stringify(op.element));\n else if (op.kind === 'remove') await this.client.hDel(key, op.id);\n else if (op.kind === 'clear') await this.client.del(key);\n // request-snapshot/snapshot never reach apply (the hub only applies data ops)\n }\n}\n"],"mappings":";AAAA,SAAS,sBAAmC;AASrC,IAAM,kBAAN,MAA4C;AAAA,EAChC;AAAA,EACA;AAAA,EAEjB,YAAY,QAAyB,UAAkC,CAAC,GAAG;AACzE,SAAK,SAAS;AACd,SAAK,YAAY,QAAQ,aAAa;AAAA,EACxC;AAAA,EAEQ,IAAI,MAAsB;AAChC,WAAO,GAAG,KAAK,SAAS,GAAG,IAAI;AAAA,EACjC;AAAA,EAEA,MAAM,SAAS,MAAwC;AACrD,UAAM,MAAM,MAAM,KAAK,OAAO,QAAQ,KAAK,IAAI,IAAI,CAAC;AACpD,UAAM,MAAuB,CAAC;AAC9B,eAAW,SAAS,OAAO,OAAO,GAAG,GAAG;AACtC,UAAI;AACJ,UAAI;AACF,iBAAS,KAAK,MAAM,KAAK;AAAA,MAC3B,QAAQ;AACN;AAAA,MACF;AACA,UAAI,eAAe,MAAM,EAAG,KAAI,KAAK,MAAM;AAAA,IAC7C;AACA,WAAO;AAAA,EACT;AAAA,EAEA,MAAM,MAAM,MAAc,IAA2B;AACnD,UAAM,MAAM,KAAK,IAAI,IAAI;AACzB,QAAI,GAAG,SAAS;AACd,YAAM,KAAK,OAAO,KAAK,KAAK,GAAG,QAAQ,IAAI,KAAK,UAAU,GAAG,OAAO,CAAC;AAAA,aAC9D,GAAG,SAAS,SAAU,OAAM,KAAK,OAAO,KAAK,KAAK,GAAG,EAAE;AAAA,aACvD,GAAG,SAAS,QAAS,OAAM,KAAK,OAAO,IAAI,GAAG;AAAA,EAEzD;AACF;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fieldnotes/sync-redis",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Redis-backed HubBackend for Field Notes real-time sync relay",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"LICENSE"
|
|
20
|
+
],
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/IrakliDevelop/fieldnotes.git",
|
|
25
|
+
"directory": "packages/sync-redis"
|
|
26
|
+
},
|
|
27
|
+
"bugs": {
|
|
28
|
+
"url": "https://github.com/IrakliDevelop/fieldnotes/issues"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://github.com/IrakliDevelop/fieldnotes/tree/master/packages/sync-redis#readme",
|
|
31
|
+
"keywords": [
|
|
32
|
+
"realtime",
|
|
33
|
+
"sync",
|
|
34
|
+
"redis",
|
|
35
|
+
"persistence",
|
|
36
|
+
"fieldnotes"
|
|
37
|
+
],
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@fieldnotes/sync": "0.4.0"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
43
|
+
"tsup": "^8.5.1",
|
|
44
|
+
"vitest": "^4.1.0",
|
|
45
|
+
"@fieldnotes/core": "0.46.0",
|
|
46
|
+
"@fieldnotes/sync-server": "0.1.0"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "tsup",
|
|
50
|
+
"test": "vitest run",
|
|
51
|
+
"test:watch": "vitest"
|
|
52
|
+
}
|
|
53
|
+
}
|