Skip to content

Conversation

JulienLavocat
Copy link
Contributor

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

Testing

Write instructions for a test that you performed for this PR

  • Describe a test for this PR that you have completed

NateTheDev1 and others added 30 commits March 29, 2023 16:04
It allows to subscribe to queries, like:

    client.subscribe("SELECT * FROM Player");
* Add some client tests

This adds tests for the client and the ability to supply a test adapter.
I also tried to mock WS, but for some reason it didn't work and I
figured out making our own adapter is simple enough.
* Remove package-log.json

We already have yarn lock, so no need to have both

* Add Prettier

* Format code using prettier

* Add husky and pretty-quick

This will ensure formatting before committing
Remove identity from credentials (not needed to log in)

Co-authored-by: Derek Brinkmann <[email protected]>
We support primaryKey fields now, thus we can also perform an update
operation on the client by utilizing the primaryKey
Added manual ws table connectors
jsdt and others added 26 commits February 26, 2025 08:50
* Regen the api types from the server.

* fmt the client api code

* Use the multi versions of subscription messages.

* Add ref counting of rows and delay callbacks.

* WIP debugging tests.

* Regen test app

* A lot of changes.

* Use new subscription api.

* remove commented out code.

* Fix update and cleanup.

* Fix path to spacetimedb

* Run tests before checking diff in CI

* Update packages/sdk/tests/db_connection.test.ts

Co-authored-by: Tyler Cloutier <[email protected]>

* Update packages/sdk/tests/db_connection.test.ts

Co-authored-by: Tyler Cloutier <[email protected]>

* Update packages/sdk/tests/db_connection.test.ts

Co-authored-by: Tyler Cloutier <[email protected]>

* Update packages/sdk/tests/db_connection.test.ts

Co-authored-by: Tyler Cloutier <[email protected]>

* Various cleanups.

* Comment out the CI test for the generated code being up to date.

* Regen.

* Add sed command.

---------

Co-authored-by: Tyler Cloutier <[email protected]>
Co-authored-by: John Detter <[email protected]>
* Fix some subscription lifecycle issues.

* remove the subscription after an error.
Co-authored-by: John Detter <[email protected]>
Co-authored-by: Zeke Foppa <[email protected]>
Co-authored-by: Zeke Foppa <[email protected]>
* Make ws connection fail when token is not verified

* add changeset

---------

Co-authored-by: Jeffrey Dallatezza <[email protected]>
* Allow spacetimedb sdk to work when spacetimedb url is more than a host name.

* run pnpm format

---------

Co-authored-by: DeveloperChaseLewis <[email protected]>
* Run lint for PRs.

* Fix dir

* Also hide changes to generated test app files.

* Only run on pushes to main.
Co-authored-by: Zeke Foppa <[email protected]>
* Version Packages

* revert major version bump

* changelog

* fix changelog

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Zeke Foppa <[email protected]>
* Add semver parsing.

* Add a minimum version check.

* Use qmark syntax.

* Regen quickstart-chat bindings with 1.2.0 cli

* Bump minimum codegen version.

* Regen test app with 1.2
* Test quickstart-chat in CI

* fix?

* ignore diffs containing SpacetimeDB commit

* prettier config

* fix?

* [REVERT THIS TEST COMMIT] add diff to module bindings

* revert previous test commit

* [REVERT THIS TEST COMMIT] introduce a typechecking error

* revert previous test commit

* tiny review

---------

Co-authored-by: Zeke Foppa <[email protected]>
* Get it working with base64 encoded row ids, and start adding the better way for indexing.

* Use concat to avoid creating too many arguments for big updates.

* Use primitives as rowIds

* Remove OperationsMap

* Add some table cache tests and regen stuff.

* Cleanup

* revert accidental cargo change.

* Add semver parsing.

* Add a minimum version check.

* Use qmark syntax.

* Regen quickstart-chat bindings with 1.2.0 cli

* Bump minimum codegen version.

* Regen test app with 1.2
Co-authored-by: Zeke Foppa <[email protected]>
Copy link

changeset-bot bot commented Jul 21, 2025

⚠️ No Changeset found

Latest commit: 29d9a91

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

pkg-pr-new bot commented Jul 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@clockworklabs/spacetimedb-sdk@202

commit: 29d9a91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.