moubert
moubert

Reputation: 272

Node.js v4 migration (for sails.js or node.js)

I am a sails.js user and I want to know what involves a migration for a previous version of node.js to v4 version : I know and read about new features like promises ,etc but I would know if even I could use features later, if my project could work or if there are things I'm forced to change?

For sails.js or a simple node.js project ( I don't know for sail.js , I saw no doc about this)

Upvotes: 2

Views: 240

Answers (1)

Andi N. Dirgantara
Andi N. Dirgantara

Reputation: 2051

The answer is not exact, because your question is to broad. I'll try to answer as objective as possible. The only way to answer is use it and see is there any feature that breaks. Maybe this points can help you:

  1. Use test at your project, the more complex and broad test you defined, more accurate the result is.
  2. Try to implement ES6 compiler at your project, if you already use Node.js that not supported ES6, use library like Babel, so you will know is your project will break or not is ES6 is implemented.

ES6 is backward compatible with ES5, so there are less things to worry about. And for your convenient, if you work on Linux based host, use Node.js version manager like nvm, so you will be easy to switch between any Node.js version.

Upvotes: 1

Related Questions