Commit Graph

3186 Commits

Author SHA1 Message Date
Zeke Foppa 11896cb70b Bump version to RC3 and update DLLs (#210)
## Description of Changes
Bump package version to `1.0.0-rc3` and do a preliminary upgrade of the
DLLs.

I believe the DLLs might need updating again once the BSATN.Runtime
package is pushed to NuGet (because then it will be fetched from NuGet).

## API

Not API breaking.

## Requires SpacetimeDB PRs
https://github.com/clockworklabs/SpacetimeDB/pull/2094

## Testsuite
SpacetimeDB branch name: release/v1.0.0-rc3

## Testing
- [x] Existing CI is successful (pointed at the RC3 SpacetimeDB branch).

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-14 18:13:04 +00:00
Mazdak Farrokhzad a4dc762927 Fix wording in ReplayVisitor::visit_insert (#2123) 2025-01-14 14:56:18 +00:00
Ingvar Stepanyan 006087fb43 Add delegates for events (#201)
## Description of Changes

This is a requested DX improvement to make sure that IDE shows
reasonable argument names instead of `arg0`...`argN`.

Fixes
https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/issues/200.

## API

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

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

Potentially breaking in obscure edge cases, if someone already had
`Action<...> myCallback;` that they passed to those APIs as C# won't
cast it automatically to our custom delegate type.

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

## Testsuite
*If you would like to run against a specific SpacetimeDB branch in the
testsuite, 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*

- [x] `dotnet test`
2025-01-14 14:28:29 +00:00
Phoebe Goldman 59a8b3f989 Add SubscriptionBuilder::subscribe_to_all_tables (#2109) 2025-01-13 22:00:22 +00:00
Mazdak Farrokhzad 5ad2a2efe8 add signature of datastore_update_bsatn host call (#2102) 2025-01-13 16:41:39 +00:00
joshua-spacetime 3798f468a6 query engine integration (#2074) 2025-01-11 00:01:24 +00:00
Phoebe Goldman 44d7b76d29 Fix defining multiple tables on the same struct in Rust modules (#2103) 2025-01-10 01:58:20 +00:00
james gilles 208e6b933f Make automatic migrations deterministic (#2104) 2025-01-09 22:48:21 +00:00
Mazdak Farrokhzad f667f65b15 perf(2019): skip PointerMap given a unique index (#2092) 2025-01-09 18:10:20 +00:00
Phoebe Goldman e8b8bac453 Use println/eprintln in the quickstart-chat client, not log (#2099) 2025-01-09 15:38:52 +00:00
james gilles bade25de08 Add vocabulary to style guide, update index.md accordingly (#126)
* Add vocabulary to style guide, update index.md accordingly

* s/runs/hosts/

* Update STYLE.md

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

* Rewrite 'Reducer'

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-01-08 14:09:11 -05:00
Tyler Cloutier 6f807e273c Updated version to 1.0.0-rc3 (#2059)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-08 18:17:10 +00:00
Mazdak Farrokhzad cbfff34dc2 Extract InstanceEnv::project_cols_bsatn (#2096) 2025-01-08 03:43:39 +00:00
Mazdak Farrokhzad 538e7b11c8 Extract MutTxId::tx_state_removed_index(&self, index_id) -> bool (#2095) 2025-01-08 03:29:17 +00:00
Tyler Cloutier a19cc48a18 Fix missing tick marks in Rust quickstart (#124)
Fixed missing tick marks in rust quickstart
2025-01-07 16:57:58 -05:00
Mazdak Farrokhzad d4f03b74b9 datastore: insert via BSATN instead of via PV (#2069) 2025-01-07 21:36:02 +00:00
Zeke Foppa c71b93cfc1 CLI - dns subcommand becomes rename (#1694)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-07 21:23:27 +00:00
Ingvar Stepanyan 79a9c712f0 Implement new C# index syntax (#2078) 2025-01-07 20:58:17 +00:00
Ingvar Stepanyan 40faad6e2e Implement ctx.Identity for C# (#2091) 2025-01-07 20:45:27 +00:00
Ingvar Stepanyan 763ba5ef5c Enforce .NET 8 SDK for new C# modules (#2046) 2025-01-07 20:40:56 +00:00
Ingvar Stepanyan bb6d624b6a Update Unity tests (#207)
## Description of Changes

Updates Unity tests to include fix from
https://github.com/clockworklabs/SpacetimeDBCircleGame/pull/10.

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

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

- [ ] Describe a test for this PR that you have completed
2025-01-07 11:49:56 -08:00
Noa 2b227fe535 Use a spinner to show that wasm is compiling in spacetime generate (#2057) 2025-01-07 18:42:51 +00:00
Ingvar Stepanyan 8b6f13208d Update to the new scheduling syntax (#10)
The attribute no longer exist, we now either infer the name automatically or specify it within the `table(scheduled(at = ...))` attribute instead.
2025-01-07 18:39:44 +00:00
joshua-spacetime d6d78b38b9 fix(202): RemoteQuery should not SELECT * (#203)
Fixes #202.

Because SELECT * is ambiguous if the query is a join

## Description of Changes

Bug Fix

Previously `RemoteQuery` would implicitly `SELECT *`. This was wrong
because you can use `RemoteQuery` to issue join queries.

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

## 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: v1.0.0-rc1

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

- [ ] Describe a test for this PR that you have completed
2025-01-06 15:11:28 -08:00
Ingvar Stepanyan f2c0869db3 Describe how to define multiple tables with the same type (#113)
* Describe how to define multiple tables with the same type

Fixes #90.

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

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-01-06 21:12:47 +00:00
Ingvar Stepanyan a90e0f98e1 Fix CI (#205)
## Description of Changes

(this is a reopening of #204 which targeted wrong branch)

I don't know when or why this broke (or, rather, how it worked before),
but we're installing .NET 7 but packing BSATN.Runtime that multi-targets
.NET Standard 2.1 + .NET 8. The latter part, as you'd expect, fails on
CI.

~~This change tells `dotnet pack` to only pack for .NET Standard 2.1
since that's the one we're interested in on the client - .NET 8 support
is only for C# server modules.~~ _Narrator: that didn't work out._

This change bumps .NET SDK to 8.0 because I still don't know how it
worked before with .NET 7, and this seems like the more sensible
solution anyway.

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

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

- [ ] Describe a test for this PR that you have completed
2025-01-06 20:03:19 +00:00
Zeke Foppa 2967e3b893 CLI - Fix spacetime energy balance not working (#2087)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-06 19:04:46 +00:00
Ingvar Stepanyan c87add7349 C#: fix class names for unique column indices (#2088) 2025-01-06 18:58:07 +00:00
Zeke Foppa 74d191f465 CLI - Confirm before publishing to non-local servers (#2086)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-01-03 21:40:03 +00:00
Tyler Cloutier 639b9269fe Switches to a canonical GitHub slugger format so that our slugs always match links generated on GitHub (#123)
Standardized slugging across docs and web
2025-01-03 16:06:09 -05:00
Mario Montoya df58e84eba Preserve the comments of the "cli.toml" on changes (#2002)
Signed-off-by: Mario Montoya <mamcx@elmalabarista.com>
Co-authored-by: Phoebe Goldman <phoebe@clockworklabs.io>
2025-01-03 20:52:15 +00:00
james gilles e09444959e Rewrite index.md (#111)
* Start rewriting index.md

* Docs rewrite

* Typo, SQL, more sales talk

* Address comments

* Finish addressing comments

* Update docs/index.md

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

* Address comments

* Clarify Identity section

* Fix links, clarify deployment section

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-01-03 14:30:18 -05:00
Phoebe Goldman a4b46c5ddb Implement the identity host call and ctx.identity() in Rust (#2085) 2025-01-03 19:09:34 +00:00
Tyler Cloutier 48bab90a41 Added a script to check the validity of docs links and a .github action (#122)
* Added a script to check the validity of docs links and a .github action

* Removed erroneous thing

* Switched the action trigger

* Added workflow to ensure that the nav.ts has been built to nav.js

* typo

* Build nav.ts

* typo thing

* Fixed script issue

* Fix

* Fixed a few links

* Added relative link resolution and fixed the broken links

* now checking fragments

* Now checking fragments properly and publishing some stats

* Forgot exit code

* Fix broken links

Well, in at least some cases, just remove broken links.

- The BSATN ref contained links to type defns, but didn't have type defns.
  Replace the links with plain text.
- HTTP database links for recovery-code related routes were getting mangled
  in some way I couldn't figure out, so the links weren't working
  despite their targets clearly existing.
  Conveniently, those routes have been removed,
  so remove the links and the corresponding sections.
- The JSON doc (erroneously called "SATN") contained typos,
  spelling "producttype" as "productype".
- C# SDK ref had links to a section on the `Address` type, but no such section.
  Replace the links with plain text.
- Rust SDK ref had a link getting mangled in a way I couldn't figure out.
  Simplify the section title so that the anchor name is predictable.
- TypeSciprt SDK ref used camelCase names in anchor links,
  but we downcase all section titles to create anchor names.

Also slap a section in README.md which says how to run the checker locally.

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-01-03 00:44:00 -05:00
Jeffrey Dallatezza e9e287b8aa Server-side implementation of incremental subscription changes (#2030) 2025-01-02 18:41:57 +00:00
Noa 4015237f6a Tweak scheduled_at macro syntax (#2054) 2025-01-02 18:26:44 +00:00
Tyler Cloutier 85c137ca90 Added .DS_store to the .gitignore 2024-12-31 17:05:13 -05:00
Mario Montoya 20d397cf2b Split Iter & IterByColRange types into Tx and MutTxId versions (#2043) 2024-12-31 16:14:30 +00:00
Ingvar Stepanyan 78b48c9a98 Reduce noisy C# compilation errors (#2067) 2024-12-30 23:48:50 +00:00
Zeke Foppa 43ad8be2b0 CLI - Remove deprecated use of the --project-path flag (#915)
Co-authored-by: Zeke Foppa <github.com/bfops>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2024-12-30 18:41:44 +00:00
Kim Altintop da0f83b6dd commitlog: Make memory segment behave like O_APPEND (#2072) 2024-12-20 11:28:19 +00:00
joshua-spacetime 10598ba5c0 fix: qualified projection columns (#2070) 2024-12-19 20:35:45 +00:00
Kim Altintop a191055f56 commitlog: Fix offset index truncation (#2073) 2024-12-19 15:44:10 +00:00
joshua-spacetime 1b31209627 fix: filter pushdown over table scan (#2063) 2024-12-16 22:48:44 +00:00
Ingvar Stepanyan 08a3f3210b Migrate C# ModuleDef to V9 (#1670) 2024-12-16 21:49:42 +00:00
Tyler Cloutier fa2baa6cac Update pull_request_template.md 2024-12-13 20:40:46 -05:00
Tyler Cloutier d8277ff8fd Updated DLLs I think 2024-12-13 20:14:02 -05:00
Tyler Cloutier 1a21af8526 Bump versions 2024-12-13 19:29:15 -05:00
Tyler Cloutier 844713f577 Updating unity-tests (#197)
## Description of Changes
This bumps the unity-test submodule
 
## API

No API Change

## Requires SpacetimeDB PRs

No special PRs, should work with latest master of SpacetimeDB.

## 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
I opened up this commit of CircleGame in Unity on my own machine and ran
the tests. They seemed to work fine.
2024-12-13 10:54:43 -05:00
Ingvar Stepanyan 1265ac70d3 Fix scheduled tables (#8)
* Fix scheduled tables

The API has changed upstream and requires user to specify those columns manually.

* Regenerate and fix paths
2024-12-13 00:39:21 -05:00