Permalink
Commits on Oct 18, 2013
  1. 0.3.2

    bnoguchi committed Oct 18, 2013
  2. Merge pull request #12 from Empeeric/master

    bnoguchi committed Oct 18, 2013
    A bit more of a fix
Commits on Oct 15, 2013
  1. A bit more of a fix

    refack committed Oct 15, 2013
  2. 0.3.1

    bnoguchi committed Oct 15, 2013
  3. Merge pull request #11 from Empeeric/master

    bnoguchi committed Oct 15, 2013
    I need this for sync functions
Commits on Oct 12, 2013
  1. I need this for sync functions

    refack committed Oct 12, 2013
Commits on Jul 9, 2012
  1. Merge pull request #7 from STRML/master

    bnoguchi committed Jul 9, 2012
    Updated documentation for post callbacks.
  2. Updated documentation for 'post'

    STRML committed Jul 9, 2012
    Post hooks now use a 'next' callback, updated documentation to make
    this clear and to explain the order of flow when using post callbacks.
Commits on Jul 7, 2012
  1. 0.3.0

    bnoguchi committed Jul 7, 2012
  2. Merge pull request #5 from STRML/master

    bnoguchi committed Jul 7, 2012
    Fix for Issue #2
  3. Fix for issue #2

    STRML committed Apr 3, 2012
    Hooks now intercept callbacks so that post handlers can be run before
    the callback.
    
    This is especially useful in Mongoose, where virtual async methods are
    not supported.  The only clean way to implement them is via a
    post('init') handler.
Commits on Apr 17, 2012
  1. 0.2.1

    bnoguchi committed Apr 17, 2012
  2. Merge pull request #6 from aheckmann/ignoreUndefined

    bnoguchi committed Apr 17, 2012
    treat undefined the same as null
Commits on Apr 16, 2012
  1. treat undefined the same as null

    aheckmann committed Apr 16, 2012
    so we can next(undefined) or next(null) or next()
Commits on Feb 25, 2012
  1. 0.2.0

    bnoguchi committed Feb 25, 2012
  2. Merge pull request #3 from aheckmann/nextTwice

    bnoguchi committed Feb 25, 2012
    fixed calling next() 2x after throwing
Commits on Feb 24, 2012
Commits on Jul 20, 2011
Commits on Jun 14, 2011
  1. Version bump to v0.1.9

    bnoguchi committed Jun 14, 2011
  2. Made the callback to a method hook the first place to look for an err…

    bnoguchi committed Jun 14, 2011
    …or handler. Otherwise, the fallback is now the error handler you set up in #hook or lazy #pre. After these two options, the final fallback is throwing the Error.
  3. Now, lazy hook creation via #pre can pass an errorHandler along to th…

    bnoguchi committed Jun 14, 2011
    …e hook creation method #hook
  4. Removed last error handler fallback, which makes the error handler th…

    bnoguchi committed Jun 14, 2011
    …e target method. Instead just throw an error if you get to that point.
  5. Version bump to v0.1.8

    bnoguchi committed Jun 14, 2011
  6. Improved error handling, so if it falls back to calling the hook as t…

    bnoguchi committed Jun 14, 2011
    …he error handler, it does so with the object's scope. Throws an error if we reach that fallback check, and the hook's arity is 0.
Commits on Jun 7, 2011
  1. Version bump to v0.1.7

    bnoguchi committed Jun 7, 2011
  2. Now, `next(null)` -- when the target method has a node-like function …

    bnoguchi committed Jun 7, 2011
    …(err, ...) calback as its last argument -- proceeds down the middleware chain without mutating the hook arguments.
Commits on Jun 3, 2011
  1. Version bump to v0.1.6

    bnoguchi committed Jun 3, 2011
  2. Moved the isAsync middleware argument in `pre` and `post` from the 3r…

    bnoguchi committed Jun 3, 2011
    …d to 2nd argument for better readability.
Commits on May 22, 2011
  1. Updated the README.

    bnoguchi committed May 22, 2011
  2. Version bump to v0.1.5

    bnoguchi committed May 22, 2011
  3. Now each next() and done() only executes its logic once, no matter ho…

    bnoguchi committed May 22, 2011
    …w many times it may be called within the same pre or post.
  4. Version bump to v0.1.4

    bnoguchi committed May 22, 2011