Commit Graph

150 Commits

Author SHA1 Message Date
Rivka Segan
7c0a06b630 Clarify that WASM bootstrap uses ws, not wss or DNS
This fixes the logic error of "bootstrapping via TXT record also will
work."

This also adds a clarification that, because DNS is unavailable, the
only option today is ws:// (Veilid currently does not allow wss://
with an IP address. Specifically, try_wss will fail with
apibail_parse_error! and then RPCError::map_protocol.) This
clarification saves time for any users who would otherwise be tempted
to get a certificate for an IP address (at least one free Certificate
Authority supports this, and the resulting certificate can be added
to a veilid-server configuration.)

try_wss failure:
bd4b4233bf/veilid-core/src/network_manager/types/dial_info/mod.rs (L199-L202)
bd4b4233bf/veilid-core/src/rpc_processor/coders/dial_info.rs (L52-L56)

see also:
bd4b4233bf/veilid-core/src/network_manager/types/dial_info/mod.rs (L58-L59)

In addition, several spelling errors are fixed.
2023-09-27 05:46:22 +00:00
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
Christien Rioux
a7b073cddb Merge branch 'feature/wasm-tests' into 'main'
(wasm) webdriver-based tests for JS/TS apis

See merge request veilid/veilid!175
2023-09-19 01:03:08 +00:00
Christien Rioux
563b80e31c Merge branch 'clippy-fixes' into 'main'
Clippy fixes

See merge request veilid/veilid!195
2023-09-19 00:43:41 +00:00
Christien Rioux
20451af880 more clippy 2023-09-18 19:49:57 -04:00
Christien Rioux
6438a64fc7 clippy work 2023-09-17 19:37:02 -04:00
Brandon Vandegrift
40a1c9933c (wasm) webdriver-based tests for JS/TS apis, update README 2023-09-17 18:17:24 -04:00
TC Johnson
fa13f95a10
Version update: v0.2.2 → v0.2.3
- Security fix for WS denial of service
- Support for latest Rust 1.72
2023-09-17 13:21:57 -05:00
John Smith
d60c296303 cargo upgrades 2023-09-16 21:56:19 -04:00
TC Johnson
06c0abead8
Version update: v0.2.1 → v0.2.2 2023-09-16 17:32:16 -05:00
Christien Rioux
960a4cb964 Revert "version bump fix"
This reverts commit 2d291b86b6.
2023-09-16 16:51:59 -04:00
Christien Rioux
ba72aa9dd3 version bump fix 2023-09-16 16:51:59 -04:00
Christien Rioux
ad47e400ed build fixes 2023-09-16 16:51:58 -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
Christien Rioux
9aeec3cfa8 build fixes and cleanup 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
TC Johnson
65826b219b
Version update: v0.2.0 → v0.2.1 2023-09-03 19:45:12 -05:00
Christien Rioux
9f4ac0e45f
Merge branch 'feature-private-builds' into 'main'
Increase privacy for WASM release builds

