Releases: simplymichael/express-user-manager
Releases · simplymichael/express-user-manager
Routing and Password validation fix
Hooks
⚠ BREAKING CHANGES
- app (new methods):
- SESSION_TOKEN_KEY deprecated in favour of SESSION_SECRET
- AUTH_TOKEN_KEY deprecated in favour of AUTH_TOKEN_SECRET
- PASSWORD_BLACK_LIST deprecated in favour of DISALLOWED_PASSWORDS
- app (src/index.js):
-
express-user-manager.getDbDriver()
has been removed. Calls to it will error. -
express-user-manager.getDbAdapter(adapter)
no longer returns a constructor, instead it returns an object.
This means the following no longer works:const DataStore = userManager.getDbAdapter(adapter); const store = new DataStore(); // Error: DataStore is not a constructor userManager.set('store', store);
Do this instead:
const store = userManager.getDbAdapter(adapter);
This still performs all the previous initialization steps, but internally.
-
✨ Features
- app (src/index.js): simplify the API setup (e49c432)
- Run initialization and setup tasks, including connecting to the DB and listening for connections, in one call via
await userManager.init(app, configObject);
- Run initialization and setup tasks, including connecting to the DB and listening for connections, in one call via
- app (new methods): add new configuration and initialization methods:
userManager.config()
,userManager.init()
(8e306ef)- specify configuration properties via
userManager.config(configOptions);
- database connection parameters can now be specified in 3 ways:
- via
userManager.config()
- via environment variables (which can be set using a .env file at the root of your project),
- calling
userManager.getDbAdapter(adapter).connect(connectionOptions);
and passing in the connection options
- via
- specify configuration properties via
- routing: implement user data update route (f487bf0)
- hooks: define custom middlewares for hooking into the request-response cycle
Power to customize
Support more database engines
Features
Add support for in-memory data-storage and for the following database engines: (ad39a98)
- MariaDB
- Microsoft SQL Server
- Postgres
- SQLite
Bug Fixes
- fix the
getUsers()
filtering bug (bfcb508)
⚠ BREAKING CHANGES
- Calls to
express-user-manager.getDbDriver('mysql')
will fail. - Passing connection parameters to the constructor returned by the call to
express-user-manager.getDbDriver()
no longer connects to the database, theconnect()
method must be explicitly called on the instantiated object and passed the connection parameters. express-user-manager.getDbDriver()
is now deprecated and will be removed in an upcoming release; useexpress-user manager.getDbAdapter()
instead.
Add MySQL Database support
Features
- Supported database engines: Add support for MySQL Database using MySQL2 and Sequelize adapter
Built-in server `start` command correction
1.0.3 docs(package.json (version-bump)): bump the version from 1.0.2 to 1.0.3
Debug identifier update
Update debug output identifier from user-manager
to express-user-manager
Package description update
1.0.1 docs(package.json): bump the version from 1.0.0 to 1.0.1
Initial public release
1.0.0 build(.travis.yml): specify the mongodb version (4.4.1) to pull from …