Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

Releases: fusionjs/fusion-plugin-rpc

v0.3.4

04 Dec 20:05

Choose a tag to compare

Changelog

  • Add mock export for testing (#24)
  • Use absolute link urls in docs (#23)
  • Add Flow step to pipeline.yml (#22)

v0.3.3

28 Nov 22:44

Choose a tag to compare

Changelog

  • Update error handling logic (#20)

v0.3.2

15 Nov 21:35

Choose a tag to compare

Changelog

  • Update dependencies (#16)
  • Upgrade docker-compose plugin to v1.7.0 (#15)

v0.3.1

10 Nov 19:36

Choose a tag to compare

Changelog

No pull requests in this release

v0.3.0

10 Nov 01:27

Choose a tag to compare

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

07 Nov 22:06
daeea78

Choose a tag to compare

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() }