experiments in a post-browser web
1/**
2 * Version constants for sync compatibility checking.
3 *
4 * DATASTORE_VERSION — schema shape of sync-relevant tables (items, tags, item_tags).
5 * Bump when a schema change would break sync.
6 *
7 * PROTOCOL_VERSION — wire format of sync JSON payloads and endpoint behavior.
8 * Bump when request/response shape changes.
9 *
10 * Rules:
11 * - Versions are simple integers, only increment
12 * - Exact match required — if versions differ, sync is refused (HTTP 409)
13 * - Clients sending no version headers are accepted during rollout
14 */
15export const DATASTORE_VERSION = 1;
16export const PROTOCOL_VERSION = 1;