Skip to content

Releases: simplymichael/express-user-manager

Routing and Password validation fix

16 Apr 01:44
Compare
Choose a tag to compare

🐞 Bug Fix

  • Fix mount point and routing configuration issues (c2a1bb3), closes #3
  • Fix bug in password validation routine (2cd3c21), closes #2

Hooks

02 Jan 13:17
Compare
Choose a tag to compare

⚠ 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);
  • 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
  • routing: implement user data update route (f487bf0)
  • hooks: define custom middlewares for hooking into the request-response cycle

Power to customize

21 Dec 19:05
Compare
Choose a tag to compare

✨ Features

  • passwords: allow customization of password length and non-secure passwords list (cf2d977)

  • users listing: implement results filtering, pagination, and limit (3309734)

Support more database engines

20 Dec 20:27
Compare
Choose a tag to compare

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, the connect() 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; use express-user manager.getDbAdapter() instead.

Add MySQL Database support

19 Dec 15:35
Compare
Choose a tag to compare

Features

  • Supported database engines: Add support for MySQL Database using MySQL2 and Sequelize adapter

Built-in server `start` command correction

18 Dec 12:59
Compare
Choose a tag to compare
1.0.3

docs(package.json (version-bump)): bump the version from 1.0.2 to 1.0.3

Debug identifier update

18 Dec 00:53
Compare
Choose a tag to compare

Update debug output identifier from user-manager to express-user-manager

Package description update

17 Dec 12:19
Compare
Choose a tag to compare
1.0.1

docs(package.json): bump the version from 1.0.0 to 1.0.1

Initial public release

17 Dec 12:14
Compare
Choose a tag to compare
1.0.0

build(.travis.yml): specify the mongodb version (4.4.1) to pull from …