koa-passport
Advanced tools
Comparing version 4.1.4 to 5.0.0
# Changelog | ||
## 5.0.0 | ||
- upgrade `passport` to 0.6 | ||
## 4.1.4 | ||
@@ -4,0 +8,0 @@ |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "4.1.4", | ||
"version": "5.0.0", | ||
"description": "Passport middleware for Koa", | ||
@@ -21,10 +21,9 @@ "keywords": [ | ||
"dependencies": { | ||
"passport": "^0.4.0" | ||
"passport": "^0.6.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"jest": "^28.1.3", | ||
"koa": "^2.6.2", | ||
"koa-bodyparser": "^4.2.1", | ||
"koa-route": "^3.2", | ||
"mocha": "^8.3.1", | ||
"passport-local": "^1.0", | ||
@@ -39,3 +38,3 @@ "supertest": "^6.1.3" | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "jest --testMatch '**/test/*.js'" | ||
}, | ||
@@ -42,0 +41,0 @@ "engines": { |
@@ -9,14 +9,9 @@ # koa-passport | ||
koa-passport version | koa version | branch | ||
--------------------- | ------------| ------ | ||
1.x | 1.x | v1.x | ||
2.x | 2.x | v2.x | ||
4.x | 2.x | master | ||
koa-passport version | passport version | koa version | branch | ||
--------------------- | ---------------- | ------------| ------ | ||
5.x | 6.x, 5.x | 2.x | main | ||
4.x | 4.x | 2.x | v3.x | ||
3.x, 2.x | 2.x | 2.x | v2.x | ||
1.x | 1.x | 1.x | v1.x | ||
## Migration to `v3` | ||
- change `ctx.passport.*` to `ctx.state.*` (e.g. `ctx.passport.user` to `ctx.state.user`) | ||
- don't call passport methods on `ctx.req` (e.g. use `ctx.login` instead of `ctx.req.login`) | ||
- update custom authentication callback arguments to `err, user, info, status` (e.g. `passport.authenticate('local', function(err, user, info, status) { ... })(ctx, next)`) | ||
## Usage | ||
@@ -23,0 +18,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6
16852
54
+ Addedpassport@0.6.0(transitive)
+ Addedutils-merge@1.0.1(transitive)
- Removedpassport@0.4.1(transitive)
Updatedpassport@^0.6.0