Skip to content
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

Perform node version check as soon as possible #409

Merged
merged 1 commit into from
Jun 16, 2016

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Jun 16, 2016

Allows us to print a message before crashing when loading irc-fw

@xPaw xPaw added this to the 2.0.0 milestone Jun 16, 2016
@AlMcKinlay AlMcKinlay self-assigned this Jun 16, 2016
@AlMcKinlay
Copy link
Member

👍 and merging. Good call.

@AlMcKinlay AlMcKinlay merged commit 82618a2 into master Jun 16, 2016
@AlMcKinlay AlMcKinlay deleted the xpaw/sooner-version-check branch June 16, 2016 09:01
// Doing this check as soon as possible allows us to avoid ES6 parser errors or other issues
var pkg = require("./package.json");
if (!require("semver").satisfies(process.version, pkg.engines.node)) {
console.error("=== WARNING!");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth using your logger instead, considering we control its content (and can make sure it works on Node.js < 4)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to, but it needed to load helper file, which needed to load config file, which requires home path processing. So it's not "as soon as possible".

@astorije astorije added Type: Feature Tickets that describe a desired feature or PRs that add them to the project. and removed second review needed labels Jun 17, 2016
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
…heck

Perform node version check as soon as possible
@AlMcKinlay AlMcKinlay removed their assignment Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants