From b311a8a2b631b0664569ce074372c857218291a2 Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Sun, 13 Sep 2026 08:10:05 -0400 Subject: [PATCH 1/5] docs: fix TypeScript table count return type --- .../00600-clients/00700-typescript-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/00200-core-concepts/00600-clients/00700-typescript-reference.md b/docs/docs/00200-core-concepts/00600-clients/00700-typescript-reference.md index 68d84fe951d..34100ce7e84 100644 --- a/docs/docs/00200-core-concepts/00600-clients/00700-typescript-reference.md +++ b/docs/docs/00200-core-concepts/00600-clients/00700-typescript-reference.md @@ -924,7 +924,7 @@ Each table or view defined by a module has an accessor method, whose name is the ```typescript class TableHandle { - public count(): number; + public count(): bigint; } ``` From 80116c7d208a392bd32c9a1d9175cf24b975e349 Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Mon, 14 Sep 2026 08:11:49 -0400 Subject: [PATCH 2/5] docs: clarify environment value preservation --- .../00100-databases/00300-spacetime-publish.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/00200-core-concepts/00100-databases/00300-spacetime-publish.md b/docs/docs/00200-core-concepts/00100-databases/00300-spacetime-publish.md index dd805b69ecf..15d52f35936 100644 --- a/docs/docs/00200-core-concepts/00100-databases/00300-spacetime-publish.md +++ b/docs/docs/00200-core-concepts/00100-databases/00300-spacetime-publish.md @@ -106,7 +106,7 @@ For all available publishing options and flags, see the [`spacetime publish` CLI ### Environment Variables -Modules can declare environment variables for configuration and secrets. Each publish supplies the complete set of values from the target's `env` configuration and declared shell variables. Required values must be supplied on every publish; omitted optional values are removed. The module and its environment update atomically. +Modules can declare environment variables for configuration and secrets. Each publish supplies values from the target's `env` configuration and declared shell variables, then preserves unspecified stored values by default. Required values must exist in the resulting environment; optional values are removed only when you unset them explicitly or use `--replace-env`. The module and its environment update atomically. See [Environment Variables](./00700-environment-variables.md) for declarations, reading values in module code, publishing examples, and private tables for secrets that need to change without republishing. From dc5eb44d9cf2bb3db94722acda4becb8bbdd921e Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Tue, 15 Sep 2026 08:10:06 -0400 Subject: [PATCH 3/5] docs: fix C# auth reducer snippet --- .../00200-core-concepts/00500-authentication/00500-usage.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docs/00200-core-concepts/00500-authentication/00500-usage.md b/docs/docs/00200-core-concepts/00500-authentication/00500-usage.md index a022cc1dc65..65c051ba599 100644 --- a/docs/docs/00200-core-concepts/00500-authentication/00500-usage.md +++ b/docs/docs/00200-core-concepts/00500-authentication/00500-usage.md @@ -132,7 +132,9 @@ public static readonly List OIDC_CLIENT_IDS = new() { "client_XXXXXXXXXXXXXXXXXXXXXX", }; -public void Connect(ReducerContext ctx) + +[Reducer(ReducerKind.ClientConnected)] +public static void Connect(ReducerContext ctx) { var claims = ctx.SenderAuth.Jwt ?? throw new Exception("Client connected without JWT"); if (claims.Issuer != "https://auth.spacetimedb.com/oidc") From 7dbd695020c93045057a93247951951b802f49ed Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Wed, 16 Sep 2026 08:09:57 -0400 Subject: [PATCH 4/5] docs: clarify procedure HTTP decompression --- .../00200-core-concepts/00200-functions/00400-procedures.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md b/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md index 30be60eceae..58be1005c97 100644 --- a/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md +++ b/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md @@ -875,6 +875,11 @@ Procedures can't send requests at the same time as holding open a [transaction]( +Procedure HTTP requests automatically accept gzip and Brotli responses and expose the decoded +response body to module code. If you set an `Accept-Encoding` header yourself, the response body is +still decoded by the host, so do not manually decompress it in the module. Headers that describe the +compressed wire body, such as `Content-Encoding` and `Content-Length`, may be absent after decoding. + :::note If no timeout is specified, HTTP requests default to 30 seconds. User-specified timeouts are clamped to a maximum of 180 seconds by the host. ::: From 07fe0ac5868e80c6ea631ef385817dccaf34da8d Mon Sep 17 00:00:00 2001 From: clockwork-labs-bot Date: Thu, 17 Sep 2026 08:10:21 -0400 Subject: [PATCH 5/5] docs: fix TypeScript procedure argument type --- .../00200-core-concepts/00200-functions/00400-procedures.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md b/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md index 58be1005c97..0236f5da9d7 100644 --- a/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md +++ b/docs/docs/00200-core-concepts/00200-functions/00400-procedures.md @@ -140,7 +140,7 @@ const myTable = table( const spacetimedb = schema({ myTable }); export default spacetimedb; -export const insertAValue = spacetimedb.procedure({ a: t.u32(), b: t.u32() }, t.unit(), (ctx, { a, b }) => { +export const insertAValue = spacetimedb.procedure({ a: t.u32(), b: t.string() }, t.unit(), (ctx, { a, b }) => { ctx.withTx(ctx => { ctx.db.myTable.insert({ a, b }); });