Commit Graph

178 Commits

Author SHA1 Message Date
Derrick Hammer cc60a0aa12
dep: fix lockfile 2023-07-22 09:23:57 -04:00
Derrick Hammer 5971d0ace8
fix: add _endPeerOnError optional function to conditionally end a peer if there is an error 2023-07-22 09:17:34 -04:00
Derrick Hammer dfe540d82c
Merge remote-tracking branch 'origin/develop' into develop 2023-07-04 21:30:15 -04:00
Derrick Hammer c7df324264
dep: update @lumeweb/rpc 2023-07-04 21:30:11 -04:00
semantic-release-bot f655a78928 chore(release): 0.0.2-develop.4 [skip ci]
## [0.0.2-develop.4](https://git.lumeweb.com/LumeWeb/rpc-client/compare/v0.0.2-develop.3...v0.0.2-develop.4) (2023-07-04)

### Bug Fixes

* remove unneeded import ([a3669fb](a3669fb403))
2023-07-04 13:56:09 +00:00
Derrick Hammer cdad3bcd41
Merge remote-tracking branch 'origin/develop' into develop 2023-07-04 09:55:19 -04:00
Derrick Hammer a3669fb403
fix: remove unneeded import 2023-07-04 09:55:13 -04:00
semantic-release-bot fff95b4b3d chore(release): 0.0.2-develop.3 [skip ci]
## [0.0.2-develop.3](https://git.lumeweb.com/LumeWeb/rpc-client/compare/v0.0.2-develop.2...v0.0.2-develop.3) (2023-07-04)

### Bug Fixes

* remove unneeded import ([3a84b0e](3a84b0e1cb))
2023-07-04 13:51:32 +00:00
Derrick Hammer 71f4d3ce1c
Merge remote-tracking branch 'origin/develop' into develop 2023-07-04 09:50:38 -04:00
Derrick Hammer 3a84b0e1cb
fix: remove unneeded import 2023-07-04 09:50:33 -04:00
semantic-release-bot 89980e91db chore(release): 0.0.2-develop.2 [skip ci]
## [0.0.2-develop.2](https://git.lumeweb.com/LumeWeb/rpc-client/compare/v0.0.2-develop.1...v0.0.2-develop.2) (2023-07-04)
2023-07-04 11:21:29 +00:00
Derrick Hammer a76d3cd961
Merge remote-tracking branch 'origin/develop' into develop 2023-07-04 07:20:43 -04:00
Derrick Hammer 7327419954
refactor: replace b4a with uint8ArrayToHexString 2023-07-04 07:20:24 -04:00
Derrick Hammer 7826b8d2d6
dep: add missing deps 2023-07-04 07:20:23 -04:00
semantic-release-bot 7d63ae4be1 chore(release): 0.0.2-develop.1 [skip ci]
## [0.0.2-develop.1](https://git.lumeweb.com/LumeWeb/rpc-client/compare/v0.0.1...v0.0.2-develop.1) (2023-07-04)

### Reverts

* Revert "*add a _timeoutCanceled property and abort handeTimeout if true" ([1d73d23](1d73d23700))
* Revert "*Switch from clearing the timeout to setting the _timeoutCanceled flag" ([f9036e1](f9036e1c73))
2023-07-04 09:01:55 +00:00
Derrick Hammer 81e7996c41
ci: add npm-shrinkwrap.json 2023-07-04 04:53:22 -04:00
Derrick Hammer 23412b6c41
ci: add ci config 2023-07-04 04:53:16 -04:00
Derrick Hammer 062ed87f1e
refactor: move to ci, and update deps 2023-07-04 04:53:02 -04:00
Derrick Hammer 039583d77e
*Update dist 2023-04-08 16:45:01 -04:00
Derrick Hammer a7e0fbd190
* Refactor `util.ts` to use `existing.ready` instead of `existing._channel.ready` and replace `existing.ready` with `rpc.ready`. 2023-04-08 16:43:56 -04:00
Derrick Hammer 7386b6de05
*Update dist 2023-04-08 15:02:22 -04:00
Derrick Hammer 35c67e1c92
*Bug fix 2023-04-08 15:02:11 -04:00
Derrick Hammer 05c9a7aea7
*Update dist 2023-04-08 14:38:29 -04:00
Derrick Hammer c787d9e757
*setupStream is now async 2023-04-08 14:37:51 -04:00
Derrick Hammer 8f7bd71e09
*Refactor setupStream, make it async, and await on ProtouxRPC ready when it exists in the browser 2023-04-08 14:37:13 -04:00
Derrick Hammer 788591b227
*update dist 2023-04-06 13:40:53 -04:00
Derrick Hammer 1d27cb5c67
*export all util functions 2023-04-06 13:40:25 -04:00
Derrick Hammer 93ed14843d
*Update dist 2023-03-29 17:25:45 -04:00
Derrick Hammer ab6f7d76e2
*If we fail to get the RPC methods list from the peer, abort the connection 2023-03-29 17:25:26 -04:00
Derrick Hammer 63ce23fa26
*Update dist 2023-03-25 11:26:38 -04:00
Derrick Hammer f9bf14d697
*Use maybeGetAsyncProperty 2023-03-25 11:26:22 -04:00
Derrick Hammer 6c6db87073
*Update dist 2023-03-25 10:51:42 -04:00
Derrick Hammer 1cc1a0d2b1
*Use maybeGetAsyncProperty to get remotePublicKey 2023-03-25 10:51:29 -04:00
Derrick Hammer bb36a80913
*Switch to using maybeGetAsyncProperty 2023-03-25 10:51:13 -04:00
Derrick Hammer 5e4617ac55
*add new helper maybeGetAsyncProperty to process the kernel client proxies if needed 2023-03-25 10:50:39 -04:00
Derrick Hammer 6323bc6b29
*Update dist 2023-03-25 09:42:53 -04:00
Derrick Hammer 6b9c865e12
*Handle web edge case where .dht returns an async function 2023-03-25 09:42:42 -04:00
Derrick Hammer 80ed28e8b4
*Update dist 2023-03-23 12:48:48 -04:00
Derrick Hammer 63270fb1da
*switch from relay-types to interface-relay 2023-03-23 12:48:31 -04:00
Derrick Hammer e74408b42a
*Update dist 2023-03-19 15:11:34 -04:00
Derrick Hammer 92fe42c37e
*Return the relay object, not the pubkey 2023-03-19 15:11:13 -04:00
Derrick Hammer 2f2bce84eb
*Update dist 2023-03-19 11:10:57 -04:00
Derrick Hammer 01b4a6517a
*Ensure RPC_PROTOCOL_SYMBOL is a string 2023-03-19 11:10:41 -04:00
Derrick Hammer 99f988addd
*Update dist 2023-03-19 10:35:54 -04:00
Derrick Hammer 0dc8eebc7e
*Add setupStream method from relay code to ensure only one RPC instance exists per socket 2023-03-19 10:35:36 -04:00
Derrick Hammer f875cd116f
*update dist 2023-03-18 14:49:36 -04:00
Derrick Hammer 065934461e
*use once to prevent memory leaks 2023-03-18 14:49:05 -04:00
Derrick Hammer e9e25b2573
*hook close event before querying 2023-03-18 14:48:43 -04:00
Derrick Hammer d572e39a65
*update dist 2023-03-18 12:27:49 -04:00
Derrick Hammer 52181dabcc
*remove unneded import 2023-03-18 12:27:32 -04:00