@loopback/example-passport-login 6.1.4 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,32 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [7.0.0](https://github.com/loopbackio/loopback-next/compare/@loopback/example-passport-login@6.1.5...@loopback/example-passport-login@7.0.0) (2025-06-10)
7
+
8
+
9
+ ### chore
10
+
11
+ * drop Node.js 18 support ([88a3fe9](https://github.com/loopbackio/loopback-next/commit/88a3fe98f8ca217271eb028697278355ec7c9478))
12
+
13
+
14
+ ### BREAKING CHANGES
15
+
16
+ * drop Node.js 18 support
17
+
18
+ Signed-off-by: dhmlau <dhmlau@ca.ibm.com>
19
+
20
+
21
+
22
+
23
+
24
+ ## [6.1.5](https://github.com/loopbackio/loopback-next/compare/@loopback/example-passport-login@6.1.4...@loopback/example-passport-login@6.1.5) (2025-05-13)
25
+
26
+ **Note:** Version bump only for package @loopback/example-passport-login
27
+
28
+
29
+
30
+
31
+
6
32
  ## [6.1.4](https://github.com/loopbackio/loopback-next/compare/@loopback/example-passport-login@6.1.3...@loopback/example-passport-login@6.1.4) (2025-04-17)
7
33
 
8
34
  **Note:** Version bump only for package @loopback/example-passport-login
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loopback/example-passport-login",
3
3
  "description": "An example to demonstrate authentication with passport strategies",
4
- "version": "6.1.4",
4
+ "version": "7.0.0",
5
5
  "keywords": [
6
6
  "loopback",
7
7
  "LoopBack",
@@ -21,7 +21,7 @@
21
21
  "directory": "examples/passport-login"
22
22
  },
23
23
  "engines": {
24
- "node": "18 || 20 || 22"
24
+ "node": "20 || 22 || 24"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "lb-tsc",
@@ -47,19 +47,19 @@
47
47
  "access": "public"
48
48
  },
49
49
  "dependencies": {
50
- "@loopback/authentication": "^11.0.13",
51
- "@loopback/authentication-passport": "^7.0.13",
52
- "@loopback/boot": "^7.0.13",
53
- "@loopback/core": "^6.1.10",
54
- "@loopback/mock-oauth2-provider": "^0.9.13",
55
- "@loopback/repository": "^7.0.13",
56
- "@loopback/rest": "^14.0.13",
57
- "@loopback/rest-crud": "^0.18.13",
58
- "@loopback/rest-explorer": "^7.0.13",
59
- "@loopback/security": "^0.11.13",
60
- "@loopback/service-proxy": "^7.0.13",
50
+ "@loopback/authentication": "^12.0.0",
51
+ "@loopback/authentication-passport": "^8.0.0",
52
+ "@loopback/boot": "^8.0.0",
53
+ "@loopback/core": "^7.0.0",
54
+ "@loopback/mock-oauth2-provider": "^0.10.0",
55
+ "@loopback/repository": "^8.0.0",
56
+ "@loopback/rest": "^15.0.0",
57
+ "@loopback/rest-crud": "^0.19.0",
58
+ "@loopback/rest-explorer": "^8.0.0",
59
+ "@loopback/security": "^0.12.0",
60
+ "@loopback/service-proxy": "^8.0.0",
61
61
  "@types/jsonwebtoken": "9.0.9",
62
- "@types/lodash": "^4.17.16",
62
+ "@types/lodash": "^4.17.17",
63
63
  "@types/passport": "^1.0.17",
64
64
  "@types/passport-facebook": "^3.0.3",
65
65
  "@types/passport-google-oauth": "^1.0.45",
@@ -70,10 +70,9 @@
70
70
  "@types/passport-twitter": "1.0.40",
71
71
  "body-parser": "^2.2.0",
72
72
  "client-sessions": "^0.8.0",
73
- "debug": "^4.4.0",
73
+ "debug": "^4.4.1",
74
74
  "express": "^4.21.2",
75
75
  "express-session": "^1.18.1",
76
- "jade": "^1.11.0",
77
76
  "lodash": "^4.17.21",
78
77
  "passport": "^0.5.3",
79
78
  "passport-facebook": "^3.0.0",
@@ -84,20 +83,21 @@
84
83
  "passport-oauth2": "^1.8.0",
85
84
  "passport-twitter": "1.0.4",
86
85
  "path": "^0.12.7",
86
+ "pug": "^3.0.3",
87
87
  "tslib": "^2.8.1"
88
88
  },
89
89
  "devDependencies": {
90
- "@loopback/build": "^11.0.11",
91
- "@loopback/eslint-config": "^15.0.5",
92
- "@loopback/http-caching-proxy": "^6.0.13",
93
- "@loopback/testlab": "^7.0.12",
94
- "@types/express": "^4.17.21",
95
- "@types/lodash": "^4.17.16",
90
+ "@loopback/build": "^12.0.0",
91
+ "@loopback/eslint-config": "^16.0.0",
92
+ "@loopback/http-caching-proxy": "^7.0.0",
93
+ "@loopback/testlab": "^8.0.0",
94
+ "@types/express": "^4.17.23",
95
+ "@types/lodash": "^4.17.17",
96
96
  "@types/node": "^16.18.126",
97
- "axios": "^1.8.4",
97
+ "axios": "^1.9.0",
98
98
  "eslint": "^8.57.1",
99
99
  "lodash": "^4.17.21",
100
100
  "typescript": "~5.2.2"
101
101
  },
102
- "gitHead": "1a389bb6fe31fec81a82825493cc66f830cd6655"
102
+ "gitHead": "be9e7324fca771c50502bdbd312821be8f94347e"
103
103
  }
@@ -14,21 +14,21 @@ const session = require('client-sessions');
14
14
  const path = require('path');
15
15
  const bodyParser = require('body-parser');
16
16
  const app = (module.exports = express());
17
- const userLoginTemplate = require.resolve('./views/pages/login.jade');
17
+ const userLoginTemplate = require.resolve('./views/pages/login.pug');
18
18
 
19
19
  /**
20
20
  * save a copy of the jade login template,
21
21
  * to use in 'Post /users/signup' and 'POST /login_submit' routes.
22
22
  * Reasons explained in the route handler.
23
23
  */
24
- const loginTemplate = require('jade').compileFile(userLoginTemplate);
24
+ const loginTemplate = require('pug').compileFile(userLoginTemplate);
25
25
 
26
26
  /**
27
- * use jade as view engine
28
- * Note: jade templates copied from loopback-example-passport
27
+ * use pug as view engine
28
+ * Note: jade/pug templates copied from loopback-example-passport
29
29
  */
30
30
  app.set('views', path.join(__dirname, 'views'));
31
- app.set('view engine', 'jade');
31
+ app.set('view engine', 'pug');
32
32
 
33
33
  // to support json payload in body
34
34
  app.use(bodyParser.json());