// The client's copy of MODULE_API_VERSION. It must equal the server's // (server/src/modules/version.js) — the two halves version ONE contract // (docs/website/MODULE_API.md §1.1), and a module checks whichever half it is // talking to: `coreApi` against the server's at load time, `window.__rg.version` // against the client's before it registers anything. // // Duplicated rather than fetched, and that is deliberate. The value has to be on // `window.__rg` before the first module chunk evaluates, which is earlier than // any network round trip could answer — a fetched version would mean either an // await before render or a module reading `undefined`. The cost of the copy is // that the two files can drift, so a test asserts they agree // (client/test/moduleRegistry.test.js) rather than trusting a bump to remember // both. // 1.1.0 — the server's ctx gained activity.log, users.getById, site.baseUrl and // the rate-limit factory (MODULE_API.md §2.3). Nothing on window.__rg changed, // but the two halves state ONE version: a module declares a single coreApi range // and is served one chunk, so a client that claimed 1.0.0 while the server // answered 1.1.0 would be two answers to one question. export const MODULE_API_VERSION = '1.1.0'