From 49b3c77f064ec2f4e79e3ec5db02083ae06fed25 Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Mon, 11 Apr 2016 14:04:00 -0400 Subject: [PATCH 01/20] Add eslint infrastructure --- .eslintignore | 0 .eslintrc | 10 ++++++++++ .jshintignore | 2 -- .jshintrc | 21 --------------------- package.json | 7 +++++-- 5 files changed, 15 insertions(+), 25 deletions(-) create mode 100644 .eslintignore create mode 100644 .eslintrc delete mode 100644 .jshintignore delete mode 100644 .jshintrc diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..e69de29 diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..4ed9690 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,10 @@ +{ + "extends": "loopback", + "rules": { + "max-len": ["error", 80, 4, { + "ignoreComments": true, + "ignoreUrls": true, + "ignorePattern": "^\\s*var\\s.+=\\s*(require\\s*\\()|(/)" + }] + } +} \ No newline at end of file diff --git a/.jshintignore b/.jshintignore deleted file mode 100644 index ee8c771..0000000 --- a/.jshintignore +++ /dev/null @@ -1,2 +0,0 @@ -/client/ -/node_modules/ diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index feb0928..0000000 --- a/.jshintrc +++ /dev/null @@ -1,21 +0,0 @@ -{ - "node": true, - "esnext": true, - "bitwise": true, - "camelcase": true, - "eqeqeq": true, - "eqnull": true, - "immed": true, - "indent": 2, - "latedef": "nofunc", - "newcap": true, - "nonew": true, - "noarg": true, - "quotmark": "single", - "regexp": true, - "undef": true, - "unused": false, - "trailing": true, - "sub": true, - "maxlen": 80 -} diff --git a/package.json b/package.json index 378b63d..35dfabf 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "scripts": { "pretest": "jshint .", "start": "node .", - "test": "tape test/*.js" + "test": "tape test/*.js", + "lint": "eslint .", + "posttest": "npm run lint" }, "dependencies": { "compression": "^1.0.3", @@ -18,7 +20,8 @@ "serve-favicon": "^2.0.1" }, "devDependencies": { - "jshint": "^2.5.6", + "eslint": "^2.7.0", + "eslint-config-loopback": "^1.0.0", "tape": "^4.2.2" }, "repository": { From 689483015e18cd6abfe0af1bf841a85c98bcfbbe Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Mon, 11 Apr 2016 14:09:27 -0400 Subject: [PATCH 02/20] Auto-update by eslint --fix --- bin/automigrate.js | 6 +++--- bin/instance-introspection.js | 4 ++-- package.json | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bin/automigrate.js b/bin/automigrate.js index ec95d81..7641042 100644 --- a/bin/automigrate.js +++ b/bin/automigrate.js @@ -9,13 +9,13 @@ ds.automigrate('Account', function(err) { { email: 'john.doe@ibm.com', createdAt: new Date(), - lastModifiedAt: new Date() + lastModifiedAt: new Date(), }, { email: 'jane.doe@ibm.com', createdAt: new Date(), - lastModifiedAt: new Date() - } + lastModifiedAt: new Date(), + }, ]; var count = accounts.length; accounts.forEach(function(account) { diff --git a/bin/instance-introspection.js b/bin/instance-introspection.js index 7cbc8d8..d6b5cd2 100644 --- a/bin/instance-introspection.js +++ b/bin/instance-introspection.js @@ -6,10 +6,10 @@ var ds = app.datasources.accountDS; var account = { email: 'bob.doe@ibm.com', createdAt: new Date(), - lastModifiedAt: new Date() + lastModifiedAt: new Date(), }; var opts = { - idInjection: true + idInjection: true, }; var Account = ds.buildModelFromInstance('Account', account, opts); diff --git a/package.json b/package.json index 35dfabf..827137a 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,9 @@ "version": "2.0.0", "main": "server/server.js", "scripts": { - "pretest": "jshint .", "start": "node .", + "lint": "eslint .", "test": "tape test/*.js", - "lint": "eslint .", "posttest": "npm run lint" }, "dependencies": { From 3a72159cbc6260d294cc34588d6b2e1c4a13bc76 Mon Sep 17 00:00:00 2001 From: Ryan Graham Date: Thu, 5 May 2016 21:34:04 -0700 Subject: [PATCH 03/20] update copyright notices and license --- LICENSE.md => LICENSE | 6 +++++- bin/automigrate.js | 5 +++++ bin/instance-introspection.js | 5 +++++ common/models/account.js | 5 +++++ package.json | 4 ++-- server/boot/authentication.js | 5 +++++ server/boot/root.js | 5 +++++ server/server.js | 5 +++++ test/smoke.js | 5 +++++ 9 files changed, 42 insertions(+), 3 deletions(-) rename LICENSE.md => LICENSE (85%) diff --git a/LICENSE.md b/LICENSE similarity index 85% rename from LICENSE.md rename to LICENSE index 12c1973..0fda15e 100644 --- a/LICENSE.md +++ b/LICENSE @@ -1,4 +1,8 @@ -Copyright (c) 2013-2015 StrongLoop, Inc. +Copyright (c) IBM Corp. 2013,2016. All Rights Reserved. +Node module: loopback-example-database +This project is licensed under the MIT License, full text below. + +-------- MIT license diff --git a/bin/automigrate.js b/bin/automigrate.js index 7641042..e2f79fc 100644 --- a/bin/automigrate.js +++ b/bin/automigrate.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-example-database +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var path = require('path'); var app = require(path.resolve(__dirname, '../server/server')); diff --git a/bin/instance-introspection.js b/bin/instance-introspection.js index d6b5cd2..be8eabf 100644 --- a/bin/instance-introspection.js +++ b/bin/instance-introspection.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015,2016. All Rights Reserved. +// Node module: loopback-example-database +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var path = require('path'); var app = require(path.resolve(__dirname, '../server/server')); diff --git a/common/models/account.js b/common/models/account.js index f1c967e..f89e7e4 100644 --- a/common/models/account.js +++ b/common/models/account.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015. All Rights Reserved. +// Node module: loopback-example-database +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(Account) { }; diff --git a/package.json b/package.json index 827137a..a228c2f 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,9 @@ "main": "server/server.js", "scripts": { "start": "node .", - "lint": "eslint .", + "lint": "eslint .", "test": "tape test/*.js", - "posttest": "npm run lint" + "posttest": "npm run lint" }, "dependencies": { "compression": "^1.0.3", diff --git a/server/boot/authentication.js b/server/boot/authentication.js index a87cd08..2cd9389 100644 --- a/server/boot/authentication.js +++ b/server/boot/authentication.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-example-database +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function enableAuthentication(server) { // enable authentication server.enableAuth(); diff --git a/server/boot/root.js b/server/boot/root.js index e106142..8e22f8a 100644 --- a/server/boot/root.js +++ b/server/boot/root.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014. All Rights Reserved. +// Node module: loopback-example-database +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + module.exports = function(server) { // Install a `/` route that returns server status var router = server.loopback.Router(); diff --git a/server/server.js b/server/server.js index 3be7b08..7f5709d 100644 --- a/server/server.js +++ b/server/server.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2014,2015. All Rights Reserved. +// Node module: loopback-example-database +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var loopback = require('loopback'); var boot = require('loopback-boot'); diff --git a/test/smoke.js b/test/smoke.js index e01c3f4..074595b 100644 --- a/test/smoke.js +++ b/test/smoke.js @@ -1,3 +1,8 @@ +// Copyright IBM Corp. 2015. All Rights Reserved. +// Node module: loopback-example-database +// This file is licensed under the MIT License. +// License text available at https://opensource.org/licenses/MIT + var test = require('tape'); test('smoke test', function(t) { From 5eb410001763490389bbaaf17744d81a8d8c4750 Mon Sep 17 00:00:00 2001 From: Ryan Graham Date: Wed, 13 Jul 2016 17:42:27 -0700 Subject: [PATCH 04/20] Update URLs in CONTRIBUTING.md (#29) --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d6b2e78..0591409 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -147,5 +147,5 @@ Contributing to `loopback-example-database` is easy. In a few simple steps: inaccurate in any respect. Email us at callback@strongloop.com. ``` -[Google C++ Style Guide]: https://google-styleguide.googlecode.com/svn/trunk/cppguide.xml -[Google Javascript Style Guide]: https://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml +[Google C++ Style Guide]: https://google.github.io/styleguide/cppguide.html +[Google Javascript Style Guide]: https://google.github.io/styleguide/javascriptguide.xml From 66e9e37a26e46050e37491277c188a31c47d679a Mon Sep 17 00:00:00 2001 From: Amir Jafarian Date: Mon, 31 Oct 2016 17:09:14 -0400 Subject: [PATCH 05/20] Update README with correct doc links, etc --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ef56bd2..c1eb10e 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ slc loopback:model Account With the `account` model configured, we can generate the corresponding MongoDB collection using the info from the `Account` metadata in [`common/models/account.json`](common/models/account.json) -via [*auto-migration*](https://docs.strongloop.com/display/public/LB/Implementing+auto-migration). +via [*auto-migration*](http://loopback.io/doc/en/lb2/Implementing-auto-migration.html). Start by creating a dir to store general-purpose scripts: @@ -220,7 +220,7 @@ You should see: ### 8. Add a script to perform instance instrospection (Discovery) -> [*Discovery*](https://docs.strongloop.com/display/public/LB/Discovering+models+from+relational+databases) +> [*Discovery*](http://loopback.io/doc/en/lb2/Discovering-models-from-relational-databases.html) > is the process of reverse engineering a LoopBack model from an existing database schema. The LoopBack MongoDB connector does not support discovery. However, you can use @@ -243,7 +243,7 @@ Created: { email: 'bob.doe@ibm.com', id: 56299d9d71c7f600719ca39f } ``` -> See the [official docs](http://docs.strongloop.com/display/LB/Creating+models+from+unstructured+data) +> See the [official docs](http://loopback.io/doc/en/lb2/Creating-models-from-unstructured-data.html) > for more info. --- From db9091db8972ac06a8a80ff647d5488fde7e39bc Mon Sep 17 00:00:00 2001 From: jannyHou Date: Fri, 11 Nov 2016 14:39:45 -0500 Subject: [PATCH 06/20] Update to LB3 --- package.json | 7 ++++--- server/config.json | 8 ++------ server/middleware.json | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index a228c2f..45fcbf9 100644 --- a/package.json +++ b/package.json @@ -10,13 +10,14 @@ }, "dependencies": { "compression": "^1.0.3", - "cors": "^2.5.2", + "cors": "^2.8.1", "loopback": "^2.22.0", "loopback-boot": "^2.6.5", "loopback-component-explorer": "^2.1.0", "loopback-connector-mongodb": "^1.13.0", - "loopback-datasource-juggler": "^2.39.0", - "serve-favicon": "^2.0.1" + "loopback": "^3.0.0", + "serve-favicon": "^2.0.1", + "strong-error-handler": "^1.1.0" }, "devDependencies": { "eslint": "^2.7.0", diff --git a/server/config.json b/server/config.json index ac5e58c..bf46eb4 100644 --- a/server/config.json +++ b/server/config.json @@ -3,9 +3,7 @@ "host": "0.0.0.0", "port": 3000, "remoting": { - "context": { - "enableHttpContext": false - }, + "context": false, "rest": { "normalizeHttpPath": false, "xml": false @@ -19,9 +17,7 @@ "limit": "100kb" }, "cors": false, - "errorHandler": { - "disableStackTrace": false - } + "errorHandler": false }, "legacyExplorer": false } diff --git a/server/middleware.json b/server/middleware.json index 1f334b2..9fbfdec 100644 --- a/server/middleware.json +++ b/server/middleware.json @@ -27,6 +27,6 @@ "loopback#urlNotFound": {} }, "final:after": { - "loopback#errorHandler": {} + "strong-error-handler": {} } } From f8465ca8696606a4d5285ce0209d577ca84feeee Mon Sep 17 00:00:00 2001 From: jannyHou Date: Fri, 11 Nov 2016 16:12:38 -0500 Subject: [PATCH 07/20] Delete unused loopback2.x --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 45fcbf9..6fe8997 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,10 @@ "dependencies": { "compression": "^1.0.3", "cors": "^2.8.1", - "loopback": "^2.22.0", + "loopback": "^3.0.0", "loopback-boot": "^2.6.5", "loopback-component-explorer": "^2.1.0", "loopback-connector-mongodb": "^1.13.0", - "loopback": "^3.0.0", "serve-favicon": "^2.0.1", "strong-error-handler": "^1.1.0" }, From 97df12b7772188cf403e45643643715b9da16163 Mon Sep 17 00:00:00 2001 From: Siddhi Pai Date: Mon, 5 Dec 2016 23:30:21 -0800 Subject: [PATCH 08/20] Update paid support URL --- .github/ISSUE_TEMPLATE.md | 36 ++++++++++++++++++++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 24 +++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..ccc915a --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,36 @@ + + +### Bug or feature request + + + +- [ ] Bug +- [ ] Feature request + +### Description of feature (or steps to reproduce if bug) + + + +### Link to sample repo to reproduce issue (if bug) + + + +### Expected result + + + +### Actual result (if bug) + + + +### Additional information (Node.js version, LoopBack version, etc) + + diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..d2b240f --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,24 @@ +### Description + + +#### Related issues + + + +- None + +### Checklist + + + +- [ ] New tests added or existing tests modified to cover all changes +- [ ] Code conforms with the [style + guide](http://loopback.io/doc/en/contrib/style-guide.html) From c4df3ab758135f3f1394517f4d6de188ee6f4482 Mon Sep 17 00:00:00 2001 From: ivy ho Date: Wed, 1 Feb 2017 16:50:05 -0500 Subject: [PATCH 09/20] Update Readme to use lb instead of slc --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c1eb10e..cd297cf 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ npm start - Dir to contain the project: `loopback-example-database` ``` -slc loopback loopback-example-database +lb app loopback-example-database ... # follow the prompts ``` @@ -86,7 +86,7 @@ npm install --save loopback-connector-mongodb - Select the connector for `accountDS`: `MongoDB` ``` -slc loopback:datasource accountDS +lb datasource accountDS ... # follow the prompts ``` @@ -118,6 +118,11 @@ server. Edit `server/datasources.json` to set the MongoDB configs: ### 5. Create a new model +``` +lb model +... # follow the prompts +``` + #### Model Info - Model name: `Account` From ee99cc5e246cb2461b8dfa9272204026413eba5f Mon Sep 17 00:00:00 2001 From: ivy ho Date: Fri, 10 Feb 2017 14:00:32 -0500 Subject: [PATCH 10/20] add empty-server connect to strongloop-internal/scrum-loopback/issues#1432 add more details to the app steps to include empty-server template --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd297cf..ff5b9c5 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,25 @@ npm start ``` lb app loopback-example-database -... # follow the prompts + + _-----_ + | | ╭──────────────────────────╮ + |--(o)--| │ Let's create a LoopBack │ + `---------´ │ application! │ + ( _´U`_ ) ╰──────────────────────────╯ + /___A___\ / + | ~ | + __'.___.'__ + ´ ` |° ´ Y ` + +? What's the name of your application? loopback-example-database +? Enter name of the directory to contain the project: loopback-example-database + info change the working directory to loopback-example-database + +? Which version of LoopBack would you like to use? 3.x (current) +? What kind of application do you have in mind? empty-server (An empty LoopBack API, without any c +onfigured models or datasources) + ``` ### 2. Install the LoopBack MongoDB connector From 95d88d459ee78d15374165500a015dc505d8b9f5 Mon Sep 17 00:00:00 2001 From: Siddhi Pai Date: Mon, 13 Feb 2017 10:28:30 -0800 Subject: [PATCH 11/20] Replicate issue_template from loopback repo --- .github/ISSUE_TEMPLATE.md | 39 ++++++++++++--------------------------- 1 file changed, 12 insertions(+), 27 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index ccc915a..c8b30b2 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,36 +1,21 @@ - - -### Bug or feature request - - - -- [ ] Bug -- [ ] Feature request - -### Description of feature (or steps to reproduce if bug) - - - -### Link to sample repo to reproduce issue (if bug) +Immediate support is available through our subscription plans, +see https://strongloop.com/api-connect-faqs/ --> +### Bug/Feature request + ### Expected result + +### Additional information -### Actual result (if bug) - - - -### Additional information (Node.js version, LoopBack version, etc) - + From 0558869bb638a5d22c2b684bfc96e4ddd5cbe43d Mon Sep 17 00:00:00 2001 From: Siddhi Pai Date: Wed, 15 Feb 2017 15:30:11 -0800 Subject: [PATCH 12/20] Replicate new issue_template from loopback --- .github/ISSUE_TEMPLATE.md | 50 +++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 21 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index c8b30b2..269b11d 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,21 +1,29 @@ - - -### Bug/Feature request - - - -### Expected result - - - -### Additional information - - + + +# Description/Steps to reproduce + + + +# Expected result + + + +# Additional information + + From 73e90c78ce80717b35830138c06f9f1b467a13ec Mon Sep 17 00:00:00 2001 From: Candy Date: Thu, 16 Mar 2017 12:49:19 -0400 Subject: [PATCH 13/20] Update readme tutorial link --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ff5b9c5..839129f 100644 --- a/README.md +++ b/README.md @@ -69,15 +69,15 @@ npm start ``` lb app loopback-example-database - _-----_ + _-----_ | | ╭──────────────────────────╮ |--(o)--| │ Let's create a LoopBack │ `---------´ │ application! │ ( _´U`_ ) ╰──────────────────────────╯ /___A___\ / - | ~ | - __'.___.'__ - ´ ` |° ´ Y ` + | ~ | + __'.___.'__ + ´ ` |° ´ Y ` ? What's the name of your application? loopback-example-database ? Enter name of the directory to contain the project: loopback-example-database @@ -271,4 +271,4 @@ Created: { email: 'bob.doe@ibm.com', --- -[More LoopBack examples](https://github.com/strongloop/loopback-example) +[More LoopBack examples](https://loopback.io/doc/en/lb3/Tutorials-and-examples.html) From 628fcc56fed42e24126433b35c9527570119e8f0 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Mon, 24 Jul 2017 19:47:22 -0400 Subject: [PATCH 14/20] Add CODEOWNER file --- CODEOWNERS | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..e8cad33 --- /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 +* @kjdelisle @jannyHou @loay @b-admike @ssh24 @virkt25 @dhmlau From 1ffc34ee5f48d325105b42844a81f4f169064794 Mon Sep 17 00:00:00 2001 From: Sakib Hasan Date: Tue, 15 Aug 2017 18:50:42 -0400 Subject: [PATCH 15/20] Create Issue and PR Templates (#60) * create issue template * create pr template --- .github/ISSUE_TEMPLATE.md | 10 +++++++++- .github/PULL_REQUEST_TEMPLATE.md | 9 +++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 269b11d..795176c 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -11,7 +11,15 @@ Immediate support: + +# Link to reproduction sandbox + + # Expected result 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 499b3155d6515da791c205b63e5a43be1eb83428 Mon Sep 17 00:00:00 2001 From: Kevin Delisle Date: Wed, 23 Aug 2017 08:22:01 -0400 Subject: [PATCH 16/20] Add stalebot configuration --- .github/stale.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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. From 988a96ab10c772f7fe895a65ae3dedba54369337 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Fri, 10 Nov 2017 23:36:49 -0500 Subject: [PATCH 17/20] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 0fda15e..e25b440 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) IBM Corp. 2013,2016. All Rights Reserved. +Copyright (c) IBM Corp. 2013,2017. All Rights Reserved. Node module: loopback-example-database This project is licensed under the MIT License, full text below. From bac0b5cda929cf4dc03b7e053d427191df21d1a1 Mon Sep 17 00:00:00 2001 From: Diana Lau Date: Tue, 29 Jan 2019 22:53:56 -0500 Subject: [PATCH 18/20] chore: update dependencies --- CODEOWNERS | 7 +++++-- package.json | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index e8cad33..24c2021 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,6 +1,9 @@ # 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. + +# Alumni maintainers +# @kjdelisle @loay @ssh24 @virkt25 # Core team members from IBM -* @kjdelisle @jannyHou @loay @b-admike @ssh24 @virkt25 @dhmlau +* @jannyHou @b-admike @dhmlau diff --git a/package.json b/package.json index 6fe8997..dd65a2a 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "cors": "^2.8.1", "loopback": "^3.0.0", "loopback-boot": "^2.6.5", - "loopback-component-explorer": "^2.1.0", - "loopback-connector-mongodb": "^1.13.0", + "loopback-component-explorer": "^6.3.1", + "loopback-connector-mongodb": "^3.9.2", "serve-favicon": "^2.0.1", "strong-error-handler": "^1.1.0" }, From 6b02853a6f2415aeac3a3cd5f7f99237ebcef4dc Mon Sep 17 00:00:00 2001 From: Agnes Lin Date: Tue, 7 May 2019 14:37:36 -0400 Subject: [PATCH 19/20] chore: update copyrights years --- common/models/account.js | 2 +- package.json | 3 ++- server/boot/authentication.js | 2 +- server/boot/root.js | 2 +- server/server.js | 2 +- test/smoke.js | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/common/models/account.js b/common/models/account.js index f89e7e4..bc8e1cd 100644 --- a/common/models/account.js +++ b/common/models/account.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2015. All Rights Reserved. +// Copyright IBM Corp. 2015,2016. All Rights Reserved. // Node module: loopback-example-database // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT diff --git a/package.json b/package.json index dd65a2a..2ba6c08 100644 --- a/package.json +++ b/package.json @@ -28,5 +28,6 @@ "url": "https://github.com/strongloop/loopback-example-database" }, "description": "loopback-example-database", - "license": "MIT" + "license": "MIT", + "author": "IBM Corp." } diff --git a/server/boot/authentication.js b/server/boot/authentication.js index 2cd9389..2e3c97f 100644 --- a/server/boot/authentication.js +++ b/server/boot/authentication.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2014. All Rights Reserved. +// Copyright IBM Corp. 2014,2016. All Rights Reserved. // Node module: loopback-example-database // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT diff --git a/server/boot/root.js b/server/boot/root.js index 8e22f8a..63bb5fa 100644 --- a/server/boot/root.js +++ b/server/boot/root.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2014. All Rights Reserved. +// Copyright IBM Corp. 2014,2016. All Rights Reserved. // Node module: loopback-example-database // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT diff --git a/server/server.js b/server/server.js index 7f5709d..fa68d81 100644 --- a/server/server.js +++ b/server/server.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2014,2015. All Rights Reserved. +// Copyright IBM Corp. 2014,2016. All Rights Reserved. // Node module: loopback-example-database // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT diff --git a/test/smoke.js b/test/smoke.js index 074595b..f0c9a82 100644 --- a/test/smoke.js +++ b/test/smoke.js @@ -1,4 +1,4 @@ -// Copyright IBM Corp. 2015. All Rights Reserved. +// Copyright IBM Corp. 2015,2016. All Rights Reserved. // Node module: loopback-example-database // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT From cbb000bf970804122dedecf002b0638ba0f24cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bajto=C5=A1?= Date: Thu, 5 Mar 2020 10:23:17 +0100 Subject: [PATCH 20/20] Add "no longer maintained" warning to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 839129f..54367a6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # loopback-example-database +**⚠️ This LoopBack 3 example project is no longer maintained. Please refer to [LoopBack 4 Examples](https://loopback.io/doc/en/lb4/Examples.html) instead. ⚠️** + A tutorial for basic database related features. - [Overview](#overview)