diff --git a/.travis.yml b/.travis.yml index c60f507..a74acf2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ sudo: false language: node_js node_js: - - "6" - "8" - "10" diff --git a/CHANGES.md b/CHANGES.md index 6f6b6e5..888e4e7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,47 @@ +2021-01-19, Version 5.2.0 +========================= + + * Reword end-of-life warning printed by CLI (Miroslav Bajtoš) + + * chore: update LTS status to End-of-Life (Rifa Achrinza) + + * fix: warning about LoopBack 3 in stderr (HugoPoi) + + +2020-03-05, Version 5.1.0 +========================= + + * Print a warning about Maintenance LTS at startup (Miroslav Bajtoš) + + * Update LTS status in README (Miroslav Bajtoš) + + * chore: update copyright year (Diana Lau) + + * chore: drop Node.js 6 support (Diana Lau) + + +2019-06-20, Version 5.0.3 +========================= + + * fix: a workaround to fix the hanging cmd (jannyHou) + + +2019-05-15, Version 5.0.2 +========================= + + * fix tests for prompts (Diana Lau) + + +2019-05-10, Version 5.0.1 +========================= + + * chore: update copyright years (Diana Lau) + + * chore: update LTS status (Diana Lau) + + * LTS (jannyHou) + + 2018-11-16, Version 5.0.0 ========================= diff --git a/CODEOWNERS b/CODEOWNERS index a1e9360..ab41b34 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -3,4 +3,4 @@ # the last matching pattern has the most precedence. # Core team members from IBM -* @bajtos @raymondfend @rashmihunt @hacksparrow +* @bajtos @raymondfeng @rashmihunt @hacksparrow diff --git a/README.md b/README.md index 3c89340..c7d8e0e 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,15 @@ LoopBack CLI tool for creating projects, models and more. This package supersedes the older `slc` tool. -This module is in Active LTS mode, new features are no longer accepted. -(See [Module Long Term Support Policy](#module-long-term-support-policy) below.) +**⚠️ LoopBack 3 has reached end of life. We are no longer accepting pull requests or providing +support for community users. The only exception is fixes for critical bugs and security +vulnerabilities provided as part of support for IBM API Connect customers. (See +[Module Long Term Support Policy](#module-long-term-support-policy) below.)** -LoopBack 3 users looking for new features are encouraged to upgrade to LoopBack 4. Refer to [loopback-next#1849](https://github.com/strongloop/loopback-next/issues/1849) for more information on how to upgrade. +We urge all LoopBack 3 users to migrate their applications to LoopBack 4 as +soon as possible. Refer to our +[Migration Guide](https://loopback.io/doc/en/lb4/migration-overview.html) +for more information on how to upgrade. ## Installation @@ -96,10 +101,8 @@ This module adopts the [Module Long Term Support (LTS)](http://github.com/CloudN | Version | Status | Published | EOL | | ------- | --------------- | --------- | -------- | -| 5.x | Active LTS | Nov 2018 | Dec 2019 | -| 4.x | Maintenance LTS | Sep 2017 | Dec 2019 | -| 3.x | Maintenance LTS | Jul 2017 | Apr 2019 | -| 2.x | Maintenance LTS | Mar 2017 | Apr 2019 | -| 1.x | Maintenance LTS | Jan 2017 | Apr 2019 | +| 5.x | End-of-Life | Nov 2018 | Dec 2020 | +| 4.x | End-of-Life | Sep 2017 | Dec 2019 | +| 3.x | End-of-Life | Jul 2017 | Apr 2019 | Learn more about our LTS plan in the [docs](https://loopback.io/doc/en/contrib/Long-term-support.html). diff --git a/bin/loopback-cli.js b/bin/loopback-cli.js index b229635..9b33bad 100755 --- a/bin/loopback-cli.js +++ b/bin/loopback-cli.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -// Copyright IBM Corp. 2016. All Rights Reserved. +// Copyright IBM Corp. 2016,2019. All Rights Reserved. // Node module: loopback-cli // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT @@ -8,10 +8,22 @@ const assert = require('assert'); const camelCaseKeys = require('camelcase-keys'); +const chalk = require('ansi-colors'); const debug = require('debug')('loopback:cli'); const minimist = require('minimist'); const path = require('path'); +console.error(chalk.bold(chalk.red(` +LoopBack 3 has reached end of life. We are no longer accepting pull requests +or providing support for community users. The only exception is fixes for +critical bugs and security vulnerabilities provided as part of support for +IBM API Connect customers. + +We urge all LoopBack 3 users to migrate their applications to LoopBack 4 +as soon as possible. Refer to our Migration Guide for more information +on how to upgrade: https://loopback.io/doc/en/lb4/migration-overview.html +`))); + const opts = minimist(process.argv.slice(2), { alias: { help: 'h', diff --git a/package.json b/package.json index 1f44566..3bdb5b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "5.0.0", + "version": "5.2.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", @@ -8,8 +8,9 @@ "LoopBack", "StrongLoop" ], + "author": "IBM Corp.", "engines": { - "node": ">=6" + "node": ">=8" }, "repository": { "type": "git", @@ -29,9 +30,11 @@ } }, "dependencies": { + "ansi-colors": "^4.1.1", "camelcase-keys": "^4.2.0", "debug": "^4.0.1", "generator-loopback": "^6.0.0", + "inquirer": "~6.3.1", "minimist": "^1.2.0" }, "devDependencies": { diff --git a/test/fixtures/help-lb.txt b/test/fixtures/help-lb.txt index 072debe..37ad104 100644 --- a/test/fixtures/help-lb.txt +++ b/test/fixtures/help-lb.txt @@ -8,7 +8,6 @@ Options: --force-install # Fail on install dependencies error Default: false --skip-next-steps # Do not print "next steps" info --explorer # Add Loopback Explorer to the project (true by default) - --loopbackVersion # Select the LoopBack version --template # Set up the LoopBack application template --bluemix # Set up as a Bluemix app --version # Display version information Default: false diff --git a/test/help.test.js b/test/help.test.js index 00d42c3..9a37d17 100644 --- a/test/help.test.js +++ b/test/help.test.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2016. All Rights Reserved. +// Copyright IBM Corp. 2016,2019. All Rights Reserved. // Node module: loopback-cli // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT diff --git a/test/helpers/invoke.js b/test/helpers/invoke.js index a9f94ee..7570fc8 100644 --- a/test/helpers/invoke.js +++ b/test/helpers/invoke.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2016. All Rights Reserved. +// Copyright IBM Corp. 2016,2019. All Rights Reserved. // Node module: loopback-cli // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT diff --git a/test/helpers/responder.js b/test/helpers/responder.js index cd002b3..feb2d0b 100644 --- a/test/helpers/responder.js +++ b/test/helpers/responder.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2016. All Rights Reserved. +// Copyright IBM Corp. 2016,2019. All Rights Reserved. // Node module: loopback-cli // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT diff --git a/test/smoke.test.js b/test/smoke.test.js index 71a6eab..b8bc4a1 100644 --- a/test/smoke.test.js +++ b/test/smoke.test.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2016. All Rights Reserved. +// Copyright IBM Corp. 2016,2019. All Rights Reserved. // Node module: loopback-cli // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT