-
Notifications
You must be signed in to change notification settings - Fork 64
Support multiple versions of node.js #561
Comments
This is wrong, currently v0.5.1 works on Node v6, v8 and v9. It is the main dependency in Lisk Nano, running on Electron, which uses Node v8 |
@AndrewBarba We're talking about different things here. This issue concerns the v1.0.0 branch of LiskJS, not the currently published v0.5.1. |
Okay so newer version of the same sdk will actually downgrade which systems it runs on, got it. Would love to see a test on 1.0.0 that fails on Node 8 and higher, currently they all pass (I tested on both master and 1.0.0 branches). Kind of hard to claim it doesn’t work without a test case |
Running tests on 1.0.0 branch with Node.js v8.9.1 I get the following output:
|
Initial thought regarding v8 functionality is to enrich the |
@AndrewBarba Sorry, I don't understand your point here. These tests behave differently on Node.js version 6 and version 8. We can't just change the tests because we want consistent behaviour across versions. |
@willclarktech The failed test expected the error string: The bottom line here is that code needs to be rethought whether you want to admit that everything works on Node v8 or not |
Current thinking is to update We still need to confirm that no other changes between 6 and 8 are relevant (or indeed between other versions of Node 6) in order to fully address this issue. |
Thank you I appreciate it. I understand I am being a pain in the ass, but trust me this is important to the community to support this range of versions. |
@AndrewBarba Thanks for engaging us on this! We definitely consider this an important issue and it will be sorted out. So that you know where the original approach was coming from: our instinct is always to err on the conservative side with supported version ranges, for security reasons and because the stakes are high. But LiskJS is intended to be used in other applications, so clearly there needs to be some accommodation for other versions of Node.js besides the one used for development in this project. |
Description
Currently, lisk-js only supports fixed node.js version of v6.12.3.
It would be great if it supports all major v6, and even v6 or higher.
Affected versions
1.0.0
Changes
Buffer.from
to use crypto function.Buffer.from
should ignore invalid hex strings.The text was updated successfully, but these errors were encountered: