Skip to content
Commits on Jun 14, 2011
  1. Version bump to v0.1.9

    committed Jun 13, 2011
  2. 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.
    committed Jun 13, 2011
  3. Now, lazy hook creation via #pre can pass an errorHandler along to th…

    …e hook creation method #hook
    committed Jun 13, 2011
  4. 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.
    committed Jun 13, 2011
  5. Version bump to v0.1.8

    committed Jun 13, 2011
  6. 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.
    committed Jun 13, 2011
Commits on Jun 7, 2011
  1. Version bump to v0.1.7

    committed Jun 7, 2011
  2. 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.
    committed Jun 7, 2011
Commits on Jun 3, 2011
  1. Version bump to v0.1.6

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

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

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

    committed May 22, 2011
  3. 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.
    committed May 22, 2011
  4. Version bump to v0.1.4

    committed May 21, 2011
  5. Verison bump to v0.1.3

    committed May 21, 2011
  6. Version bump to v0.1.2

    committed May 21, 2011
  7. Class#hook now called lazily when you call Class#pre or Class#post. N…

    …o longer need to invoke Class#hook yourself.
    committed May 21, 2011
Commits on May 21, 2011
Commits on Mar 25, 2011
  1. Version bump to v0.1.1

    committed Mar 25, 2011
  2. Fixed typo in README

    committed Mar 25, 2011
Commits on Feb 23, 2011
  1. Version bump to v0.1.0

    committed Feb 22, 2011
  2. Updated README

    committed Feb 22, 2011
  3. Modified old spec implementation to the new spec. Moved alternative i…

    …mplementation from last commit into its own file hooks.alt.js
    committed Feb 22, 2011
  4. Created alternate implementation for new spec. Updated tests for new …

    …hooks spec. Updated README for new spec.
    committed Feb 22, 2011
Commits on Feb 19, 2011
  1. Updated the README to include features for arguments mutation and var…

    …iable argument length handling.
    committed Feb 18, 2011
  2. Fixed list formatting in README

    committed Feb 18, 2011
Something went wrong with that request. Please try again.