- feat: add TypeScript types
- fix: avoid passing final callback to pre hook, because calling the callback can mess up hook execution #36 Automattic/mongoose#12836
- feat: add errorHandler option to
post()
#34
- feat: add
overwriteResult()
andskipWrappedFunction()
for more advanced control flow
- perf: various performance improvements #27 #24 #23 #22 #21 #20
- fix: handle sync errors in
wrap()
- fix: handle sync errors in pre hooks if there are multiple hooks
- chore(release): 2.2.3 (c8f2695)
- chore(release): 2.2.4 (a377a4f)
- chore(release): 2.2.5 (5a495e3)
- fix(filter): copy async pres correctly with
filter()
(1b1ed8a), closes Automattic/mongoose#3054 - feat: add filter() function (1f641f4)
- feat: support storing options on pre and post hooks (59220b9)
- chore: release 2.2.3 (af653a3)
- chore: release 2.2.1 (4625a64)
- chore: remove lockfile from git (7f3e4e6)
- fix: handle numAsync correctly when merging (fef8e7e)
- test: repro issue with not copying numAsync (952d9db)
- chore: release 2.2.0 (ff9ad03)
- fix: use maps instead of objects for _pres and _posts so
toString()
doesn't get reported as having (55df303), closes Automattic/mongoose#6538
- chore: release 2.1.0 (ba5f1bc)
- feat: add option to check wrapped function return value for promises (c9d7dd1)
- refactor: use const in wrap() (0fc21f9)
- chore: release 2.0.7 (0bf91e6)
- feat: add
hasHooks()
(225f18d), closes Automattic/mongoose#6385
- chore: release 2.0.6 (f3d406b)
- fix(wrap): ensure fast path still wraps function in
nextTick()
for chaining (7000494), closes Automattic/mongoose#6250 dsanel/mongoose-delete#36
- chore: release 2.0.5 (3286612)
- perf(createWrapper): don't create wrapper if there are no hooks (5afc5b9), closes Automattic/mongoose#6126
- chore: release 2.0.4 (2ab0293)
- chore: release 2.0.3 (3c1abe5)
- fix: use process.nextTick() re: Automattic/mongoose#6074 (e5bfe33), closes Automattic/mongoose#6074
- chore: release 2.0.1 with lockfile bump (09c44fb)
- chore: fix build on node 4+5 (6dac5a4)
- chore: fix built on node 4 + 5 again (434ef0a)
- chore: release 2.0.0-rc5 (25a32ee)
- chore: release 2.0.0-rc4 (49fc083)
- BREAKING CHANGE: deduplicate when merging hooks re: Automattic/mongoose#2945 (d458573), closes Automattic/mongoose#2945
- chore: release 2.0.0-rc3 (adaaa00)
- feat: support returning promises from middleware functions (05b4480), closes Automattic/mongoose#3779
- chore: improve test coverage re: Automattic/mongoose#3232 (7b45cf0), closes Automattic/mongoose#3232
- chore: release 2.0.0-rc1 (9b83f52)
- BREAKING CHANGE: report sync exceptions as errors, only allow calling next() and done() once (674adcc), closes Automattic/mongoose#3483
- chore: release 2.0.0-rc0 (16b44b5)
- BREAKING CHANGE: drop support for node < 4 (9cbb8c7)
- BREAKING CHANGE: remove useLegacyPost and add several new features (6dd8531), closes Automattic/mongoose#3232
- chore: release 1.5.0 (9c491a0)
- fix: improve post error handlers results (9928dd5), closes Automattic/mongoose#5466
- chore: release 1.4.2 (8d14ac5)
- fix: correct args re: Automattic/mongoose#5405 (3f28ae6), closes Automattic/mongoose#5405
- chore: release 1.4.1 (5ecf0c2)
- fix: handle numAsyncPres with clone() (c72e857), closes #8
- test: repro #8 (9b4d6b2), closes #8
- chore: release 1.2.1 (d97081f)
- fix: filter out _kareemIgnored args for error handlers re: Automattic/mongoose#4925 (ddc7aeb), closes Automattic/mongoose#4925
- fix: make error handlers handle errors in pre hooks (af38033), closes Automattic/mongoose#4927
- chore: release 1.2.0 (033225c)
- chore: upgrade deps (f9e9a09)
- feat: add _kareemIgnore re: Automattic/mongoose#4836 (7957771), closes Automattic/mongoose#4836
- chore: release 1.1.4 (ece401c)
- chore: run tests on node 6 (e0cb1cb)
- fix: only copy own properties in clone() (dfe28ce), closes #7
- chore: release 1.1.0 (85332d9)
- chore: test on node 4 and node 5 (1faefa1)
- 100% coverage again (c9aee4e)
- add support for error post hooks (d378113)
- basic setup for sync hooks #4 (55aa081), closes #4
- proof of concept for error handlers (e4a07d9)
- refactor out handleWrapError helper (b19af38)
- Fix #1 (de60dc6), closes #1
- release 1.0.1 (6971088)
- Run tests on iojs in travis (adcd201)
- support legacy post hook behavior in wrap() (23fa74c)
- Use node 0.12 in travis (834689d)
- Tag 1.0.0 (4c5a35a)
- Add clone function (688bba7)
- Add jscs for style checking (5c93149)
- Bump 0.0.8 (03c0d2f)
- Fix jscs config, add gulp rules (9989abf)
- fix Makefile typo (1f7e61a)
- Bump 0.0.7 (98ef173)
- fix Automattic/mongoose#2553 - use null instead of undefined for err (9157b48), closes LearnBoost/mongoose#2553
- Regenerate docs (2331cdf)
- Update docs and bump 0.0.6 (92c12a7)
- Add coverage rule to Makefile (825a91c)
- Add coveralls to README (fb52369)
- Add coveralls to travis (93f6f15)
- Add createWrapper() function (ea77741)
- Add istanbul code coverage (6eceeef)
- Add some more comments for examples (c5b0c6f)
- Add travis (e6dcb06)
- Add travis badge to docs (ad8c9b3)
- Add wrap() tests, 100% coverage (6945be4)
- Better test coverage for execPost (d9ad539)
- Bump 0.0.5 (69875b1)
- Docs fix (15b7098)
- Fix silly mistake in docs generation (50373eb)
- Fix typo in readme (fec4925)
- Linkify travis badge (92b25fe)
- Make travis run coverage (747157b)
- Move travis status badge (d52e89b)
- Quick fix for coverage (50bbddb)
- Typo fix (adea794)
- Add npm test script, fix small bug with args not getting passed through post (49e3e68)
- Bump 0.0.3 (65621d8)
- Update readme (901388b)
- Add github repo and bump 0.0.2 (59db8be)
- Add basic docs (ad29ea4)
- Add pre hooks (2ffc356)
- Add wrap function (68c540c)
- Bump to version 0.0.1 (a4bfd68)
- Initial commit (4002458)
- Initial deposit (98fc489)
- Post hooks (395b67c)
- Some basic setup work (82df75e)
- Support sync pre hooks (1cc1b9f)
- Update package.json description (978da18)
- fix(filter): copy async pres correctly with
filter()
(1b1ed8a), closes Automattic/mongoose#3054 - feat: add filter() function (1f641f4)
- feat: support storing options on pre and post hooks (59220b9)
- chore: release 2.2.3 (af653a3)
- chore: release 2.2.1 (4625a64)
- chore: remove lockfile from git (7f3e4e6)
- fix: handle numAsync correctly when merging (fef8e7e)
- test: repro issue with not copying numAsync (952d9db)
- chore: release 2.2.0 (ff9ad03)
- fix: use maps instead of objects for _pres and _posts so
toString()
doesn't get reported as having (55df303), closes Automattic/mongoose#6538
- chore: release 2.1.0 (ba5f1bc)
- feat: add option to check wrapped function return value for promises (c9d7dd1)
- refactor: use const in wrap() (0fc21f9)
- chore: release 2.0.7 (0bf91e6)
- feat: add
hasHooks()
(225f18d), closes Automattic/mongoose#6385
- chore: release 2.0.6 (f3d406b)
- fix(wrap): ensure fast path still wraps function in
nextTick()
for chaining (7000494), closes Automattic/mongoose#6250 dsanel/mongoose-delete#36
- chore: release 2.0.5 (3286612)
- perf(createWrapper): don't create wrapper if there are no hooks (5afc5b9), closes Automattic/mongoose#6126
- chore: release 2.0.4 (2ab0293)
- chore: release 2.0.3 (3c1abe5)
- fix: use process.nextTick() re: Automattic/mongoose#6074 (e5bfe33), closes Automattic/mongoose#6074
- chore: release 2.0.1 with lockfile bump (09c44fb)
- chore: fix build on node 4+5 (6dac5a4)
- chore: fix built on node 4 + 5 again (434ef0a)
- chore: release 2.0.0-rc5 (25a32ee)
- chore: release 2.0.0-rc4 (49fc083)
- BREAKING CHANGE: deduplicate when merging hooks re: Automattic/mongoose#2945 (d458573), closes Automattic/mongoose#2945
- chore: release 2.0.0-rc3 (adaaa00)
- feat: support returning promises from middleware functions (05b4480), closes Automattic/mongoose#3779
- chore: improve test coverage re: Automattic/mongoose#3232 (7b45cf0), closes Automattic/mongoose#3232
- chore: release 2.0.0-rc1 (9b83f52)
- BREAKING CHANGE: report sync exceptions as errors, only allow calling next() and done() once (674adcc), closes Automattic/mongoose#3483
- chore: release 2.0.0-rc0 (16b44b5)
- BREAKING CHANGE: drop support for node < 4 (9cbb8c7)
- BREAKING CHANGE: remove useLegacyPost and add several new features (6dd8531), closes Automattic/mongoose#3232
- chore: release 1.5.0 (9c491a0)
- fix: improve post error handlers results (9928dd5), closes Automattic/mongoose#5466
- chore: release 1.4.2 (8d14ac5)
- fix: correct args re: Automattic/mongoose#5405 (3f28ae6), closes Automattic/mongoose#5405
- chore: release 1.4.1 (5ecf0c2)
- fix: handle numAsyncPres with clone() (c72e857), closes #8
- test: repro #8 (9b4d6b2), closes #8
- chore: release 1.2.1 (d97081f)
- fix: filter out _kareemIgnored args for error handlers re: Automattic/mongoose#4925 (ddc7aeb), closes Automattic/mongoose#4925
- fix: make error handlers handle errors in pre hooks (af38033), closes Automattic/mongoose#4927
- chore: release 1.2.0 (033225c)
- chore: upgrade deps (f9e9a09)
- feat: add _kareemIgnore re: Automattic/mongoose#4836 (7957771), closes Automattic/mongoose#4836
- chore: release 1.1.4 (ece401c)
- chore: run tests on node 6 (e0cb1cb)
- fix: only copy own properties in clone() (dfe28ce), closes #7
- chore: release 1.1.0 (85332d9)
- chore: test on node 4 and node 5 (1faefa1)
- 100% coverage again (c9aee4e)
- add support for error post hooks (d378113)
- basic setup for sync hooks #4 (55aa081), closes #4
- proof of concept for error handlers (e4a07d9)
- refactor out handleWrapError helper (b19af38)
- Fix #1 (de60dc6), closes #1
- release 1.0.1 (6971088)
- Run tests on iojs in travis (adcd201)
- support legacy post hook behavior in wrap() (23fa74c)
- Use node 0.12 in travis (834689d)
- Tag 1.0.0 (4c5a35a)
- Add clone function (688bba7)
- Add jscs for style checking (5c93149)
- Bump 0.0.8 (03c0d2f)
- Fix jscs config, add gulp rules (9989abf)
- fix Makefile typo (1f7e61a)
- Bump 0.0.7 (98ef173)
- fix Automattic/mongoose#2553 - use null instead of undefined for err (9157b48), closes LearnBoost/mongoose#2553
- Regenerate docs (2331cdf)
- Update docs and bump 0.0.6 (92c12a7)
- Add coverage rule to Makefile (825a91c)
- Add coveralls to README (fb52369)
- Add coveralls to travis (93f6f15)
- Add createWrapper() function (ea77741)
- Add istanbul code coverage (6eceeef)
- Add some more comments for examples (c5b0c6f)
- Add travis (e6dcb06)
- Add travis badge to docs (ad8c9b3)
- Add wrap() tests, 100% coverage (6945be4)
- Better test coverage for execPost (d9ad539)
- Bump 0.0.5 (69875b1)
- Docs fix (15b7098)
- Fix silly mistake in docs generation (50373eb)
- Fix typo in readme (fec4925)
- Linkify travis badge (92b25fe)
- Make travis run coverage (747157b)
- Move travis status badge (d52e89b)
- Quick fix for coverage (50bbddb)
- Typo fix (adea794)
- Add npm test script, fix small bug with args not getting passed through post (49e3e68)
- Bump 0.0.3 (65621d8)
- Update readme (901388b)
- Add github repo and bump 0.0.2 (59db8be)