Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Oct 18, 2013

  1. Brian Noguchi

    0.3.2

    authored
  2. Brian Noguchi

    Merge pull request #12 from Empeeric/master

    A bit more of a fix
    authored

Oct 15, 2013

  1. Refael Ackermann

    A bit more of a fix

    refack authored
  2. Brian Noguchi

    0.3.1

    authored
  3. Brian Noguchi

    Merge pull request #11 from Empeeric/master

    I need this for sync functions
    authored

Oct 12, 2013

  1. Refael Ackermann

    I need this for sync functions

    refack authored

Jul 09, 2012

  1. Brian Noguchi

    Merge pull request #7 from STRML/master

    Updated documentation for post callbacks.
    authored
  2. Samuel Reed

    Updated documentation for 'post'

    Post hooks now use a 'next' callback, updated documentation to make
    this clear and to explain the order of flow when using post callbacks.
    STRML authored

Jul 07, 2012

  1. Brian Noguchi

    0.3.0

    authored
  2. Brian Noguchi

    Merge pull request #5 from STRML/master

    Fix for Issue #2
    authored
  3. Samuel Reed

    Fix for issue #2

    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.
    STRML authored

Apr 17, 2012

  1. Brian Noguchi

    0.2.1

    authored
  2. Brian Noguchi

    Merge pull request #6 from aheckmann/ignoreUndefined

    treat undefined the same as null
    authored

Apr 16, 2012

  1. Aaron Heckmann

    treat undefined the same as null

    so we can next(undefined) or next(null) or next()
    aheckmann authored

Feb 25, 2012

  1. Brian Noguchi

    0.2.0

    authored
  2. Brian Noguchi

    Merge pull request #3 from aheckmann/nextTwice

    fixed calling next() 2x after throwing
    authored

Feb 24, 2012

  1. Aaron Heckmann

    fixed calling next() 2x after throwing

    aheckmann authored

Jul 20, 2011

  1. Brian Noguchi

    Updated node engine to >=0.4.0

    authored
  2. Brian Noguchi

    Updated package.json from >=0.4.x to 0.4.x for node engine.

    authored

Jun 14, 2011

  1. Brian Noguchi

    Version bump to v0.1.9

    authored
  2. Brian Noguchi

    Made the callback to a method hook the first place to look for an err…

    …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.
    authored
  3. Brian Noguchi

    Now, lazy hook creation via #pre can pass an errorHandler along to th…

    …e hook creation method #hook
    authored
  4. Brian Noguchi

    Removed last error handler fallback, which makes the error handler th…

    …e target method. Instead just throw an error if you get to that point.
    authored
  5. Brian Noguchi

    Version bump to v0.1.8

    authored
  6. Brian Noguchi

    Improved error handling, so if it falls back to calling the hook as t…

    …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.
    authored

Jun 07, 2011

  1. Brian Noguchi

    Version bump to v0.1.7

    authored
  2. Brian Noguchi

    Now, `next(null)` -- when the target method has a node-like function …

    …(err, ...) calback as its last argument -- proceeds down the middleware chain without mutating the hook arguments.
    authored

Jun 03, 2011

  1. Brian Noguchi

    Version bump to v0.1.6

    authored
  2. Brian Noguchi

    Moved the isAsync middleware argument in `pre` and `post` from the 3r…

    …d to 2nd argument for better readability.
    authored

May 22, 2011

  1. Brian Noguchi

    Updated the README.

    authored
  2. Brian Noguchi

    Version bump to v0.1.5

    authored
  3. Brian Noguchi

    Now each next() and done() only executes its logic once, no matter ho…

    …w many times it may be called within the same pre or post.
    authored
  4. Brian Noguchi

    Version bump to v0.1.4

    authored
  5. Brian Noguchi

    Now, asynchronous middleware can pass back errors via `done`. Updated…

    … README.
    authored
  6. Brian Noguchi

    Better fallbacks for the default error callback, when lazily setting …

    …up hooks.
    authored
Something went wrong with that request. Please try again.