John Detter
31dedc3229
Renamed onSubscriptionUpdate to onSubscriptionApplied ( #27 )
...
Co-authored-by: John Detter <no-reply@boppygames.gg >
2023-06-16 12:09:32 -05:00
SteveBoytsun
85b8020398
On before delete ( #24 )
...
* Deserializing reducer args before table updates so they can be accessed from callbacks
* Reducer arguments in table events
* Adding OnBeforeDelete event to tables
---------
Co-authored-by: Steve <steve@codefics.com >
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com >
2023-06-16 09:32:47 -05:00
SteveBoytsun
93827106cf
Reducer event ( #28 )
...
* Deserializing reducer args before table updates so they can be accessed from callbacks
* Reducer arguments in table events
* Adding OnBeforeDelete event to tables
* Renaming ReducerCallInfo to ReducerEvent
* Removed extra onSubscriptionUpdate
---------
Co-authored-by: Steve <steve@codefics.com >
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com >
2023-06-16 09:28:17 -05:00
John Detter
cf9c5b02e4
Fixed API ( #26 )
...
Co-authored-by: John Detter <no-reply@boppygames.gg >
2023-06-15 15:05:54 -05:00
SteveBoytsun
7737b9882b
Changed guid ( #25 )
...
Co-authored-by: Steve <steve@codefics.com >
2023-06-15 11:26:59 -05:00
SteveBoytsun
e806ee3dbf
Reducer args in table updates 2 ( #23 )
...
* Deserializing reducer args before table updates so they can be accessed from callbacks
* Reducer arguments in table events
* Removed redundant onSubscriptionUpdate
---------
Co-authored-by: Steve <steve@codefics.com >
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com >
Co-authored-by: John Detter <no-reply@boppygames.gg >
2023-06-15 11:04:17 -05:00
SteveBoytsun
91b3e23f32
Deserializing reducer args before table updates so they can be accessed from callbacks ( #20 )
...
Co-authored-by: Steve <steve@codefics.com >
2023-06-14 10:13:03 -05:00
dbrinkmanncw
b1b96898b7
Add onSubscriptionUpdate callback ( #21 )
...
* Add onSubscriptionUpdate callback
* Remove unnecesary onTransactionComplete
---------
Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net >
2023-06-14 10:11:22 -05:00
dbrinkmanncw
2a6e037296
Fix compile error in sdk ( #22 )
...
Co-authored-by: Derek Brinkmann <dbrinkmann@citadelstudios.net >
2023-06-13 14:07:18 -05:00
SteveBoytsun
5e63631614
Adding event parameter to table callbacks ( #19 )
...
* Adding event parameter to table callbacks
* Reverted a namespace change
---------
Co-authored-by: Steve <steve@codefics.com >
Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com >
2023-06-08 19:55:25 -03:00
John Detter
c31362939d
SpacetimeDB SDK Version 0.4.1 ( #17 )
...
* Pulled SpacetimeUnitySDK from the BitCraft project
* Removed unused logs
* Removed primary key functionality
* Fix compilation issues with older version of C#
---------
Co-authored-by: John <no-reply@boppygames.gg >
2023-06-07 20:24:00 -07:00
John Detter
63f52395b2
Primary Key Impl ( #18 )
...
* Pulled SpacetimeUnitySDK from the BitCraft project
* Removed unused logs
* Removed primary key functionality
* Fix compilation issues with older version of C#
* Primary key client implementation
* Another row update fix
---------
Co-authored-by: John <no-reply@boppygames.gg >
2023-06-07 20:23:52 -07:00
Piotr Sarnacki
3b46880567
0.4.0-next.0
2023-06-01 15:42:12 +02:00
Piotr Sarnacki
9372209456
Change version to 0.4.0-alpha
2023-05-23 14:12:24 +02:00
Piotr Sarnacki
00782f2b0c
Bump version to 0.4.0
2023-05-16 11:27:13 +02:00
Piotr Sarnacki
7b1eb1b155
New address for subscribing
2023-05-16 11:26:40 +02:00
John Detter
a9b9bfc735
State Diffs ( #16 )
...
* Copied changes from BitCraft
* Applied state diff changes
* State diffs complete
* Compilation fix
* Fix build issues
---------
Co-authored-by: John Detter <no-reply@boppygames.gg >
2023-04-21 13:13:54 -05:00
Piotr Sarnacki
84ccf87955
Add test workflow ( #7 )
2023-04-13 17:00:11 +02:00
Piotr Sarnacki
9e22228744
Prettier + husky + pretty-quick ( #6 )
...
* 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
2023-04-13 16:57:51 +02:00
Piotr Sarnacki
1e52e71639
Add some client tests ( #5 )
...
* 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.
2023-04-13 16:57:03 +02:00
Piotr Sarnacki
535ae3d38a
Bump to 0.3.0
2023-04-13 10:39:23 +02:00
Piotr Sarnacki
9092f773f8
Add client.subscribe() method
...
It allows to subscribe to queries, like:
client.subscribe("SELECT * FROM Player");
2023-04-13 10:39:23 +02:00
Piotr Sarnacki
00d7aec425
Change package name to spacetimedb-sdk and bump to 0.2.0
2023-04-13 10:39:23 +02:00
Piotr Sarnacki
5be82548e2
Change package name to spacetimedb-sdk
2023-04-13 10:39:23 +02:00
John Detter
3d2a2a87a8
Use Network Thread for Processing DB Rows ( #14 )
...
* Several updates to the way ClientCache + processing updates works
* Client cache changes working
* Removed log statements
---------
Co-authored-by: John Detter <no-reply@boppygames.gg >
2023-04-07 14:51:59 -05:00
John Detter
5839fd4c61
GetEntries now returns both AlgebraicValue and object as a tuple ( #15 )
...
Co-authored-by: John Detter <no-reply@boppygames.gg >
2023-04-07 14:51:50 -05:00
Nathaniel Richards
f592a4cb9f
Merge pull request #3 from clockworklabs/docs-update-1
...
Updating documentation
2023-03-31 12:16:36 -04:00
Nathaniel Richards
41d9542cf8
Updating documentation
2023-03-31 12:16:28 -04:00
Nathaniel Richards
02cf96c9dd
Merge pull request #2 from clockworklabs/client-additions
...
Client additions
2023-03-31 12:13:57 -04:00
Nathaniel Richards
63e5060186
Finished upA
2023-03-30 12:21:14 -04:00
Nathaniel Richards
c9d5e43e30
Fixed module to also work with react modules
2023-03-30 11:54:41 -04:00
Nathaniel Richards
843d810ce0
Added a disconnect method
2023-03-30 11:22:00 -04:00
NateTheDev1
8be87871fa
:Merge branch 'main' into client-additions
2023-03-29 16:07:47 -04:00
Nathaniel Richards
93feb5c926
Merge pull request #1 from clockworklabs/drogus/readme
...
Add README.md
2023-03-29 16:04:16 -04:00
NateTheDev1
818e15a69e
Added helper text for users
2023-03-29 15:21:13 -04:00
NateTheDev1
cfa45328b4
Changed connection to connect()
2023-03-29 15:12:22 -04:00
Piotr Sarnacki
6a53016fda
Bump version
2023-03-29 20:56:54 +02:00
Piotr Sarnacki
658ee19887
Allow to include protocol in the host
2023-03-29 20:56:15 +02:00
Piotr Sarnacki
337316ba90
Add asBoolean methods working the same as asBool
...
In the generated code we use asBoolean, so this will make the autogen'd
code work without having to release a new version
2023-03-29 20:27:38 +02:00
John
102060100d
Fixing small typos
2023-03-28 12:59:05 -05:00
Piotr Sarnacki
6fd722e882
Add README.md
2023-03-27 13:06:01 +02:00
Piotr Sarnacki
682f869028
Updatre description and repo settings
2023-03-27 12:32:55 +02:00
John Detter
fdca2f56a9
Automatically find Unity on macOS ( #12 )
...
Co-authored-by: John Detter <no-reply@boppygames.gg >
2023-03-23 19:41:47 -07:00
Piotr Sarnacki
1c3678e5b7
Remove unneeded file
2023-03-24 01:24:05 +01:00
Piotr Sarnacki
fc1224a033
Rework window/global, simplify config
2023-03-24 00:16:53 +01:00
Piotr Sarnacki
8d277e2339
Bump to 0.1.1
2023-03-23 19:09:17 +01:00
Piotr Sarnacki
c20250a2e0
Bump to 0.1.0
2023-03-23 19:07:09 +01:00
Piotr Sarnacki
1359206944
Add onConnect event
2023-03-23 19:06:45 +01:00
John Detter
ac573a0d8e
Fix compilation issue ( #11 )
...
Co-authored-by: John <no-reply@boppygames.gg >
2023-03-23 09:55:06 -07:00
Piotr Sarnacki
63b315262f
Add .npmignore
2023-03-22 18:21:52 +01:00