9ddc1e6e96aa4a0b39195a71394fbe84424e31e94aa2fa45e1c848799b0b01ec6e361d26ebecc406c8b62795719c0f30a58e732f8da767573725564d02880a 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. # History
  2. ## 8.0.3
  3. ### Bug fixes
  4. * docs: remove stale link from readme (9f467b3)
  5. ### Other changes
  6. * ci: turn off node 4/6 builds (301e09a)
  7. * lib: delete old commented-out code (2d11e0b)
  8. ## 8.0.2
  9. ### Bug fixes
  10. * lib: ignore properties in map that have no predicate (f6bbad7)
  11. * docs: add missing section link to readme index (5cfec25)
  12. * ci: stop testing in node 0.10 (f986f1c)
  13. ### Other changes
  14. * docs: update readme (e602bfd)
  15. * package: npm update (1b32cd4)
  16. ## 8.0.1
  17. ### Bug fixes
  18. * docs: fix link to change log (9166ecf)
  19. ### Other changes
  20. * docs: update copyright (ddc00b8)
  21. ## 8.0.0
  22. ### Breaking changes
  23. * api: remove apply and combine functionality with map (ecc40e5)
  24. ### Bug fixes
  25. * docs: fix links to change log (ae3811a)
  26. ### Refactorings
  27. * lib: eliminate intermediate arrays when iterating properties (8eeda6f)
  28. * lib: use native Array.isArray internally (ebc9ed0)
  29. ### Other changes
  30. * deps: update dev dependencies and rebuild (854b012)
  31. * project: turn on gitlab pipeline (ab4f662)
  32. ## 7.4.0
  33. ### New features
  34. * docs: add note about typescript definitions to readme (13c7a90)
  35. ### Bug fixes
  36. * docs: remove errant semicolon from example code (9053f95)
  37. * docs: clarify the behaviour of between and inRange (88a2f61)
  38. * tests: ensure tests run in non-es6 environments (4bae637)
  39. ### Other changes
  40. * deps: update please-release-me (72377bf)
  41. * project: migrate to gitlab (19919b5)
  42. * package: update authors (9848df0)
  43. ## 7.3.0
  44. * feature: add primitive predicate (3114d7f)
  45. ## 7.2.1
  46. * fix: perf tweaks for tight loops (8a9919d)
  47. * chore: update ci config (136f185)
  48. ## 7.2.0
  49. * feature: return the target value from assertions (73da792)
  50. * chore: add release script dependency (cacc348)
  51. * fix: make assert throw for any falsy value (4f15c73)
  52. ## 7.1
  53. * Implement `nonEmptyObject`. Thanks to [Victor Bakke][gipphe].
  54. * Implement `nonEmptyArray`. Thanks to [Victor Bakke][gipphe].
  55. * Fix error messages on assertions that take a string as their last argument.
  56. * Add support for custom error types in assertions.
  57. * Throw TypeErrors by default.
  58. ## 7.0
  59. * Breaking changes:
  60. * Rename `instance` to `instanceStrict`.
  61. * Combine `builtIn` and `userDefined` to form new `instance` predicate.
  62. * Exclude non-src files from npm package
  63. ## 6.0
  64. * Breaking change:
  65. * `either` modifier removed.
  66. * Eliminated some string duplication.
  67. ## 5.1
  68. * Fix broken implementation of `maybe.array.of`.
  69. ## 5.0
  70. * Breaking changes:
  71. * `isMap` predicate removed (see `builtIn`).
  72. * `error` predicate removed (see `builtIn`).
  73. * Implement `builtIn` predicate.
  74. * Implement `userDefined` predicate.
  75. * Implement `emptyString` predicate.
  76. * Implement `infinity` predicate.
  77. ## 4.3
  78. * Implement `isMap`. Thanks to [Ryan Temple][ryantemple].
  79. ## 4.2
  80. * Implement `includes`.
  81. ## 4.1
  82. * Implement `equal`.
  83. ## 4.0
  84. * Breaking changes:
  85. * Rename `unemptyString` => `nonEmptyString`.
  86. * Support derived error objects in `error`.
  87. * Fix HTMLElement instance predicate bug in Safari.
  88. ## 3.3
  89. * Implement `greaterOrEqual`.
  90. * Implement `lessOrEqual`.
  91. * Implement `inRange`.
  92. * Fix default error message for `function`. Thanks to [Paul Jolly][myitcv].
  93. ## 3.2
  94. * Implement `arrayLike`
  95. * Implement `iterable`
  96. * Implement `array.of`
  97. * Implement `arrayLike.of`
  98. * Implement `iterable.of`
  99. * Implement `object.of`
  100. * Fix unhandled exception when dereferencing undefined data inside `map`.
  101. ## 3.1
  102. * Accept a single predicate in `map`.
  103. * Remove assertions from `hasLength` and `like`.
  104. ## 3.0
  105. * Breaking changes:
  106. * Rename `length` => `hasLength`.
  107. * Drop `webUrl`. (sorry @bahmutov!)
  108. * Turn `assert`, `not` and `maybe` into standalone functions as well as modifiers.
  109. * Implement `match` for general regex-matching. Possibly of interest to former users of `webUrl`, `gitUrl` and `email`.
  110. * Implement `contains`.
  111. * Implement `between`.
  112. * Implement `greater`.
  113. * Implement `less`.
  114. * Implement `zero`.
  115. * Implement `emptyArray`.
  116. * Implement `error`.
  117. * Fix errant check that property counts match in `map`.
  118. ## 2.2
  119. * Ensure `date` predicate returns `false` for invalid dates.
  120. ## 2.1
  121. * Add `either`.
  122. ## 2.0
  123. * Breaking changes:
  124. * Drop ES3 support.
  125. * Rename `verify` => `assert`.
  126. * Remame `nulled` => `null`.
  127. * Switch `defined` to `undefined` for consistency with `null`.
  128. * Tightened implementation of `webUrl` to reject more cases.
  129. * Drop `gitUrl`. (sorry @galniv!)
  130. * Drop `email`. (sorry @rodrigo!)
  131. * Drop `floatNumber`. (sorry @rodrigo!)
  132. * Rename `oddNumber`, `evenNumber`, `positiveNumber`, `negativeNumber`, `intNumber` => `odd`, `even`, `positive`, `negative`, `integer`.
  133. * Rename `bool` => `boolean`.
  134. * Rename `every` => `all`.
  135. * Add predicate `assigned`.
  136. * Add `apply` batch operation.
  137. * Delete superfluous unit tests.
  138. ## 1.4
  139. * Implement `bool` predicate. Thanks to [Clinton Skakun][clintonskakun].
  140. ## 1.3
  141. * Implement `email`, `intNumber` and `floatNumber` predicates. Thanks to [Rodrigo González][rodrigo].
  142. * Infinity is not a number.
  143. * Implement `defined` and `nulled`. Thanks to [Alejandro Villanueva][ialex].
  144. * Speculatively fix conflict with angular-mocks.
  145. ## 1.2
  146. * Implement `not` modifier.
  147. * Implement `gitUrl` predicate. Thanks to [Gal Niv][galniv].
  148. ## 1.1
  149. * Replace `check.maybe.verify.xxx` with `check.verify.maybe.xxx`.
  150. ## 1.0
  151. * API overhaul:
  152. * Predicates exported as `check.xxx` rather than `check.isXxx`.
  153. * Verifiers exported as `check.verify.xxx` rather than `check.verifyXxx`. Thanks to [Marc-Olivier Ricard][marcolivier].
  154. * Unit tests added for error messages.
  155. ## 0.8
  156. * Added `isWebUrl` and `verifyWebUrl`. Thanks to [Gleb Bahmutov][gleb].
  157. ## 0.7
  158. * Added `check.maybe` modifier. Thanks to [Marc-Olivier Ricard][marcolivier].
  159. * Added `check.map`, `check.every` and `check.any` batch operations. Thanks to [Marc-Olivier Ricard][marcolivier].
  160. * Harmonised the node and browser unit tests.
  161. [marcolivier]: https://github.com/ricardmo
  162. [gleb]: https://github.com/bahmutov
  163. [galniv]: https://github.com/galniv
  164. [rodrigo]: https://github.com/roro89
  165. [ialex]: https://github.com/ialex
  166. [clintonskakun]: https://github.com/clintonskakun
  167. [myitcv]: https://github.com/myitcv
  168. [ryantemple]: https://github.com/ryantemple
  169. [gipphe]: https://github.com/Gipphe