mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-05-09 17:19:45 -04:00
45bc0451ac
# Description of Changes This fixes a couple issues: - We are now using the `SendDroppedRows` flag for unsubscribe messages. - We parse reducer errors as strings now when throwing errors. - `useTable` was not doing client-side filtering correctly for object types (Timestamp, ConnectionId, Identity) - `useTable` was not always recomputing snapshots when it needed to, because it couldn't distinguish between two events if they were caused by reducers called by other connections (or two subscription applied events). All events how have a client-generated id attached, so we can tell if there was actually a new event processed. Once we have per-query storage, we can purge the client-side filtering code. This also adds some tests to cover these cases, and includes a bit of refactoring. Another change added here is to use `SenderError` in the typescript SDK for errors that were returned by reducers (which throw `SenderError` in typescript modules). # Expected complexity level and risk 1 # Testing This has some new tests added. Much of the `useTable` logic was tested manually.
30 lines
1.0 KiB
JSON
30 lines
1.0 KiB
JSON
{
|
|
"name": "@clockworklabs/angular-ts",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "ng serve",
|
|
"build": "ng build",
|
|
"generate": "cargo run -p gen-bindings -- --out-dir src/module_bindings --module-path spacetimedb && prettier --write src/module_bindings",
|
|
"spacetime:generate": "spacetime generate --lang typescript --out-dir src/module_bindings --project-path spacetimedb",
|
|
"spacetime:publish:local": "spacetime publish --project-path spacetimedb --server local",
|
|
"spacetime:publish": "spacetime publish --project-path spacetimedb --server maincloud"
|
|
},
|
|
"dependencies": {
|
|
"@angular/common": "^21.1.1",
|
|
"@angular/compiler": "^21.1.1",
|
|
"@angular/core": "^21.1.1",
|
|
"@angular/platform-browser": "^21.1.1",
|
|
"rxjs": "~7.8.0",
|
|
"spacetimedb": "workspace:*",
|
|
"tslib": "^2.3.0"
|
|
},
|
|
"devDependencies": {
|
|
"@angular/build": "^21.1.1",
|
|
"@angular/cli": "^21.1.1",
|
|
"@angular/compiler-cli": "^21.1.0",
|
|
"typescript": "~5.9.2"
|
|
}
|
|
}
|