New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove node version check #1201
Conversation
c36b374
to
2746f28
Compare
This is just patching the wrong proprietary solution. The right way would probably be to use https://github.com/npm/node-semver and ask it to check if it passes And maybe, even better, just |
Oh so it's a little more complicated than expected... :( I'm not really that knowledgeable in versioning solutions... Until then it may be uninstallable on newer nodes... :/ |
Maybe it only looks "complicated" because I proposed the long defensive version string - to allow old node, skip intermediate io.js stage (just for the case, so we do not need to support strange edge cases) and allow the new merged node. Otherwise, plain >=0.10.0 would suffice. Back then, amber command did not have its own npm package, as it has now, so the version checking code is probably from that old times. I would say the version check code should be simply removed, and left to npm "engines" field in package.json, which s checked during installation (no need to check at runtime). Adrian Castravete wrote:
|
I agree with that! 👍 Let's remove version checking. 😸 |
2746f28
to
82b315b
Compare
82b315b
to
21bad60
Compare
Pls also change (or add, if not present) the engines in package.json, so that it only allows certain node versions. For example: |
21bad60
to
a0c4fff
Compare
Also change versions in `package.json` to match the node versions on which amber inits and serves correctly.
Hello @Herby ! I added the version limitations and removed the version check code. |
a0c4fff
to
8330d29
Compare
I'll wait with merging until 4.x is there as well. |
d33fc2e
to
7849ac2
Compare
OK. I closed the issue. Here's the modified code. The versions now allow for anything between 0.10 and 0.13 (exclussively) and anything over 4.0. :) It was awesome seeing it create the amber environment 😸 |
Fix a bug in **boot.js** in `readJSObject` where the *nullness* of the js wasn't treated. Also fix tiny mistake in `package.json`
7849ac2
to
4ec82ad
Compare
Remove node version check, small fix in kernel.
BTW you updated wrong package.json; the one you changed is for |
Ah, sorry. You updated both. Taking it back. |
No probs! 😆 Yeah, I saw they were both and updated. 😄 |
;-) If you want to help more, there are lots of issues out there. There are even ones labeled "entry level" for those who want to help but are not yet immersed enough. |
Yes, I will look into it. Although it will mostly be in free time. 😃 Love the project and want to see it move forwards. |
BTW if you happen to test that amber-cli now actually works in node 4, let me know, so I can make a new release of it. |
Yeah, I tested it on an empty directory. It created everything without a problem. The only weird thing I noticed was some (probably CSS related) issues with displaying the rename protocol window in the Helios IDE. Otherwise everything works OK and everything gets saved as it should. |
Helios was moved to bootstrap3 and there are still some visual issues. It is not related. Thanks, going to release. Adrian Castravete wrote:
|
Fix an error where the version check of node is only applied to the minor number.
Since node is now at 4.1.0 the check for the minor version being greated than 8 fails.