See merge request veilid/veilid!163
2023-09-03 00:28:03 +00:00
Christien Rioux
a77f80a8a9 repo fixes 2023-09-02 15:47:19 -04:00
TC Johnson
2c46a159a3
Version update: v0.1.10 → v0.2.0 2023-09-02 09:45:56 -05:00
Christien Rioux
90772728c2 bumpversion fixes 2023-09-02 10:41:59 -04:00
Vanya Agnesandra
e75af7d9b4
Redact usernames and user project structure from wasm panic messages 2023-08-30 13:07:48 -04:00
Christien Rioux
c8fd523a91 fix wasm 2023-08-29 15:52:47 -05:00
Christien Rioux
e302b764d0 docs and tests work 2023-08-29 15:15:47 -05:00
Christien Rioux
e504da2564 xfer 2023-08-22 15:11:45 -04:00
TC Johnson
513116e672
Version update: v0.1.9 → v0.1.10 2023-08-20 11:37:18 -05:00
TC Johnson
dfeecdde0d
Version update: v0.1.8 → v0.1.9 2023-08-19 17:35:52 -05:00
TC Johnson
04c26e48f0 'Version update: 0.1.7 → 0.1.8' 2023-08-18 20:27:01 -05: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
John Smith
8a287d13ef 0.1.7 2023-07-30 19:33:58 -04:00
Christien Rioux
00aad2c728 bugfixes 2023-07-25 01:04:22 -04:00
John Smith
1861650d44 0.1.6 2023-07-22 16:28:05 -04:00
TC Johnson
4951e983c7
Release 0.1.5 2023-07-22 12:02:10 -05:00
Christien Rioux
fa45f491eb 0.1.4 2023-07-19 21:15:54 -04:00
John Smith
4702a33a4a licensing 2023-07-19 12:48:44 -04:00
John Smith
fff6742c6f version bump 2023-07-17 17:53:42 -04:00
Christien Rioux
217a2470b0 first version bump 2023-07-16 15:04:00 -04:00
Christien Rioux
19f384ab33 refactor create dht value 2023-07-15 19:35:22 -04:00
John Smith
b5906a52bc fix wasm 2023-07-04 15:34:48 -05:00
John Smith
dfb4eefd92 switch out capabilities 2023-07-03 15:10:28 -04:00
John Smith
b6e055e47d test work 2023-06-18 18:47:39 -04:00
John Smith
14ba85efda fixes 2023-06-16 11:57:55 -04:00
John Smith
0a890c8707 removing dev branch, many changes 2023-05-29 19:24:57 +00:00
John Smith
dae2e7c10f xfer 2023-03-13 17:57:51 -04:00
John Smith
0ea858b08e wasm fixes 2023-03-12 12:24:21 -04:00
John Smith
ff9b421631 fix tests 2023-03-03 10:55:31 -05:00
John Smith
1ba0cdb9cf checkpoint 2023-02-11 15:54:55 -05:00
John Smith
a58a87719c break everything 2023-02-07 21:44:50 -05:00
John Smith
b773064012 js/ffi work 2023-01-04 14:51:13 -05:00
John Smith
bfc27fa024 js/ffi fixes 2023-01-04 14:20:41 -05:00
John Smith
f0d7c9baf3 ffi/js flutter for tabledb 2022-12-28 22:53:58 -05:00
John Smith
e9da652e9a scripts 2022-12-25 11:46:32 -05:00
John Smith
500c2f32eb wasm fixes 2022-12-16 22:07:05 -05:00
John Smith
221c09b555 checkpoint 2022-12-16 20:07:28 -05:00
John Smith
d089612cbb wasm shit 2022-12-15 20:16:42 -05:00
John Smith
0b059e0ef9 checkpoint 2022-12-08 10:24:33 -05:00
John Smith
60aa3fafc0 js api 2022-12-02 22:52:03 -05:00
John Smith
5d8fa97360 fix server 2022-12-01 17:38:43 -05:00
John Smith
b1bdf76ae8 refactor 2022-11-26 21:37:23 -05:00
John Smith
25ace50d45 break everything 2022-11-26 14:16:02 -05:00
John Smith
27f7f49d4f checkpoint 2022-11-21 22:50:42 -05:00
John Smith
63768580c6 checkpoint 2022-10-16 19:59:59 -04:00
John Smith
e85d72f21a more private route work 2022-10-13 22:05:43 -04:00
John Smith
b1cc0d803c xfer 2022-10-05 19:12:10 -04:00
John Smith
046b61d5d8 more app message call 2022-09-30 22:37:55 -04:00
John Smith
a12d8da6d1 checkpoint 2022-09-06 18:59:41 -04:00
John Smith
c0f94ea2b3 Websocket fixes 2022-08-24 20:59:09 -04:00
John Smith
0204af263d detection work 2022-08-07 14:55:48 -04:00
John Smith
d96e5a131c more cleanup 2022-07-01 16:20:43 -04:00
John Smith
c106d324c8 api and log refactor 2022-07-01 12:13:52 -04:00
John Smith
f409c84778 fix wasm 2022-06-29 22:17:19 -04:00
John Smith
8fbc985e9b flutter tokio 2022-06-29 13:39:54 -04:00
John Smith
17ea0ccf3c wasm fixes 2022-06-15 23:29:45 -04:00
John Smith
b8d684dbee flutter work 2022-06-15 21:51:38 -04:00
John Smith
1d8c63786a refactor checkpoint 2022-06-07 21:31:05 -04:00
John Smith
3b2f4d184f fix wasm
add connection limits
2022-05-04 20:40:10 -04:00
John Smith
0d7ba1485d swap around some build thingies 2022-03-17 19:03:42 -04:00
John Smith
5298fc3fcf checkpoint 2022-03-17 10:31:10 -04:00
John Smith
a39b38cc16 wasm work 2022-03-15 23:02:24 -04:00
John Smith
736e7a0cb0 fix wasm build, remove from native veilid-flutter rust 2022-03-15 10:02:20 -04:00
John Smith
243c53606e re-enable wasm api logger 2022-03-15 09:51:45 -04:00
John Smith
ca85b555aa WASM work 2022-03-15 09:33:34 -04:00
John Smith
7458d0d991 work 2022-02-15 13:40:17 -05:00
John Smith
70960fa592 ffi work 2022-02-06 21:18:42 -05:00
John Smith
1b6864bf22 remove veilid-wasm project, too out of date
refactor state updates and formalize a VeilidState object
work on veilid-flutter api
2022-01-18 12:33:14 -05:00
John Smith
8aea9ee1ab protected store test 2022-01-09 00:13:47 -05:00
John Smith
27bca1a538 refactor settings for local dial info filter 2021-12-26 10:28:28 -05:00
John Smith
e0a52bceb1 add restricted nat retries 2021-11-23 20:19:16 -05:00
John Smith
c002f800a9 add cargo lock 2021-11-22 11:41:55 -05:00
John Smith
9e94a6a96f initial import of main veilid core 2021-11-22 11:28:30 -05:00