|
| 1 | +# Changelog |
| 2 | +All notable changes to this project will be documented in this file. |
| 3 | + |
| 4 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 5 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 6 | + |
| 7 | +## [Unreleased] |
| 8 | + |
| 9 | +## [0.6.0] - 2022-05-20 |
| 10 | +### Added |
| 11 | +- `authenticate()`, `req#login`, and `req#logout` accept a |
| 12 | +`keepSessionInfo: true` option to keep session information after regenerating |
| 13 | +the session. |
| 14 | + |
| 15 | +### Changed |
| 16 | + |
| 17 | +- `req#login()` and `req#logout()` regenerate the the session and clear session |
| 18 | +information by default. |
| 19 | +- `req#logout()` is now an asynchronous function and requires a callback |
| 20 | +function as the last argument. |
| 21 | + |
| 22 | +### Security |
| 23 | + |
| 24 | +- Improved robustness against session fixation attacks in cases where there is |
| 25 | +physical access to the same system or the application is susceptible to |
| 26 | +cross-site scripting (XSS). |
| 27 | + |
| 28 | +## [0.5.3] - 2022-05-16 |
| 29 | +### Fixed |
| 30 | + |
| 31 | +- `initialize()` middleware extends request with `login()`, `logIn()`, |
| 32 | +`logout()`, `logOut()`, `isAuthenticated()`, and `isUnauthenticated()` functions |
| 33 | +again, reverting change from 0.5.1. |
| 34 | + |
| 35 | +## [0.5.2] - 2021-12-16 |
| 36 | +### Fixed |
| 37 | +- Introduced a compatibility layer for strategies that depend directly on |
| 38 | +`[email protected]` or earlier (such as `passport-azure-ad`), which were |
| 39 | +broken by the removal of private variables in `[email protected]`. |
| 40 | + |
| 41 | +## [0.5.1] - 2021-12-15 |
| 42 | +### Added |
| 43 | +- Informative error message in session strategy if session support is not |
| 44 | +available. |
| 45 | + |
| 46 | +### Changed |
| 47 | + |
| 48 | +- `authenticate()` middleware, rather than `initialize()` middleware, extends |
| 49 | +request with `login()`, `logIn()`, `logout()`, `logOut()`, `isAuthenticated()`, |
| 50 | +and `isUnauthenticated()` functions. |
| 51 | + |
| 52 | +## [0.5.0] - 2021-09-23 |
| 53 | +### Changed |
| 54 | + |
| 55 | +- `initialize()` middleware extends request with `login()`, `logIn()`, |
| 56 | +`logout()`, `logOut()`, `isAuthenticated()`, and `isUnauthenticated()` |
| 57 | +functions. |
| 58 | + |
| 59 | +### Removed |
| 60 | + |
| 61 | +- `login()`, `logIn()`, `logout()`, `logOut()`, `isAuthenticated()`, and |
| 62 | +`isUnauthenticated()` functions no longer added to `http.IncomingMessage.prototype`. |
| 63 | + |
| 64 | +### Fixed |
| 65 | + |
| 66 | +- `userProperty` option to `initialize()` middleware only affects the current |
| 67 | +request, rather than all requests processed via singleton Passport instance, |
| 68 | +eliminating a race condition in situations where `initialize()` middleware is |
| 69 | +used multiple times in an application with `userProperty` set to different |
| 70 | +values. |
| 71 | + |
| 72 | +[Unreleased]: https://github.com/jaredhanson/passport/compare/v0.6.0...HEAD |
| 73 | +[0.6.0]: https://github.com/jaredhanson/passport/compare/v0.5.3...v0.6.0 |
| 74 | +[0.5.3]: https://github.com/jaredhanson/passport/compare/v0.5.2...v0.5.3 |
| 75 | +[0.5.2]: https://github.com/jaredhanson/passport/compare/v0.5.1...v0.5.2 |
| 76 | +[0.5.1]: https://github.com/jaredhanson/passport/compare/v0.5.0...v0.5.1 |
0 commit comments