Commit Graph

3186 Commits

Author SHA1 Message Date
Phoebe Goldman 5a780eb399 Nuke protobuf and also JSON in favor of BSATN (#47)
- Integrate protobufectomy, which replaces our protobuf and json WS message schemas
  with a SATS-ful schema for both BSATN and JSON.
- Notice that this SDK's implementation of JSON had diverged significantly
  from SpacetimeDB's use of `serde_json` leading to incompatible encodings.
  Rather than fixing this, remove JSON support in favor of only BSATN.
- Rewrite tests to use BSATN WS format.
- Also rewrite tests to be closer to legal in a few ways, but not entirely.
  E.g. don't put floats for `Point` fields with declared type `U16`.
- Hoist compression into a WS wrapper so that tests can bypass it.
- Update quickstart example for consistent filtering rules changes.
- Add `__identity_bytes`/`__address_bytes` getters to `Identity` and `Address`
  so serialization doesn't need to special-case them.
- Run prettier, which inflates this diff somewhat.
  If I had planned ahead I would have done this separately, but I didn't,
  and it's too late to separate the functional changes from the formatting now.

---------

Co-authored-by: Piotr Sarnacki <drogus@gmail.com>
2024-07-15 08:05:57 -05:00
Zeke Foppa 75acefc2f7 C# smoketests use nuget.config (#1500)
Co-authored-by: Zeke Foppa <github.com/bfops>
2024-07-15 11:06:36 +00:00
joshua-spacetime 39344852af refactor(1494): Remove SQL DDL per 1.0 SQL spec (#1499) 2024-07-12 18:55:28 +00:00
Noa 10b151b999 Protobufectomy: server (#1077)
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Co-authored-by: Jeremie Pelletier <jeremiep@gmail.com>
2024-07-12 18:02:18 +00:00
Ingvar Stepanyan 6f0f20bf7a Restructure C# SpacetimeDB runtime (#1455) 2024-07-12 17:12:21 +00:00
Jeremie Pelletier 706b945103 Revert breaking change in message preprocessing (#106)
## Description of Changes
*Describe what has been changed, any new features or bug fixes*

## API

 - [ ] 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*
2024-07-13 00:36:21 +08:00
james gilles 595181e30e Fix running 'cargo test' in crates/lib (#1478) 2024-07-11 21:45:00 +00:00
Jeremie Pelletier 06285d3c06 Protobufectomy: c# sdk (#104)
## Description of Changes

- Removed JSON support (similar to changes being made on the TypeScript
side)
- Removed all references to protobuf
- Swapped the protobuf codegen for the output of our own C# codegen in
rust
- Refactored the connection class to reflect the API changes from
protobuf to bsatn
- Updated the example to reflect these changes

## API

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

Changes the SDK types passed into event handlers.


## Requires SpacetimeDB PRs
*List any PRs here that are required for this SDK change to work*
2024-07-11 13:40:32 -04:00
Zeke Foppa 3266aa4ebe CLI: Use --server and --identity args consistently instead of anonymous args (#1482)
Co-authored-by: Zeke Foppa <github.com/bfops>
2024-07-10 17:48:49 +00:00
Mario Montoya 80b64669eb Adding benchmark for deserialize json & product value (#1035) 2024-07-10 14:31:49 +00:00
Jeremie Pelletier f91dcda283 Make some commitlog helpers public (#1390) 2024-07-09 18:02:58 +00:00
Mario Montoya 2ad91b6258 Implement a temporary type check validation on sql compiling (#1456)
Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
2024-07-09 17:15:42 +00:00
Zeke Foppa e913e8cd26 CLI: Put some common params in a central place (#1484)
Co-authored-by: Zeke Foppa <github.com/bfops>
2024-07-09 13:40:05 +00:00
Mazdak Farrokhzad cbff725d58 ColList: preserve list order on list.push(..) (#1474) 2024-07-08 17:55:42 +00:00
Kim Altintop c8259bf39c smoketests: Add test for module hotswapping (#1403) 2024-07-08 07:02:27 +00:00
Zeke Foppa b2eb08c9cb Fix C# module smoketests (#1475)
Co-authored-by: Zeke Foppa <github.com/bfops>
2024-07-04 12:48:41 +00:00
Zeke Foppa e536a6df0b Automated Discord post when a PR merges (#1470)
Co-authored-by: Zeke Foppa <github.com/bfops>
2024-07-02 02:41:41 +08:00
Chip 6317ec1ecf CSharp Module tweak & Unity Tutorial part 1, 2b, 3 tweaks (#56)
* expanded on taggedenums and added examples for each special ReducerKind

Fixed a few typos/mistakes here and there also.

* fixed part2 hyperlinks

* fixed config version type

from Identity to uint

* update Throw => throw

* update log typo

* fix type on connect reducerkind from init=>connect

* private=>public for UpdatePlayerLoginState reducer

* remove double "publish" condenses it into one publish at the end after chat

* fixed name of GameManager file, tweaks to instructions

kept application.runInBackground (it wasn't included)

renamed many instances of "TutorialGameManager.cs" to "BitcraftMiniGameManager.cs" to represent accurate filename

* fixed onConnectError

* more TutorialGameManager renames to BitcraftMiniGameManager.cs and also a FilterByX fix

* added clarity to UIUsernameChooser.cs and LocalPlayer.cs -- Also fixed RemotePlayer.cs errors

* some small tweaks again to GameManager name

* updated tagged enums to reflect record usage and pattern matching

* filter -> find fixes

* expanded on taggedenums and added examples for each special ReducerKind

Fixed a few typos/mistakes here and there also.

* fixed config version type

from Identity to uint

* update Throw => throw

* update log typo

* fix type on connect reducerkind from init=>connect

* private=>public for UpdatePlayerLoginState reducer

* remove double "publish" condenses it into one publish at the end after chat

* fixed name of GameManager file, tweaks to instructions

kept application.runInBackground (it wasn't included)

renamed many instances of "TutorialGameManager.cs" to "BitcraftMiniGameManager.cs" to represent accurate filename

* fixed onConnectError

* more TutorialGameManager renames to BitcraftMiniGameManager.cs and also a FilterByX fix

* added clarity to UIUsernameChooser.cs and LocalPlayer.cs -- Also fixed RemotePlayer.cs errors

* some small tweaks again to GameManager name

* updated tagged enums to reflect record usage and pattern matching

* filter -> find fixes

* updated based on feedback
2024-06-28 00:39:46 +08:00
Kurtis Mullins 2399e74c98 Ensure MacOS builds from CI are executable (#1462) 2024-06-26 18:10:59 +00:00
SteveBoytsun 81085b0817 Fixed exceptions in C# SDK when someone disconnects or when a transaction originates from CLI (#1461)
Co-authored-by: Steve Boytsun <steve@clockwokrlabs.io>
2024-06-26 17:39:12 +00:00
Noa 8be8fc1248 Fix inconsistent auth/identity creation (#735)
Co-authored-by: Zeke Foppa <github.com/bfops>
2024-06-25 19:41:09 +00:00
Zeke Foppa 637a6547d9 CLI - Update help text suggesting spacetime server fingerprint to have the correct -s param (#1457)
Co-authored-by: Zeke Foppa <github.com/bfops>
2024-06-24 18:42:05 +00:00
Kim Altintop 4c0185d93c core: Replace host scheduler on update (#1453) 2024-06-24 17:39:34 +00:00
Kim Altintop c19c0d45c4 core: Simplify custom bootstrap (#1404) 2024-06-21 05:42:04 +00:00
Kim Altintop 60c438d112 Smoketest auto-disconnect after restart (#1367) 2024-06-20 05:59:13 +00:00
Kim Altintop 384591adf5 core: Downgrade host log verbosity (#1446) 2024-06-19 10:53:06 +00:00
Mazdak Farrokhzad a93bd493d1 Fix index removal and additions + add smoketest (#1444) 2024-06-19 08:29:46 +00:00
Ingvar Stepanyan 137f26da5f Restructure NuGet packaging (#1440)
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
Signed-off-by: Ingvar Stepanyan <me@rreverser.com>
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
2024-06-18 19:48:46 +00:00
Ingvar Stepanyan c94a55178c Roslyn cacheability testing and fixes (#1420) 2024-06-18 19:07:48 +00:00
Ingvar Stepanyan 4e15ed15a5 Update C# tagged enum docs (#65)
* Update C# tagged enum docs

* Apply suggestions from code review

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>

* Reword

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2024-06-18 16:13:16 +01:00
Ingvar Stepanyan 780884f8b4 Update docs for Consistent Filtering proposal (#68)
* Update docs for Consistent Filtering proposal

Updating docs for FilterBy methods across SDKs, adding docs for FindBy methods, and a couple of drive-by fixes for broken links.

* Update docs/sdks/c-sharp/index.md

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2024-06-18 16:12:58 +01:00
Ingvar Stepanyan 5b3c85662f Remove obsolete C# module imports (#67) 2024-06-18 16:12:24 +01:00
Ingvar Stepanyan 4b9b82c3c8 DbEventArgs -> ReducerContext in C# API docs (#66)
This API was recently renamed.
2024-06-18 16:12:13 +01:00
Ingvar Stepanyan 1f97c4230d Remove CreateInstance() from C# client docs (#69)
This method no longer exists - an instance with a default logger is set up automatically.
2024-06-18 16:01:53 +01:00
Zeke Foppa dcc70b82f2 Bump version to 0.10.1 (#1443)
Co-authored-by: Zeke Foppa <github.com/bfops>
2024-06-17 23:34:13 +00:00
Ingvar Stepanyan 7e8a6ed876 Update test snapshots 2024-06-17 21:05:18 +01:00
Ingvar Stepanyan 1d89643af5 Implement the module rng proposal for C# (#1425) 2024-06-17 15:23:14 +00:00
Ingvar Stepanyan 27120e8242 Move Verify converters around 2024-06-17 11:50:42 +01:00
Ingvar Stepanyan 9c01734a1e Simplify Identity scrubbing 2024-06-17 11:48:04 +01:00
Ingvar Stepanyan e345452304 Fix formatting 2024-06-15 23:43:06 +01:00
Ingvar Stepanyan 21e475b1cc Add Stats snapshot 2024-06-15 23:40:38 +01:00
Ingvar Stepanyan 17ce57ffe1 Store test dump in a maintainable format 2024-06-15 23:24:15 +01:00
Ingvar Stepanyan 40f6138c4c Update API docs 2024-06-15 22:08:20 +01:00
Ingvar Stepanyan 0267f02332 Add snapshot-based tests 2024-06-15 22:04:50 +01:00
Ingvar Stepanyan b648b9ca88 Autoformat & verify on CI 2024-06-15 16:45:43 +01:00
joshua-spacetime 8a3364ea69 perf(1351): Add a row count metric for subscriptions (#1435) 2024-06-14 18:32:22 +00:00
joshua-spacetime 19b7815878 refactor: Reconfigure histogram buckets for certain metrics (#1436) 2024-06-14 18:30:02 +00:00
Zeke Foppa cceb8c04b9 Update tools/publish-crates.sh (#1426)
Co-authored-by: Zeke Foppa <github.com/bfops>
2024-06-14 18:06:30 +00:00
Zeke Foppa 1ce3b53a1c Update docs for making tables public/private (#63)
* [bfops/revert-premature-merge]: do revert

* [bfops/redo-61]: Redo #61

* [bfops/redo-61]: redo

* [bfops/redo-61]: add C#

* [bfops/redo-61]: review

* [bfops/redo-61]: review

---------

Co-authored-by: Zeke Foppa <github.com/bfops>
2024-06-14 08:59:41 -07:00
Mazdak Farrokhzad b1442fc2f1 HACK: Tweak schema_updates to allow adding/removing non-unique indices (#1434) 2024-06-14 14:40:14 +00:00