SpacetimeDB v2.0.2
A bug fix and quality-of-life release following the 2.0 launch. This release focuses on CLI improvements, durability tuning, and documentation fixes.
Bug fixes
- TypeScript: fix table schema wire name lookup crash. The TypeScript SDK was using PascalCase accessor names for wire protocol lookups, causing crashes when case conversion was enabled. (#4449)
spacetime dev: fix file watcher ignoring--module-path. When--module-pathwas set via CLI flag orspacetime.json, the file watcher still watched the default directory instead. (#4464)spacetime dev: better error when module directory does not exist. Previously showed a confusing "could not detect language" error. Now shows the actual missing path. (#4467)- Fix "Press any key to exit" in templates. The prompt said "any key" but actually required Enter. Updated text and logic to match. (#4468)
- Don't save
source_configtospacetime.json. Internal build configuration was being persisted to the user-facing config file. (#4422, #4423)
Performance
- Reduce local durability fsync interval to 10ms (down from misconfigured 500ms default), improving confirmed reads latency for local (non-replicated) databases. (#4466, #4420)
- C# SDK:
ArrayPoolfor row iteration buffers.RawTableIterBase.Enumeratornow rents fromArrayPool<byte>.Sharedinstead of allocating a freshbyte[]per step, significantly reducing GC pressure. (#4385)
Documentation
- Correct unique indexes in cheat sheet to use
filter, notfind. (#4452) - Correct "table" to "view" in Zen of SpacetimeDB. (#4434)
- Update C# docs with
List<T>returns andIEnumerable<T>examples. (#4392) - Fix AI assistant rules links in
llms.txt. (#4430) - Add ARM M-series CPU note in benchmark readme. (#4426)
- Add schedule name correction for LLM rules. (#4370)
- Fix Spacerace button and rename nav item to Referrals. (#4458, #4477)
What's Changed
- durability: Default local durability sync interval to 50ms by @kim in #4420
- keynote-2: use rust client by @Centril in #4421
- Don't save source_config to spacetime.json by @drogus in #4422
- Remove source-config field from spacetime.json by @drogus in #4423
- CI - Fix smoketests running twice by @bfops in #4281
- Update
bump-versionsto support prereleases by @bfops in #4384 - Add ARM M-series CPU note in benchmark readme by @aasoni in #4426
- Fix AI assistant rules links in llms.txt by @JulienLavocat in #4430
- Correct "table" to "view" in 00250-zen-of-spacetimedb.md by @knut-egil in #4434
- [C#] Update RawTableIterBase.Enumerator to use
ArrayPoolfor buffer by @rekhoff in #4385 - TS: fix
sourceNamein table schema by @Shubham8287 in #4449 - Smoketest subscribe properly respects new confirmed behavior by @bfops in #4454
- Fix spacerace button in docs by @jdetter in #4458
- [Docs] [C#] Update docs with
List<T>returns andIEnumerable<T>tests by @rekhoff in #4392 - Correct unique indexes in cheat sheet to use
filter, notfindby @gefjon in #4452 - Add schedule name correction for LLMs by @Boegie19 in #4370
- Bump versions to 2.0.2 by @bfops in #4455
spacetime dev- Improve error when module directory does not exist by @clockwork-labs-bot in #4467- Remove 'Press any key to exit' in basic-rs and basic-cpp templates by @clockwork-labs-bot in #4468
cargo bump-versionsproperly updates the smoketests lockfile by @bfops in #4462spacetime dev- Fix file watcher ignoring--module-path/spacetime.jsonmodule_pathby @clockwork-labs-bot in #4464- Reduce fsync interval to 10ms by @joshua-spacetime in #4466
- fix(docs): Rename spacerace to referrals for nav item by @clockwork-tien in #4477
Full Changelog: v2.0.1...v2.0.2