Compatibility for Nodejs 6.x - #4
Conversation
The dependency on the ninjablocks/node-serialport fork fails to install on nodejs 4.x, and likely would on 0.12.x as well. Also increments version, and adds minimum nodejs version according to serialport declaration. This is to distinguish from previous version.
Also includes the code changes necessary to continue working under Nodejs 6.x.
|
Wow, thanks @hlapp ... I assume this is a breaking change for people using ancient node? |
Yes, the breaking change comes from serialport, and for this change ancient include Nodejs 4.x. (Nodejs 4.x will work with serialport 4.x, but not higher, according to serialport documentation.)
Yes, I have it running now under Nodejs 6.x. Also requires hlapp/ninjablocks-utilities@3c6493b. For 0.12.x <= Nodejs <= 4.x, you will need #3 here, and the pull requests I have made for ninjablocks/utilities. Also changes here hlapp/ninjablocks-client@master-local. I use https://github.com/hlapp/ninja-mqtt to communicate via MQTT. |
|
@hlapp , i've sent you write access invitation to this repo and utilities. If you accept, feel free to accept your own pull requests :) Cheers! |
Running under Nodejs 6.x requires upgrading serialport to 6.x.x, which includes API and behavior changes compared to the 2.x.x version usable under Nodejs 0.12.x and up to Nodejs 4.x.