- fix undefined TypeError when loading cert
- fix secret handling function binding problems
- fix mobile ETA API
- use mobule API as default
- handle invalid data
- Replace HKSCS converter library which works in browser as well
- Expose HKSCS handling as a new function
Kmb.convertHkscs
which currently works on Node but does nothing on browser
- Handle HKSCS characters
-
Breaking: Allow choosing different API for ETA
The second parameter on
Stopping.getEtas
has changed to use a fetcher rather thanGET
orPOST
. You can choose betweenStopping.callWebEtaApi
(default) orStopping.callMobileEtaApi
as the fetcher, or any custom fetcher.If you relied on using the mobile API with the second parameter, you need to change
stopping.getEtas(retry_count, 'POST')
to
stopping.getEtas(retry_count, stopping.callMobileEtaApi.bind(stopping, 'POST'))
- introduce storage versioning - it is now safe to reuse the same storage even the library version is changed
- fixed a packaging issue causing missing cert preventing running on node.js
- moved @types/node into dev dependencies
- initial independent release