Commit Graph

35 Commits

Author SHA1 Message Date
1b5281e0c1 feat: add session and request handling to CallIncomingBeforeCtx and CallIncomingCtx interfaces 2025-11-28 11:08:03 +08:00
ebb9ed21ad feat: enhance callRequest method with options validation and hook execution 2025-11-27 22:31:06 +08:00
720a79ca7a feat: comment out abstract onInit and onDestroy methods in AbstractRPCPlugin class 2025-11-27 22:30:29 +08:00
500e7c8fa6 feat: update CallOutgoingBeforeCtx and CallOutgoingCtx interfaces to use unknown type for options and result 2025-11-27 22:30:21 +08:00
809a3759d9 feat: add unit tests for RPCPlugin hook execution and error handling 2025-11-27 21:36:41 +08:00
bc1445d3a5 feat: remove unused HookChainInterruptedError class from RPCPlugin 2025-11-27 21:31:49 +08:00
24a14a8e1c feat: add RPCPlugin interface and abstract class with hook context definitions 2025-11-27 21:25:27 +08:00
99c673a8dc feat: add plugin management methods to RPCHandler 2025-11-27 20:43:07 +08:00
b0bcd64b41 feat: add createDeferrablePromise utility function 2025-11-27 20:35:14 +08:00
tone
e17a9591e1 feat: add tests for RPC protected methods and enhance RPCSession method protection 2025-11-15 18:08:27 +08:00
tone
eb0574221e feat: add RPCConfig interface and integrate it into RPCHandler constructor 2025-11-15 18:07:57 +08:00
tone
ab289186f1 feat: add public method utilities and corresponding tests 2025-11-15 18:07:21 +08:00
tone
36e0c17ad7 refactor: move call handlers to rpcSession 2025-11-15 13:03:09 +08:00
tone
821379f44f feat: pass provider instance to RPCSession constructor in RPCClient and RPCServer 2025-11-15 12:15:50 +08:00
tone
bb85abd77e refactor: remove commented-out example usage in RPCHandler 2025-11-15 12:04:11 +08:00
tone
b89187e4ac 1.0.2 2025-10-15 17:24:03 +08:00
tone
2666388df7 test: add RPC disconnection handling test case 2025-10-15 17:21:04 +08:00
tone
3b9cc6dffb fix: attach finally cleanup to returned promise to avoid unhandled rejections 2025-10-15 17:12:57 +08:00
tone
387cbc0b25 fix: update ToDeepPromise type to use Awaited for promise resolution 2025-10-15 16:32:09 +08:00
tone
d85f485149 fix: specify return type for getRandomAvailablePort promise 2025-10-15 16:02:15 +08:00
tone
6fbba3f4c6 feat: add getRandomAvailablePort function and update tests 2025-10-15 16:00:59 +08:00
tone
ab288c24aa feat: enhance RPC connection handling with disconnection error and event emitter improvements 2025-10-15 15:29:48 +08:00
tone
5d8c32e8e8 fix: update package installation commands and import paths to use scoped package name 2025-10-15 12:53:55 +08:00
tone
5055a89d11 1.0.1 2025-10-15 12:43:47 +08:00
tone
56956b7afe fix: revert version number to 1.0.0 in package.json 2025-10-15 12:43:42 +08:00
tone
a8b5f1419d fix: update version number to 1.0.1 in package.json 2025-10-15 12:42:42 +08:00
tone
76878b5108 fix: update repository URL format in package.json 2025-10-15 12:41:32 +08:00
tone
9a34212aba feat: update package.json and tsconfig files for improved build process and structure 2025-10-15 12:37:15 +08:00
tone
4721157142 fix: correct spelling of 'connnect' to 'connect' in RPCHandler event listener 2025-10-15 12:37:06 +08:00
tone
8647c72dc2 fix: correct spelling of 'connect' in RPCHandlerEvents and event emission 2025-10-15 12:36:26 +08:00
tone
8bdae09a02 feat: export EventEmitter from utils 2025-10-15 12:36:20 +08:00
tone
2b3552605c chore: update .gitignore to include coverage and dist directories 2025-10-15 12:36:04 +08:00
tone
c1d925452a feat(event-emitter): optimize implementation 2025-10-15 12:35:52 +08:00
tone
ebb6407221 chore: add full source code 2025-10-14 23:53:27 +08:00
tone
e7b9228d70 init 2025-10-14 23:20:16 +08:00