koa-passport
Advanced tools
Comparing version 2.2.1 to 2.2.2
# Changelog | ||
## 2.2.2 | ||
- remove `ctx.req.user` deprecation warning for now #66 | ||
## 2.2.1 | ||
- fix middleware to properly catch promise errors #63 | ||
## 2.2.0 | ||
@@ -4,0 +12,0 @@ |
@@ -7,3 +7,2 @@ 'use strict' | ||
const passport = require('passport') | ||
const deprecate = require('depd')('koa-passport') | ||
@@ -33,7 +32,5 @@ /** | ||
get: function() { | ||
deprecate('getting ctx.req.' + userProperty + ' is deprecated in favour of ctx.state.' + userProperty) | ||
return ctx.passport[userProperty] | ||
}, | ||
set: function(val) { | ||
deprecate('setting ctx.req.' + userProperty + ' is deprecated in favour of ctx.state.' + userProperty) | ||
ctx.passport[userProperty] = val | ||
@@ -40,0 +37,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Passport middleware for Koa", | ||
@@ -21,3 +21,2 @@ "keywords": [ | ||
"dependencies": { | ||
"depd": "^1.1.0", | ||
"passport": "^0.3.0" | ||
@@ -30,3 +29,3 @@ }, | ||
"koa-route": "^3.0.0", | ||
"mocha": "^2.2.0", | ||
"mocha": "^3.0.0", | ||
"passport-local": "^1.0.0", | ||
@@ -33,0 +32,0 @@ "supertest": "^1.0.0", |
1
15632
322
- Removeddepd@^1.1.0
- Removeddepd@1.1.2(transitive)