Commit Graph

2319 Commits

Author SHA1 Message Date
Zeke Foppa 81ba753f53 Bump C#/Unity Client SDK versions to 1.2.2 (#2994)
# Description of Changes

I ran `python3 tools~/upgrade-version.py 1.2.2` in preparation for an
upcoming release.

# API and ABI breaking changes

None

# Expected complexity level and risk

1
# Testing

None, just a version bump.

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
v1.2.2-csharp
2025-07-28 17:35:37 +00:00
Julien Lavocat 2227e0ff6f Add React Native support to the Typescript SDK (#2955)
This PR helps to support React Native in the Typescript SDK. We have
identified two issues:

1. Certain versions of React Native exhibit a bug where the constructor
mistakenly treats a URL object as a string. This causes an error when
the constructor attempts to call `.endsWith()` on the URL object,
leading to runtime errors. This PR adds a .toString() call when passing
a URL instance to the URL constructor.
2. React Native doesn't provide an implementation for TextEncoder and
TextDecoder which are used to read/write strings in our binary reader
and writer. This PR use introduce the usage of a library for these two
types.

Note: this still requires the use of a Polyfill as React Native URL
implementation is missing most methods in version older than 0.79 (>= 6
month old)
2025-07-28 17:08:01 +00:00
Zeke Foppa 136d5dda82 Update docs to point to SpacetimeDB monorepo (#2989)
# Description of Changes

We recently merged several repos into the SpacetimeDB repo. This PR
update the docs accordingly.

# API and ABI breaking changes

None

# Expected complexity level and risk

1

# Testing

None, just docs

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-28 15:59:43 +00:00
Mario Montoya b54a4e49b9 Add a recursion limit to the evaluation of type_expr & parse_expr (#2935)
# Description of Changes

Add a guard against `stack overflow` in case of nested expression and
`joins`.

# API and ABI breaking changes

None

# Expected complexity level and risk

1

# Testing
- [x] Find how `deep` can be recursed the affected functions and put a
limit on it
- [x] Add a extra test to prove we can (in theory) do lots of `joins` in
the planning steps, even if executing them will be slow
2025-07-28 15:24:01 +00:00
Shubham Mishra cb174e36f6 Snapshotdir tx_offset method (#2992)
# Description of Changes
Adds a method on `SnapshotDir` to return snapshot offset.


# API and ABI breaking changes
N/A

How complicated do you think these changes are? Grade on a scale from 1
to 5,
1


# Testing
Added unit test
2025-07-28 12:43:33 +00:00
Tuan Tran 5f75c9d4d9 Generate Websocket token from auth in Unity WebGL build (#2988)
# Description of Changes

This is a fix for community bug which auth token is not used to create
Websocket connection in Unity WebGL build.
The issue here:
https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/issues/352

# API and ABI breaking changes

None

# Expected complexity level and risk

1

# Testing

- [ ] Using OAuth2.0 tokens, you should get the same `Identity` even
when the token is refreshed in the WebGL build
2025-07-28 08:42:13 +00:00
Kim Altintop 8a2e9c373b smoketests: Make gathering container ports None-safe (#2991)
Python has a funny way of dealing with absent values.

Fixes (again) restart tests to handle slowly restarting containers.

# Expected complexity level and risk

1

# Testing

n/a
2025-07-28 08:31:28 +00:00
Kim Altintop 08c2a3e2fe cli: Close the websocket connection gracefully (#2925)
The `subscribe` command would drop the connection without sending a
close frame. Doing so creates a warning on the server, which can be
distracting when debugging other connections issues.


# Expected complexity level and risk

1

# Testing

Use the `subscribe` command with a local database and compare server
logs before
and after.
2025-07-28 07:49:23 +00:00
rekhoff 36f7ca2583 Adding reject-client-connections doc. (#2973)
# Description of Changes

This originally was a PR in the Docs repo:
https://github.com/clockworklabs/spacetime-docs/pull/352

This is the work portion of
https://github.com/clockworklabs/SpacetimeDBPrivate/issues/1700

This adds a "How To Reject Client Connections" guide in both Rust and C#
using the language toggle functionality.

Testing:
- [X] Validated code behavior presented in guide resulted in described
behavior.

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
2025-07-25 18:07:31 +00:00
Zeke Foppa e0ae18c99e CI - Check C# quickstart-chat bindings are up to date (#2979)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-25 17:49:27 +00:00
Zeke Foppa 6c9aebdbf3 Docs CI - Check that nav.js matches the .md files list (#2984)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-25 16:54:25 +00:00
Kim Altintop 50fd07af4d ci: Skip the Unity tests if the PR is an external contribution (#2978) 2025-07-25 04:59:13 +00:00
Alex Nemeth ce90583f6b Update quickstart-chat client module bindings from server (#2976)
Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
2025-07-24 23:38:24 +00:00
rekhoff 62a1378153 Moved Remove operation to start of Table.Apply (#2967)
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
2025-07-24 17:11:10 +00:00
ResuBaka 7fb4df4275 Update tungstenite to get client read performance improvement (#2966)
Co-authored-by: Kim Altintop <kim@eagain.io>
2025-07-24 17:06:43 +00:00
Kim Altintop 61b54ef723 Upgrade jemalloc_pprof and tempfile crates (#2982) 2025-07-24 15:57:57 +00:00
Zeke Foppa 79137b5016 Fix spacetime version list not showing current version (#2680)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-23 16:52:23 +00:00
Kim Altintop 6b9b0e3b81 smoketests: Fix server restarts and make more robust (#2977) 2025-07-23 15:29:43 +00:00
Kim Altintop 42905000ca smoketests: Adjust for node table rename (#2970) 2025-07-23 12:17:08 +00:00
Mazdak Farrokhzad a6552257b9 V8: add FromValue, error traits, roundtrip tests (#2971) 2025-07-22 19:07:20 +00:00
Kim Altintop 6979df59f6 ci: Temporarily disable zz_docker tests (#2974) 2025-07-22 18:24:29 +00:00
Zeke Foppa ca66340315 Disable musl builds (#2964)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-21 18:48:03 +00:00
Zeke Foppa ccc4d06ddb Update GitHub files for C#/Unity SDK (#2952)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-21 14:44:47 +00:00
Kim Altintop c43d8fe1a1 smoketest: Retry if there is no current leader (#2950) 2025-07-21 11:39:52 +00:00
Zeke Foppa bd9ea5586a Import C#/Unity SDK (#2951)
Co-authored-by: Clockwork Labs <no-reply@clockworklabs.io>
Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
Co-authored-by: dbrinkmanncw <109690865+dbrinkmanncw@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
Co-authored-by: SteveBoytsun <100594800+SteveBoytsun@users.noreply.github.com>
Co-authored-by: Steve <steve@codefics.com>
Co-authored-by: Alessandro Asoni <alessandro@clockworklabs.io>
Co-authored-by: Derek Brinkmann <dbrinkmann@clockworklabs.io>
Co-authored-by: james gilles <jameshgilles@gmail.com>
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
Co-authored-by: Kurtis Mullins <github@kurtismullins.com>
Co-authored-by: Jeremie Pelletier <jeremiep@gmail.com>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: Steve Boytsun <steve@clockwokrlabs.io>
Co-authored-by: Ingvar Stepanyan <ingvar@clockworklabs.io>
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Noa <coolreader18@gmail.com>
Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
Co-authored-by: Daniel Kierkegaard Andersen <dax@daxode.dk>
Co-authored-by: Guribo <guribovr@gmail.com>
Co-authored-by: Lisandro Crespo <lisandroct@gmail.com>
2025-07-19 23:02:21 -07:00
Zeke Foppa 9bdb3ed52a [bfops/import-csharp]: Merge remote-tracking branch 'origin/master' into bfops/import-csharp 2025-07-18 17:10:33 -07:00
Zeke Foppa 83f52cad97 Blackholio import - README updates (#2947)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-17 17:53:48 +00:00
Zeke Foppa 07899d04d7 [bfops/import-csharp]: Merge remote-tracking branch 'origin/master' into bfops/import-csharp 2025-07-17 09:49:00 -07:00
Zeke Foppa 4115658851 Import Blackholio (#2945)
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
Co-authored-by: SteveGibson <100594800+SteveBoytsun@users.noreply.github.com>
Co-authored-by: Steve Gibson <steve@clockwokrlabs.io>
Co-authored-by: james gilles <jameshgilles@gmail.com>
Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
Co-authored-by: WeslomPo <i@weslompo.ru>
2025-07-17 09:47:40 -07:00
Zeke Foppa 7afa0b4cce Docs import - Update GitHub-related files (#2949)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-17 16:24:09 +00:00
Zeke Foppa ce328d5d7a Import docs repo (#2948)
Co-authored-by: Nathaniel Richards <nthnlrichards@gmail.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
Co-authored-by: Nathaniel Richards <46858886+NateTheDev1@users.noreply.github.com>
Co-authored-by: Piotr Sarnacki <drogus@gmail.com>
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Co-authored-by: Dylan Hunt <d.hunt@clockworklabs.io>
Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
Co-authored-by: Kim Altintop <kim@eagain.io>
Co-authored-by: Chip <36650721+Lethalchip@users.noreply.github.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: Shubham Mishra <shubham@clockworklabs.io>
Co-authored-by: Mats Bennervall <44610444+Savalige@users.noreply.github.com>
Co-authored-by: ike709 <ike709@users.noreply.github.com>
Co-authored-by: Egor Gavrilov <modagavr@gmail.com>
Co-authored-by: Arrel Neumiller <rlneumiller@gmail.com>
Co-authored-by: Muthsera <piet.hessenius@protonmail.com>
Co-authored-by: james gilles <jameshgilles@gmail.com>
Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Mario Montoya <mamcx@elmalabarista.com>
Co-authored-by: Noa <coolreader18@gmail.com>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Steve Biedermann <hardliner66@gmail.com>
Co-authored-by: Oliver Davies <oliver@psyfer.io>
Co-authored-by: Kane Viggers <72892893+kaneviggers@users.noreply.github.com>
Co-authored-by: Colter Haycock <blindgoat@gmail.com>
Co-authored-by: AdielMag <adiel12430@gmail.com>
Co-authored-by: cjodo <curtisod.123@gmail.com>
Co-authored-by: heliam1 <30861916+heliam1@users.noreply.github.com>
Co-authored-by: 8Times <nikinope@gmail.com>
Co-authored-by: torjusik <torjuskleiv@gmail.com>
Co-authored-by: Michael Nadeau <48649516+waaverecords@users.noreply.github.com>
Co-authored-by: Tamaro Skaljic <49238587+tamaro-skaljic@users.noreply.github.com>
Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
Co-authored-by: Loki McKay <lokimckay@gmail.com>
Co-authored-by: Aaron Matthis <rapus95@gmail.com>
Co-authored-by: Robin Curbelo <curbelorobin@gmail.com>
Co-authored-by: João Saldanha Streibel <jstreibel@gmail.com>
Co-authored-by: Sahil Dawka <37510491+sdawka@users.noreply.github.com>
Co-authored-by: Wes Sleeman <weston@wsleeman.com>
Co-authored-by: Carlos Cobo <699969+toqueteos@users.noreply.github.com>
2025-07-17 09:23:39 -07:00
Zeke Foppa 2c7b6681cd [bfops/import-csharp]: Merge remote-tracking branch 'temp-csharp-sdk/master' into bfops/import-csharp 2025-07-17 08:20:39 -07:00
Kim Altintop 7709f3cf1e commitlog: Set up options for toml configuration (#2942) 2025-07-17 08:34:35 +00:00
Zeke Foppa 5fe544a7d2 [bfops/import-docs]: Merge remote-tracking branch 'temp-docs/master' into bfops/import-docs 2025-07-16 21:21:34 -07:00
Mazdak Farrokhzad 96a1ad4fc5 [V8] Define trait ToValue for primitive types (#2946) 2025-07-16 20:10:37 +00:00
Zeke Foppa cbba2b29c1 Fix up GitHub files related to TypeScript SDK (#2943)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-16 19:32:04 +00:00
Kim Altintop 09717e97ad Make websocket configurable via config.toml (#2944) 2025-07-16 19:31:07 +00:00
Kim Altintop eecc591ef1 Document WebSocket config for standalone (#353) 2025-07-16 21:05:38 +02:00
Zeke Foppa 571089d8f0 [bfops/import-Blackholio]: Merge remote-tracking branch 'temp-Blackholio/master' into bfops/import-Blackholio 2025-07-16 11:04:05 -07:00
Zeke Foppa 88dc3695d8 Import TypeScript SDK repo (#2941)
Co-authored-by: Piotr Sarnacki <drogus@gmail.com>
Co-authored-by: John <no-reply@boppygames.gg>
Co-authored-by: NateTheDev1 <nthnlrichards@gmail.com>
Co-authored-by: Nathaniel Richards <46858886+NateTheDev1@users.noreply.github.com>
Co-authored-by: dbrinkmanncw <109690865+dbrinkmanncw@users.noreply.github.com>
Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: Mario Montoya <mamcx@elmalabarista.com>
Co-authored-by: Kamil Jakubus <kamil.jakubus@usagi.coffee>
Co-authored-by: Derek Brinkmann <dbrinkmann@clockworklabs.io>
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Co-authored-by: HSReina <hontoshadow@shadosoft-tm.com>
Co-authored-by: Gérald Divoux <gerald.divoux@ninsight.io>
Co-authored-by: Zeke Foppa <github.com/bfops>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Halu <35203441+tcardlab@users.noreply.github.com>
Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Co-authored-by: Puru Vijay <awesomepuruvj@gmail.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@aol.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: james gilles <jameshgilles@gmail.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: Noa <coolreader18@gmail.com>
Co-authored-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com>
Co-authored-by: Bastian Ganze <bastianganze@gmail.com>
Co-authored-by: ChaseLewis <ChaseRLewis73003@gmail.com>
Co-authored-by: DeveloperChaseLewis <developer.chase.lewis@gmail.com>
Co-authored-by: Chip <36650721+Lethalchip@users.noreply.github.com>
Co-authored-by: Julien Lavocat <julien.lavocat@gmail.com>
2025-07-16 08:14:18 -07:00
Zeke Foppa 5ab01b202e Merge branch 'master' into bfops/import-typescript-sdk 2025-07-16 07:34:17 -07:00
Mazdak Farrokhzad f2c8c6d83c Extract ModuleCommon + use in wasm & v8 runtimes (#2940)
Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2025-07-16 14:23:15 +00:00
Zeke Foppa 741208c83b [bfops/import-typescript-sdk]: Merge remote-tracking branch 'temp-typescript-sdk/main' into bfops/import-typescript-sdk 2025-07-16 06:37:45 -07:00
Mazdak Farrokhzad 63dff572fa Add v8 crate + initialize v8 (#2939) 2025-07-16 12:07:08 +00:00
Zeke Foppa eef737f5a5 Release 1.2.2 (#200)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-07-15 11:08:48 -07:00
Noa 742303ca49 Bump rust-toolchain to rust 1.88 (#2749)
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
2025-07-15 17:39:41 +00:00
Julien Lavocat a388670297 Use toString() instead of an instance of Url when opening the websocket connection 2025-07-15 19:15:06 +02:00
Jeffrey Dallatezza 666ade7083 Move locking operations onto the module's thread (#2866) 2025-07-14 23:10:18 +00:00
Phoebe Goldman 4c470f0579 Fix example that was still rust-ey in C# ref (#333)
* Fix example that was still rust-ey in C# ref

This must have gotten missed when porting the Rust ref over to C#.

* Read `.Value`

Co-authored-by: james gilles <jameshgilles@gmail.com>

---------

Co-authored-by: james gilles <jameshgilles@gmail.com>
2025-07-14 19:34:02 +00:00
Phoebe Goldman 6a9b524b4e Enable the datastore crate's test feature where necessary (#2937) 2025-07-14 18:29:21 +00:00