From b527872de48d8a5570279c031e11714f973eda2a Mon Sep 17 00:00:00 2001 From: Hage Yaapa Date: Wed, 28 Jun 2017 00:09:40 +0530 Subject: [PATCH 01/42] 2.6.0 * Update generator-loopback to 3.9.0 (Hage Yaapa) * Separate service provisioning (Hage Yaapa) --- CHANGES.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index b40937a..8e90931 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,11 @@ +2017-06-27, Version 2.6.0 +========================= + + * Update generator-loopback to 3.9.0 (Hage Yaapa) + + * Separate service provisioning (Hage Yaapa) + + 2017-06-08, Version 2.5.1 ========================= diff --git a/package.json b/package.json index 5e2d496..5a1d6cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "2.5.1", + "version": "2.6.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From 72507221e6189e8caa14967d82a2aa4e5dc5b2ba Mon Sep 17 00:00:00 2001 From: Hage Yaapa Date: Sat, 15 Jul 2017 23:06:09 +0530 Subject: [PATCH 02/42] deps: generator-loopback@4.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5a1d6cb..b340c8f 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dependencies": { "camelcase-keys": "^4.0.0", "debug": "^2.6.1", - "generator-loopback": "^3.9.0", + "generator-loopback": "^4.0.0", "minimist": "^1.2.0" }, "devDependencies": { From 4fcded77d48956010cd997d8fec942a72dc513ba Mon Sep 17 00:00:00 2001 From: Hage Yaapa Date: Sat, 15 Jul 2017 23:30:15 +0530 Subject: [PATCH 03/42] 3.0.0 * deps: generator-loopback@4.0.0 (Hage Yaapa) --- CHANGES.md | 8 +++++++- package.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 8e90931..a9dfdb1 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,10 @@ -2017-06-27, Version 2.6.0 +2017-07-15, Version 3.0.0 +========================= + + * deps: generator-loopback@4.0.0 (Hage Yaapa) + + +2017-06-28, Version 2.6.0 ========================= * Update generator-loopback to 3.9.0 (Hage Yaapa) diff --git a/package.json b/package.json index b340c8f..3c8ba86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "2.6.0", + "version": "3.0.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From 35e11bfb4f6d989958ec721e169d6e6bc0d637e8 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Mon, 24 Jul 2017 19:47:21 -0400 Subject: [PATCH 04/42] Add CODEOWNERS file --- CODEOWNERS | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..9f029e0 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,6 @@ +# Lines starting with '#' are comments. +# Each line is a file pattern followed by one or more owners, +# the last matching pattern has the most precendence. + +# Core team members from IBM +* @bajtos @raymondfend @rashmihunt @hacksparrow From fc8dd3af06a3adb91fc84892c1aaad82b57b7dc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Thu, 27 Jul 2017 09:24:29 +0200 Subject: [PATCH 05/42] travis: drop Node.js 7.x, add 8.x --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 01bff6f..504c75d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,5 +3,5 @@ language: node_js node_js: - "4" - "6" - - "7" + - "8" From dde9d82dbf04b6a870697e22bf6f0df3de79af49 Mon Sep 17 00:00:00 2001 From: Hage Yaapa Date: Thu, 27 Jul 2017 20:09:44 +0530 Subject: [PATCH 06/42] Support `lb [command | appName]` --- README.md | 2 +- bin/loopback-cli.js | 31 ++++++++++++------------------- test/smoke.test.js | 17 +++++++++-------- 3 files changed, 22 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 51b065a..0d38797 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ $ npm install -g loopback-cli ### Getting started - 1. Run `lb` to create a new LoopBack application. + 1. Run `lb [appName]` to create a new LoopBack application. 2. Run `node .` to start the scaffolded server. ### What's next diff --git a/bin/loopback-cli.js b/bin/loopback-cli.js index 89dd709..0556425 100755 --- a/bin/loopback-cli.js +++ b/bin/loopback-cli.js @@ -65,31 +65,24 @@ if (opts.commands) { const args = opts._; const originalCommand = args.shift(); -const command = 'loopback:' + (originalCommand || 'app'); -args.unshift(command); +let command = 'loopback:' + (originalCommand || 'app'); +const supportedCommands = env.getGeneratorsMeta(); + +if (!(command in supportedCommands)) { + command = 'loopback:app'; + args.unshift(originalCommand); + args.unshift(command); +} else { + args.unshift(command); +} + debug('invoking generator', args); // `yo` is adding flags converted to CamelCase const options = camelCaseKeys(opts, {exclude: ['--', /^\w$/, 'argv']}); Object.assign(options, opts); -// Handle unknown command (generator) -// This code overrides the error reported by yeoman: -// You don’t seem to have a generator with the name “' + n + '” installed. -// But help is on the way: -// (etc.) -try { - const generator = env.create(command, {args}); - if (generator instanceof Error) - throw generator; -} catch (err) { - debug('Cannot load generator %s: %s', command, err.stack); - console.error( - 'Unknown command %j\n' + - 'Run "%s --commands" to print the list of available commands.', - originalCommand, process.argv[1]); - process.exit(1); -} +const generator = env.create(command, {args}); debug('env.run %j %j', args, options); env.run(args, options); diff --git a/test/smoke.test.js b/test/smoke.test.js index 71420f5..aae889e 100644 --- a/test/smoke.test.js +++ b/test/smoke.test.js @@ -61,14 +61,6 @@ describe('smoke tests - lb', () => { }); }); - it('reports custom error instead of "generator not installed"', () => { - return invoke(['unknown']).then(result => { - expect(result.exitCode).to.eql(1); - expect(result.stderr).to.contain('Unknown command') - .and.not.contain('generator'); - }); - }); - it('creates a new loopback project via "lb"', () => { const prompts = {appName: 'test-app', appDir: '.'}; return invoke(['--skip-install'], prompts) @@ -94,6 +86,15 @@ describe('smoke tests - lb', () => { }); }); + it('accepts a name for the loopback project', () => { + const prompts = {appName: 'my-app', appDir: '.'}; + return invoke(['my-app', '--skip-install'], prompts) + .then(result => { + const pkg = require(sandbox.resolve('package.json')); + expect(pkg.name, 'package name').to.eql('my-app'); + }); + }); + it('honours "lb app" flag --skip-next-steps', () => { const prompts = {appName: 'test-app', appDir: '.'}; return invoke(['app', '--skip-install', '--skip-next-steps'], prompts) From 2181e708f10385b0d718b929d723f071fb2155d9 Mon Sep 17 00:00:00 2001 From: Hage Yaapa Date: Fri, 28 Jul 2017 19:23:08 +0530 Subject: [PATCH 07/42] 3.1.0 * Support `lb [command | appName]` (Hage Yaapa) * Add CODEOWNERS file (Diana Lau) --- CHANGES.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index a9dfdb1..088cdfc 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,11 @@ +2017-07-28, Version 3.1.0 +========================= + + * Support `lb [command | appName]` (Hage Yaapa) + + * Add CODEOWNERS file (Diana Lau) + + 2017-07-15, Version 3.0.0 ========================= diff --git a/package.json b/package.json index 3c8ba86..7f3f443 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "3.0.0", + "version": "3.1.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From d60588bf63926da21739f3b93b38313066dd57b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 1 Aug 2017 10:01:42 +0200 Subject: [PATCH 08/42] Update dev-dependencies - chai@4 - dirty-chai@2 - eslint@4 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7f3f443..97716db 100644 --- a/package.json +++ b/package.json @@ -35,9 +35,9 @@ "minimist": "^1.2.0" }, "devDependencies": { - "chai": "^3.5.0", - "dirty-chai": "^1.2.2", - "eslint": "^3.16.1", + "chai": "^4.1.0", + "dirty-chai": "^2.0.1", + "eslint": "^4.3.0", "eslint-config-loopback": "^8.0.0", "mkdirp": "^0.5.1", "mocha": "^3.2.0", From ebf09f9e5cf9082a845f711e3482aa2c75b1a6a9 Mon Sep 17 00:00:00 2001 From: Sakib Hasan Date: Tue, 15 Aug 2017 15:59:55 -0400 Subject: [PATCH 09/42] create issue template --- .github/ISSUE_TEMPLATE.md | 43 ++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index ccc915a..795176c 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,36 +1,37 @@ -### Bug or feature request +# Description/Steps to reproduce -- [ ] Bug -- [ ] Feature request - -### Description of feature (or steps to reproduce if bug) - - - -### Link to sample repo to reproduce issue (if bug) - - - -### Expected result +# Link to reproduction sandbox + -### Actual result (if bug) - - +# Expected result -### Additional information (Node.js version, LoopBack version, etc) + +# Additional information + From e6022c1f45a7dceaaefaf2a60020a9d5bb296eff Mon Sep 17 00:00:00 2001 From: Sakib Hasan Date: Tue, 15 Aug 2017 15:59:56 -0400 Subject: [PATCH 10/42] create pr template --- .github/PULL_REQUEST_TEMPLATE.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d2b240f..368cb4c 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -6,17 +6,18 @@ -- None +- connect to ### Checklist - [ ] New tests added or existing tests modified to cover all changes From 0a1ebe643690a12834002e4be5059f0385f552b8 Mon Sep 17 00:00:00 2001 From: Rashmi Hunt Date: Thu, 7 Sep 2017 11:38:09 -0700 Subject: [PATCH 11/42] Increment generator-loopback to 5.0.0 (#54) * Increment generator-loopback to 5.0.0 * code review fixes * increase mocha timeout --- package.json | 4 ++-- test/mocha.opts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 97716db..4b79d0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "3.1.0", + "version": "4.0.0-alpha.1", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", @@ -31,7 +31,7 @@ "dependencies": { "camelcase-keys": "^4.0.0", "debug": "^2.6.1", - "generator-loopback": "^4.0.0", + "generator-loopback": "^5.0.0", "minimist": "^1.2.0" }, "devDependencies": { diff --git a/test/mocha.opts b/test/mocha.opts index 0689afd..ef42e1d 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1 +1 @@ ---timeout 20000 +--timeout 60000 From d704a5aebdec7f7a5cf96fff109bb7d48ba9af03 Mon Sep 17 00:00:00 2001 From: rashmihunt Date: Thu, 7 Sep 2017 12:51:01 -0700 Subject: [PATCH 12/42] 4.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Increment generator-loopback to 5.0.0 (#54) (Rashmi Hunt) * create pr template (Sakib Hasan) * create issue template (Sakib Hasan) * Update dev-dependencies (Miroslav Bajtoš) * travis: drop Node.js 7.x, add 8.x (Miroslav Bajtoš) --- CHANGES.md | 14 ++++++++++++++ package.json | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 088cdfc..57e864b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,17 @@ +2017-09-07, Version 4.0.0 +========================= + + * Increment generator-loopback to 5.0.0 (#54) (Rashmi Hunt) + + * create pr template (Sakib Hasan) + + * create issue template (Sakib Hasan) + + * Update dev-dependencies (Miroslav Bajtoš) + + * travis: drop Node.js 7.x, add 8.x (Miroslav Bajtoš) + + 2017-07-28, Version 3.1.0 ========================= diff --git a/package.json b/package.json index 4b79d0b..cafb73f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "4.0.0-alpha.1", + "version": "4.0.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From a6f57740ce01349717d98ac28a7b9fe5ad7d1843 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Fri, 10 Nov 2017 23:20:30 -0500 Subject: [PATCH 13/42] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 429a8f8..9e6ef73 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) IBM Corp. 2016. All Rights Reserved. +Copyright (c) IBM Corp. 2016,2017. All Rights Reserved. Node module: loopback-cli This project is licensed under the MIT License, full text below. From 04a6778ebae1d3e95a46b945d4a8b223dba99e68 Mon Sep 17 00:00:00 2001 From: Andrew Smithson Date: Wed, 26 Jul 2017 22:38:44 +0100 Subject: [PATCH 14/42] Update for zosconnectee command --- README.md | 3 ++- test/fixtures/help-lb-zosconnectee.txt | 15 +++++++++++++++ test/fixtures/help-lb.txt | 1 + test/help.test.js | 1 + 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 test/fixtures/help-lb-zosconnectee.txt diff --git a/README.md b/README.md index 0d38797..3312319 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,9 @@ Available commands: lb property lb relation lb remote-method - lb soap + lb soap lb swagger + lb zosconnectee ``` Run `lb --help` to learn more about each command. For example: diff --git a/test/fixtures/help-lb-zosconnectee.txt b/test/fixtures/help-lb-zosconnectee.txt new file mode 100644 index 0000000..a7a48a0 --- /dev/null +++ b/test/fixtures/help-lb-zosconnectee.txt @@ -0,0 +1,15 @@ +Usage: + lb zosconnectee [options] + +Options: + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + +Description: + Configures a z/OS Connect EE DataSource. + +Example: + + lb zosconnectee + diff --git a/test/fixtures/help-lb.txt b/test/fixtures/help-lb.txt index c240b74..f157682 100644 --- a/test/fixtures/help-lb.txt +++ b/test/fixtures/help-lb.txt @@ -47,4 +47,5 @@ Available commands: lb remote-method lb soap lb swagger + lb zosconnectee diff --git a/test/help.test.js b/test/help.test.js index 77ead95..681b128 100644 --- a/test/help.test.js +++ b/test/help.test.js @@ -27,6 +27,7 @@ const COMMANDS = [ 'remote-method', 'soap', 'swagger', + 'zosconnectee', ]; const FIXTURES = path.resolve(__dirname, 'fixtures'); From d6e261a62617929246f901d45de0af7fa63b5545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Thu, 14 Dec 2017 12:59:30 +0100 Subject: [PATCH 15/42] 4.1.0 * Update for zosconnectee command (Andrew Smithson) * Update LICENSE (Diana Lau) --- CHANGES.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 57e864b..939b84f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,11 @@ +2017-12-14, Version 4.1.0 +========================= + + * Update for zosconnectee command (Andrew Smithson) + + * Update LICENSE (Diana Lau) + + 2017-09-07, Version 4.0.0 ========================= diff --git a/package.json b/package.json index cafb73f..f278f71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "4.0.0", + "version": "4.1.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From ec9cf3a7db4b5f4a9a53084ef927ba45b4f0153b Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Tue, 30 Jan 2018 15:12:17 -0500 Subject: [PATCH 16/42] update help-lb message --- test/fixtures/help-lb.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixtures/help-lb.txt b/test/fixtures/help-lb.txt index f157682..b754625 100644 --- a/test/fixtures/help-lb.txt +++ b/test/fixtures/help-lb.txt @@ -2,9 +2,9 @@ Usage: lb app [options] [] Options: - -h, --help # Print the generator's options and usage + -h, --help # Print the command's options and usage --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + --skip-install # Do not install npm dependencies Default: false --skip-next-steps # Do not print "next steps" info --explorer # Add Loopback Explorer to the project (true by default) --bluemix # Set up as a Bluemix app From f2bc224078ed54977d6d2334385320c16e535101 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Tue, 6 Feb 2018 11:14:57 -0500 Subject: [PATCH 17/42] update generator-loopback version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f278f71..be61529 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dependencies": { "camelcase-keys": "^4.0.0", "debug": "^2.6.1", - "generator-loopback": "^5.0.0", + "generator-loopback": "^5.5.1", "minimist": "^1.2.0" }, "devDependencies": { From ae9ec7441da6386fbce79367793b52da32adba52 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Thu, 22 Mar 2018 13:05:14 -0400 Subject: [PATCH 18/42] 4.2.0 * update generator-loopback version (Diana Lau) * update help-lb message (Diana Lau) --- CHANGES.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 939b84f..7c4a2d7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,11 @@ +2018-03-22, Version 4.2.0 +========================= + + * update generator-loopback version (Diana Lau) + + * update help-lb message (Diana Lau) + + 2017-12-14, Version 4.1.0 ========================= diff --git a/package.json b/package.json index be61529..b1dbf90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "4.1.0", + "version": "4.2.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From b802c14f2ca3f20efa6c5fe4a406234b7d750a68 Mon Sep 17 00:00:00 2001 From: shimks Date: Wed, 1 Aug 2018 12:53:51 -0400 Subject: [PATCH 19/42] Drop node 4 from CI --- .travis.yml | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 504c75d..c60f507 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ sudo: false language: node_js node_js: - - "4" - "6" - "8" - + - "10" diff --git a/package.json b/package.json index b1dbf90..fdf33d5 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "StrongLoop" ], "engines": { - "node": ">=4.0.0" + "node": ">=6" }, "repository": { "type": "git", From b905799d8c91d55b03d93be370273804471c7f9e Mon Sep 17 00:00:00 2001 From: shimks Date: Wed, 1 Aug 2018 12:54:07 -0400 Subject: [PATCH 20/42] Fix tests on printing help --- test/fixtures/help-lb-bluemix.txt | 1 + test/fixtures/help-lb.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/test/fixtures/help-lb-bluemix.txt b/test/fixtures/help-lb-bluemix.txt index abf7ef6..f851c25 100644 --- a/test/fixtures/help-lb-bluemix.txt +++ b/test/fixtures/help-lb-bluemix.txt @@ -5,6 +5,7 @@ Options: -h, --help # Print the generator's options and usage --skip-cache # Do not remember prompt answers Default: false --skip-install # Do not automatically install dependencies Default: false + --appName # Application name --docker # Generate Dockerfile --manifest # Generate Bluemix manifest file --toolchain # Set up Bluemix toolchain diff --git a/test/fixtures/help-lb.txt b/test/fixtures/help-lb.txt index b754625..425d8d1 100644 --- a/test/fixtures/help-lb.txt +++ b/test/fixtures/help-lb.txt @@ -7,7 +7,10 @@ Options: --skip-install # Do not install npm dependencies 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 Arguments: name # Name of the application to scaffold. Type: String Required: false From 6f9f802a0fda728bf0cbaa040d113a3a7a422e4f Mon Sep 17 00:00:00 2001 From: virkt25 Date: Mon, 17 Sep 2018 15:26:23 -0400 Subject: [PATCH 21/42] chore: upgrade dependencies --- .npmrc | 1 + package.json | 16 ++++++++-------- test/help.test.js | 3 ++- test/helpers/invoke.js | 2 +- test/smoke.test.js | 6 +++--- 5 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..43c97e7 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-lock=false diff --git a/package.json b/package.json index fdf33d5..900bf6c 100644 --- a/package.json +++ b/package.json @@ -29,18 +29,18 @@ } }, "dependencies": { - "camelcase-keys": "^4.0.0", - "debug": "^2.6.1", - "generator-loopback": "^5.5.1", + "camelcase-keys": "^4.2.0", + "debug": "^4.0.1", + "generator-loopback": "^5.9.4", "minimist": "^1.2.0" }, "devDependencies": { - "chai": "^4.1.0", + "chai": "^4.1.2", "dirty-chai": "^2.0.1", - "eslint": "^4.3.0", - "eslint-config-loopback": "^8.0.0", + "eslint": "^5.6.0", + "eslint-config-loopback": "^12.0.0", "mkdirp": "^0.5.1", - "mocha": "^3.2.0", - "rimraf": "^2.6.1" + "mocha": "^5.2.0", + "rimraf": "^2.6.2" } } diff --git a/test/help.test.js b/test/help.test.js index 681b128..00d42c3 100644 --- a/test/help.test.js +++ b/test/help.test.js @@ -54,7 +54,8 @@ describe('help', () => { const expected = fs.readFileSync( path.resolve(FIXTURES, helpFile), - 'utf-8'); + 'utf-8' + ); expect(actual).to.equal(expected); }); diff --git a/test/helpers/invoke.js b/test/helpers/invoke.js index 2c4ce77..a9f94ee 100644 --- a/test/helpers/invoke.js +++ b/test/helpers/invoke.js @@ -56,4 +56,4 @@ function invokeCli(args, prompts) { resolve({stdout, stderr, exitCode: code}); }); }); -}; +} diff --git a/test/smoke.test.js b/test/smoke.test.js index aae889e..71a6eab 100644 --- a/test/smoke.test.js +++ b/test/smoke.test.js @@ -117,7 +117,8 @@ describe('smoke tests - lb', () => { }) .then(() => { const modelJson = require(sandbox.resolve( - 'common/models/test-model.json')); + 'common/models/test-model.json' + )); expect(modelJson.name, 'model name in JSON').to.equal('test-model'); }); }); @@ -258,8 +259,7 @@ describe('smoke tests - lb', () => { }; return givenProjectInSandbox() - .then(() => invoke(['swagger'], prompts) - ).then(() => { + .then(() => invoke(['swagger'], prompts)).then(() => { const pets = require(sandbox.resolve('common/models/pets.json')); expect(pets.name).to.eql('pets'); expect(pets.base).to.eql('Model'); From f3b7751fb6feeb5809231e015126449ebcd51f1f Mon Sep 17 00:00:00 2001 From: virkt25 Date: Tue, 18 Sep 2018 10:34:26 -0400 Subject: [PATCH 22/42] 4.2.1 * chore: upgrade dependencies (virkt25) * Fix tests on printing help (shimks) * Drop node 4 from CI (shimks) --- CHANGES.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 7c4a2d7..49c0c3e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,13 @@ +2018-09-18, Version 4.2.1 +========================= + + * chore: upgrade dependencies (virkt25) + + * Fix tests on printing help (shimks) + + * Drop node 4 from CI (shimks) + + 2018-03-22, Version 4.2.0 ========================= diff --git a/package.json b/package.json index 900bf6c..4a72391 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "4.2.0", + "version": "4.2.1", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From 0ba415a534ce499c082d9c8e4bb7fc209c0da151 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Fri, 2 Nov 2018 11:40:06 -0400 Subject: [PATCH 23/42] chore: add stalebot --- .github/stale.yml | 23 +++++++++++++++++++++++ CODEOWNERS | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 0000000..bebe60a --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,23 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 60 +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 14 +# Issues with these labels will never be considered stale +exemptLabels: + - pinned + - security + - critical + - p1 + - major +# Label to use when marking an issue as stale +staleLabel: stale +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: > + This issue has been closed due to continued inactivity. Thank you for your understanding. + If you believe this to be in error, please contact one of the code owners, + listed in the `CODEOWNERS` file at the top-level of this repository. diff --git a/CODEOWNERS b/CODEOWNERS index 9f029e0..a1e9360 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,6 +1,6 @@ # Lines starting with '#' are comments. # Each line is a file pattern followed by one or more owners, -# the last matching pattern has the most precendence. +# the last matching pattern has the most precedence. # Core team members from IBM * @bajtos @raymondfend @rashmihunt @hacksparrow From 96077af7c00dfd8424087f722f6595abfaf75d8e Mon Sep 17 00:00:00 2001 From: jannyHou Date: Wed, 1 Aug 2018 16:19:18 -0400 Subject: [PATCH 24/42] feat: switch to yeoman-env --- .gitignore | 1 + bin/loopback-cli.js | 80 ++++++++++++------------ package.json | 4 +- test/fixtures/help-lb-acl.txt | 7 ++- test/fixtures/help-lb-bluemix.txt | 21 ++++--- test/fixtures/help-lb-boot-script.txt | 7 ++- test/fixtures/help-lb-datasource.txt | 13 ++-- test/fixtures/help-lb-export-api-def.txt | 9 +-- test/fixtures/help-lb-middleware.txt | 7 ++- test/fixtures/help-lb-model.txt | 9 +-- test/fixtures/help-lb-oracle.txt | 13 ++-- test/fixtures/help-lb-property.txt | 7 ++- test/fixtures/help-lb-relation.txt | 7 ++- test/fixtures/help-lb-remote-method.txt | 7 ++- test/fixtures/help-lb-soap.txt | 7 ++- test/fixtures/help-lb-swagger.txt | 7 ++- test/fixtures/help-lb-zosconnectee.txt | 7 ++- test/fixtures/help-lb.txt | 3 +- 18 files changed, 115 insertions(+), 101 deletions(-) diff --git a/.gitignore b/.gitignore index e525285..38add57 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ node_modules *xunit.xml test/sandbox/ test/fixtures/actual +.vscode/* diff --git a/bin/loopback-cli.js b/bin/loopback-cli.js index 0556425..b229635 100755 --- a/bin/loopback-cli.js +++ b/bin/loopback-cli.js @@ -36,10 +36,10 @@ process.env.SLC_COMMAND = 'loopback-cli'; // therefore I am intentionally loading it only after we have // handled the "--version" case which becomes much faster as the result. const lbGenerator = require('generator-loopback'); -const yeoman = lbGenerator._yeoman; // generator-loopback should export _yeoman -assert(yeoman, 'generator-loopback should export _yeoman'); +const yeomanEnv = lbGenerator._yeomanEnv; +assert(yeomanEnv, 'generator-loopback should export _yeomanEnv'); -const env = yeoman(); +const env = yeomanEnv.createEnv(); // Change the working directory to the generator-loopback module so that // yeoman can discover the generators @@ -48,41 +48,39 @@ const cwd = process.cwd(); debug('changing directory to %s', root); process.chdir(root); -// lookup for every namespaces, within the environments.paths and lookups -env.lookup(); -debug('changing directory back to %s', cwd); -process.chdir(cwd); // Switch back - -// list generators -if (opts.commands) { - console.log('Available commands: '); - var list = Object.keys(env.getGeneratorsMeta()) - .filter(name => /^loopback:/.test(name)) - .map(name => name.replace(/^loopback:/, ' lb ')); - console.log(list.join('\n')); - return; -} - -const args = opts._; -const originalCommand = args.shift(); -let command = 'loopback:' + (originalCommand || 'app'); -const supportedCommands = env.getGeneratorsMeta(); - -if (!(command in supportedCommands)) { - command = 'loopback:app'; - args.unshift(originalCommand); - args.unshift(command); -} else { - args.unshift(command); -} - -debug('invoking generator', args); - -// `yo` is adding flags converted to CamelCase -const options = camelCaseKeys(opts, {exclude: ['--', /^\w$/, 'argv']}); -Object.assign(options, opts); - -const generator = env.create(command, {args}); - -debug('env.run %j %j', args, options); -env.run(args, options); +env.lookup(function() { + debug('changing directory back to %s', cwd); + process.chdir(cwd); // Switch back + + // list generators + if (opts.commands) { + console.log('Available commands: '); + var list = Object.keys(env.getGeneratorsMeta()) + .filter(name => /^loopback:/.test(name)) + .map(name => name.replace(/^loopback:/, ' lb ')); + console.log(list.join('\n')); + return; + } + + const args = opts._; + const originalCommand = args.shift(); + let command = 'loopback:' + (originalCommand || 'app'); + const supportedCommands = env.getGeneratorsMeta(); + + if (!(command in supportedCommands)) { + command = 'loopback:app'; + args.unshift(originalCommand); + args.unshift(command); + } else { + args.unshift(command); + } + + debug('invoking generator', args); + + // `yo` is adding flags converted to CamelCase + const options = camelCaseKeys(opts, {exclude: ['--', /^\w$/, 'argv']}); + Object.assign(options, opts); + + debug('env.run %j %j', args, options); + env.run(args, options); +}); diff --git a/package.json b/package.json index 4a72391..1f44566 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "4.2.1", + "version": "5.0.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", @@ -31,7 +31,7 @@ "dependencies": { "camelcase-keys": "^4.2.0", "debug": "^4.0.1", - "generator-loopback": "^5.9.4", + "generator-loopback": "^6.0.0", "minimist": "^1.2.0" }, "devDependencies": { diff --git a/test/fixtures/help-lb-acl.txt b/test/fixtures/help-lb-acl.txt index 6304f55..59967ff 100644 --- a/test/fixtures/help-lb-acl.txt +++ b/test/fixtures/help-lb-acl.txt @@ -2,9 +2,10 @@ Usage: lb acl [options] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false Description: Adds a new ACL entry to the LoopBack application. diff --git a/test/fixtures/help-lb-bluemix.txt b/test/fixtures/help-lb-bluemix.txt index f851c25..3ef108c 100644 --- a/test/fixtures/help-lb-bluemix.txt +++ b/test/fixtures/help-lb-bluemix.txt @@ -2,16 +2,17 @@ Usage: lb bluemix [options] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false - --appName # Application name - --docker # Generate Dockerfile - --manifest # Generate Bluemix manifest file - --toolchain # Set up Bluemix toolchain - --login # Log into Bluemix Default: false - --sso # Log into Bluemix with SSO - --provision # Provision a Bluemix service Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false + --appName # Application name + --docker # Generate Dockerfile + --manifest # Generate Bluemix manifest file + --toolchain # Set up Bluemix toolchain + --login # Log into Bluemix Default: false + --sso # Log into Bluemix with SSO + --provision # Provision a Bluemix service Default: false Description: `toolchain`, `manifest`, and `docker` are scaffold options. Not specifying any of them is interpreted as diff --git a/test/fixtures/help-lb-boot-script.txt b/test/fixtures/help-lb-boot-script.txt index 2586c7e..a20c545 100644 --- a/test/fixtures/help-lb-boot-script.txt +++ b/test/fixtures/help-lb-boot-script.txt @@ -2,9 +2,10 @@ Usage: lb boot-script [options] [] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false Arguments: name # Name of the boot script to create. Type: String Required: false diff --git a/test/fixtures/help-lb-datasource.txt b/test/fixtures/help-lb-datasource.txt index 201b9b3..91782d4 100644 --- a/test/fixtures/help-lb-datasource.txt +++ b/test/fixtures/help-lb-datasource.txt @@ -2,12 +2,13 @@ Usage: lb datasource [options] [] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false - --bluemix # Add a datasource from Bluemix - --login # Log into Bluemix Default: false - --sso # Log into Bluemix with SSO + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false + --bluemix # Add a datasource from Bluemix + --login # Log into Bluemix Default: false + --sso # Log into Bluemix with SSO Arguments: name # Name of the datasource to create. Type: String Required: false diff --git a/test/fixtures/help-lb-export-api-def.txt b/test/fixtures/help-lb-export-api-def.txt index 70839f1..4a4e00e 100644 --- a/test/fixtures/help-lb-export-api-def.txt +++ b/test/fixtures/help-lb-export-api-def.txt @@ -2,10 +2,11 @@ Usage: lb export-api-def [options] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false - -o, --output # Name/Full path to the output file. + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false + -o, --output # Name/Full path to the output file. Description: Generate Swagger API definitions for LoopBack applications. diff --git a/test/fixtures/help-lb-middleware.txt b/test/fixtures/help-lb-middleware.txt index d5632b0..ec20305 100644 --- a/test/fixtures/help-lb-middleware.txt +++ b/test/fixtures/help-lb-middleware.txt @@ -2,9 +2,10 @@ Usage: lb middleware [options] [] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false Arguments: name # Name of the middleware to create. Type: String Required: false diff --git a/test/fixtures/help-lb-model.txt b/test/fixtures/help-lb-model.txt index 4d59201..5cde92a 100644 --- a/test/fixtures/help-lb-model.txt +++ b/test/fixtures/help-lb-model.txt @@ -2,10 +2,11 @@ Usage: lb model [options] [] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false - --bluemix # Bind to a Bluemix datasource + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false + --bluemix # Bind to a Bluemix datasource Arguments: name # Name of the model to create. Type: String Required: false diff --git a/test/fixtures/help-lb-oracle.txt b/test/fixtures/help-lb-oracle.txt index d5f4d98..48fa3bb 100644 --- a/test/fixtures/help-lb-oracle.txt +++ b/test/fixtures/help-lb-oracle.txt @@ -2,12 +2,13 @@ Usage: lb oracle [options] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false - --connector # Install loopback-connector-oracle module - --driver # Install oracledb module - --verbose # Print verbose information + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false + --connector # Install loopback-connector-oracle module + --driver # Install oracledb module + --verbose # Print verbose information Description: Utility to help install LoopBack Oracle connector. diff --git a/test/fixtures/help-lb-property.txt b/test/fixtures/help-lb-property.txt index 7521208..3677631 100644 --- a/test/fixtures/help-lb-property.txt +++ b/test/fixtures/help-lb-property.txt @@ -2,9 +2,10 @@ Usage: lb property [options] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false Description: Creates a new model property in the LoopBack application. diff --git a/test/fixtures/help-lb-relation.txt b/test/fixtures/help-lb-relation.txt index 3b9fd78..dea57c6 100644 --- a/test/fixtures/help-lb-relation.txt +++ b/test/fixtures/help-lb-relation.txt @@ -2,9 +2,10 @@ Usage: lb relation [options] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false Description: Creates a new model relation in the LoopBack application. diff --git a/test/fixtures/help-lb-remote-method.txt b/test/fixtures/help-lb-remote-method.txt index a7a7bae..b449f40 100644 --- a/test/fixtures/help-lb-remote-method.txt +++ b/test/fixtures/help-lb-remote-method.txt @@ -2,9 +2,10 @@ Usage: lb remote-method [options] [] [] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false Arguments: modelName # Name of the model Type: String Required: false diff --git a/test/fixtures/help-lb-soap.txt b/test/fixtures/help-lb-soap.txt index 0e4cf33..7db8540 100644 --- a/test/fixtures/help-lb-soap.txt +++ b/test/fixtures/help-lb-soap.txt @@ -2,9 +2,10 @@ Usage: lb soap [options] [] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false Arguments: url # URL or file path of the WSDL Type: String Required: false diff --git a/test/fixtures/help-lb-swagger.txt b/test/fixtures/help-lb-swagger.txt index eec6b3f..a4bccee 100644 --- a/test/fixtures/help-lb-swagger.txt +++ b/test/fixtures/help-lb-swagger.txt @@ -2,9 +2,10 @@ Usage: lb swagger [options] [] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false Arguments: url # URL of the swagger spec. Type: String Required: false diff --git a/test/fixtures/help-lb-zosconnectee.txt b/test/fixtures/help-lb-zosconnectee.txt index a7a48a0..1d2b617 100644 --- a/test/fixtures/help-lb-zosconnectee.txt +++ b/test/fixtures/help-lb-zosconnectee.txt @@ -2,9 +2,10 @@ Usage: lb zosconnectee [options] Options: - -h, --help # Print the generator's options and usage - --skip-cache # Do not remember prompt answers Default: false - --skip-install # Do not automatically install dependencies Default: false + -h, --help # Print the generator's options and usage + --skip-cache # Do not remember prompt answers Default: false + --skip-install # Do not automatically install dependencies Default: false + --force-install # Fail on install dependencies error Default: false Description: Configures a z/OS Connect EE DataSource. diff --git a/test/fixtures/help-lb.txt b/test/fixtures/help-lb.txt index 425d8d1..072debe 100644 --- a/test/fixtures/help-lb.txt +++ b/test/fixtures/help-lb.txt @@ -5,12 +5,13 @@ Options: -h, --help # Print the command's options and usage --skip-cache # Do not remember prompt answers Default: false --skip-install # Do not install npm dependencies Default: false + --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 + --version # Display version information Default: false Arguments: name # Name of the application to scaffold. Type: String Required: false From 836aa689e2df81dfd96ed2f13fa65145e54b4fac Mon Sep 17 00:00:00 2001 From: jannyHou Date: Fri, 16 Nov 2018 11:38:39 -0500 Subject: [PATCH 25/42] 5.0.0 * feat: switch to yeoman-env (jannyHou) * chore: add stalebot (Diana Lau) --- CHANGES.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 49c0c3e..6f6b6e5 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,11 @@ +2018-11-16, Version 5.0.0 +========================= + + * feat: switch to yeoman-env (jannyHou) + + * chore: add stalebot (Diana Lau) + + 2018-09-18, Version 4.2.1 ========================= From a536ca54ba2064306650f7c7d53d64b5ad7a25c5 Mon Sep 17 00:00:00 2001 From: jannyHou Date: Fri, 16 Nov 2018 14:45:29 -0500 Subject: [PATCH 26/42] LTS --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 3312319..3c89340 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,11 @@ 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 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. + ## Installation To install the LoopBack CLI tool: @@ -85,3 +90,16 @@ Discuss features and ask questions on ## License MIT + +## Module Long Term Support Policy +This module adopts the [Module Long Term Support (LTS)](http://github.com/CloudNativeJS/ModuleLTS) policy, with the following End Of Life (EOL) dates: + +| 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 | + +Learn more about our LTS plan in the [docs](https://loopback.io/doc/en/contrib/Long-term-support.html). From ee49aba9b20a1d72289097490a3f57d3dcd5a5a2 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Fri, 3 May 2019 11:08:58 -0400 Subject: [PATCH 27/42] chore: update LTS status --- CODEOWNERS | 2 +- README.md | 6 +++--- package.json | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) 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..6c22aa9 100644 --- a/README.md +++ b/README.md @@ -98,8 +98,8 @@ This module adopts the [Module Long Term Support (LTS)](http://github.com/CloudN | ------- | --------------- | --------- | -------- | | 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 | +| 3.x | End-of-Life | Jul 2017 | Apr 2019 | +| 2.x | End-of-Life | Mar 2017 | Apr 2019 | +| 1.x | End-of-Life | Jan 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/package.json b/package.json index 1f44566..67647ab 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "LoopBack", "StrongLoop" ], + "author": "IBM Corp.", "engines": { "node": ">=6" }, From f5d5cbe1baef5050a7d72e650b6ca506e3c9b7ab Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Fri, 3 May 2019 11:09:41 -0400 Subject: [PATCH 28/42] chore: update copyright years --- README.md | 2 -- bin/loopback-cli.js | 2 +- test/help.test.js | 2 +- test/helpers/invoke.js | 2 +- test/helpers/responder.js | 2 +- test/smoke.test.js | 2 +- 6 files changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6c22aa9..e567e98 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,5 @@ This module adopts the [Module Long Term Support (LTS)](http://github.com/CloudN | 5.x | Active LTS | Nov 2018 | Dec 2019 | | 4.x | Maintenance LTS | Sep 2017 | Dec 2019 | | 3.x | End-of-Life | Jul 2017 | Apr 2019 | -| 2.x | End-of-Life | Mar 2017 | Apr 2019 | -| 1.x | End-of-Life | Jan 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..70fa199 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,2018. 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/help.test.js b/test/help.test.js index 00d42c3..3849ef4 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,2018. 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..25d5c12 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,2018. 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..7bb1ef9 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,2017. 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..6ea8cdb 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,2018. All Rights Reserved. // Node module: loopback-cli // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT From 228d1f1ba292340151252fb19f83650628a34a33 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Fri, 10 May 2019 19:02:39 -0400 Subject: [PATCH 29/42] 5.0.1 * chore: update copyright years (Diana Lau) * chore: update LTS status (Diana Lau) * LTS (jannyHou) --- CHANGES.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 6f6b6e5..f354dbd 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,13 @@ +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/package.json b/package.json index 67647ab..7396847 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "5.0.0", + "version": "5.0.1", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From 0178a494c320f7b97264d0d24e342f79cdc93cd6 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Tue, 14 May 2019 10:31:37 -0400 Subject: [PATCH 30/42] fix tests for prompts --- test/fixtures/help-lb.txt | 1 - 1 file changed, 1 deletion(-) 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 From ab865ca950bd46dc62985adf98ef307f0055e9d2 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Wed, 15 May 2019 11:19:34 -0400 Subject: [PATCH 31/42] 5.0.2 * fix tests for prompts (Diana Lau) --- CHANGES.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index f354dbd..81fa314 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +2019-05-15, Version 5.0.2 +========================= + + * fix tests for prompts (Diana Lau) + + 2019-05-10, Version 5.0.1 ========================= diff --git a/package.json b/package.json index 7396847..c335699 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "5.0.1", + "version": "5.0.2", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From 3ffe214eb514d040bbd778739a837eedc16760b1 Mon Sep 17 00:00:00 2001 From: jannyHou Date: Thu, 20 Jun 2019 17:53:22 -0400 Subject: [PATCH 32/42] fix: a workaround to fix the hanging cmd --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index c335699..4333379 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "camelcase-keys": "^4.2.0", "debug": "^4.0.1", "generator-loopback": "^6.0.0", + "inquirer": "~6.3.1", "minimist": "^1.2.0" }, "devDependencies": { From be367bbc36e7eb6a5d306a335fb9ab408c5720e9 Mon Sep 17 00:00:00 2001 From: jannyHou Date: Thu, 20 Jun 2019 23:35:44 -0400 Subject: [PATCH 33/42] 5.0.3 * fix: a workaround to fix the hanging cmd (jannyHou) --- CHANGES.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 81fa314..73b98ad 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +2019-06-21, Version 5.0.3 +========================= + + * fix: a workaround to fix the hanging cmd (jannyHou) + + 2019-05-15, Version 5.0.2 ========================= diff --git a/package.json b/package.json index 4333379..1c35edf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "5.0.2", + "version": "5.0.3", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From 51fc6f45cf4e4d3f732c1eb8f1b67c7855865eb1 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Tue, 11 Feb 2020 15:34:01 -0500 Subject: [PATCH 34/42] chore: drop Node.js 6 support --- .travis.yml | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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/package.json b/package.json index 1c35edf..7d698ed 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ ], "author": "IBM Corp.", "engines": { - "node": ">=6" + "node": ">=8" }, "repository": { "type": "git", From 3192298d7bab6198b53f4dcc6c26f181eb31f7bb Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Mon, 10 Feb 2020 13:59:22 -0500 Subject: [PATCH 35/42] chore: update copyright year --- bin/loopback-cli.js | 2 +- test/help.test.js | 2 +- test/helpers/invoke.js | 2 +- test/helpers/responder.js | 2 +- test/smoke.test.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/loopback-cli.js b/bin/loopback-cli.js index 70fa199..eebbc51 100755 --- a/bin/loopback-cli.js +++ b/bin/loopback-cli.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -// Copyright IBM Corp. 2016,2018. 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/help.test.js b/test/help.test.js index 3849ef4..9a37d17 100644 --- a/test/help.test.js +++ b/test/help.test.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2016,2018. 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 25d5c12..7570fc8 100644 --- a/test/helpers/invoke.js +++ b/test/helpers/invoke.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2016,2018. 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 7bb1ef9..feb2d0b 100644 --- a/test/helpers/responder.js +++ b/test/helpers/responder.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2016,2017. 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 6ea8cdb..b8bc4a1 100644 --- a/test/smoke.test.js +++ b/test/smoke.test.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2016,2018. 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 From ed31ec736b2ded68c09b2027507ba0de18222a5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 3 Mar 2020 09:17:42 +0100 Subject: [PATCH 36/42] Update LTS status in README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miroslav Bajtoš --- README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e567e98..33756cd 100644 --- a/README.md +++ b/README.md @@ -3,10 +3,14 @@ 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 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. (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,8 +100,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 | +| 5.x | Maintenance LTS | 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). From 42806f6f6a84c4739756c1e5a0b8fce44206f05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 3 Mar 2020 09:25:36 +0100 Subject: [PATCH 37/42] Print a warning about Maintenance LTS at startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miroslav Bajtoš --- bin/loopback-cli.js | 9 +++++++++ package.json | 1 + test/fixtures/help-lb-acl.txt | 7 +++++++ test/fixtures/help-lb-bluemix.txt | 7 +++++++ test/fixtures/help-lb-boot-script.txt | 7 +++++++ test/fixtures/help-lb-datasource.txt | 7 +++++++ test/fixtures/help-lb-export-api-def.txt | 7 +++++++ test/fixtures/help-lb-middleware.txt | 7 +++++++ test/fixtures/help-lb-model.txt | 7 +++++++ test/fixtures/help-lb-oracle.txt | 7 +++++++ test/fixtures/help-lb-property.txt | 7 +++++++ test/fixtures/help-lb-relation.txt | 7 +++++++ test/fixtures/help-lb-remote-method.txt | 7 +++++++ test/fixtures/help-lb-soap.txt | 7 +++++++ test/fixtures/help-lb-swagger.txt | 7 +++++++ test/fixtures/help-lb-zosconnectee.txt | 7 +++++++ test/fixtures/help-lb.txt | 7 +++++++ 17 files changed, 115 insertions(+) diff --git a/bin/loopback-cli.js b/bin/loopback-cli.js index eebbc51..b2f10ae 100755 --- a/bin/loopback-cli.js +++ b/bin/loopback-cli.js @@ -8,10 +8,19 @@ 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.log(chalk.bold(chalk.red(` +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 7d698ed..cb0e1bf 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ } }, "dependencies": { + "ansi-colors": "^4.1.1", "camelcase-keys": "^4.2.0", "debug": "^4.0.1", "generator-loopback": "^6.0.0", diff --git a/test/fixtures/help-lb-acl.txt b/test/fixtures/help-lb-acl.txt index 59967ff..550d953 100644 --- a/test/fixtures/help-lb-acl.txt +++ b/test/fixtures/help-lb-acl.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb acl [options] diff --git a/test/fixtures/help-lb-bluemix.txt b/test/fixtures/help-lb-bluemix.txt index 3ef108c..1d3c838 100644 --- a/test/fixtures/help-lb-bluemix.txt +++ b/test/fixtures/help-lb-bluemix.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb bluemix [options] diff --git a/test/fixtures/help-lb-boot-script.txt b/test/fixtures/help-lb-boot-script.txt index a20c545..deb05ea 100644 --- a/test/fixtures/help-lb-boot-script.txt +++ b/test/fixtures/help-lb-boot-script.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb boot-script [options] [] diff --git a/test/fixtures/help-lb-datasource.txt b/test/fixtures/help-lb-datasource.txt index 91782d4..be9f5a7 100644 --- a/test/fixtures/help-lb-datasource.txt +++ b/test/fixtures/help-lb-datasource.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb datasource [options] [] diff --git a/test/fixtures/help-lb-export-api-def.txt b/test/fixtures/help-lb-export-api-def.txt index 4a4e00e..1e03dbb 100644 --- a/test/fixtures/help-lb-export-api-def.txt +++ b/test/fixtures/help-lb-export-api-def.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb export-api-def [options] diff --git a/test/fixtures/help-lb-middleware.txt b/test/fixtures/help-lb-middleware.txt index ec20305..55a8f7d 100644 --- a/test/fixtures/help-lb-middleware.txt +++ b/test/fixtures/help-lb-middleware.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb middleware [options] [] diff --git a/test/fixtures/help-lb-model.txt b/test/fixtures/help-lb-model.txt index 5cde92a..7aeece6 100644 --- a/test/fixtures/help-lb-model.txt +++ b/test/fixtures/help-lb-model.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb model [options] [] diff --git a/test/fixtures/help-lb-oracle.txt b/test/fixtures/help-lb-oracle.txt index 48fa3bb..ed281ce 100644 --- a/test/fixtures/help-lb-oracle.txt +++ b/test/fixtures/help-lb-oracle.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb oracle [options] diff --git a/test/fixtures/help-lb-property.txt b/test/fixtures/help-lb-property.txt index 3677631..d23cf97 100644 --- a/test/fixtures/help-lb-property.txt +++ b/test/fixtures/help-lb-property.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb property [options] diff --git a/test/fixtures/help-lb-relation.txt b/test/fixtures/help-lb-relation.txt index dea57c6..188c176 100644 --- a/test/fixtures/help-lb-relation.txt +++ b/test/fixtures/help-lb-relation.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb relation [options] diff --git a/test/fixtures/help-lb-remote-method.txt b/test/fixtures/help-lb-remote-method.txt index b449f40..1187e8b 100644 --- a/test/fixtures/help-lb-remote-method.txt +++ b/test/fixtures/help-lb-remote-method.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb remote-method [options] [] [] diff --git a/test/fixtures/help-lb-soap.txt b/test/fixtures/help-lb-soap.txt index 7db8540..9b5c073 100644 --- a/test/fixtures/help-lb-soap.txt +++ b/test/fixtures/help-lb-soap.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb soap [options] [] diff --git a/test/fixtures/help-lb-swagger.txt b/test/fixtures/help-lb-swagger.txt index a4bccee..1ed725d 100644 --- a/test/fixtures/help-lb-swagger.txt +++ b/test/fixtures/help-lb-swagger.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb swagger [options] [] diff --git a/test/fixtures/help-lb-zosconnectee.txt b/test/fixtures/help-lb-zosconnectee.txt index 1d2b617..ff9107f 100644 --- a/test/fixtures/help-lb-zosconnectee.txt +++ b/test/fixtures/help-lb-zosconnectee.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb zosconnectee [options] diff --git a/test/fixtures/help-lb.txt b/test/fixtures/help-lb.txt index 37ad104..6899cd6 100644 --- a/test/fixtures/help-lb.txt +++ b/test/fixtures/help-lb.txt @@ -1,3 +1,10 @@ + +LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical +security fixes will be provided. The support ends in December 2020. 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 + Usage: lb app [options] [] From 650256181234cdea612178b89316ea92785d8ca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Thu, 5 Mar 2020 10:12:30 +0100 Subject: [PATCH 38/42] 5.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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) --- CHANGES.md | 14 +++++++++++++- package.json | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 73b98ad..331d510 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,16 @@ -2019-06-21, Version 5.0.3 +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) diff --git a/package.json b/package.json index cb0e1bf..bff99a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "5.0.3", + "version": "5.1.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io", From 4abd976c34dce0d636791ce9783a033a543af0a6 Mon Sep 17 00:00:00 2001 From: HugoPoi Date: Mon, 29 Jun 2020 11:21:48 +0200 Subject: [PATCH 39/42] fix: warning about LoopBack 3 in stderr close #100 --- bin/loopback-cli.js | 2 +- test/fixtures/help-lb-acl.txt | 7 ------- test/fixtures/help-lb-bluemix.txt | 7 ------- test/fixtures/help-lb-boot-script.txt | 7 ------- test/fixtures/help-lb-datasource.txt | 7 ------- test/fixtures/help-lb-export-api-def.txt | 7 ------- test/fixtures/help-lb-middleware.txt | 7 ------- test/fixtures/help-lb-model.txt | 7 ------- test/fixtures/help-lb-oracle.txt | 7 ------- test/fixtures/help-lb-property.txt | 7 ------- test/fixtures/help-lb-relation.txt | 7 ------- test/fixtures/help-lb-remote-method.txt | 7 ------- test/fixtures/help-lb-soap.txt | 7 ------- test/fixtures/help-lb-swagger.txt | 7 ------- test/fixtures/help-lb-zosconnectee.txt | 7 ------- test/fixtures/help-lb.txt | 7 ------- 16 files changed, 1 insertion(+), 106 deletions(-) diff --git a/bin/loopback-cli.js b/bin/loopback-cli.js index b2f10ae..2a18dc3 100755 --- a/bin/loopback-cli.js +++ b/bin/loopback-cli.js @@ -13,7 +13,7 @@ const debug = require('debug')('loopback:cli'); const minimist = require('minimist'); const path = require('path'); -console.log(chalk.bold(chalk.red(` +console.error(chalk.bold(chalk.red(` LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical security fixes will be provided. The support ends in December 2020. We urge all LoopBack 3 users to migrate their applications to LoopBack 4 diff --git a/test/fixtures/help-lb-acl.txt b/test/fixtures/help-lb-acl.txt index 550d953..59967ff 100644 --- a/test/fixtures/help-lb-acl.txt +++ b/test/fixtures/help-lb-acl.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb acl [options] diff --git a/test/fixtures/help-lb-bluemix.txt b/test/fixtures/help-lb-bluemix.txt index 1d3c838..3ef108c 100644 --- a/test/fixtures/help-lb-bluemix.txt +++ b/test/fixtures/help-lb-bluemix.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb bluemix [options] diff --git a/test/fixtures/help-lb-boot-script.txt b/test/fixtures/help-lb-boot-script.txt index deb05ea..a20c545 100644 --- a/test/fixtures/help-lb-boot-script.txt +++ b/test/fixtures/help-lb-boot-script.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb boot-script [options] [] diff --git a/test/fixtures/help-lb-datasource.txt b/test/fixtures/help-lb-datasource.txt index be9f5a7..91782d4 100644 --- a/test/fixtures/help-lb-datasource.txt +++ b/test/fixtures/help-lb-datasource.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb datasource [options] [] diff --git a/test/fixtures/help-lb-export-api-def.txt b/test/fixtures/help-lb-export-api-def.txt index 1e03dbb..4a4e00e 100644 --- a/test/fixtures/help-lb-export-api-def.txt +++ b/test/fixtures/help-lb-export-api-def.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb export-api-def [options] diff --git a/test/fixtures/help-lb-middleware.txt b/test/fixtures/help-lb-middleware.txt index 55a8f7d..ec20305 100644 --- a/test/fixtures/help-lb-middleware.txt +++ b/test/fixtures/help-lb-middleware.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb middleware [options] [] diff --git a/test/fixtures/help-lb-model.txt b/test/fixtures/help-lb-model.txt index 7aeece6..5cde92a 100644 --- a/test/fixtures/help-lb-model.txt +++ b/test/fixtures/help-lb-model.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb model [options] [] diff --git a/test/fixtures/help-lb-oracle.txt b/test/fixtures/help-lb-oracle.txt index ed281ce..48fa3bb 100644 --- a/test/fixtures/help-lb-oracle.txt +++ b/test/fixtures/help-lb-oracle.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb oracle [options] diff --git a/test/fixtures/help-lb-property.txt b/test/fixtures/help-lb-property.txt index d23cf97..3677631 100644 --- a/test/fixtures/help-lb-property.txt +++ b/test/fixtures/help-lb-property.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb property [options] diff --git a/test/fixtures/help-lb-relation.txt b/test/fixtures/help-lb-relation.txt index 188c176..dea57c6 100644 --- a/test/fixtures/help-lb-relation.txt +++ b/test/fixtures/help-lb-relation.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb relation [options] diff --git a/test/fixtures/help-lb-remote-method.txt b/test/fixtures/help-lb-remote-method.txt index 1187e8b..b449f40 100644 --- a/test/fixtures/help-lb-remote-method.txt +++ b/test/fixtures/help-lb-remote-method.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb remote-method [options] [] [] diff --git a/test/fixtures/help-lb-soap.txt b/test/fixtures/help-lb-soap.txt index 9b5c073..7db8540 100644 --- a/test/fixtures/help-lb-soap.txt +++ b/test/fixtures/help-lb-soap.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb soap [options] [] diff --git a/test/fixtures/help-lb-swagger.txt b/test/fixtures/help-lb-swagger.txt index 1ed725d..a4bccee 100644 --- a/test/fixtures/help-lb-swagger.txt +++ b/test/fixtures/help-lb-swagger.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb swagger [options] [] diff --git a/test/fixtures/help-lb-zosconnectee.txt b/test/fixtures/help-lb-zosconnectee.txt index ff9107f..1d2b617 100644 --- a/test/fixtures/help-lb-zosconnectee.txt +++ b/test/fixtures/help-lb-zosconnectee.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb zosconnectee [options] diff --git a/test/fixtures/help-lb.txt b/test/fixtures/help-lb.txt index 6899cd6..37ad104 100644 --- a/test/fixtures/help-lb.txt +++ b/test/fixtures/help-lb.txt @@ -1,10 +1,3 @@ - -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. 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 - Usage: lb app [options] [] From 49eb7b828b6409599a1f2f13a1548b455757dfad Mon Sep 17 00:00:00 2001 From: Rifa Achrinza <25147899+achrinza@users.noreply.github.com> Date: Thu, 31 Dec 2020 10:29:40 +0800 Subject: [PATCH 40/42] chore: update LTS status to End-of-Life MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see https://github.com/strongloop/loopback-next/issues/6957 Co-authored-by: Miroslav Bajtoš --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 33756cd..c7d8e0e 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,9 @@ LoopBack CLI tool for creating projects, models and more. This package supersedes the older `slc` tool. -**⚠️ LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. (See +**⚠️ 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.)** We urge all LoopBack 3 users to migrate their applications to LoopBack 4 as @@ -100,7 +101,7 @@ This module adopts the [Module Long Term Support (LTS)](http://github.com/CloudN | Version | Status | Published | EOL | | ------- | --------------- | --------- | -------- | -| 5.x | Maintenance LTS | Nov 2018 | Dec 2020 | +| 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 | From cb2cfb75f74301c0ff5f78dbf5e0562badcd417a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 19 Jan 2021 15:42:28 +0100 Subject: [PATCH 41/42] Reword end-of-life warning printed by CLI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miroslav Bajtoš --- bin/loopback-cli.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/loopback-cli.js b/bin/loopback-cli.js index 2a18dc3..9b33bad 100755 --- a/bin/loopback-cli.js +++ b/bin/loopback-cli.js @@ -14,9 +14,12 @@ const minimist = require('minimist'); const path = require('path'); console.error(chalk.bold(chalk.red(` -LoopBack 3 is in Maintenance LTS mode, only critical bugs and critical -security fixes will be provided. The support ends in December 2020. We -urge all LoopBack 3 users to migrate their applications to LoopBack 4 +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 `))); From c302bf7e833043f53f69ce25958757826477aaec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Tue, 19 Jan 2021 16:11:50 +0100 Subject: [PATCH 42/42] 5.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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) --- CHANGES.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 331d510..888e4e7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,13 @@ +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 ========================= diff --git a/package.json b/package.json index bff99a2..3bdb5b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loopback-cli", - "version": "5.1.0", + "version": "5.2.0", "description": "LoopBack CLI tool for creating projects, models and more.", "license": "MIT", "homepage": "http://loopback.io",