All Versions
11
Latest Version
Avg Release Cycle
53 days
Latest Release
2339 days ago

Changelog History
Page 1

  • v1.3.1 Changes

    July 06, 2015
    • โšก๏ธ update dependencies
    • ๐Ÿ›  fix #36 #29
  • v1.3.0 Changes

    September 27, 2014
    • โšก๏ธ update lockit-sendmail with nodemailer 1.x
    • โšก๏ธ update dependencies
  • v1.2.1 Changes

    August 18, 2014
    • ๐Ÿ›  fix bug where different lockit instances share the same config object
    • โšก๏ธ update dependencies
  • v1.2.0 Changes

    July 23, 2014
    • โž• add events 'forgot::sent' and 'forgot::success'
    • โšก๏ธ update dependencies
  • v1.1.0 Changes

    May 29, 2014
    • ๐Ÿ”ฆ expose db adapter as lockit.adapter
    • ๐Ÿ‘ allow usage of custom db adapter (fix #15)
    • ๐Ÿ‘‰ use utils.pipe method for event piping
    • โšก๏ธ update dependencies
    • โž• add tests for event emitter
  • v1.0.0 Changes

    April 19, 2014
    • requires Express 4.x
    • ๐Ÿ‘‰ makes use of express.Router(). No need to pass app around as an argument.

    old

      var Lockit = require('lockit');
    
      var lockit = new Lockit(app, config);
    

    new

      var Lockit = require('lockit');
    
      var lockit = new Lockit(config);
      app.use(lockit.router);
    

    Listening on events stays the same.

      lockit.on('login', function(user, res, target) {
        res.send('Welcome ' + user.name);
      })
    
    • proper Error handling. All Errors are piped to next middleware.

    old

      if (err) console.log(err);
    

    new

      if (err) return next(err);
    

    Make sure you have some sort of error handling middleware at the end of your routes (is included by default in Express 4.x apps if you use the express-generator).

    • ๐Ÿ”ง database configuration is a single object

    old

      // database settings for CouchDB
      exports.db = 'http://127.0.0.1:5984/test';
    
      // or if you want to use MongoDB
      // exports.db = 'mongodb://127.0.0.1/test';
      // exports.dbCollection = 'users';
    

    new

      // database settings for CouchDB
      exports.db = {
        url: 'http://127.0.0.1:5984/'  // important: no db at the end
      }
    
      // you can still use the short notation for CouchDB
      // because CouchDB doesn't need 'name' and 'collection'
      // exports.db = 'http://127.0.0.1:5984/';
    
      // or if you want to use MongoDB (SQL is similar)
      // exports.db = {
      //   url: 'mongodb://127.0.0.1/',
      //   name: 'test',
      //   collection: 'users'
      // }
    
  • v0.8.1 Changes

    April 14, 2014
    • ๐Ÿ‘‰ username (name) has to be lowercase and has to start with a letter
  • v0.8.0 Changes

    April 11, 2014
    • ๐Ÿ”’ per-user database with _security document in CouchDB with all users in _users database
    • โž• add support for optional request_defaults (used by lockit-couchdb-adapter)
      exports.request_defaults = {
        // proxy: 'http://someproxy'
      };
    
    • username becomes name
    • use built-in pbkdf2 instead bcrypt
    • ๐Ÿ‘Œ improve rest config settings

    either

      exports.rest = false;  // default setting
    

    or

      exports.rest = {
        // set starting page for single page app
        index: 'public/index.html',
    
        // use view engine (render()) or send static file (sendfile())
        useViewEngine: false
      }
    
  • v0.7.2 Changes

    April 03, 2014
    • โž• add exports.restIndexPage = 'public/index.html' to default config

    You are now able to specify the starting page for your single page application. It defaults to public/index.html. The path is relative to your app.js. You can also choose a .jade file exports.restIndexPage = 'main.jade'. The path for the .jade file is relative to the folder you've set via app.set('views', __dirname + '/views') (in this case the views/ folder).

    ...

  • v0.7.1

    March 31, 2014