v2.0.4

clockworklabs/SpacetimeDBv2.0.4Mar 11, 2026by jdetter

AI Summary

v2.0.4 is a small bug-fix patch with CLI improvements including daily update checks and fuzzy template search. This release also includes correctness fixes for database loading and various documentation updates.

Key Highlights

  • CLI now checks daily for updates and notifies users
  • spacetime dev now includes fuzzy search for template selection
  • Fixed spacetime login --token falling through to web login
  • Correctness fixes for database loading issues

New Features

  • Daily update notification in CLI
  • Fuzzy-filterable template selection menu
  • Primary keys for query builder views in Rust
  • Accessor required for table-level index definitions in TypeScript and C#

Full Release Notes

Hello everyone! This week's release is a small bug-fix patch with a few UX improvements 🎉 

## New Features

- The `spacetime` CLI now checks daily for updates. When an update is available a notice is posted telling the user to upgrade.
- The `spacetime dev` project initialization logic now includes a fuzzy search which makes it much easier to find and select a template.

## Bug Fixes

* Fix spacetime login --token falling through to web login
* Several correctness fixes which could prevent a database from loading

## What's Changed
* Migrate to Rust 2024 by @coolreader18 in https://github.com/clockworklabs/SpacetimeDB/pull/3802
* Append commit instead of individual transactions to commitlog by @kim in https://github.com/clockworklabs/SpacetimeDB/pull/4404
* feat(tanstack): add SSR prefetching for Tanstack Start by @clockwork-tien in https://github.com/clockworklabs/SpacetimeDB/pull/4519
* Make `accessor` required for table-level index defs in typescript by @joshua-spacetime in https://github.com/clockworklabs/SpacetimeDB/pull/4525
* Fix 'unsafe attr without unsafe' error by @coolreader18 in https://github.com/clockworklabs/SpacetimeDB/pull/4534
* Add AgentSkills.io integration for AI coding assistants by @douglance in https://github.com/clockworklabs/SpacetimeDB/pull/4172
* Make accessor required for table-level index defs in C# by @joshua-spacetime in https://github.com/clockworklabs/SpacetimeDB/pull/4541
* Adds code signing to tagged windows builds by @rekhoff in https://github.com/clockworklabs/SpacetimeDB/pull/4473
* Bring typescript benchmark client to parity with rust by @coolreader18 in https://github.com/clockworklabs/SpacetimeDB/pull/4494
* Don't put invalid `Cargo.toml` files in our repo by @gefjon in https://github.com/clockworklabs/SpacetimeDB/pull/4536
* Expose `RawModuleDefV10` via the HTTP schema route by @gefjon in https://github.com/clockworklabs/SpacetimeDB/pull/4540
* Update edition in `.rustfmt.toml` and pre-commit hook by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4543
* docs: fix TS index definition `name` → `accessor` by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4537
* gitignore `*.local` files by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4544
* Wait for database to load before returning schema by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4551
* CI - Reduce when package job runs by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4539
* `spacetime dev` - Replace template selection with fuzzy-filterable menu by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4470
* docs: self-hosted prod/test/dev Azure VM guide with key rotation, Azure Key Vault workflows, and rsync data migration pattern by @benpsnyder in https://github.com/clockworklabs/SpacetimeDB/pull/4545
* Add implicit query builder conversions from `bool` to `BoolExpr` by @joshua-spacetime in https://github.com/clockworklabs/SpacetimeDB/pull/4547
* Fix typos in comments and doc comments across crates by @Shiven0504 in https://github.com/clockworklabs/SpacetimeDB/pull/4560
* Fix stale `--project-path` flag in templates by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4564
* Overhaul README with up-to-date content by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4500
* CLI - Notify users if there's an update available by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4363
* Improve login/logout CLI UX by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4367
* CI - `clockwork-labs-bot` needs 2 approvals by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4568
* docs: Audit HTTP API docs against code by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4569
* docs: Clarify HTTP endpoint auth is optional, not required by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4562
* CI - Simplify PR approval check by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4578
* Fix spacetime login --token falling through to web login by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4579
* CI - Stop running Python smoketests by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4376
* Persist host type update and honor stored value after restart by @kim in https://github.com/clockworklabs/SpacetimeDB/pull/4549
* CI - Label check always runs by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4594
* CI - `rustfmt` instead of `cargo fmt` by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4595
* CI - Label check runs on `synchronize` events by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4602
* Version bump 2.0.4 by @jdetter in https://github.com/clockworklabs/SpacetimeDB/pull/4600
* Fix Bool deserialized as number in TS SDK fast path by @clockwork-labs-bot in https://github.com/clockworklabs/SpacetimeDB/pull/4596
* Better error message for semijoin predicates by @joshua-spacetime in https://github.com/clockworklabs/SpacetimeDB/pull/4605
* CI - Fix package job by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4552
* CI - Skip PR approval check on external PRs by @bfops in https://github.com/clockworklabs/SpacetimeDB/pull/4604
* [Rust] Primary keys for query builder views by @joshua-spacetime in https://github.com/clockworklabs/SpacetimeDB/pull/4572

## New Contributors
* @benpsnyder made their first contribution in https://github.com/clockworklabs/SpacetimeDB/pull/4545
* @Shiven0504 made their first contribution in https://github.com/clockworklabs/SpacetimeDB/pull/4560

**Full Changelog**: https://github.com/clockworklabs/SpacetimeDB/compare/v2.0.3...v2.0.4