All Versions
11
Latest Version
Avg Release Cycle
53 days
Latest Release
3217 days ago
Changelog History
Page 1
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
- โ add events
-
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
- ๐ฆ expose db adapter as
-
v1.0.0 Changes
April 19, 2014- requires Express 4.x
- ๐ makes use of
express.Router()
. No need to passapp
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
- ๐ username (
-
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' };
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 }
- ๐ per-user database with
-
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 yourapp.js
. You can also choose a.jade
fileexports.restIndexPage = 'main.jade'
. The path for the.jade
file is relative to the folder you've set viaapp.set('views', __dirname + '/views')
(in this case theviews/
folder)....
- โ add
-
v0.7.1
March 31, 2014