Commit Graph

3186 Commits

Author SHA1 Message Date
joshua-spacetime 25abdd5857 fix: bag semantics for joins (#2398) 2025-03-11 18:33:07 +00:00
Zeke Foppa 0dd1807063 CI - Only tag extra docker images on tag refs (#2335)
Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com>
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-11 17:56:16 +00:00
Zeke Foppa 644645b733 Make the tools/merge-docker-images.sh script more generic (#2334)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-11 17:07:48 +00:00
Zeke Foppa 521da1dc2f Explain spacetime login (#217)
[bfops/login-docs]: do thing

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-11 10:07:04 -07:00
Zeke Foppa ba971ae440 CLI - Fix sql --interactive case where returned rows are 0 (#2359)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-11 17:00:35 +00:00
Zeke Foppa 73aa13868b fix broken links in README (#26)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-10 20:30:43 -07:00
Tyler Cloutier 9a88da8756 Removed double semi-colon (#254) 2025-03-10 09:11:05 -07:00
Noa 74661be0c2 Clarify what is a valid module name (#2386) 2025-03-07 19:21:19 +00:00
Noa 35c287dafa Clarify what is a valid module name (#252) 2025-03-07 11:10:42 -08:00
rekhoff 92d22ccbf2 Updated to correct old timestamp format. (#221) 2025-03-07 13:58:06 -05:00
Tyler Cloutier 7fb1f31d25 Update README.md (#2361)
Signed-off-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
2025-03-07 17:11:43 +00:00
rekhoff 7947a593ff Implements IComparable for Identity and ConnectionId (#2354) 2025-03-07 01:06:41 +00:00
WeslomPo 04ba1528be Fix version and old property (#24)
* Fix version and old property

Changed version from 1.0.0-rc4 to 1.0.0
Replaced ctx.CallerIdentity to ctx.Sender

* Regenerated autogen files with actual version of spacetimedb
Changed package from stage to regular

* Create global.json

Added global.json, to prevent trying to generate code with wrong net sdk version

* Updated manifest with dependency address used in quickstart guide

---------

Co-authored-by: rekhoff <r.ekhoff@clockworklabs.io>
2025-03-06 14:48:20 -08:00
joshua-spacetime 9a2b30f321 Support RFC 3339 timestamp values in sql (#2242) 2025-03-06 21:18:20 +00:00
Mario Montoya f9f38543c8 Add readmes to all implementation crates specifying that they do no offer stable interfaces (#2320) 2025-03-06 19:50:17 +00:00
Zeke Foppa a0e30f30e1 Remove stale references to removed CLI functions (#218)
[bfops/outdated-cli]: Remove stale references to removed CLI functions

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-06 08:27:19 -08:00
joshua-spacetime 66b10dde8f Update bytes_sent_to_clients when merging metrics (#2352) 2025-03-05 20:26:57 +00:00
Zeke Foppa 6acd881115 CLI - Fix helptext for --build-options (#2349)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-05 19:04:43 +00:00
Zeke Foppa d04335f9a2 Add @jdetter back to CLI codeowners (#2350)
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-05 18:19:37 +00:00
Zeke Foppa cfba6bbffd Update CLI docs for #2349 (#215)
* [bfops/fix-docs]: Update CLI docs for #2349

* [bfops/fix-docs]: missed one

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
2025-03-05 10:15:01 -08:00
John Detter 84ac8119e1 Fix quickstart link (#2346)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-03-05 17:29:30 +00:00
Shubham Mishra 7cb509c2e2 handle offset index empty (#2344) 2025-03-05 11:04:10 +00:00
John Detter 990fe06153 Bump typescript version to 1.0.2 (#213)
Bump version to 1.0.2

Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-03-04 13:40:30 -06:00
John Detter 2a7d05d2ef Version 1.0.2 (#152)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-03-04 13:40:13 -06:00
Jeffrey Dallatezza 47dd62ae00 Set other url params even if we dont have an authToken. (#151) 2025-03-04 13:24:30 -06:00
John Detter 707446a4d2 Self-Hosted guide (#206)
* Standalone guide

* Several improvements

* Title update

* Updated nav.js

* Guide updated

* Small fix

* Guide working again after `--root-dir` change

* Finished + tested

* Apply suggestions from code review

Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>

* Updates after review

* Update navigation

* Apply suggestions from code review

* Update docs/deploying/spacetimedb-standalone.md

* Update docs/deploying/spacetimedb-standalone.md

---------

Co-authored-by: John Detter <no-reply@boppygames.gg>
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
2025-03-04 13:04:52 -06:00
Steve Biedermann d9ef0a6492 Fix code error and wrong code block (#210) 2025-03-04 12:34:52 -06:00
John Detter 08cbd94f76 Post Release Fixes (#2330)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-03-04 17:31:34 +00:00
John Detter a97ca0164f Bump Typescript SDK Version in Quickstart (#208)
We didn't bump this version number

Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-03-04 12:08:17 -05:00
John Detter df7832bfc7 This works on both arm and x86 (#2337)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-03-04 15:35:20 +00:00
Kim Altintop 8054999927 commitlog: Use fdatasync (#2338) 2025-03-04 15:20:14 +00:00
Zeke Foppa 60761bb952 Bump versions to 1.0.0 (#253)
## Description of Changes
This just bumps our package versions to be 1.0.0.

## API

No breaking changes

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

## Testsuite
SpacetimeDB branch name: bfops/bump-version

## Testing
Existing CI only.

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
2025-03-04 09:10:52 -06:00
james gilles e21566a4e2 Update README (#260)
## Description of Changes
Just link to the existing docs.

## 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
2025-03-03 23:39:37 -06:00
rekhoff bb50146932 Updates to fix multiplayer bug found in tutorial. (#23)
These changes match those found in the Docs side with PR https://github.com/clockworklabs/spacetime-docs/pull/169
2025-03-03 18:32:34 -08:00
rekhoff 6cce14ef93 Rekhoff/blackholio fixes (#205)
* Updates to blackholio tutorials

Page 3 - Fix duplicate code in Rust "disconnect reducer" instructions.
Page 4 - Update use of `CallerIdentity` to `Sender` in C# instructions.

* Fixes from running through Blackholio tutorial in Rust and C# on 1.0.0

* Minor formatting updates

* Minor formatting update

* Another minor format change

* Whitespace fix.

Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>

* Whitespace fix.

Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>

* Whitespace fix.

Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>

---------

Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
2025-03-03 18:21:44 -08:00
Noa 973b62308f Describe how a JWT's sub/iss are translated into an Identity (#204) 2025-03-03 20:06:25 -05:00
joshua-spacetime 68a8daa6e3 C# sdk reference (#191)
Closes #192.
2025-03-03 16:36:56 -08:00
james gilles 52b80ef0b5 C# Module Library docs (#193)
* Most of the way to C# Module SDK docs

* Copy in more docs

* Mostly done

* Remove dead docs

* Apply suggestions from code review

Thanks Mazdak, also going to apply some of these to the Rust modules.

Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>

* Address review comments

---------

Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com>
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
2025-03-03 19:22:40 -05:00
Zeke Foppa b8c8a0f738 Add instructions for deploying to maincloud (#167)
* [bfops/deploying]: add instructions for deploying mainnet

* [bfops/deploying]: nav.ts

* [bfops/deploying]: nav.ts

* [bfops/deploying]: fix link?

* Update docs/deploying/maincloud.md

Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>

* Update docs/deploying/maincloud.md

Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>

* [bfops/deploying]: review

* Update docs/deploying/maincloud.md

Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>

* Add `/profile` as a known link

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
2025-03-03 19:06:20 -05:00
John Detter 8d6899768e Multiplayer bug fix in tutorial (#169)
* Multiplayer bug fix in tutorial

* Update part-4.md

Small fix

* removed reference to test input

This test input is not used during the tutorial and causes unused variable warnings

* Update part-4.md
2025-03-03 18:48:59 -05:00
Tyler Cloutier ebce4c2d3d Fixes the typescript quickstart for the new subscription API (#161)
* Updated quickstart url

* DBConnection -> DbConnection for TypeScript SDK

* Updated for the subscription update
2025-03-03 18:43:54 -05:00
Phoebe Goldman 12a1fdf0a7 Small doc fixes potpourri (#198)
* Remove hedging about table access from module quickstarts

We'll announce RLS when we announce it. For now, what we have is what we have.

* Remove hedging about supported module languages

This kind of thing belongs in a roadmap, not anywhere else in our docs.

* Fix :fingers_crossed: formatting of link to scheduled reducers

* Fix link

* List module langs in alphabetical order

Which also happens to be decreasing order of support and battle-tested-ness

* Re-order various and pages in sidebar

- Internals get their own section, and move down.
- Appendix gets its own section, instead of joining "Subscriptions."
- SQL and Subscriptions move up.

* Remove outdated guidance about tokens

We don't have "SpacetimeDB tokens" anymore, we just have regular OIDC JWTs.
We don't need to offer any special guidance about JWT hygiene.
2025-03-03 18:27:50 -05:00
rekhoff bc6ecabbb0 Updated with corrected table names to lower case, for compatibility w… (#195)
Updated with corrected table names to lower case, for compatibility with other quickstart-chat languages.
Updated with additional changes in https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/pull/258
2025-03-03 13:45:08 -08:00
rekhoff 25689c14bd Update C# server and client quickstart examples to match tutorial document. (#258)
# Description of Changes
Update the C# server and client SDK quickstart-chat example to match the
code presented in the tutorial, as of
https://github.com/clockworklabs/spacetime-docs/pull/170 .
Also renamed the directory from `quickstart` to `quickstart-chat` in
order to be more specific.

# API and ABI breaking changes

If this is an API or ABI breaking change, please apply the
corresponding GitHub label.

# Expected complexity level and risk

1

## Requires SpacetimeDB PRs
SpacetimeDB branch name: master
com.clockworklabs.spacetimedbsdk: master

# Testing

*Describe any testing you've done, and any testing you'd like your
reviewers to do,
so that you're confident that all the changes work as expected!*

- [x] Ran `quickstart-chat` C# server and C# client locally and:
  - Set my name.
  - Sent a message.
  - Restarted and viewed the message backlog.
  - Sent a few more messages.
- Exited, deleted my local token, restarted and connected as a new
identity.
  - Set my new identity's name.
  - Sent a message as my new identity.

---------

Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
Co-authored-by: John Detter <no-reply@boppygames.gg>
Co-authored-by: james gilles <jameshgilles@gmail.com>
2025-03-03 13:35:30 -08:00
rekhoff 84acba23a4 Updates to blackhol.io tutorials (#194)
Updates to blackholio tutorials

Page 3 - Fix duplicate code in Rust "disconnect reducer" instructions.
Page 4 - Update use of `CallerIdentity` to `Sender` in C# instructions.
2025-03-03 12:46:50 -08:00
Phoebe Goldman 11b45c1d22 How-to: Incremental Migrations (#127)
* How-to: Incremental Migrations

This commit adds a how-to guide for defining "incremental migrations,"
a strategy for updating the schema of a database while maintaining compatibility
with outdated clients and without requiring a manual migration.

The code is not on GitHub yet,
as I'd like review on my choice of example before pushing the repository.
As such, the links to the code at the bottom of the new document are broken.

* Updates following review
2025-03-03 15:27:33 -05:00
Noa 51c833b95e Remove errant backslash that got into the 'please add to path' message (#2333) 2025-03-03 18:17:29 +00:00
Phoebe Goldman fdfe68ae14 Update Rust SDK ref, and also a few small fixes (#172)
* *Must* accept `ReducerContext`, not *may*

* Small fixes to Rust docs for database Identity and rename Address

* Update Rust SDK reference for various 1.0 API changes

* Fix broken links

* TOC and TODOs

* Rename `Address` to `ConnectionId` in index, fix some links

* Minor fixes I found while working through converting this to typescript

* Link to SQL ref

* Additional fixups found while rewriting TS ref

* Remove references to BitCraftMini

We no longer use this as an example.

Also, I'm pretty sure we stopped using that name ages ago.

* No UB from mixing `subscribe` and `subscribe_to_all_tables`

Co-authored-by: joshua-spacetime <josh@clockworklabs.io>

* Update TypeScript SDK reference (#181)

* Begin updating TypeScript SDK ref to match the new rust one

* Link to SQL ref from `subscribe` method

* Fill in the rest of the TypeScript SDK ref

* Fix copy-paste error: `subscribeToAllTables` should be camelCase

Co-authored-by: joshua-spacetime <josh@clockworklabs.io>

* Copy change from Rust SDK docs: no UB in `subscribeToAllTables`

Co-authored-by: joshua-spacetime <josh@clockworklabs.io>

* Fix casing of `withModuleName`

Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>

* Address Tyler's review

---------

Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>

---------

Co-authored-by: joshua-spacetime <josh@clockworklabs.io>
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
2025-03-03 12:58:32 -05:00
Phoebe Goldman 0bb8316653 Minor updates to the Rust client quickstart (#2318) 2025-03-03 15:40:08 +00:00
John Detter 01adcc76ce Bump version for release (#148)
Co-authored-by: John Detter <no-reply@boppygames.gg>
2025-02-28 16:47:35 -06:00