Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CHANGELOG.md 34KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. # Change Log
  2. All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
  3. <a name="2.3.0"></a>
  4. ## 2.3.0 (2018-09-24)
  5. * chore(release): 2.2.3 ([c8f2695](https://github.com/vkarpov15/kareem/commit/c8f2695))
  6. * chore(release): 2.2.4 ([a377a4f](https://github.com/vkarpov15/kareem/commit/a377a4f))
  7. * chore(release): 2.2.5 ([5a495e3](https://github.com/vkarpov15/kareem/commit/5a495e3))
  8. * fix(filter): copy async pres correctly with `filter()` ([1b1ed8a](https://github.com/vkarpov15/kareem/commit/1b1ed8a)), closes [Automattic/mongoose#3054](https://github.com/Automattic/mongoose/issues/3054)
  9. * feat: add filter() function ([1f641f4](https://github.com/vkarpov15/kareem/commit/1f641f4))
  10. * feat: support storing options on pre and post hooks ([59220b9](https://github.com/vkarpov15/kareem/commit/59220b9))
  11. <a name="2.2.3"></a>
  12. ## <small>2.2.3 (2018-09-10)</small>
  13. * chore: release 2.2.3 ([af653a3](https://github.com/vkarpov15/kareem/commit/af653a3))
  14. <a name="2.2.2"></a>
  15. ## <small>2.2.2 (2018-09-10)</small>
  16. * chore: release 2.2.2 ([3f0144d](https://github.com/vkarpov15/kareem/commit/3f0144d))
  17. * fix: allow merge() to not clone ([e628d65](https://github.com/vkarpov15/kareem/commit/e628d65))
  18. <a name="2.2.1"></a>
  19. ## <small>2.2.1 (2018-06-05)</small>
  20. * chore: release 2.2.1 ([4625a64](https://github.com/vkarpov15/kareem/commit/4625a64))
  21. * chore: remove lockfile from git ([7f3e4e6](https://github.com/vkarpov15/kareem/commit/7f3e4e6))
  22. * fix: handle numAsync correctly when merging ([fef8e7e](https://github.com/vkarpov15/kareem/commit/fef8e7e))
  23. * test: repro issue with not copying numAsync ([952d9db](https://github.com/vkarpov15/kareem/commit/952d9db))
  24. <a name="2.2.0"></a>
  25. ## 2.2.0 (2018-06-05)
  26. * chore: release 2.2.0 ([ff9ad03](https://github.com/vkarpov15/kareem/commit/ff9ad03))
  27. * fix: use maps instead of objects for _pres and _posts so `toString()` doesn't get reported as having ([55df303](https://github.com/vkarpov15/kareem/commit/55df303)), closes [Automattic/mongoose#6538](https://github.com/Automattic/mongoose/issues/6538)
  28. <a name="2.1.0"></a>
  29. ## 2.1.0 (2018-05-16)
  30. * chore: release 2.1.0 ([ba5f1bc](https://github.com/vkarpov15/kareem/commit/ba5f1bc))
  31. * feat: add option to check wrapped function return value for promises ([c9d7dd1](https://github.com/vkarpov15/kareem/commit/c9d7dd1))
  32. * refactor: use const in wrap() ([0fc21f9](https://github.com/vkarpov15/kareem/commit/0fc21f9))
  33. <a name="2.0.7"></a>
  34. ## <small>2.0.7 (2018-04-28)</small>
  35. * chore: release 2.0.7 ([0bf91e6](https://github.com/vkarpov15/kareem/commit/0bf91e6))
  36. * feat: add `hasHooks()` ([225f18d](https://github.com/vkarpov15/kareem/commit/225f18d)), closes [Automattic/mongoose#6385](https://github.com/Automattic/mongoose/issues/6385)
  37. <a name="2.0.6"></a>
  38. ## <small>2.0.6 (2018-03-22)</small>
  39. * chore: release 2.0.6 ([f3d406b](https://github.com/vkarpov15/kareem/commit/f3d406b))
  40. * fix(wrap): ensure fast path still wraps function in `nextTick()` for chaining ([7000494](https://github.com/vkarpov15/kareem/commit/7000494)), closes [Automattic/mongoose#6250](https://github.com/Automattic/mongoose/issues/6250) [dsanel/mongoose-delete#36](https://github.com/dsanel/mongoose-delete/issues/36)
  41. <a name="2.0.5"></a>
  42. ## <small>2.0.5 (2018-02-22)</small>
  43. * chore: release 2.0.5 ([3286612](https://github.com/vkarpov15/kareem/commit/3286612))
  44. * perf(createWrapper): don't create wrapper if there are no hooks ([5afc5b9](https://github.com/vkarpov15/kareem/commit/5afc5b9)), closes [Automattic/mongoose#6126](https://github.com/Automattic/mongoose/issues/6126)
  45. <a name="2.0.4"></a>
  46. ## <small>2.0.4 (2018-02-08)</small>
  47. * chore: release 2.0.4 ([2ab0293](https://github.com/vkarpov15/kareem/commit/2ab0293))
  48. <a name="2.0.3"></a>
  49. ## <small>2.0.3 (2018-02-01)</small>
  50. * chore: release 2.0.3 ([3c1abe5](https://github.com/vkarpov15/kareem/commit/3c1abe5))
  51. * fix: use process.nextTick() re: Automattic/mongoose#6074 ([e5bfe33](https://github.com/vkarpov15/kareem/commit/e5bfe33)), closes [Automattic/mongoose#6074](https://github.com/Automattic/mongoose/issues/6074)
  52. <a name="2.0.2"></a>
  53. ## <small>2.0.2 (2018-01-24)</small>
  54. * chore: fix license ([a9d755c](https://github.com/vkarpov15/kareem/commit/a9d755c)), closes [#10](https://github.com/vkarpov15/kareem/issues/10)
  55. * chore: release 2.0.2 ([fe87ab6](https://github.com/vkarpov15/kareem/commit/fe87ab6))
  56. <a name="2.0.1"></a>
  57. ## <small>2.0.1 (2018-01-09)</small>
  58. * chore: release 2.0.1 with lockfile bump ([09c44fb](https://github.com/vkarpov15/kareem/commit/09c44fb))
  59. <a name="2.0.0"></a>
  60. ## 2.0.0 (2018-01-09)
  61. * chore: bump marked re: security ([cc564a9](https://github.com/vkarpov15/kareem/commit/cc564a9))
  62. * chore: release 2.0.0 ([f511d1c](https://github.com/vkarpov15/kareem/commit/f511d1c))
  63. <a name="2.0.0-rc5"></a>
  64. ## 2.0.0-rc5 (2017-12-23)
  65. * chore: fix build on node 4+5 ([6dac5a4](https://github.com/vkarpov15/kareem/commit/6dac5a4))
  66. * chore: fix built on node 4 + 5 again ([434ef0a](https://github.com/vkarpov15/kareem/commit/434ef0a))
  67. * chore: release 2.0.0-rc5 ([25a32ee](https://github.com/vkarpov15/kareem/commit/25a32ee))
  68. <a name="2.0.0-rc4"></a>
  69. ## 2.0.0-rc4 (2017-12-22)
  70. * chore: release 2.0.0-rc4 ([49fc083](https://github.com/vkarpov15/kareem/commit/49fc083))
  71. * BREAKING CHANGE: deduplicate when merging hooks re: Automattic/mongoose#2945 ([d458573](https://github.com/vkarpov15/kareem/commit/d458573)), closes [Automattic/mongoose#2945](https://github.com/Automattic/mongoose/issues/2945)
  72. <a name="2.0.0-rc3"></a>
  73. ## 2.0.0-rc3 (2017-12-22)
  74. * chore: release 2.0.0-rc3 ([adaaa00](https://github.com/vkarpov15/kareem/commit/adaaa00))
  75. * feat: support returning promises from middleware functions ([05b4480](https://github.com/vkarpov15/kareem/commit/05b4480)), closes [Automattic/mongoose#3779](https://github.com/Automattic/mongoose/issues/3779)
  76. <a name="2.0.0-rc2"></a>
  77. ## 2.0.0-rc2 (2017-12-21)
  78. * chore: release 2.0.0-rc2 ([76325fa](https://github.com/vkarpov15/kareem/commit/76325fa))
  79. * fix: ensure next() and done() run in next tick ([6c20684](https://github.com/vkarpov15/kareem/commit/6c20684))
  80. <a name="2.0.0-rc1"></a>
  81. ## 2.0.0-rc1 (2017-12-21)
  82. * chore: improve test coverage re: Automattic/mongoose#3232 ([7b45cf0](https://github.com/vkarpov15/kareem/commit/7b45cf0)), closes [Automattic/mongoose#3232](https://github.com/Automattic/mongoose/issues/3232)
  83. * chore: release 2.0.0-rc1 ([9b83f52](https://github.com/vkarpov15/kareem/commit/9b83f52))
  84. * BREAKING CHANGE: report sync exceptions as errors, only allow calling next() and done() once ([674adcc](https://github.com/vkarpov15/kareem/commit/674adcc)), closes [Automattic/mongoose#3483](https://github.com/Automattic/mongoose/issues/3483)
  85. <a name="2.0.0-rc0"></a>
  86. ## 2.0.0-rc0 (2017-12-17)
  87. * chore: release 2.0.0-rc0 ([16b44b5](https://github.com/vkarpov15/kareem/commit/16b44b5))
  88. * BREAKING CHANGE: drop support for node < 4 ([9cbb8c7](https://github.com/vkarpov15/kareem/commit/9cbb8c7))
  89. * BREAKING CHANGE: remove useLegacyPost and add several new features ([6dd8531](https://github.com/vkarpov15/kareem/commit/6dd8531)), closes [Automattic/mongoose#3232](https://github.com/Automattic/mongoose/issues/3232)
  90. <a name="1.5.0"></a>
  91. ## 1.5.0 (2017-07-20)
  92. * chore: release 1.5.0 ([9c491a0](https://github.com/vkarpov15/kareem/commit/9c491a0))
  93. * fix: improve post error handlers results ([9928dd5](https://github.com/vkarpov15/kareem/commit/9928dd5)), closes [Automattic/mongoose#5466](https://github.com/Automattic/mongoose/issues/5466)
  94. <a name="1.4.2"></a>
  95. ## <small>1.4.2 (2017-07-06)</small>
  96. * chore: release 1.4.2 ([8d14ac5](https://github.com/vkarpov15/kareem/commit/8d14ac5))
  97. * fix: correct args re: Automattic/mongoose#5405 ([3f28ae6](https://github.com/vkarpov15/kareem/commit/3f28ae6)), closes [Automattic/mongoose#5405](https://github.com/Automattic/mongoose/issues/5405)
  98. <a name="1.4.1"></a>
  99. ## <small>1.4.1 (2017-04-25)</small>
  100. * chore: release 1.4.1 ([5ecf0c2](https://github.com/vkarpov15/kareem/commit/5ecf0c2))
  101. * fix: handle numAsyncPres with clone() ([c72e857](https://github.com/vkarpov15/kareem/commit/c72e857)), closes [#8](https://github.com/vkarpov15/kareem/issues/8)
  102. * test: repro #8 ([9b4d6b2](https://github.com/vkarpov15/kareem/commit/9b4d6b2)), closes [#8](https://github.com/vkarpov15/kareem/issues/8)
  103. <a name="1.4.0"></a>
  104. ## 1.4.0 (2017-04-19)
  105. * chore: release 1.4.0 ([101c5f5](https://github.com/vkarpov15/kareem/commit/101c5f5))
  106. * feat: add merge() function ([285325e](https://github.com/vkarpov15/kareem/commit/285325e))
  107. <a name="1.3.0"></a>
  108. ## 1.3.0 (2017-03-26)
  109. * chore: release 1.3.0 ([f3a9e50](https://github.com/vkarpov15/kareem/commit/f3a9e50))
  110. * feat: pass function args to execPre ([4dd466d](https://github.com/vkarpov15/kareem/commit/4dd466d))
  111. <a name="1.2.1"></a>
  112. ## <small>1.2.1 (2017-02-03)</small>
  113. * chore: release 1.2.1 ([d97081f](https://github.com/vkarpov15/kareem/commit/d97081f))
  114. * fix: filter out _kareemIgnored args for error handlers re: Automattic/mongoose#4925 ([ddc7aeb](https://github.com/vkarpov15/kareem/commit/ddc7aeb)), closes [Automattic/mongoose#4925](https://github.com/Automattic/mongoose/issues/4925)
  115. * fix: make error handlers handle errors in pre hooks ([af38033](https://github.com/vkarpov15/kareem/commit/af38033)), closes [Automattic/mongoose#4927](https://github.com/Automattic/mongoose/issues/4927)
  116. <a name="1.2.0"></a>
  117. ## 1.2.0 (2017-01-02)
  118. * chore: release 1.2.0 ([033225c](https://github.com/vkarpov15/kareem/commit/033225c))
  119. * chore: upgrade deps ([f9e9a09](https://github.com/vkarpov15/kareem/commit/f9e9a09))
  120. * feat: add _kareemIgnore re: Automattic/mongoose#4836 ([7957771](https://github.com/vkarpov15/kareem/commit/7957771)), closes [Automattic/mongoose#4836](https://github.com/Automattic/mongoose/issues/4836)
  121. <a name="1.1.5"></a>
  122. ## <small>1.1.5 (2016-12-13)</small>
  123. * chore: release 1.1.5 ([1a9f684](https://github.com/vkarpov15/kareem/commit/1a9f684))
  124. * fix: correct field name ([04a0e9d](https://github.com/vkarpov15/kareem/commit/04a0e9d))
  125. <a name="1.1.4"></a>
  126. ## <small>1.1.4 (2016-12-09)</small>
  127. * chore: release 1.1.4 ([ece401c](https://github.com/vkarpov15/kareem/commit/ece401c))
  128. * chore: run tests on node 6 ([e0cb1cb](https://github.com/vkarpov15/kareem/commit/e0cb1cb))
  129. * fix: only copy own properties in clone() ([dfe28ce](https://github.com/vkarpov15/kareem/commit/dfe28ce)), closes [#7](https://github.com/vkarpov15/kareem/issues/7)
  130. <a name="1.1.3"></a>
  131. ## <small>1.1.3 (2016-06-27)</small>
  132. * chore: release 1.1.3 ([87171c8](https://github.com/vkarpov15/kareem/commit/87171c8))
  133. * fix: couple more issues with arg processing ([c65f523](https://github.com/vkarpov15/kareem/commit/c65f523))
  134. <a name="1.1.2"></a>
  135. ## <small>1.1.2 (2016-06-27)</small>
  136. * chore: release 1.1.2 ([8e102b6](https://github.com/vkarpov15/kareem/commit/8e102b6))
  137. * fix: add early return ([4feda4e](https://github.com/vkarpov15/kareem/commit/4feda4e))
  138. <a name="1.1.1"></a>
  139. ## <small>1.1.1 (2016-06-27)</small>
  140. * chore: release 1.1.1 ([8bb3050](https://github.com/vkarpov15/kareem/commit/8bb3050))
  141. * fix: skip error handlers if no error ([0eb3a44](https://github.com/vkarpov15/kareem/commit/0eb3a44))
  142. <a name="1.1.0"></a>
  143. ## 1.1.0 (2016-05-11)
  144. * chore: release 1.1.0 ([85332d9](https://github.com/vkarpov15/kareem/commit/85332d9))
  145. * chore: test on node 4 and node 5 ([1faefa1](https://github.com/vkarpov15/kareem/commit/1faefa1))
  146. * 100% coverage again ([c9aee4e](https://github.com/vkarpov15/kareem/commit/c9aee4e))
  147. * add support for error post hooks ([d378113](https://github.com/vkarpov15/kareem/commit/d378113))
  148. * basic setup for sync hooks #4 ([55aa081](https://github.com/vkarpov15/kareem/commit/55aa081)), closes [#4](https://github.com/vkarpov15/kareem/issues/4)
  149. * proof of concept for error handlers ([e4a07d9](https://github.com/vkarpov15/kareem/commit/e4a07d9))
  150. * refactor out handleWrapError helper ([b19af38](https://github.com/vkarpov15/kareem/commit/b19af38))
  151. <a name="1.0.1"></a>
  152. ## <small>1.0.1 (2015-05-10)</small>
  153. * Fix #1 ([de60dc6](https://github.com/vkarpov15/kareem/commit/de60dc6)), closes [#1](https://github.com/vkarpov15/kareem/issues/1)
  154. * release 1.0.1 ([6971088](https://github.com/vkarpov15/kareem/commit/6971088))
  155. * Run tests on iojs in travis ([adcd201](https://github.com/vkarpov15/kareem/commit/adcd201))
  156. * support legacy post hook behavior in wrap() ([23fa74c](https://github.com/vkarpov15/kareem/commit/23fa74c))
  157. * Use node 0.12 in travis ([834689d](https://github.com/vkarpov15/kareem/commit/834689d))
  158. <a name="1.0.0"></a>
  159. ## 1.0.0 (2015-01-28)
  160. * Tag 1.0.0 ([4c5a35a](https://github.com/vkarpov15/kareem/commit/4c5a35a))
  161. <a name="0.0.8"></a>
  162. ## <small>0.0.8 (2015-01-27)</small>
  163. * Add clone function ([688bba7](https://github.com/vkarpov15/kareem/commit/688bba7))
  164. * Add jscs for style checking ([5c93149](https://github.com/vkarpov15/kareem/commit/5c93149))
  165. * Bump 0.0.8 ([03c0d2f](https://github.com/vkarpov15/kareem/commit/03c0d2f))
  166. * Fix jscs config, add gulp rules ([9989abf](https://github.com/vkarpov15/kareem/commit/9989abf))
  167. * fix Makefile typo ([1f7e61a](https://github.com/vkarpov15/kareem/commit/1f7e61a))
  168. <a name="0.0.7"></a>
  169. ## <small>0.0.7 (2015-01-04)</small>
  170. * Bump 0.0.7 ([98ef173](https://github.com/vkarpov15/kareem/commit/98ef173))
  171. * fix LearnBoost/mongoose#2553 - use null instead of undefined for err ([9157b48](https://github.com/vkarpov15/kareem/commit/9157b48)), closes [LearnBoost/mongoose#2553](https://github.com/LearnBoost/mongoose/issues/2553)
  172. * Regenerate docs ([2331cdf](https://github.com/vkarpov15/kareem/commit/2331cdf))
  173. <a name="0.0.6"></a>
  174. ## <small>0.0.6 (2015-01-01)</small>
  175. * Update docs and bump 0.0.6 ([92c12a7](https://github.com/vkarpov15/kareem/commit/92c12a7))
  176. <a name="0.0.5"></a>
  177. ## <small>0.0.5 (2015-01-01)</small>
  178. * Add coverage rule to Makefile ([825a91c](https://github.com/vkarpov15/kareem/commit/825a91c))
  179. * Add coveralls to README ([fb52369](https://github.com/vkarpov15/kareem/commit/fb52369))
  180. * Add coveralls to travis ([93f6f15](https://github.com/vkarpov15/kareem/commit/93f6f15))
  181. * Add createWrapper() function ([ea77741](https://github.com/vkarpov15/kareem/commit/ea77741))
  182. * Add istanbul code coverage ([6eceeef](https://github.com/vkarpov15/kareem/commit/6eceeef))
  183. * Add some more comments for examples ([c5b0c6f](https://github.com/vkarpov15/kareem/commit/c5b0c6f))
  184. * Add travis ([e6dcb06](https://github.com/vkarpov15/kareem/commit/e6dcb06))
  185. * Add travis badge to docs ([ad8c9b3](https://github.com/vkarpov15/kareem/commit/ad8c9b3))
  186. * Add wrap() tests, 100% coverage ([6945be4](https://github.com/vkarpov15/kareem/commit/6945be4))
  187. * Better test coverage for execPost ([d9ad539](https://github.com/vkarpov15/kareem/commit/d9ad539))
  188. * Bump 0.0.5 ([69875b1](https://github.com/vkarpov15/kareem/commit/69875b1))
  189. * Docs fix ([15b7098](https://github.com/vkarpov15/kareem/commit/15b7098))
  190. * Fix silly mistake in docs generation ([50373eb](https://github.com/vkarpov15/kareem/commit/50373eb))
  191. * Fix typo in readme ([fec4925](https://github.com/vkarpov15/kareem/commit/fec4925))
  192. * Linkify travis badge ([92b25fe](https://github.com/vkarpov15/kareem/commit/92b25fe))
  193. * Make travis run coverage ([747157b](https://github.com/vkarpov15/kareem/commit/747157b))
  194. * Move travis status badge ([d52e89b](https://github.com/vkarpov15/kareem/commit/d52e89b))
  195. * Quick fix for coverage ([50bbddb](https://github.com/vkarpov15/kareem/commit/50bbddb))
  196. * Typo fix ([adea794](https://github.com/vkarpov15/kareem/commit/adea794))
  197. <a name="0.0.4"></a>
  198. ## <small>0.0.4 (2014-12-13)</small>
  199. * Bump 0.0.4, run docs generation ([51a15fe](https://github.com/vkarpov15/kareem/commit/51a15fe))
  200. * Use correct post parameters in wrap() ([9bb5da3](https://github.com/vkarpov15/kareem/commit/9bb5da3))
  201. <a name="0.0.3"></a>
  202. ## <small>0.0.3 (2014-12-12)</small>
  203. * Add npm test script, fix small bug with args not getting passed through post ([49e3e68](https://github.com/vkarpov15/kareem/commit/49e3e68))
  204. * Bump 0.0.3 ([65621d8](https://github.com/vkarpov15/kareem/commit/65621d8))
  205. * Update readme ([901388b](https://github.com/vkarpov15/kareem/commit/901388b))
  206. <a name="0.0.2"></a>
  207. ## <small>0.0.2 (2014-12-12)</small>
  208. * Add github repo and bump 0.0.2 ([59db8be](https://github.com/vkarpov15/kareem/commit/59db8be))
  209. <a name="0.0.1"></a>
  210. ## <small>0.0.1 (2014-12-12)</small>
  211. * Add basic docs ([ad29ea4](https://github.com/vkarpov15/kareem/commit/ad29ea4))
  212. * Add pre hooks ([2ffc356](https://github.com/vkarpov15/kareem/commit/2ffc356))
  213. * Add wrap function ([68c540c](https://github.com/vkarpov15/kareem/commit/68c540c))
  214. * Bump to version 0.0.1 ([a4bfd68](https://github.com/vkarpov15/kareem/commit/a4bfd68))
  215. * Initial commit ([4002458](https://github.com/vkarpov15/kareem/commit/4002458))
  216. * Initial deposit ([98fc489](https://github.com/vkarpov15/kareem/commit/98fc489))
  217. * Post hooks ([395b67c](https://github.com/vkarpov15/kareem/commit/395b67c))
  218. * Some basic setup work ([82df75e](https://github.com/vkarpov15/kareem/commit/82df75e))
  219. * Support sync pre hooks ([1cc1b9f](https://github.com/vkarpov15/kareem/commit/1cc1b9f))
  220. * Update package.json description ([978da18](https://github.com/vkarpov15/kareem/commit/978da18))
  221. <a name="2.2.5"></a>
  222. ## <small>2.2.5 (2018-09-24)</small>
  223. <a name="2.2.4"></a>
  224. ## <small>2.2.4 (2018-09-24)</small>
  225. <a name="2.2.3"></a>
  226. ## <small>2.2.3 (2018-09-24)</small>
  227. * fix(filter): copy async pres correctly with `filter()` ([1b1ed8a](https://github.com/vkarpov15/kareem/commit/1b1ed8a)), closes [Automattic/mongoose#3054](https://github.com/Automattic/mongoose/issues/3054)
  228. * feat: add filter() function ([1f641f4](https://github.com/vkarpov15/kareem/commit/1f641f4))
  229. * feat: support storing options on pre and post hooks ([59220b9](https://github.com/vkarpov15/kareem/commit/59220b9))
  230. <a name="2.2.3"></a>
  231. ## <small>2.2.3 (2018-09-10)</small>
  232. * chore: release 2.2.3 ([af653a3](https://github.com/vkarpov15/kareem/commit/af653a3))
  233. <a name="2.2.2"></a>
  234. ## <small>2.2.2 (2018-09-10)</small>
  235. * chore: release 2.2.2 ([3f0144d](https://github.com/vkarpov15/kareem/commit/3f0144d))
  236. * fix: allow merge() to not clone ([e628d65](https://github.com/vkarpov15/kareem/commit/e628d65))
  237. <a name="2.2.1"></a>
  238. ## <small>2.2.1 (2018-06-05)</small>
  239. * chore: release 2.2.1 ([4625a64](https://github.com/vkarpov15/kareem/commit/4625a64))
  240. * chore: remove lockfile from git ([7f3e4e6](https://github.com/vkarpov15/kareem/commit/7f3e4e6))
  241. * fix: handle numAsync correctly when merging ([fef8e7e](https://github.com/vkarpov15/kareem/commit/fef8e7e))
  242. * test: repro issue with not copying numAsync ([952d9db](https://github.com/vkarpov15/kareem/commit/952d9db))
  243. <a name="2.2.0"></a>
  244. ## 2.2.0 (2018-06-05)
  245. * chore: release 2.2.0 ([ff9ad03](https://github.com/vkarpov15/kareem/commit/ff9ad03))
  246. * fix: use maps instead of objects for _pres and _posts so `toString()` doesn't get reported as having ([55df303](https://github.com/vkarpov15/kareem/commit/55df303)), closes [Automattic/mongoose#6538](https://github.com/Automattic/mongoose/issues/6538)
  247. <a name="2.1.0"></a>
  248. ## 2.1.0 (2018-05-16)
  249. * chore: release 2.1.0 ([ba5f1bc](https://github.com/vkarpov15/kareem/commit/ba5f1bc))
  250. * feat: add option to check wrapped function return value for promises ([c9d7dd1](https://github.com/vkarpov15/kareem/commit/c9d7dd1))
  251. * refactor: use const in wrap() ([0fc21f9](https://github.com/vkarpov15/kareem/commit/0fc21f9))
  252. <a name="2.0.7"></a>
  253. ## <small>2.0.7 (2018-04-28)</small>
  254. * chore: release 2.0.7 ([0bf91e6](https://github.com/vkarpov15/kareem/commit/0bf91e6))
  255. * feat: add `hasHooks()` ([225f18d](https://github.com/vkarpov15/kareem/commit/225f18d)), closes [Automattic/mongoose#6385](https://github.com/Automattic/mongoose/issues/6385)
  256. <a name="2.0.6"></a>
  257. ## <small>2.0.6 (2018-03-22)</small>
  258. * chore: release 2.0.6 ([f3d406b](https://github.com/vkarpov15/kareem/commit/f3d406b))
  259. * fix(wrap): ensure fast path still wraps function in `nextTick()` for chaining ([7000494](https://github.com/vkarpov15/kareem/commit/7000494)), closes [Automattic/mongoose#6250](https://github.com/Automattic/mongoose/issues/6250) [dsanel/mongoose-delete#36](https://github.com/dsanel/mongoose-delete/issues/36)
  260. <a name="2.0.5"></a>
  261. ## <small>2.0.5 (2018-02-22)</small>
  262. * chore: release 2.0.5 ([3286612](https://github.com/vkarpov15/kareem/commit/3286612))
  263. * perf(createWrapper): don't create wrapper if there are no hooks ([5afc5b9](https://github.com/vkarpov15/kareem/commit/5afc5b9)), closes [Automattic/mongoose#6126](https://github.com/Automattic/mongoose/issues/6126)
  264. <a name="2.0.4"></a>
  265. ## <small>2.0.4 (2018-02-08)</small>
  266. * chore: release 2.0.4 ([2ab0293](https://github.com/vkarpov15/kareem/commit/2ab0293))
  267. <a name="2.0.3"></a>
  268. ## <small>2.0.3 (2018-02-01)</small>
  269. * chore: release 2.0.3 ([3c1abe5](https://github.com/vkarpov15/kareem/commit/3c1abe5))
  270. * fix: use process.nextTick() re: Automattic/mongoose#6074 ([e5bfe33](https://github.com/vkarpov15/kareem/commit/e5bfe33)), closes [Automattic/mongoose#6074](https://github.com/Automattic/mongoose/issues/6074)
  271. <a name="2.0.2"></a>
  272. ## <small>2.0.2 (2018-01-24)</small>
  273. * chore: fix license ([a9d755c](https://github.com/vkarpov15/kareem/commit/a9d755c)), closes [#10](https://github.com/vkarpov15/kareem/issues/10)
  274. * chore: release 2.0.2 ([fe87ab6](https://github.com/vkarpov15/kareem/commit/fe87ab6))
  275. <a name="2.0.1"></a>
  276. ## <small>2.0.1 (2018-01-09)</small>
  277. * chore: release 2.0.1 with lockfile bump ([09c44fb](https://github.com/vkarpov15/kareem/commit/09c44fb))
  278. <a name="2.0.0"></a>
  279. ## 2.0.0 (2018-01-09)
  280. * chore: bump marked re: security ([cc564a9](https://github.com/vkarpov15/kareem/commit/cc564a9))
  281. * chore: release 2.0.0 ([f511d1c](https://github.com/vkarpov15/kareem/commit/f511d1c))
  282. <a name="2.0.0-rc5"></a>
  283. ## 2.0.0-rc5 (2017-12-23)
  284. * chore: fix build on node 4+5 ([6dac5a4](https://github.com/vkarpov15/kareem/commit/6dac5a4))
  285. * chore: fix built on node 4 + 5 again ([434ef0a](https://github.com/vkarpov15/kareem/commit/434ef0a))
  286. * chore: release 2.0.0-rc5 ([25a32ee](https://github.com/vkarpov15/kareem/commit/25a32ee))
  287. <a name="2.0.0-rc4"></a>
  288. ## 2.0.0-rc4 (2017-12-22)
  289. * chore: release 2.0.0-rc4 ([49fc083](https://github.com/vkarpov15/kareem/commit/49fc083))
  290. * BREAKING CHANGE: deduplicate when merging hooks re: Automattic/mongoose#2945 ([d458573](https://github.com/vkarpov15/kareem/commit/d458573)), closes [Automattic/mongoose#2945](https://github.com/Automattic/mongoose/issues/2945)
  291. <a name="2.0.0-rc3"></a>
  292. ## 2.0.0-rc3 (2017-12-22)
  293. * chore: release 2.0.0-rc3 ([adaaa00](https://github.com/vkarpov15/kareem/commit/adaaa00))
  294. * feat: support returning promises from middleware functions ([05b4480](https://github.com/vkarpov15/kareem/commit/05b4480)), closes [Automattic/mongoose#3779](https://github.com/Automattic/mongoose/issues/3779)
  295. <a name="2.0.0-rc2"></a>
  296. ## 2.0.0-rc2 (2017-12-21)
  297. * chore: release 2.0.0-rc2 ([76325fa](https://github.com/vkarpov15/kareem/commit/76325fa))
  298. * fix: ensure next() and done() run in next tick ([6c20684](https://github.com/vkarpov15/kareem/commit/6c20684))
  299. <a name="2.0.0-rc1"></a>
  300. ## 2.0.0-rc1 (2017-12-21)
  301. * chore: improve test coverage re: Automattic/mongoose#3232 ([7b45cf0](https://github.com/vkarpov15/kareem/commit/7b45cf0)), closes [Automattic/mongoose#3232](https://github.com/Automattic/mongoose/issues/3232)
  302. * chore: release 2.0.0-rc1 ([9b83f52](https://github.com/vkarpov15/kareem/commit/9b83f52))
  303. * BREAKING CHANGE: report sync exceptions as errors, only allow calling next() and done() once ([674adcc](https://github.com/vkarpov15/kareem/commit/674adcc)), closes [Automattic/mongoose#3483](https://github.com/Automattic/mongoose/issues/3483)
  304. <a name="2.0.0-rc0"></a>
  305. ## 2.0.0-rc0 (2017-12-17)
  306. * chore: release 2.0.0-rc0 ([16b44b5](https://github.com/vkarpov15/kareem/commit/16b44b5))
  307. * BREAKING CHANGE: drop support for node < 4 ([9cbb8c7](https://github.com/vkarpov15/kareem/commit/9cbb8c7))
  308. * BREAKING CHANGE: remove useLegacyPost and add several new features ([6dd8531](https://github.com/vkarpov15/kareem/commit/6dd8531)), closes [Automattic/mongoose#3232](https://github.com/Automattic/mongoose/issues/3232)
  309. <a name="1.5.0"></a>
  310. ## 1.5.0 (2017-07-20)
  311. * chore: release 1.5.0 ([9c491a0](https://github.com/vkarpov15/kareem/commit/9c491a0))
  312. * fix: improve post error handlers results ([9928dd5](https://github.com/vkarpov15/kareem/commit/9928dd5)), closes [Automattic/mongoose#5466](https://github.com/Automattic/mongoose/issues/5466)
  313. <a name="1.4.2"></a>
  314. ## <small>1.4.2 (2017-07-06)</small>
  315. * chore: release 1.4.2 ([8d14ac5](https://github.com/vkarpov15/kareem/commit/8d14ac5))
  316. * fix: correct args re: Automattic/mongoose#5405 ([3f28ae6](https://github.com/vkarpov15/kareem/commit/3f28ae6)), closes [Automattic/mongoose#5405](https://github.com/Automattic/mongoose/issues/5405)
  317. <a name="1.4.1"></a>
  318. ## <small>1.4.1 (2017-04-25)</small>
  319. * chore: release 1.4.1 ([5ecf0c2](https://github.com/vkarpov15/kareem/commit/5ecf0c2))
  320. * fix: handle numAsyncPres with clone() ([c72e857](https://github.com/vkarpov15/kareem/commit/c72e857)), closes [#8](https://github.com/vkarpov15/kareem/issues/8)
  321. * test: repro #8 ([9b4d6b2](https://github.com/vkarpov15/kareem/commit/9b4d6b2)), closes [#8](https://github.com/vkarpov15/kareem/issues/8)
  322. <a name="1.4.0"></a>
  323. ## 1.4.0 (2017-04-19)
  324. * chore: release 1.4.0 ([101c5f5](https://github.com/vkarpov15/kareem/commit/101c5f5))
  325. * feat: add merge() function ([285325e](https://github.com/vkarpov15/kareem/commit/285325e))
  326. <a name="1.3.0"></a>
  327. ## 1.3.0 (2017-03-26)
  328. * chore: release 1.3.0 ([f3a9e50](https://github.com/vkarpov15/kareem/commit/f3a9e50))
  329. * feat: pass function args to execPre ([4dd466d](https://github.com/vkarpov15/kareem/commit/4dd466d))
  330. <a name="1.2.1"></a>
  331. ## <small>1.2.1 (2017-02-03)</small>
  332. * chore: release 1.2.1 ([d97081f](https://github.com/vkarpov15/kareem/commit/d97081f))
  333. * fix: filter out _kareemIgnored args for error handlers re: Automattic/mongoose#4925 ([ddc7aeb](https://github.com/vkarpov15/kareem/commit/ddc7aeb)), closes [Automattic/mongoose#4925](https://github.com/Automattic/mongoose/issues/4925)
  334. * fix: make error handlers handle errors in pre hooks ([af38033](https://github.com/vkarpov15/kareem/commit/af38033)), closes [Automattic/mongoose#4927](https://github.com/Automattic/mongoose/issues/4927)
  335. <a name="1.2.0"></a>
  336. ## 1.2.0 (2017-01-02)
  337. * chore: release 1.2.0 ([033225c](https://github.com/vkarpov15/kareem/commit/033225c))
  338. * chore: upgrade deps ([f9e9a09](https://github.com/vkarpov15/kareem/commit/f9e9a09))
  339. * feat: add _kareemIgnore re: Automattic/mongoose#4836 ([7957771](https://github.com/vkarpov15/kareem/commit/7957771)), closes [Automattic/mongoose#4836](https://github.com/Automattic/mongoose/issues/4836)
  340. <a name="1.1.5"></a>
  341. ## <small>1.1.5 (2016-12-13)</small>
  342. * chore: release 1.1.5 ([1a9f684](https://github.com/vkarpov15/kareem/commit/1a9f684))
  343. * fix: correct field name ([04a0e9d](https://github.com/vkarpov15/kareem/commit/04a0e9d))
  344. <a name="1.1.4"></a>
  345. ## <small>1.1.4 (2016-12-09)</small>
  346. * chore: release 1.1.4 ([ece401c](https://github.com/vkarpov15/kareem/commit/ece401c))
  347. * chore: run tests on node 6 ([e0cb1cb](https://github.com/vkarpov15/kareem/commit/e0cb1cb))
  348. * fix: only copy own properties in clone() ([dfe28ce](https://github.com/vkarpov15/kareem/commit/dfe28ce)), closes [#7](https://github.com/vkarpov15/kareem/issues/7)
  349. <a name="1.1.3"></a>
  350. ## <small>1.1.3 (2016-06-27)</small>
  351. * chore: release 1.1.3 ([87171c8](https://github.com/vkarpov15/kareem/commit/87171c8))
  352. * fix: couple more issues with arg processing ([c65f523](https://github.com/vkarpov15/kareem/commit/c65f523))
  353. <a name="1.1.2"></a>
  354. ## <small>1.1.2 (2016-06-27)</small>
  355. * chore: release 1.1.2 ([8e102b6](https://github.com/vkarpov15/kareem/commit/8e102b6))
  356. * fix: add early return ([4feda4e](https://github.com/vkarpov15/kareem/commit/4feda4e))
  357. <a name="1.1.1"></a>
  358. ## <small>1.1.1 (2016-06-27)</small>
  359. * chore: release 1.1.1 ([8bb3050](https://github.com/vkarpov15/kareem/commit/8bb3050))
  360. * fix: skip error handlers if no error ([0eb3a44](https://github.com/vkarpov15/kareem/commit/0eb3a44))
  361. <a name="1.1.0"></a>
  362. ## 1.1.0 (2016-05-11)
  363. * chore: release 1.1.0 ([85332d9](https://github.com/vkarpov15/kareem/commit/85332d9))
  364. * chore: test on node 4 and node 5 ([1faefa1](https://github.com/vkarpov15/kareem/commit/1faefa1))
  365. * 100% coverage again ([c9aee4e](https://github.com/vkarpov15/kareem/commit/c9aee4e))
  366. * add support for error post hooks ([d378113](https://github.com/vkarpov15/kareem/commit/d378113))
  367. * basic setup for sync hooks #4 ([55aa081](https://github.com/vkarpov15/kareem/commit/55aa081)), closes [#4](https://github.com/vkarpov15/kareem/issues/4)
  368. * proof of concept for error handlers ([e4a07d9](https://github.com/vkarpov15/kareem/commit/e4a07d9))
  369. * refactor out handleWrapError helper ([b19af38](https://github.com/vkarpov15/kareem/commit/b19af38))
  370. <a name="1.0.1"></a>
  371. ## <small>1.0.1 (2015-05-10)</small>
  372. * Fix #1 ([de60dc6](https://github.com/vkarpov15/kareem/commit/de60dc6)), closes [#1](https://github.com/vkarpov15/kareem/issues/1)
  373. * release 1.0.1 ([6971088](https://github.com/vkarpov15/kareem/commit/6971088))
  374. * Run tests on iojs in travis ([adcd201](https://github.com/vkarpov15/kareem/commit/adcd201))
  375. * support legacy post hook behavior in wrap() ([23fa74c](https://github.com/vkarpov15/kareem/commit/23fa74c))
  376. * Use node 0.12 in travis ([834689d](https://github.com/vkarpov15/kareem/commit/834689d))
  377. <a name="1.0.0"></a>
  378. ## 1.0.0 (2015-01-28)
  379. * Tag 1.0.0 ([4c5a35a](https://github.com/vkarpov15/kareem/commit/4c5a35a))
  380. <a name="0.0.8"></a>
  381. ## <small>0.0.8 (2015-01-27)</small>
  382. * Add clone function ([688bba7](https://github.com/vkarpov15/kareem/commit/688bba7))
  383. * Add jscs for style checking ([5c93149](https://github.com/vkarpov15/kareem/commit/5c93149))
  384. * Bump 0.0.8 ([03c0d2f](https://github.com/vkarpov15/kareem/commit/03c0d2f))
  385. * Fix jscs config, add gulp rules ([9989abf](https://github.com/vkarpov15/kareem/commit/9989abf))
  386. * fix Makefile typo ([1f7e61a](https://github.com/vkarpov15/kareem/commit/1f7e61a))
  387. <a name="0.0.7"></a>
  388. ## <small>0.0.7 (2015-01-04)</small>
  389. * Bump 0.0.7 ([98ef173](https://github.com/vkarpov15/kareem/commit/98ef173))
  390. * fix LearnBoost/mongoose#2553 - use null instead of undefined for err ([9157b48](https://github.com/vkarpov15/kareem/commit/9157b48)), closes [LearnBoost/mongoose#2553](https://github.com/LearnBoost/mongoose/issues/2553)
  391. * Regenerate docs ([2331cdf](https://github.com/vkarpov15/kareem/commit/2331cdf))
  392. <a name="0.0.6"></a>
  393. ## <small>0.0.6 (2015-01-01)</small>
  394. * Update docs and bump 0.0.6 ([92c12a7](https://github.com/vkarpov15/kareem/commit/92c12a7))
  395. <a name="0.0.5"></a>
  396. ## <small>0.0.5 (2015-01-01)</small>
  397. * Add coverage rule to Makefile ([825a91c](https://github.com/vkarpov15/kareem/commit/825a91c))
  398. * Add coveralls to README ([fb52369](https://github.com/vkarpov15/kareem/commit/fb52369))
  399. * Add coveralls to travis ([93f6f15](https://github.com/vkarpov15/kareem/commit/93f6f15))
  400. * Add createWrapper() function ([ea77741](https://github.com/vkarpov15/kareem/commit/ea77741))
  401. * Add istanbul code coverage ([6eceeef](https://github.com/vkarpov15/kareem/commit/6eceeef))
  402. * Add some more comments for examples ([c5b0c6f](https://github.com/vkarpov15/kareem/commit/c5b0c6f))
  403. * Add travis ([e6dcb06](https://github.com/vkarpov15/kareem/commit/e6dcb06))
  404. * Add travis badge to docs ([ad8c9b3](https://github.com/vkarpov15/kareem/commit/ad8c9b3))
  405. * Add wrap() tests, 100% coverage ([6945be4](https://github.com/vkarpov15/kareem/commit/6945be4))
  406. * Better test coverage for execPost ([d9ad539](https://github.com/vkarpov15/kareem/commit/d9ad539))
  407. * Bump 0.0.5 ([69875b1](https://github.com/vkarpov15/kareem/commit/69875b1))
  408. * Docs fix ([15b7098](https://github.com/vkarpov15/kareem/commit/15b7098))
  409. * Fix silly mistake in docs generation ([50373eb](https://github.com/vkarpov15/kareem/commit/50373eb))
  410. * Fix typo in readme ([fec4925](https://github.com/vkarpov15/kareem/commit/fec4925))
  411. * Linkify travis badge ([92b25fe](https://github.com/vkarpov15/kareem/commit/92b25fe))
  412. * Make travis run coverage ([747157b](https://github.com/vkarpov15/kareem/commit/747157b))
  413. * Move travis status badge ([d52e89b](https://github.com/vkarpov15/kareem/commit/d52e89b))
  414. * Quick fix for coverage ([50bbddb](https://github.com/vkarpov15/kareem/commit/50bbddb))
  415. * Typo fix ([adea794](https://github.com/vkarpov15/kareem/commit/adea794))
  416. <a name="0.0.4"></a>
  417. ## <small>0.0.4 (2014-12-13)</small>
  418. * Bump 0.0.4, run docs generation ([51a15fe](https://github.com/vkarpov15/kareem/commit/51a15fe))
  419. * Use correct post parameters in wrap() ([9bb5da3](https://github.com/vkarpov15/kareem/commit/9bb5da3))
  420. <a name="0.0.3"></a>
  421. ## <small>0.0.3 (2014-12-12)</small>
  422. * Add npm test script, fix small bug with args not getting passed through post ([49e3e68](https://github.com/vkarpov15/kareem/commit/49e3e68))
  423. * Bump 0.0.3 ([65621d8](https://github.com/vkarpov15/kareem/commit/65621d8))
  424. * Update readme ([901388b](https://github.com/vkarpov15/kareem/commit/901388b))
  425. <a name="0.0.2"></a>
  426. ## <small>0.0.2 (2014-12-12)</small>
  427. * Add github repo and bump 0.0.2 ([59db8be](https://github.com/vkarpov15/kareem/commit/59db8be))
  428. <a name="0.0.1"></a>
  429. ## <small>0.0.1 (2014-12-12)</small>
  430. * Add basic docs ([ad29ea4](https://github.com/vkarpov15/kareem/commit/ad29ea4))
  431. * Add pre hooks ([2ffc356](https://github.com/vkarpov15/kareem/commit/2ffc356))
  432. * Add wrap function ([68c540c](https://github.com/vkarpov15/kareem/commit/68c540c))
  433. * Bump to version 0.0.1 ([a4bfd68](https://github.com/vkarpov15/kareem/commit/a4bfd68))
  434. * Initial commit ([4002458](https://github.com/vkarpov15/kareem/commit/4002458))
  435. * Initial deposit ([98fc489](https://github.com/vkarpov15/kareem/commit/98fc489))
  436. * Post hooks ([395b67c](https://github.com/vkarpov15/kareem/commit/395b67c))
  437. * Some basic setup work ([82df75e](https://github.com/vkarpov15/kareem/commit/82df75e))
  438. * Support sync pre hooks ([1cc1b9f](https://github.com/vkarpov15/kareem/commit/1cc1b9f))
  439. * Update package.json description ([978da18](https://github.com/vkarpov15/kareem/commit/978da18))