- fix #173 where pool would not attempt to dispense reources upon
pool.destroy
- fix some out of date readme section
- fix test warning for unhandled rejection on dispense
- fix drain code to correctly wait on borrowed resources (@drew-r)
- fix drain example in readme (@watson)
- fix faulty Promise detection where user supplied promise lib would be ignored
- internal refactoring and comment improvements
- fix #159 so draining and closing don't leave resources behind
- stop the evictor from keeping the event loop open after draining
- Readme tidy up
- Add missing changelog entry
- Add Readme link for legacy branch
- Inject dependencies into Pool to allow easier user extension
- Passthrough Pool's promise impl to deferreds so they are used internally and exposed correctly on pool.acquire (@eide)
- This is pretty big and the migration guide in the README has more detailed set of changes!
- switch support to nodejs v4 and above
- change external interfaces to use promises instead of callbacks
- remove logging
- decouple create/destroy operations from acquire/release operations
- pool should now be created via
poolCreate
factory method instead of constructor. - huge internal rewrite and flow control changes
- Pool is now an eventEmitter
- Use domain.bind to preserve domain context (@LewisJEllis)
- Travis now runs and fails lint checks (@kevinburke)
- fixed bug #128 where using async validation incorrectly tracked resource state (@johnjdooley and @robfyfe)
- fixed broken readme example that had aged badly
- Documented previously created/fixed bug #122 (thanks @jasonrhodes)
- Improved Makefile and test runner docs thanks (@kevinburke)
- fixed bug documented in #121 where pool could make incorrect decisions about which resources were eligible for removal. (thanks @mikemorris)
- Merged #118 - closes #110 - optional eslinting for test and lib using "standard" ruleset
- Merged #114 - closes #113 - "classes" now used internally instead of object literals and exports support being called as a constructor (along with old factory behaviour) (contributed by @felixfbecker)
- Move history from README.md to CHANGELOG.md and reformat
- Closes #122 - fixes trapped connection bug when destroying a connection while others are in use
- Documentation fixes and widened number of nodejs versions tested on travis
- Merged #105 - allow asynchronous validate functions (contributed by @felipou)
- Merged #106 - fix condition where non "resource pool" created objects could be returned to the pool. (contributed by @devzer01)
- Merged #104 - fix #103 - condition where pool can create > specified max number of connections (contributed by @devzer01)
- Merged #92 - add getMaxPoolSize function (contributed by platypusMaximus)
- fix README error about priority queueing (spotted by @kmdm)
- Merged #72 - Add optional returnToHead flag, if true, resources are returned to head of queue (stack like behaviour) upon release (contributed by calibr), also see #68 for further discussion.
- Merged #64 - Fix for not removing idle objects (contributed by PiotrWpl)
- Merged #56/#57 - Add optional refreshIdle flag. If false, idle resources at the pool minimum will not be destroyed/re-created. (contributed by wshaver)
- Merged #54 - Factory can be asked to validate pooled objects (contributed by tikonen)
- Fix #51, #48 - createResource() should check for null clientCb in err case (contributed by pooyasencha)
- Merged #52 - fix bug of infinite wait when create object aync error (contributed by windyrobin)
- Merged #53 - change the position of dispense and callback to ensure the time order (contributed by windyrobin)
- Fix #44 - leak of 'err' and 'obj' in createResource()
- Add devDependencies block to package.json
- Add travis-ci.org integration
- Non-backwards compatible change: remove adjustCallback
- acquire() callback must accept two params: (err, obj)
- Add optional 'min' param to factory object that specifies minimum number of resources to keep in pool
- Merged #38 (package.json/Makefile changes - contributed by strk)
- Merged #37 (Clear remove idle timer after destroyAllNow - contributed by dougwilson)
- Merged #36 ("pooled" method to perform function decoration for pooled methods - contributed by cosbynator)
- Merged #35 (Remove client from availbleObjects on destroy(client) - contributed by blax)
- Merged #25 (add getName() - contributed by BryanDonovan)
- Merged #27 (remove sys import - contributed by botker)
- Merged #26 (log levels - contributed by JoeZ99)
- Merged #21 (add getter methods to see pool size, etc. - contributed by BryanDonovan)
- Merged #19 (prevent release on the same obj twice - contributed by tkrynski)
- Merged #20 (acquire() returns boolean indicating whether pool is full - contributed by tilgovi)
- Merged #13 (support error variable in acquire callback - contributed by tmcw)
- Note: This change is backwards compatible. But new code should use the two parameter callback format in pool.create() functions from now on.
- Merged #15 (variable scope issue in dispense() - contributed by eevans)
- Merged #12 (ability to drain pool - contributed by gdusbabek)
- Fixed #6 (objects reaped with undefined timeouts)
- Fixed #7 (objectTimeout issue)
- Added priority queueing (thanks to sylvinus)
- Contributions from Poetro
- Name changes to match conventions described here: http://en.wikipedia.org/wiki/Object_pool_pattern
- borrow() renamed to acquire()
- returnToPool() renamed to release()
- destroy() removed from public interface
- added JsDoc comments
- Priority queueing enhancements
- Name changes to match conventions described here: http://en.wikipedia.org/wiki/Object_pool_pattern
- First NPM release
======= [unreleased]: https://github.com/coopernurse/node-pool/compare/v3.1.6...HEAD [3.1.6]: https://github.com/coopernurse/node-pool/compare/v3.1.5...v3.1.6 [3.1.5]: https://github.com/coopernurse/node-pool/compare/v3.1.4...v3.1.5 [3.1.4]: https://github.com/coopernurse/node-pool/compare/v3.1.3...v3.1.4 [3.1.3]: https://github.com/coopernurse/node-pool/compare/v3.1.2...v3.1.3 [3.1.2]: https://github.com/coopernurse/node-pool/compare/v3.1.1...v3.1.2 [3.1.1]: https://github.com/coopernurse/node-pool/compare/v3.1.0...v3.1.1 [3.1.0]: https://github.com/coopernurse/node-pool/compare/v3.0.1...v3.1.0 [3.0.1]: https://github.com/coopernurse/node-pool/compare/v3.0.0...v3.0.1 [3.0.0]: https://github.com/coopernurse/node-pool/compare/v2.4.3...v3.0.0 [2.4.3]: https://github.com/coopernurse/node-pool/compare/v2.4.2...v2.4.3 [2.4.2]: https://github.com/coopernurse/node-pool/compare/v2.4.1...v2.4.2 [2.4.1]: https://github.com/coopernurse/node-pool/compare/v2.4.0...v2.4.1 [2.4.0]: https://github.com/coopernurse/node-pool/compare/v2.3.1...v2.4.0 [2.3.1]: https://github.com/coopernurse/node-pool/compare/v2.3.0...v2.3.1 [2.3.0]: https://github.com/coopernurse/node-pool/compare/v2.2.2...v2.3.0 [2.2.2]: https://github.com/coopernurse/node-pool/compare/v2.2.1...v2.2.2 [2.2.1]: https://github.com/coopernurse/node-pool/compare/v2.2.0...v2.2.1 [2.2.0]: https://github.com/coopernurse/node-pool/compare/v2.1.1...v2.2.0 [2.1.1]: https://github.com/coopernurse/node-pool/compare/v2.1.0...v2.1.1 [2.1.0]: https://github.com/coopernurse/node-pool/compare/v2.0.4...v2.1.0 [2.0.4]: https://github.com/coopernurse/node-pool/compare/v2.0.3...v2.0.4 [2.0.3]: https://github.com/coopernurse/node-pool/compare/v2.0.2...v2.0.3 [2.0.2]: https://github.com/coopernurse/node-pool/compare/v2.0.1...v2.0.2 [2.0.1]: https://github.com/coopernurse/node-pool/compare/v2.0.0...v2.0.1 [2.0.0]: https://github.com/coopernurse/node-pool/compare/v1.0.12...v2.0.0