Skip to content

Releases: precor/web-api-bridge

Updated to core-js 3

08 Apr 20:42
Compare
Choose a tag to compare

Lib now supports core-js version 3. Also move the React Native example out of source comments into a real example project.

Fixed logging bug in listener function

04 Apr 21:26
Compare
Choose a tag to compare
  • If the listener was active then console.log() had potential to keep a reference to the object and log it at some time in the future which messed up the logging of the request so the request needed to be copied instead of reused.
  • Typescript support was also updated and Flow support was dropped.
  • Code was cleaned up with prettier

Reduced node package size and updated webapp-library example

16 Aug 15:12
Compare
Choose a tag to compare

The examples folder and a couple of other details were missed in the .nmpignore file leading to an unnecessarily large package. The webapp-library example was updated to use v2.1.1, other new packages and changed in a way that would allow for better scaling the 'setCallback()' implementation across apis.

Update to pass on promise rejects as Error objects instead of response objects

16 Aug 03:08
Compare
Choose a tag to compare

When the parent app rejected a promise api, via reject() or throw, it typically throws an Error. Prior to this release the web-api-bridge would pass the reject message property as an error property in the response object that was passed to the child. With this release the promise is rejected as an error with a message that corresponds to the reject Error from the parent.

API search change

01 Jun 19:34
Compare
Choose a tag to compare

Breaks compatibility in rare circumstances by finding the first instance of a function in a list of apis instead of the last. Functions are also now considered non-existent if their property is falsy vs explicitly undefined. These changes make the code cleaner and allow an implementation to reserve unused functions by setting their value to null, a technique illustrated in the newly added webapp-library example.

v1.0.0

20 May 18:43
Compare
Choose a tag to compare

Update breaks compatibility in rare cases by dropping the sourceHref property. A better technique for routing is demonstrated in the react-multi example.

v0.0.4

20 May 18:26
Compare
Choose a tag to compare
v0.0.4

v0.0.3

20 May 18:16
Compare
Choose a tag to compare

v0.0.2

20 May 18:14
Compare
Choose a tag to compare

v0.0.1

23 Aug 22:59
Compare
Choose a tag to compare
moved project to precor org