Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Drop Node.js 6 support #5

Merged
merged 1 commit into from
Feb 7, 2018
Merged

Drop Node.js 6 support #5

merged 1 commit into from
Feb 7, 2018

Conversation

b-admike
Copy link
Contributor

@b-admike b-admike commented Feb 2, 2018

LoopBack4 is dropping support for Node 6 because it is no longer LTS and doesn't support newer features. It's best for extensions to align with it.

BREAKING CHANGE: Support for Node.js version lower than 8.0 has been dropped. Please upgrade to Node 8 or higher.
Connect to loopbackio/loopback-next#611

@b-admike b-admike self-assigned this Feb 2, 2018
Copy link

@shimks shimks left a comment

Choose a reason for hiding this comment

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

LGTM

index.js Outdated
module.exports = nodeMajorVersion >= 7 ?
require('./dist/src') :
require('./dist6/src');
module.exports = require('./dist/src');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we switch this to be just ./dist like we have in loopback-next packages?

@b-admike b-admike force-pushed the build/drop-node6 branch 3 times, most recently from 912b622 to dbccf86 Compare February 7, 2018 19:42
@@ -0,0 +1,7 @@
import {expect} from '@loopback/testlab';

describe('dummy test - remove me later', () => {
Copy link

Choose a reason for hiding this comment

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

What's the purpose of the dummy test here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CI thinks that having no tests found is a failure, so this is just a placeholder.

Copy link

Choose a reason for hiding this comment

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

In that case, I think we should comment on the test to describe the purpose of its presence and explicitly state to remove it once some tests are made.

LoopBack4 is dropping support for Node 6 because
it is no longer LTS and doesn't support newer
features. It's best for extensions to align with
it. Also added a dummy unit test, and updated
dependencies.

BREAKING CHANGE: Support for Node.js version lower
than 8.0 has been dropped. Please upgrade to Node
8 or higher.
Copy link

@shimks shimks left a comment

Choose a reason for hiding this comment

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

:shipit:

@b-admike b-admike merged commit c813fd2 into master Feb 7, 2018
@b-admike b-admike deleted the build/drop-node6 branch February 7, 2018 20:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants