Permalink
Commits on Mar 26, 2016
  1. fix various linting errors

    sandfox committed Mar 26, 2016
  2. fix readme example.[ci skip]

    fixes #136
    sandfox committed Mar 26, 2016
  3. Merge pull request #135 from johnjdooley/bugfix/async-validation

    Adding fix for validateAsync function
    sandfox committed Mar 26, 2016
  4. Merge pull request #134 from Shyp/fix-lint-errors

    Add lint checks to the Travis tests
    sandfox committed Mar 26, 2016
Commits on Mar 9, 2016
Commits on Feb 25, 2016
  1. Add lint checks to the Travis tests

    This will fail new builds/PR's if we can install ESLint on the node version and
    if they fail to conform to the style guide. Fixes the one line that was not
    conforming to the style guide.
    
    If you `npm run` a command, `npm` prints a big long spiel to the
    command line about how it's not responsible for the failure (example:
    https://travis-ci.org/Shyp/node-pool/jobs/111683457#L566). We may want to just
    run the commands directly (via `./node_modules/.bin/eslint ...`) instead of
    calling `npm run`.
    Kevin Burke committed Feb 25, 2016
Commits on Feb 20, 2016
  1. Fixes refreshIdle and min size check in _removeIdle

    Prior to this patch, a true value for refreshIdle would cause all
    objects in a pool to be eligible for destruction in _removeIdle,
    regardless of the min pool size. Likewise, a false value for refreshIdle
    (intended to prevent idle object culling) would be ignored as long as
    the min size check passed.
    
    Call pool.destroyAllNow() to fix newly hanging tests.
    mikemorris committed with sandfox Feb 3, 2016
  2. Document how the test runner works

    It took a little time to figure out what was going on, so it might be useful
    for others to explain what the test runner's doing, and how to add new tests.
    Kevin Burke committed with sandfox Feb 18, 2016
  3. Add Make targets for common commands

    This adds Make targets for common tasks:
    
    - clean: remove installed project files
    - test-install: install test dependencies
    - test: run the tests
    - lint-install: install lint dependencies
    - lint: run the linter
    
    I believe the README may be incorrect, since "npm install" installs into the
    `node_modules` repo, but `npm test` etc may be counting on the global name
    space.
    Kevin Burke committed with sandfox Feb 16, 2016
Commits on Jan 25, 2016
  1. Merge pull request #120 from molipet/master

    fixed documentation of min option
    sandfox committed Jan 25, 2016
  2. fixed documentation of min option

    Actual implementation and documentation was not in sync as already raised in  #79 and #119.
    molipet committed Jan 25, 2016
Commits on Jan 18, 2016
Commits on Jan 17, 2016
  1. Merge pull request #118 from coopernurse/eslint

    Eslint-ing
    sandfox committed Jan 17, 2016
  2. fix linting errors in tests

    add convience method for main pool
    sandfox committed Jan 17, 2016
  3. add eslint + standard linting rules

    initial reformatting of files with standard-format
    let npm reformat the package.json
    sandfox committed Jan 17, 2016
Commits on Jan 12, 2016
  1. Merge pull request #116 from coopernurse/move-changelog

    move history to seperate changelog and reformat [skip ci]
    sandfox committed Jan 12, 2016
  2. Merge pull request #114 from felixfbecker/prototype

    Make Pool a class, put methods on prototype
    sandfox committed Jan 12, 2016
Commits on Jan 10, 2016
  1. Change recommended usage in README to usage as a class with new

    Creation without new is still supported
    felixfbecker committed Jan 10, 2016
Commits on Jan 7, 2016
Commits on Jan 1, 2016
  1. bump version to 2.3

    remove v2 upgrade notice (it's over a year old now)
    update travis to test for more versions and faster builds
    sandfox committed Jan 1, 2016
  2. New option for asynchronous validate functions

    A new option called validateAsync indicates whether or not the validate function is asynchronous. Retains backwards compatibility with synchronous validate functions.
    sandfox committed Jan 1, 2016
Commits on Dec 14, 2015
  1. Merge branch 'master' of https://github.com/coopernurse/node-pool

    felipou committed Dec 14, 2015
Commits on Dec 13, 2015
  1. bump version and readme

    sandfox committed Dec 13, 2015
Commits on Nov 21, 2015
  1. Add test for release() validation

    Ryan Dao committed Nov 21, 2015
  2. Validate objects when calling `release()`

    Previous implementation of `release()` allows passing any arbitrary
    object which will be pushed back to the pool without any validation.
    This behavior makes subsequent calls to `acquire()` fail. This commit
    fixes that by adding acquired objects to an `inUseObjects` list and
    check for valid objects when calling `release()`.
    Ryan Dao committed Nov 21, 2015
Commits on Nov 19, 2015
Commits on Nov 18, 2015