-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Drop support for Node.js 6.x #611
Comments
Node.js 8.x is supposed to enter LTS at the end of this month. With the amount of ECMAScript changes that version 8 supports, I don't think it would make sense to release a new product with legacy support. I would be surprised if anyone is using LoopBack 4.x with any legacy modules that require Node.js 6... But then again... what do I know? 😉 |
This is not really about using modules written in Node.js 6.x style, those should be still usable in Node.js 8.x It's about developers that don't have a full control of their production environment - e.g. they have an operations team managing their Node.js production environment, the company may have a policy that all apps should be running on the same Node.js major version, and it may take them a non-trivial amount of effort of time to upgrade the production machines (and all deployed apps) to run on Node.js 8.x. |
We are already running LB2 on Node 8, so I'm fine with it :) Do we know of any usual suspects (modules often used in LB apps) that still lack Node 8 support and is not expected to do so at LB4 GA? |
This is become less and less an issue with the popularity of containerization and serverless hosting options. If an operations team can provide support for the latest LTS version of Node.js, then they don't deserve the latest framework evolution 😈 IMHO |
@bajtos, I know that there are some modules out there that won't even work with npm 5 on node 6. I'm guessing most (if not all) of the modules in question have native components. As for those who do not have control over their production environments... hopefully they speak up on this thread! |
Or use it as leverage to get there environments upgraded 😈🙌🏻
…On Wed, Oct 4, 2017 at 2:46 PM Richard Pringle ***@***.***> wrote:
@bajtos <https://github.com/bajtos>, I know that there are some modules
out there that won't even work with npm 5 on node 6. I'm guessing most (if
not all) of the modules in question have native components.
As for those who do not have control over their production environments...
hopefully they speak up on this thread!
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<#611 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHHYRooQs712SzN7hobGcmdWeKzgkotoks5so4xRgaJpZM4PsPC0>
.
|
Node 8 just went LTS and Node 6 will be entering Maintenance in April 2018. I think it's better to just support Node 8 and higher. |
As discussed, pulling this task into |
Node 6 does not have support for new engine APIs like util.promisify, and is no longer the LTS version of Node.js, so we are dropping support to ensure that LoopBack 4 remains on the cutting edge. BREAKING CHANGE: Node 6 is no longer supported. Upgrade to Node 8 or higher. closes #611
I wanted to write that we don't have to change this example because it's deprecated, but then I looked at its I'll mark this task as done. |
Considering that Node.js 6.x will enter maintenance mode long time before our expected GA release, we think it makes sense to require LoopBack Next users to run on Node.js 8.x or newer.
Tasks
Drop Node.js 6.x from Travis-CI and AppVeyor configs
Change "engines" field in
package.json
to"node": ">=8"
Simplify build-related tasks in both top-level and package-level
package.json
files - dropdist6
- related targets.Replace all
promisify
helpers withutil.promisify
from Node.js coreSimplify
@loopback/build
, remove scripts dealing with multipledist
folders and multipletsc
targets (es2015, es2017).Consider removing top-level
index*
files in each package, set"main": "dist/index.js"
inpackage.json
instead. (This may not work.)Update the project template used by CLI when scaffolding new projects
Apply the same changes to all other related repositories + review READMEs and remove mentions of Node.js 6.x:
Review documentation on loopback.io and update all places referring to Node.js 6.x
Write a blog post
The text was updated successfully, but these errors were encountered: