Commit Graph
17 Commits
Author SHA1 Message Date
Brandon Vandegrift 1af71e7154 (wasm) re-export helpful length constants 2023-09-24 14:47:22 -04:00
Brandon Vandegrift 80afa19678 (wasm) Treat arbitrary byte data as Uint8Array, instead of base64url marshalling. 2023-09-20 00:46:45 -04:00
Brandon Vandegrift 40a1c9933c (wasm) webdriver-based tests for JS/TS apis, update README 2023-09-17 18:17:24 -04:00
Brandon Vandegrift ac8bbe9a83 Replace .unwrap() with ? operator 2023-09-12 08:06:49 -04:00
Brandon Vandegrift c2c607efac (wasm) Better TS types for serialized structs, RoutingContext++, more crypto fns 2023-09-11 18:42:05 -04:00
Brandon Vandegrift 5aeda006a4 (wasm) basic working unit tests 2023-09-04 22:13:58 -04:00
Brandon Vandegrift 6b7301a963 (wasm) Improved memory management, track by struct so drop works, use --weak-ref for wasm-bindgen 2023-09-04 17:34:49 -04:00
Brandon Vandegrift 93963e9d08 (wasm) Cleanup and refactoring, add TableDB transactions, copy over docs for JSDoc. 2023-09-04 14:04:57 -04:00
Brandon Vandegrift ca11f6075d (wasm) Add VeilidCrypto class, refine interfaces for VeilidRoutingContext 2023-09-03 23:27:20 -04:00
Brandon Vandegrift c5d7922fc5 Add VeilidRoutingContext class for WASM 2023-09-03 23:27:20 -04:00
Brandon Vandegrift 779532b624 Add new VeilidTable and VeilidClient to WASM API
These new interfaces have been reworked (compared to the original API) to emit (mostly) proper TypeScript types.
2023-09-03 23:27:08 -04:00
Brandon Vandegrift 0abc9a8b45 Revert breaking changes to WASM API 2023-09-03 23:27:08 -04:00
Brandon Vandegrift 1b20037053 Setup for TypeScript type gen for WASM using Tsify
- Includes breaking changes to the WASM API surface, since it now accepts objects instead of stringified JSON.
2023-09-03 23:27:08 -04:00
Brandon Vandegrift 1532db70b7 Add .json file extension to jsonschema output files 2023-09-02 14:17:43 -04:00
Brandon Vandegrift c08b28b240 Fix setup_linux.sh to use scripts from the parent directory 2023-08-19 12:29:30 -04:00
Brandon Vandegrift 18dfe99e09 use as_human_base64 to serialize VeilidRouteBlob 2023-08-16 10:29:59 -04:00
Brandon Vandegrift fae12b234d Fix veilid-wasm errors so it compiles, emit TypeScript types.
- `wrap_api_future` function did not exist, so I used `wrap_api_future_plain` since the return type appears to be a base64 encoded string.
- Argument order for `create_dht_record` was incorrectly swapped.
- `veilid_core::json_as_base64` does not exist, don't exactly know what to replace it with for serde serialization, but I commented it out for now.
- Removed `--no-typescript` flag from `wasm-buildgen` so that TypeScript types are emitted.
2023-08-15 13:47:26 -04:00