Commit Graph

3186 Commits

Author SHA1 Message Date
Jeremie Pelletier c3be5b08c3 Update to tests/examples follow codegen changes (#160)
## 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-10-03 21:12:43 -07:00
Jeremie Pelletier 02b70d5c94 c# client generate (#1707) 2024-10-04 04:12:15 +00:00
Zeke Foppa 9082301ef3 Merge pull request #103 from clockworklabs/tyler/stable-sdk/fix-1
Make `subscribe` private
2024-10-03 21:08:53 -07:00
Tyler Cloutier 2ece7b36a6 Small change to API 2024-10-03 23:17:17 -04:00
John Detter d2143ccc88 Use SpacetimeDBNetworkManager everywhere (#157)
## 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*

Co-authored-by: John Detter <no-reply@boppygames.gg>
2024-10-03 18:15:37 -07:00
John Detter 072d9ead84 Upgrade SDK Version to 0.12 (#156)
## Description of Changes
*Describe what has been changed, any new features or bug fixes*

- Upgrade version to 0.12.

## 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*

Co-authored-by: John Detter <no-reply@boppygames.gg>
2024-10-04 00:39:13 +00:00
Ingvar Stepanyan 2d20acd06e Fix UnityNetworkManager (#141)
This got broken when we switched to a new DbConnection API.

Keep track of all the active connections and update/destroy them from a
singleton game object. Fixes #134.

Marked as a draft for now, because it's untested and because we're not
yet sure that singleton for all connections as requested is the right
approach.

## 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*

---------

Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
2024-10-03 19:35:51 -05:00
Ingvar Stepanyan 434c5ffd8a Accept multiple queries in Subscribe (#153)
## Description of Changes

Turns out, we're not ready for single Subscribe per query, so bringing
back this ability.

## 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*

Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
2024-10-04 00:25:05 +00:00
Zeke Foppa b320e5ec58 Update DLLs for 0.12.0 (#152)
## Description of Changes
Updated the DLLs for 0.12.0 from the PR:
```
commit 0a7512d2a8db0dcff05aaee92f260e53d71cdc80 (HEAD -> release/v0.12.0-beta, origin/release/v0.12.0-beta)
Author: Zeke Foppa <bfops@users.noreply.github.com>
Date:   Thu Oct 3 09:35:27 2024 -0700

    [release/v0.12.0-beta]: Manually apply open PR #1707: c# client generate
```

## 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*

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
2024-10-03 23:31:14 +00:00
Jeremie Pelletier 1b0e843a98 Jeremie/remove break (#154)
## 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-10-03 19:00:10 -04:00
Tyler Cloutier d64a5dbafa Tyler's Stable SDK API implementation (#102)
* 0.12: Remove global (#99)

* Push

* Half baked satuff

* Push tables stuff

* Update the example a bit

* Added tsup to dev dependencies

* Fixed naming and a lot of issues

* Improved the serialization situation

* More cleanup

* Updating the examples with the code gen

* Unscuffed the scuffery

* Unscuffing

* It works

* Whitespace

* Updated the quickstart

* pnpm format

* Fixed errors and manually imported sdk correctly in code gen code

* Updated the typescript sdk with the new websocket proposal format

* Fixes and removed playground

* Updated for 0.12 still not done fixing tests

* Regenerated the quickstart

* fixes and formating

* Fixed tests almost

* Fixed more tests

* Fixed all tests

* Renamed compile to build

* Fixes

* test-app: Expose the files

* ci: Build the code before tests

* build -> compile

* try to fix CR

---------

Co-authored-by: Puru Vijay <47742487+PuruVJ@users.noreply.github.com>
Co-authored-by: Puru Vijay <awesomepuruvj@gmail.com>
2024-10-03 13:59:43 -04:00
Ingvar Stepanyan 2c95bee7b2 Try to catch flaky bugs (#150)
## Description of Changes

We have some flaky bug where Events are getting modified while we're
already iterating over them in the snapshot.

I think this might've been fixed by #144, but add extra checks just in
case so that the exception is thrown in a concrete event that causes it,
and not inside snapshot serialization.

## 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-10-03 17:17:06 +00:00
Ingvar Stepanyan 76d275f1b5 Remove obsolete tools folder (#149)
## Description of Changes

Not sure when or how this was added (it's not on master), but this
folder shouldn't be here - we have `tools~` instead.

## 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-10-03 17:13:59 +00:00
Tyler Cloutier fe62e13644 Small fixes to TypeScript codegen (#1800) 2024-10-03 17:10:36 +00:00
Zeke Foppa b96f1a6cd5 Fix gen-client-api scripts for new CLI API (#151)
## Description of Changes
The CLI arg changes in
https://github.com/clockworklabs/SpacetimeDB/pull/1741 broke these
scripts. This PR incorporates the param renames.

## API
No changes to how things are used.

## Requires SpacetimeDB PRs
I guess https://github.com/clockworklabs/SpacetimeDB/pull/1741

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-03 09:48:54 -07:00
Zeke Foppa affa2af7db Add script to generate nuget.config (#115)
## Description of Changes
Adds a utility script to generate `nuget.config` given a path to the
`SpacetimeDB` repo.

## API
No

## Requires SpacetimeDB PRs
None

## Testing
- [x] CI
- [x] Ran locally

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-03 13:03:29 +01:00
John Detter 151039d8a2 Update rust index page for 0.12 (#89)
* Updated rust quickstart for 0.12

* Suggested tweaks

* Initial updates to the index file

* More updates to index, rolled back changes from another PR I'm working on

* Small improvements

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>
2024-10-03 02:32:41 -05:00
John Detter aba173904e Updated rust quickstart for 0.12 (#88)
* Updated rust quickstart for 0.12

* Suggested tweaks

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>
2024-10-03 02:32:27 -05:00
Zeke Foppa 46039b5662 CLI - Remove the always-save-config behavior (#1799)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-03 03:47:49 +00:00
Ingvar Stepanyan fa87e36308 Don't actually try to connect to network in tests (#144)
## 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-10-02 23:19:12 +00:00
Ingvar Stepanyan 9d3336e6f5 Reduce public API surface further (#145)
## Description of Changes
*Describe what has been changed, any new features or bug fixes*

## API

 - [x] 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-10-03 00:18:06 +01:00
Ingvar Stepanyan e3de083d08 [C#] [NFC] Some tweaks to the diagnostic tests (#1792) 2024-10-02 22:49:31 +00:00
Ingvar Stepanyan 463a240f45 Tighten package sources in C# smoketests (#133)
## Description of Changes

Same as https://github.com/clockworklabs/SpacetimeDB/pull/1735 but for
this repo.

## 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-10-02 22:52:03 +01:00
Ingvar Stepanyan cec6fb815a Fix UnityDebugLogger implementation (#143)
## Description of Changes

Without explicit reference these result in

> error CS0119: 'UnityDebugLogger.Debug(string)' is a method, which is
not valid in the given context

## 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-10-02 20:56:57 +00:00
Phoebe Goldman 0fa848c818 Update Rust SDK ref for the new SDK (#93) 2024-10-02 12:35:23 -04:00
Phoebe Goldman 4267878a52 I didn't notice that auto-merge was enabled, so here's my review (#94) 2024-10-02 12:09:32 -04:00
John Detter 2a0ba3d07e Rust client quickstart updated for 0.12 (#92)
* Rust client updated for 0.12

* Small update

* More updates

* Final pass

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>
2024-10-02 11:59:09 -04:00
Mazdak Farrokhzad b62a464384 Implement websocket changes atop C# sdk changes (#136)
## Requires SpacetimeDB PRs

This is the C# side of
https://github.com/clockworklabs/SpacetimeDB/pull/1761.
2024-10-02 17:18:24 +02:00
John Detter 1681425a24 Fix a rustfmt issue that occurs during rust client code generation (#1793)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2024-10-02 13:54:48 +00:00
Tyler Cloutier 0eb147e132 Implemented TypeScript SDK proposal codegen (#1776) 2024-10-02 06:24:58 +00:00
Zeke Foppa cdba143bda CLI - Fix identity removal helptext (#1784)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-01 21:25:27 +00:00
Mazdak Farrokhzad cb13f10d97 Fix RowSizeHint::index_to_range (#1785) 2024-10-01 20:51:07 +00:00
Ingvar Stepanyan d081e4ad90 More obsolete cleanup (#1782) 2024-10-01 20:01:16 +00:00
Ingvar Stepanyan cfd654f94c Hide more APIs (#140)
## Description of Changes

Removing unstable APIs that are not used by BitCraft; marking others
with [Obsolete] and renaming few others to match the proposal.

One exception is InternalCallReducer - it would need some further
changes to codegen; marking it as Obsolete right now would cause all
generated clients to show noisy warnings.

## API

 - [x] 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-10-01 20:00:32 +01:00
Kim Altintop ae17c6d57e commitlog: Return commit info (#1778) 2024-10-01 17:31:42 +00:00
Ingvar Stepanyan efa9e0bd28 [bindings-csharp] Upgrade WASI SDK & enable for ARM64 (#1775) 2024-10-01 17:04:41 +00:00
Jeremie Pelletier 113e8dd972 Add DbConnection argument to OnConnect (#138)
## 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-10-01 13:02:54 -04:00
Noa 039c7e2445 Remove abi functions that are no longer needed (#1777) 2024-10-01 12:52:55 -04:00
Ingvar Stepanyan 87a13eb74f Merge table cache into table handle (#139)
## Description of Changes

Merges cache into the table handle as suggested on the original PR +
hides most table methods that shouldn't be part of the stable API.

Few remaining methods will need a codegen change to be available only to
subclasses, so for now that's out of scope.

Same for merging ClientCache into RemoteTables - we shouldn't need a
separate collection, and instead could autogenerate a switch expression
over table name.

## 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-10-01 17:37:42 +01:00
Ingvar Stepanyan 5ee077e6d9 [C#] [Reducers] Implement new context fields, enum-based kinds, validation (#1729) 2024-10-01 16:30:32 +00:00
Ingvar Stepanyan 5c033a4e4d Subscription API (#137)
## Description of Changes

Implements the subscription builder (at least, the parts that are
possible to implement).

## 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-10-01 16:17:45 +00:00
Ingvar Stepanyan 3c9952a3ec Ensure C# autogen bindings are up-to-date (#1780) 2024-10-01 14:15:39 +00:00
Mario Montoya a18ef7b882 Filter out deps that only is added to keccack on arm that broke local testing (#1711) 2024-10-01 04:17:46 +00:00
Jeremie Pelletier 76d30fedee c# client SDK (DbConnection + SDK Callbacks) (#131)
Implementation of the db connection proposal for C#

---------

Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
2024-09-30 21:06:33 -04:00
Ingvar Stepanyan 1d6b0a141b [C#] Migrate bench-cs to the new API (#1758) 2024-10-01 00:31:38 +00:00
Zeke Foppa 6fa8fe13b0 CLI - spacetime generate always deletes stale files (#1774)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-10-01 00:21:32 +00:00
Noa c73625cdba Replace iter_by_col_eq in UniqueColumn impl (#1771) 2024-09-30 22:22:15 +00:00
Mazdak Farrokhzad 1ac741aa6b Generic and optimized WebSocket API (#1761)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-09-30 21:57:00 +00:00
Ingvar Stepanyan 8790abde78 [C#] Mark experimental API (#1769) 2024-09-30 21:42:08 +00:00
Mazdak Farrokhzad dd52cda7ca client-api: make some BAD_REQUEST into NOT_FOUND (#1768) 2024-09-30 21:41:25 +00:00