This repository was archived by the owner on May 17, 2019. It is now read-only.
Releases: fusionjs/fusion-plugin-rpc
Releases · fusionjs/fusion-plugin-rpc
v0.3.4
v0.3.3
v0.3.2
v0.3.1
Changelog
No pull requests in this release
v0.3.0
Changelog
Highlighted Changes
- Use .request service api instead of copying handlers onto service (#12)
Other Changes
- Use Buildkite and Docker for CI (#10)
Migration Guide
Update service api to use .request
const RPC = app.plugin(RPCPlugin, {
handlers: {
test: () => {...}
},
...
});
app.plugin(async (ctx, next) => {
const rpc = RPC.of(ctx);
- const result = await rpc.test('args');
+ const result = await rpc.request('test', 'args');
});v0.2.0
Changelog
Highlighted Changes
- Update rpc handlers api to take as a second argument (#7)
Other Changes
- Add initial implementation (#2)
Migration Guide
Update service api to require ctx
-const rpc = RPC.of();
+const rpc = RPC.of(ctx);Update handler api to take ctx as second argument
-const handlers = { test(args) => Promise.resolve() }
+const handlers = { test(args, ctx) => Promise.resolve() }