Commit Graph

3186 Commits

Author SHA1 Message Date
james gilles c813fb321d Fix list equals (#316)
Update DLLs and generated code for SpacetimeDB 74ad4a14c
2025-05-12 20:55:15 +00:00
james gilles 74ad4a14ce Fix Equals and GetHashCode for types containing Lists and Arrays in C# (#2710) 2025-05-12 18:11:01 +00:00
Jeffrey Dallatezza ea418d524d Use the --ignore-matching-lines flag of git diff. (#2720) 2025-05-12 16:12:07 +00:00
Mazdak Farrokhzad 373e47db39 PagePool::{default -> new_for_test} + temporary hack for IN_MEMORY_CONFIG / test_index_scans (#2707) 2025-05-12 13:15:07 +00:00
Mazdak Farrokhzad d7d080de6b Deal wih AlgebraicType::Ref in Serialize for ValueWithType<ArrayValue> (#2708) 2025-05-12 12:50:01 +00:00
Shubham Mishra 41c316c984 Commitlog stream range fix. (#2721) 2025-05-10 04:06:05 +00:00
Phoebe Goldman 3ce4d852f6 Log instead of panicking when missing a row from st_client (#2722) 2025-05-09 18:22:02 +00:00
joshua-spacetime 2699c0378f Hash subscription queries before acquiring tx lock (#2712)
Signed-off-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2025-05-09 16:41:24 +00:00
João Saldanha Streibel 7528afe3c6 Fixed DB_NAME name mismatch (#346)
The doc text suggested DB_NAME for variable name, but code sample used DBNAME.

Changed all to DB_NAME, for consistency.

Thanks @gefjon on Issue #345.
2025-05-09 08:40:49 -04:00
Kim Altintop 763acb7bfd snapshot: Improve memory utilization of snapshot fetcher (#2715)
Signed-off-by: Kim Altintop <kim@eagain.io>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
2025-05-09 07:12:42 +00:00
Mazdak Farrokhzad f11b81461d sdk: fix with_light_mode docs (#2700)
Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com>
2025-05-08 17:36:26 +00:00
Kim Altintop e32fc4af9c snapshot: Provide streaming snapshot verification. (#2691) 2025-05-08 15:59:58 +00:00
Phoebe Goldman 69a2ab7ee5 Fix SDK bug with overlapping subscriptions (#2711) 2025-05-08 14:36:27 +00:00
Kim Altintop a056796efb Prevent ahash from pulling in getrandom 0.3 (#2714) 2025-05-08 14:33:58 +00:00
Noa c5f1d8d0dd Use spacetimedb-standalone to get schema for spacetime generate (#2644) 2025-05-07 21:56:53 +00:00
João Saldanha Streibel e8a0dfddb0 Fixed typo in quickstart.md (#344) 2025-05-07 22:21:57 +01:00
Jeffrey Dallatezza c99b56fcff Run lint for PRs. (#184)
* Run lint for PRs.

* Fix dir

* Also hide changes to generated test app files.

* Only run on pushes to main.
2025-05-06 14:27:07 -07:00
joshua-spacetime 5611e402a8 Fix subscription manager metadata for joins (#2705) 2025-05-06 20:59:16 +00:00
Chip be1c2e100b Stronger wording to direct users to working unity versions (#334)
* Some wording changes to the required unity versions

we've had a few people utilize Unity 2021.2, but have a lot of errors/issues in the console. It's best to direct users to 2022.3.32f1 onward.

* Removed recommended verbiage
2025-05-06 15:23:27 -04:00
Tyler Cloutier b230a92a4c Now noting that StdbModule.csproj is important (#327)
Update index.md
2025-05-06 18:34:52 +01:00
Tyler Cloutier ed1808de3e Fixed a typo with acquainted (#322) 2025-05-06 18:25:08 +01:00
Tyler Cloutier 51883b12d7 Add directions for navigating to the dashboard (#326)
Update maincloud.md
2025-05-06 18:23:58 +01:00
John Detter f469676ade Fix blocking publish route (#338)
* Fix blocking publish route

* Added common routes

* Default to open - which was the previous functionality

* Update spacetimedb-standalone.md

* Update spacetimedb-standalone.md

* Updated with support for the typescript SDK

* Updated with known good subscribe route

* Updated doc text

* Clarified comment

* nit
2025-05-06 01:19:13 +01:00
james gilles 7dddee91eb Reduce allocations in C# when deserializing lists and arrays (#2688) 2025-05-05 17:28:53 +00:00
Phoebe Goldman 6b4433ba79 Add "Subscription Semantics" page (#278)
We've gotten several questions in the public Discord
about the semantics of subscriptions in the SDKs.
I did a brain-dump about them, Tyler fed it into ChatGPT,
I touched up the result a bit, and here it is.
Some day we probably want to rewrite this to read less like AI slop.
But for now it's probably fine.
2025-05-05 13:25:57 +00:00
Rafael Guerreiro 0f70e63304 Simple implementation of insert_or_update and try_insert_or_update (#2678)
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
2025-05-02 15:51:48 -04:00
Robin Curbelo 694bc483d9 fix typo (#339) 2025-05-02 17:01:01 +00:00
Zeke Foppa ec37594e79 Fix link checking (#340)
* [bfops/check-links]: fix link checker

* [bfops/check-links]: fix

* [bfops/check-links]: fix broken links

* [bfops/check-links]: fix logic

* [bfops/check-links]: fix site links

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-05-01 15:26:02 -07:00
Jeffrey Dallatezza 14ba750155 Add information about the CLI version to generated code. (#2673) 2025-05-01 21:17:30 +00:00
ChaseLewis 930e7a26a1 Fix so spacetimedb can be hosted with a pathname (#183)
* Allow spacetimedb sdk to work when spacetimedb url is more than a host name.

* run pnpm format

---------

Co-authored-by: DeveloperChaseLewis <developer.chase.lewis@gmail.com>
2025-05-01 12:06:53 -07:00
joshua-spacetime dc3dd68ebc Do not double compress transaction update messages (#2668) 2025-04-30 16:22:30 +00:00
Chip 0cca3d98df updated dotnet add package (#337)
* updated dotnet add package

* additional reference to spacetimedbsdk dotnet package
2025-04-30 17:13:47 +01:00
joshua-spacetime b1002f70a2 Avoid reflection when validating enums (#2676) 2025-04-29 22:29:31 +00:00
Zeke Foppa 99d13282df CI - Publishable crates check also checks for license file (#2681)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-04-29 20:20:42 +00:00
Noa 020d64c1f1 Split client codegen out into its own crate (#2593)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-04-29 17:54:25 +00:00
Tamaro Skaljic 53e0b77f8b fix wrong quote usage and copy the "start the server" section from c# quickstart to rust quickstart #41 (#310)
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
2025-04-29 10:49:53 -07:00
Jeffrey Dallatezza 228ec0c8d8 Add the primary key type to typescript's TableRuntimeTypeInfo (#2671) 2025-04-28 21:14:32 +00:00
Rafael Guerreiro 4e896b8964 Add .DS_Store to gitignore (#2659) 2025-04-28 15:05:32 -04:00
Mazdak Farrokhzad eb589728c6 Allocate pages using a mult-tenant lock-free pool (#2587) 2025-04-28 17:35:19 +00:00
joshua-spacetime 3dabd47bc8 Add comment on the performance of LINQ for reading BSATN (#309) 2025-04-28 17:13:28 +00:00
Chip 45a83c9b5a Correcting Reducer Callback Information in llms.md (#335)
* update reducer callback with correct info

* remove flavor text - not needed
2025-04-28 09:42:46 -04:00
Kim Altintop 7f0502ecf7 Replication Smoketest Cleanups (#2675)
Co-authored-by: Shubham Mishra <shubham@clockworklabs.io>
Co-authored-by: Shubham Mishra <shivam828787@gmail.com>
2025-04-28 11:39:07 +00:00
james gilles 590e873a50 Significantly reduce small byte array allocations (#305)
This purges the DbValue type, instead using row instances themselves as
primary key for rows without primary keys. In addition, it instantiates
only a single BinaryReader when reading updates for a table, rather than
instantiating a BinaryReader and performing an array copy per-row of the
table.

Addresses
https://github.com/clockworklabs/SpacetimeDBPrivate/issues/1633

## API

 - [ ] This is an API breaking change to the SDK

*If the API is breaking, please state below what will break*

## Requires SpacetimeDB PRs

## Testsuite

SpacetimeDB branch name: master

## Testing
*Write instructions for a test that you performed for this PR*

- [ ] CI

---------

Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
2025-04-26 09:08:44 -07:00
Jeffrey Dallatezza 8508bbf446 Subscribe to all queries together in the ts quickstart. (#297) 2025-04-25 17:20:46 +00:00
John Detter 78f5000740 Bump version to 1.1.4 (#307)
## Description of Changes
*Describe what has been changed, any new features or bug fixes*

- Bumps version to 1.1.4

## API

Not breaking

 - [ ] This is an API breaking change to the SDK

*If the API is breaking, please state below what will break*

## Requires SpacetimeDB PRs
*List any PRs here that are required for this SDK change to work*

## Testsuite
*If you would like to run the your SDK changes in this PR against a
specific SpacetimeDB branch, specify that here. This can be a branch
name or a link to a PR.*

SpacetimeDB branch name: master

## Testing
*Write instructions for a test that you performed for this PR*

This is just a version bump
2025-04-25 09:53:04 -07:00
Zeke Foppa 3d1fa97c63 CI - Expand CI-triggering events (#332)
* [bfops/ci-on-master]: Run CI on `master` commits

* [bfops/ci-on-master]: tweak

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-04-24 15:03:41 -07:00
John Detter 875605878b Version Bump 1.1.3 (#303)
## Description of Changes
*Describe what has been changed, any new features or bug fixes*

- Bumps version to 1.1.3

## API

This is not an API breaking change

 - [ ] This is an API breaking change to the SDK

*If the API is breaking, please state below what will break*

## Requires SpacetimeDB PRs
*List any PRs here that are required for this SDK change to work*

- None

## Testsuite
*If you would like to run the your SDK changes in this PR against a
specific SpacetimeDB branch, specify that here. This can be a branch
name or a link to a PR.*

SpacetimeDB branch name: master

## Testing
*Write instructions for a test that you performed for this PR*

This is just a version bump, CI is sufficient.
2025-04-24 15:58:41 +00:00
james gilles 5ad9baa304 Pre-decompress query updates (#302)
This dramatically improves performance by avoiding the default
implementation of BrotliStream.ReadByte() inherited from Stream, which
allocates an array per byte read.

## API

 - [ ] This is an API breaking change to the SDK

*If the API is breaking, please state below what will break*

## Requires SpacetimeDB PRs

## Testsuite

SpacetimeDB branch name: master

## Testing
*Write instructions for a test that you performed for this PR*

- [ ] Describe a test for this PR that you have completed
2025-04-23 20:44:16 -07:00
joshua-spacetime 59faab8a1f Remove redundant rows from subscription updates (#2654) v1.1.1-hotfix1 2025-04-24 00:54:07 +00:00
joshua-spacetime 2f33924d61 Prune queries from subscription evaluation (#2641) 2025-04-23 23:49:38 +00:00