Mazdak Farrokhzad
e57e5896ca
Don't use BuiltinType.I/U128, use AlgebraicType.I/U128 ( #116 )
...
## Description of Changes
Required to make "SDK Tests" pass in
https://github.com/clockworklabs/SpacetimeDB/pull/1559 .
## API
Not breaking.
## Requires SpacetimeDB PRs
- https://github.com/clockworklabs/SpacetimeDB/pull/1559
---------
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com >
2024-08-29 09:32:11 -07:00
Zeke Foppa
e28849e22c
Revert master to a stable state ( #123 )
...
## Description of Changes
Revert `master` to the original state of this PR:
https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk/issues/53 .
We should prevent merging into `master` from now on, since the
repositories are now merged.
## 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
I loaded a bitcraft world and ran around.
I used the versions listed here:
https://github.com/clockworklabs/com.clockworklabs.spacetimedbsdk-archive/pull/57
---------
Co-authored-by: Ingvar Stepanyan <me@rreverser.com >
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com >
2024-08-29 12:21:48 -04:00
james gilles
98faf7d4e1
Add backwards-compatible validation for RawModuleDefV8. ( #1606 )
2024-08-29 10:10:53 +00:00
Ingvar Stepanyan
cb59ebac99
Merge Unity SDK into C# SDK ( #117 )
...
## Description of Changes
This creates a frankenstein monster of a repo that is compatible with
both .NET / MSBuild as well as can be consumed as a Unity package.
- `.meta` files, Unity manifests and Unity README were copied over from
the Unity repo.
- `examples` and `tests` folders were renamed to `examples~` and
`tests~` correspondingly, as the `~` suffix is the only way to get
entire folders ignored by Unity.
- MSBuild was configured to change `bin` and `obj` to `bin~` and `obj~`
for the same reasons. This doesn't matter for the Git repo, but helpful
for local development where you don't want Unity to try and load local
DLL artifacts.
- NuGet was configured to restore Unity-compatible NuGet DLLs (and
delete others) in a local folder and committed to the repo - so, from
now on, we can easily update them by modifying `.csproj` and via
standard `dotnet restore` / `dotnet build`.
After this change, this repo should be compatible with both .NET CLI
(e.g. `dotnet test`) as well as consumable from Unity, but due to amount
of metadata changes, it needs further testing before we merge repos
properly.
Fixes #114 .
## 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 >
2024-08-28 11:13:33 -07:00
Kim Altintop
bba3572752
[WASM ABI 1.0] Fix bytes_source_read ( #1646 )
2024-08-28 17:37:29 +00:00
Mazdak Farrokhzad
c26c65873b
WASM ABI: add datastore_table_row_count ( #1636 )
2024-08-27 23:02:18 +00:00
Mazdak Farrokhzad
2b69583f76
WASM ABI: get_table_id -> table_id_from_name ( #1634 )
2024-08-27 22:33:47 +00:00
Mazdak Farrokhzad
1dd1e633f3
WASM ABI: implement row_iter_bsatn_advance & row_iter_bsatn_close ( #1622 )
2024-08-27 22:01:06 +00:00
Ingvar Stepanyan
c88a6ce366
Fix ptr mutability of some new C# FFIs ( #1645 )
2024-08-27 21:53:39 +00:00
james gilles
6e6bee2a9c
ABI v9 validation code ( #1572 )
...
Signed-off-by: james gilles <jameshgilles@gmail.com >
2024-08-27 20:02:26 +00:00
Mazdak Farrokhzad
4c086fef96
[WASM ABI 1.0] impl __call_reducer__ & __describe_module__ using bytes_sink_write ( #1615 )
2024-08-27 15:48:40 +00:00
Kim Altintop
7a071acec7
smoketests: Test unauthorized publish without -c ( #1632 )
2024-08-27 09:40:08 +00:00
Ingvar Stepanyan
b4c7c89239
NFC: use record for BigInt equality and hash ( #1633 )
2024-08-26 10:10:49 +00:00
Noa
c577d509c6
Add volatile_nonatomic_schedule_immediate ( #1612 )
2024-08-23 18:38:07 +00:00
John Detter
4e530a55c2
Updated docker internal port to 3000 ( #1626 )
...
Co-authored-by: John Detter <no-reply@boppygames.gg >
2024-08-23 18:16:18 +00:00
Shubham Mishra
9380eb6745
Dedup schedueler queue ( #1587 )
2024-08-22 17:51:31 +00:00
james gilles
747eb71830
Make ScheduleAt special + Typespace::is_valid_for_client_code_generation ( #1590 )
2024-08-22 17:05:04 +00:00
Puru Vijay
5ae2742b14
chore: Changeset #66 ( #96 )
2024-08-22 19:14:34 +05:30
Puru Vijay
ea461c7984
feat: changelog-github ( #95 )
2024-08-21 23:58:15 +05:30
Ingvar Stepanyan
9f1b6dc254
NFC: enforce style for C# locally and on CI ( #1567 )
2024-08-21 16:21:45 +00:00
Puru Vijay
8d664fde2b
Add changeset for #62 ( #92 )
2024-08-21 20:43:40 +05:30
Puru Vijay
07eb12ccf9
docs: Publishing and release ( #94 )
2024-08-21 20:43:06 +05:30
Puru Vijay
ec246419f2
fix: .on and .off types ( #91 )
...
* Push
* Add changeset
2024-08-21 17:28:39 +05:30
Puru Vijay
4071c3b91a
fix: Remove registry ( #90 )
2024-08-21 16:40:16 +05:30
Puru Vijay
19dcf58a1f
fix: Release action ( #89 )
2024-08-21 16:35:51 +05:30
Puru Vijay
e4fc463464
Modernize ( #52 )
...
* Lint script
* modernize: pnpm & prettier (#51 )
* Push
* Push
* Run prettier
* Prettier stuff
* modernize: Remove Husky & pre-commit (#53 )
* modernize: tsup (#54 )
* Push
* jest
* modernize: jest to vitest (#55 )
* modernize: pnpm workspace (#56 )
* Monorepo
* Readme
* Move tsconfig
* Fix test
* modernize: CRA -> Vite apps (#57 )
* Quickstart
* test app too
* Run pnpm
* Remove eslint files
* Format
* modernize: ES2017 classes (#58 )
* modernize: in-house EventEmitter (#64 )
* Push
* Undo min change
* modernize: undici for WebSocket in Node (#59 )
* Use undici, remove other unneeded dependencies
* pnpm install
* Bundle everything
* Move everything to devDependency
* headers object
* Bump version to 0.11.0
* Push
* Hmm not working still
* Add undici to peerDependencies
* Measure size
* Push
* Fix formatting
* Working on node!!
---------
Co-authored-by: Zeke Foppa <github.com/bfops>
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com >
* modernize: Single output (#68 )
* modernize: quickstart, move server into client (#69 )
* Push
* Run pnpm install
* modernize: Engines field (#70 )
* modernize: Continuous Releases (#71 )
* Add pkg.pr.new
* Fix directory
* modernize: Changesets;provenance (#72 )
* Push
* Push
* pnpm install
* Any update
* modernize: Split lint and test GH actions (#73 )
* Push
* Forgot to rename
* We only care about Lint at commit level
* modernize: pkg.pr.new compact mode (#75 )
* modernize: tweak prettier configuration (#74 )
* docs: Undici as peerDependency
* modernize: webpackIgnore undici (#77 )
* Push
* Webpackignore
* modernize: Conditional browser build (#79 )
* Push
* Remove webpackIgnore
* fix: Remove obsolete comment
* modernize: isolatedDeclarations;de-cyclic imports (#81 )
* Push
* Fix test
---------
Co-authored-by: Zeke Foppa <196249+bfops@users.noreply.github.com >
2024-08-21 14:19:16 +05:30
joshua-spacetime
8282b674b5
fix: Always remember to release a read only tx ( #1613 )
2024-08-20 21:31:05 +00:00
james gilles
9e178bd772
Placate some clippy errors in snapshot ( #1611 )
2024-08-20 16:44:19 +00:00
Mazdak Farrokhzad
9ea5a2f243
[WASM ABI 1.0] impl __call_reducer__ using bytes_source_read ( #1609 )
2024-08-20 09:33:29 +00:00
Mazdak Farrokhzad
3be5c83d99
[WASM ABI 1.0] __call_reducer__ receives Identity & Address by value ( #1607 )
...
Signed-off-by: Mazdak Farrokhzad <twingoow@gmail.com >
Co-authored-by: Ingvar Stepanyan <me@rreverser.com >
Co-authored-by: Noa <coolreader18@gmail.com >
2024-08-19 22:20:57 +00:00
Mazdak Farrokhzad
1ca9b1a933
[WASM ABI 1.0] Change ColId from u32 to u16 ( #1597 )
2024-08-19 17:56:28 +00:00
Mazdak Farrokhzad
e730b53953
Merge pull request #62 from clockworklabs/centril/flatten-at
...
Flatten AlgebraicType & Simplify some codegen
2024-08-19 19:44:54 +02:00
Puru Vijay
a7b98108b4
Merge branch 'main' into centril/flatten-at
2024-08-19 18:32:15 +05:30
Kurtis Mullins
96b8d43932
Fix builds for MacOS amd64 platform ( #1598 )
2024-08-17 03:33:09 +00:00
Ingvar Stepanyan
16ecf991f0
Verify Unity compatibility in the shared C# codegen ( #1576 )
2024-08-15 20:44:43 +00:00
Kurtis Mullins
2c38913437
[CI] Do not use branch names when publishing container images ( #1583 )
2024-08-15 17:02:48 +00:00
Mazdak Farrokhzad
6a08674ccb
Allow empty ColList ( #1588 )
2024-08-15 16:08:51 +00:00
james gilles
b1f80e0ffe
Preliminary Identifier validation ( #1584 )
2024-08-14 18:00:26 +00:00
Halu
d6daef89f7
Fix: synchronous ws processing ( #66 )
...
Binary ws defaults to using "blob" data types which requires async processing to convert to arrayBuffer. This async process was causing out of order message processing as the conversions to buffer occasionally resolved out of order. This whole process and issue can be avoided by retrieving arrayBuffer directly from the ws via the "binaryType" property.
https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/binaryType
2024-08-14 18:28:41 +05:30
james gilles
7057d9fb1f
Add helpers and change CollectAllErrors to be more composable ( #1586 )
2024-08-13 20:26:08 +00:00
Mazdak Farrokhzad
996633bebc
Nix Primitives.cs - types now defined in main repo ( #120 )
...
## Description of Changes
These types have been moved to the main repo, where they are used by
bindings-csharp as well.
## Requires SpacetimeDB PRs
- https://github.com/clockworklabs/SpacetimeDB/pull/1477
---------
Co-authored-by: Ingvar Stepanyan <me@rreverser.com >
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com >
2024-08-13 21:02:39 +01:00
Ingvar Stepanyan
09f96ffe6d
C#: disable verbose test output in console ( #1570 )
2024-08-13 18:56:08 +00:00
Ingvar Stepanyan
01d4ed163f
Fix [iu](128|256) BSATN implementations in C# ( #1582 )
2024-08-13 14:07:53 +00:00
Shubham Mishra
c4759844e3
scheduler table doc update ( #77 )
2024-08-09 16:28:49 -07:00
Tyler Cloutier
efcc979a6f
Update quickstart.md ( #74 )
2024-08-09 16:28:38 -07:00
Zeke Foppa
2b7b9ff350
Bump version to 0.12.0 ( #1578 )
...
Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com >
2024-08-09 19:10:53 +00:00
Kim Altintop
ba4546c5a2
core: Use Program instead of (Hash, Box<[u8]>) ( #1558 )
...
Signed-off-by: Kim Altintop <kim@eagain.io >
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com >
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com >
2024-08-09 01:28:37 +00:00
Mazdak Farrokhzad
1e8e18d74b
Add support for I256 and U256 ( #1477 )
2024-08-08 18:40:35 +00:00
james gilles
cbacc44f44
Change ResolveRefs to return a Result rather than an Option ( #1565 )
...
Signed-off-by: james gilles <jameshgilles@gmail.com >
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com >
2024-08-07 19:28:46 +00:00
james gilles
1b48555a42
Add lib::db::{column_ordering, raw_def::v9} ( #1542 )
...
Signed-off-by: james gilles <jameshgilles@gmail.com >
Co-authored-by: Mazdak Farrokhzad <twingoow@gmail.com >
2024-08-07 19:13:18 +00:00