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

Releases: fusionjs/fusion-plugin-rpc-redux-react

v0.3.1

29 Jan 21:26
Compare
Choose a tag to compare

Changelog

  • Fix tree shaking (#46)
  • Update dependency flow-bin to ^0.64.0 (#36)
  • Update dependency prettier to v1.10.2 (#39)

v0.3.0

23 Jan 23:58
Compare
Choose a tag to compare

Changelog

  • Migrate to fusion-core 0.3.0-5 (createPlugin DI API) (#42)
  • Add short MIT license header to all source files (#41)
  • Update uber/web-base-image Dockerfile tag to v1.0.2 (#40)
  • Upgrade create-universal-package@^3.2.x (#33)
  • Pin Dockerfile uber/web-base-image:1.0.0 image digest (#31)
  • Configure Renovate (#26)
  • Ensure correct CI test exit status code (#25)
  • Use web base docker image (#29)
  • Update pipeline queues (#28)
  • Add codecov (#24)

v0.2.4

05 Dec 21:19
Compare
Choose a tag to compare

Changelog

  • Export mock wrapped with provider (#21)

v0.2.3

04 Dec 20:46
749d81d
Compare
Choose a tag to compare

Changelog

  • Add mock re-export from fusion-plugin-rpc (#18)
  • Add Flow step to pipeline.yml (#17)
  • Add docs for reactors (#15)

v0.2.2

15 Nov 21:32
ca19648
Compare
Choose a tag to compare

Changelog

  • Update dependencies (#13)
  • Upgrade docker-compose plugin to v1.7.0 (#12)

v0.2.1

10 Nov 22:07
Compare
Choose a tag to compare

Changelog

  • Update versions of underlying packages (#9)
  • Use Buildkite and Docker for CI (#7)

v0.2.0

07 Nov 22:24
af94af7
Compare
Choose a tag to compare

Changelog

Highlighted Changes

  • Update api of withRPCRedux and withRPCReactor (#4)

Other Changes

  • Add initial implementation (#2)

Migration Guide

Remove createRPCReactor export

-import {createRPCReactor} from 'fusion-plugin-rpc-redux-react';

Update withRPCReactor api

-import {createRPCReactor} from 'fusion-plugin-rpc-redux-react';
-const withIncrement = withRPCReactor({
-  ...createRPCReactor('rpcId', {
-    start: (state, action) => newState,
-    success: (state, action) => newState,
-    failure: (state, action) => newState,
-  }),
-  propName: '',
-  mapStateToParams: (state) => {},
-  transformParams: (params) => {},
-});
+const withIncrement = withRPCReactor('rpcId', {
+  start: (state, action) => newState,
+  success: (state, action) => newState,
+  failure: (state, action) => newState,
+}, {
+  propName: '',
+  mapStateToParams: (state) => {},
+  transformParams: (params) => {},
+})

Update withRPCRedux api

-const withIncrement = withRPCRedux({
-  rpcId: 'increment',
-  propName: '',
-  mapStateToParams: (state) => {},
-  transformParams: (params) => {},
-});
+const withIncrement = withRPCRedux('increment', {
+  propName: '',
+  mapStateToParams: (state) => {},
+  transformParams: (params) => {},
+});