1 | # 13.2.3 / 2018-07-30
|
2 |
|
3 | * `.only.keys` throws when no `Object.prototype.should`
|
4 |
|
5 | # 13.2.2 / 2018-07-26
|
6 |
|
7 | * Updates for TS definition
|
8 |
|
9 | # 13.2.1 / 2018-01-12
|
10 |
|
11 | * Fix `.size` to work with should/as-function
|
12 |
|
13 | # 13.2.0 / 2017-12-27
|
14 |
|
15 | * Update type adaptors to allow to use Set as iterable everywhere
|
16 |
|
17 | # 13.1.3 / 2017-10-28
|
18 |
|
19 | * Fix weird bug in `.containDeep` when given object is string (see \#157)
|
20 |
|
21 | # 13.1.2 / 2017-10-10
|
22 |
|
23 | * Revert default export in TS definition (added in 13.1.0)
|
24 |
|
25 | # 13.1.1 / 2017-10-07
|
26 |
|
27 | * Added missing return type for `.rejectedWith` in typescript definition
|
28 |
|
29 | # 13.1.0 / 2017-09-20
|
30 |
|
31 | * Added `.resolved` as alias to `.fulfilled`
|
32 | * Added `.resolvedWith` as alias to `.fulfilledWith`
|
33 | * All zero argument assertion will throw `TypeError` if any arg passed
|
34 | * Fix default export for TS definition
|
35 |
|
36 | # 13.0.1 / 2017-09-06
|
37 |
|
38 | * Add missing UMD bundle for browser
|
39 |
|
40 | # 13.0.0 / 2017-09-05
|
41 |
|
42 | * Removed `.enumerable` and `.enumerables`
|
43 | * Fixed `.match`ing on `Date`s
|
44 | * Added TypeScript definitions
|
45 |
|
46 | # 12.0.0 / 2017-08-28
|
47 |
|
48 | * Update `should-equal` to 2.x
|
49 | * Update entry points to do the same thing (global should entry)
|
50 |
|
51 | # 11.2.1 / 2017-03-09
|
52 |
|
53 | * Fix `.match(regex)` for not supported cases
|
54 |
|
55 | # 11.2.0 / 2017-01-27
|
56 |
|
57 | * Added `.only` modifier for `.keys` to check also size
|
58 | * Soft deprecate `.enumerable(s)`
|
59 |
|
60 | # 11.1.2 / 2016-12-10
|
61 |
|
62 | * Added workaround for runtimes where error's stack populated eagerly
|
63 |
|
64 | # 11.1.1 / 2016-10-10
|
65 |
|
66 | * Update modules
|
67 |
|
68 | # 11.1.0 / 2016-08-14
|
69 |
|
70 | * Update modules
|
71 |
|
72 | # 11.0.0 / 2016-08-10
|
73 |
|
74 | * Extracted parts from code for traversing different data types in similar ways.
|
75 | This allows for easily extending the library to almost any collection class.
|
76 | Now should.js supports `Set`/`Map`/`WeakSet`/`WeakMap` everywhere.
|
77 | * `.empty()` now uses new type adaptors
|
78 | * Breaking change in `.keys()`/`.key()`: now only checks for passed keys (also uses type adaptors) - it can check for keys in `Map`/`Set` e.g
|
79 | * Added `.value(key, value)` to assert if key-value object has such `value` with this `key`
|
80 | * Added `.size()` to get size of collection; also works with type adaptors
|
81 | * `.containEql` uses type adaptors and can check something contained within a collection or sub-part of a key-value object
|
82 |
|
83 | # 10.0.0 / 2016-07-18
|
84 |
|
85 | * Possible breaking change/bugfix in should-format when in objects used keys that looks like a numbers
|
86 |
|
87 | # 9.0.2 / 2016-06-10
|
88 |
|
89 | * Small test fixes for function expressions without names in Chrome
|
90 |
|
91 | # 9.0.1 / 2016-06-09
|
92 |
|
93 | * Fix browser global export
|
94 |
|
95 | # 9.0.0 / 2016-05-30
|
96 |
|
97 | * Set should.config values to be more obvious. Pls check breaking changes page for exact values.
|
98 | * Add support for SIMD data types.
|
99 | * Fixed minor bugs in .eql
|
100 | * Allow to show all equality check fails in .eql
|
101 |
|
102 | # 8.4.0 / 2016-05-21
|
103 |
|
104 | * Add support for Symbols in .eql
|
105 |
|
106 | # 8.3.2 / 2016-05-18
|
107 |
|
108 | * Fix for `should-equal` to do not call .toString when checking circular usage
|
109 |
|
110 | # 8.3.1 / 2016-04-15
|
111 |
|
112 | * Fix browser script to again be UMD bundle
|
113 |
|
114 | # 8.3.0 / 2016-03-23
|
115 |
|
116 | * .true() and .false() can accept optional message to be used in assertion Error
|
117 | * Add more useful messages to promise assertions
|
118 |
|
119 | # 8.2.2 / 2016-02-09
|
120 |
|
121 | * Fix bug with .match when called primitive to match object
|
122 | * Various linting issues
|
123 |
|
124 | # 8.2.1 / 2016-01-27
|
125 |
|
126 | * Fix bug with new option, thanks @VinGarcia
|
127 |
|
128 | # 8.2.0 / 2016-01-24
|
129 |
|
130 | * Add option to should.equal to treat -0 and +0 as equals
|
131 |
|
132 | # 8.1.1 / 2016-01-10
|
133 |
|
134 | * Fix browser build to do not loose window.Should
|
135 |
|
136 | # 8.1.0 / 2016-01-10
|
137 |
|
138 | * Add .Date() assertion to test if given object is Date instance
|
139 |
|
140 | # 8.0.2 / 2015-12-18
|
141 |
|
142 | * Update should-format to fix bug in formatting arrow functions
|
143 |
|
144 | # 8.0.1 / 2015-12-11
|
145 |
|
146 | * Fix throwing TypeError in .match
|
147 |
|
148 | # 8.0.0 / 2015-12-08
|
149 |
|
150 | * Move should-promised to main repo
|
151 | * Expose window.should as should function and not a getter
|
152 |
|
153 | # 7.1.1 / 2015-10-20
|
154 |
|
155 | * Update format package to fix node 0.12 Symbol formatting
|
156 |
|
157 | # 7.1.0 / 2015-08-28
|
158 |
|
159 | * Added .aboveOrEqual and .belowOrEqual for numbers (<= and >=)
|
160 | * Added .oneOf and .equalOneOf to check equality of one of values
|
161 | * Added 'browser' field to package.json
|
162 |
|
163 | # 7.0.4 / 2015-08-14
|
164 |
|
165 | * Missing doc for .deepEqual
|
166 | * Fix .match and dependent assertions to check property in object-object matching
|
167 |
|
168 | # 7.0.3 / 2015-08-09
|
169 |
|
170 | * Add alias .deepEqual for .eql
|
171 |
|
172 | # 7.0.2 / 2015-07-09
|
173 |
|
174 | * Bug in browser script and build
|
175 |
|
176 | # 7.0.1 / 2015-06-18
|
177 |
|
178 | * Fixes in should-type for dom nodes, host object and promises
|
179 |
|
180 | # 7.0.0 / 2015-06-18
|
181 |
|
182 | * Added support to `.eql` es6 set, map and symbol (`should-type`, `should-format`, `should-equal`)
|
183 | * **Breaking Change** More accurate work with types (dom nodes, typed-arrays).
|
184 | * **Breaking Change** Change result of should-type to be more accurate and consistent.
|
185 | * Fixed should-equal options checks
|
186 | * Fixed should-format typed arrays (more then 8 bits)
|
187 | * Added aliases: .matchEach => .matchSome, .matchAny => .matchEvery (to be similar to array methods). See #65.
|
188 | * **Breaking Change (possibly)** .matchEach and .matchAny now uses internally .match. See #65.
|
189 | * **Breaking Change** No more getter assertions. No all assertions are functions.
|
190 | * **Breaking Change** No more proxy returning, to check property names.
|
191 | * **Breaking Change** `should-format` now looks more like chrome developer tools inspections.
|
192 |
|
193 | # 6.0.3 / 2015-05-18
|
194 |
|
195 | * Replace rest of usage after 6.0.2
|
196 |
|
197 | # 6.0.2 / 2015-05-18
|
198 |
|
199 | * Replace in all internal assertions `should` usage to non getter form
|
200 |
|
201 | # 6.0.1 / 2015-04-15
|
202 |
|
203 | * Remove dummy debug messages
|
204 |
|
205 | # 6.0.0 / 2015-04-15
|
206 |
|
207 | * From .containDeep\* removed .indexOf checks for strings, now it is just equality checks (see #55)
|
208 | * Fix for .not.throws for generators
|
209 |
|
210 | # 5.2.0 / 2015-03-12
|
211 |
|
212 | * Added `.matchAny`, like `.matchEach` but with `some` semantics
|
213 |
|
214 | # 5.1.0 / 2015-03-05
|
215 |
|
216 | * Initial support of es6 generators, iterables, iterators and symbols
|
217 | * .throwError now support generator functions
|
218 | * Fix bug in .propertyByPath
|
219 |
|
220 | # 5.0.1 / 2015-02-21
|
221 |
|
222 | * Export utils via should.util
|
223 |
|
224 | # 5.0.0 / 2015-02-10
|
225 |
|
226 | * Remove old .eql implementation
|
227 | * Refactor nested errors
|
228 | * Added separate reporting message for false negative results like 10.should.not.equal(10)
|
229 | * Make error.message lazy fix old performance bottlenecks for constructing messages for big objects
|
230 | * Added .propertyWithDescriptor
|
231 |
|
232 | # 4.6.5 / 2015-02-05
|
233 |
|
234 | * Fix performance degradation on large objects
|
235 |
|
236 | # 4.6.4 / 2015-02-05
|
237 |
|
238 | * Fix end cases for .containDeep and .containDeepOrdered
|
239 |
|
240 | # 4.6.3 / 2015-02-01
|
241 |
|
242 | * Added small check for .noConflict
|
243 | * Fix end cases for .containDeep and .containDeepOrdered
|
244 |
|
245 | # 4.6.2 / 2015-01-28
|
246 |
|
247 | * Make assertion properties configurable
|
248 |
|
249 | # 4.6.1 / 2015-01-18
|
250 |
|
251 | * Bump deps
|
252 | * Set showDiff only if the same types
|
253 |
|
254 | # 4.6.0 / 2015-01-13
|
255 |
|
256 | * Wrap everywhere returned assertion with Proxy if available.
|
257 |
|
258 | # 4.5.2 / 2015-01-13
|
259 |
|
260 | * Fixed null properties in .containDeep and .containDeepOrdered
|
261 |
|
262 | # 4.5.1 / 2015-01-13
|
263 |
|
264 | * Fixed leaked \_eql
|
265 |
|
266 | # 4.5.0 / 2015-01-11
|
267 |
|
268 | * Added config flag .useOldDeepEqual to use old .eql implementation
|
269 |
|
270 | # 4.4.4 / 2015-01-08
|
271 |
|
272 | * Added .enumerables
|
273 |
|
274 | # 4.4.3 / 2015-01-08
|
275 |
|
276 | * Bump dependencies to get more accurate format of promise
|
277 | * Added a lot of jsdocs
|
278 |
|
279 | # 4.4.2 / 2014-12-27
|
280 |
|
281 | * Remove breaking change with should-equal that check also object prototypes. Instead document how get both behaviours in .eql docs.
|
282 |
|
283 | # 4.4.1 / 2014-12-13
|
284 |
|
285 | * bump deps
|
286 |
|
287 | # 4.4.0 / 2014-12-12
|
288 |
|
289 | * assert methods reimplemented via assertion, deepEqual done via should-equal. To avoid possible confusion between should.deepEqual and a.should.eql(b)
|
290 | * Possible fix for error tests
|
291 |
|
292 | # 4.3.1 / 2014-12-08
|
293 |
|
294 | * `.throw()` check if given object is a function
|
295 |
|
296 | # 4.3.0 / 2014-11-10
|
297 |
|
298 | * Remove node's version of .eql
|
299 | * Added reason why .eql failed
|
300 |
|
301 | # 4.2.1 / 2014-11-07
|
302 |
|
303 | * Move inspection from .formattedObj to be in .getMessage - to make inspection as late as possible.
|
304 |
|
305 | # 4.2.0 / 2014-11-06
|
306 |
|
307 | * Remove node util.inspect and use instead own inspection module with type detection and browser types compatibility
|
308 |
|
309 | # 4.1.0 / 2014-10-19
|
310 |
|
311 | * As inspect function was moved to repo, refine how it show Dates (added millis via custom format)
|
312 | * Added warnings for potential shoot in the leg: eql non strict and should unwrapping primitive wrappers
|
313 | * Added possibility to disable any warnings via environment variable SHOULDJS_WARN and should.warn = false
|
314 | * Added new deep equality check function
|
315 | * Nested assertions can contribute to parent assertions own messages
|
316 |
|
317 | # 4.0.4 / 2014-06-09
|
318 |
|
319 | * Make all assertions enumerable in Assertion.prototype
|
320 |
|
321 | # 4.0.3 / 2014-06-09
|
322 |
|
323 | * Fix wrong/strange behaviour of .containDeep with equal keys. Now it check to contain element once.
|
324 | * Added util.formatProp to format properties more accurate
|
325 |
|
326 | # 4.0.1 / 2014-06-04
|
327 |
|
328 | * Missing name in browser script
|
329 |
|
330 | # 4.0.0 / 2014-05-29
|
331 |
|
332 | * Breaking change: Move non core assertions out
|
333 | * Added casting in properties assertions to String for all property names
|
334 | * Added .propertyByPath assertion
|
335 | * Breaking change: Remove deprecated .includeEql and .include
|
336 | * Breaking change: .containDeep now do not check order for 2 arrays case
|
337 | * Added .containDeepOrdered for old .containDeep
|
338 | * Added support of array-like objects
|
339 | * Added to .throw matching by error properties with .match
|
340 |
|
341 | # 3.3.2 / 2014-05-23
|
342 |
|
343 | * Fix for should.format
|
344 |
|
345 | # 3.3.1 / 2014-04-16
|
346 |
|
347 | * Added aliases for es reserved words
|
348 | * Fix bug with ownProperty alias
|
349 | * Fix bug with not function alias
|
350 |
|
351 | # 3.3.0 / 2014-04-07
|
352 |
|
353 | * Added .enumerable(name, val)
|
354 |
|
355 | # 3.2.0 / 2014-03-29
|
356 |
|
357 | * Added first version of .any modifier that affect assertions with multiple parameters
|
358 | * .header now have more nice message
|
359 | * assertion can now override how to show object
|
360 |
|
361 | # 3.1.4 / 2014-03-18
|
362 |
|
363 | * .Error now do not throw assertion error for custom errors.
|
364 |
|
365 | # 3.1.3 / 2014-02-25
|
366 |
|
367 | * Fix TypeError in .containEql
|
368 |
|
369 | # 3.1.2 / 2014-01-28
|
370 |
|
371 | * Fix for adding .inspect for JQuery object only in case when it is exist
|
372 |
|
373 | # 3.1.1 / 2014-01-28
|
374 |
|
375 | * Fix for HTMLElement in DOM less environments
|
376 |
|
377 | # 3.1.0 / 2014-01-23
|
378 |
|
379 | * Added jquery based browser extension
|
380 |
|
381 | # 3.0.1 / 2014-01-17
|
382 |
|
383 | * Fix: .lengthOf()
|
384 |
|
385 | # 3.0.0 / 2014-01-17
|
386 |
|
387 | * Split everything to smaller files
|
388 | * Added huge extension to .match and .matchEach. Thanks @alsotang for initial code and idea.
|
389 | * Added .containDeep and .containEql
|
390 | * Separate build for browser and node.js
|
391 | * Basic plugin system
|
392 | * Breaking change: .Object now do not fail on arrays
|
393 | * Breaking change: Additional messages now replaces generated and do not added
|
394 | * Breaking change: .keys now check as is - no keys in args means no keys in object
|
395 | * Deprecated: assert extension
|
396 | * Deprecated: .include and .includeEql
|
397 | * Now all assertions define only positive cases, should.js take care about negations and chains
|
398 |
|
399 | # 2.1.1 / 2013-12-05
|
400 |
|
401 | * Move date formatting out of should.inspect
|
402 |
|
403 | # 2.1.0 / 2013-11-11
|
404 |
|
405 | * Override .inspect for Date's to convert them to ISOString
|
406 |
|
407 | # 2.0.2 / 2013-10-21
|
408 |
|
409 | * Add '#of' as getter for chaining.
|
410 | * Exclude browser script for .npmignore.
|
411 |
|
412 | # 2.0.1 / 2013-10-10
|
413 |
|
414 | * Fix wrong path in .npmignore.
|
415 |
|
416 | # 2.0.0 / 2013-10-10
|
417 |
|
418 | * breaking change: #a now getter like #an. Was replaced with #type(str)
|
419 | * breaking change: #empty does not check length for objects. Now it check if object do not have own properties.
|
420 | * #properties check if object have some properties
|
421 | * util.inspect now exposed as should.inspect
|
422 | * assertions for NaN, Infinity, Array, Object, String, Boolean, Number, Error, Function
|
423 | * #equal got alias #exactly
|
424 |
|
425 | # 1.3.0 / 2013-09-13
|
426 |
|
427 | * fix doc for .keys. Closes #108.
|
428 | * add #endWith()
|
429 | * add .startWith (#119)
|
430 |
|
431 | # 1.2.2 / 2013-02-19
|
432 |
|
433 | * fix should.be.instanceOf() failure on Date
|
434 |
|
435 | # 1.2.1 / 2012-11-02
|
436 |
|
437 | * add .showDiff
|
438 | * Make instanceOf and throwError be aliased like others [alFReD-NSH]
|
439 | * Fix should[.not].exist not having stack trace #84 [alFReD-NSH]
|
440 |
|
441 | # 1.2.0 / 2012-09-21
|
442 |
|
443 | * Added #approximately(value, delta, description) for doing assertions on results of operations with numbers. [titarenko]
|
444 |
|
445 | # 1.1.1 / 2012-09-19
|
446 |
|
447 | * add .type for eql()s assert
|
448 |
|
449 | # 1.1.0 / 2012-07-30
|
450 |
|
451 | * add enclosing of failure message functions. Closes #81
|
452 | * add mocha .actual / .expected string support for all assertion values
|
453 |
|
454 | # 0.7.0 / 2012-07-17
|
455 |
|
456 | * add `.throw(Constructor)` support [snakamura]
|
457 |
|
458 | # 0.6.3 / 2012-04-26
|
459 |
|
460 | * Added object inclusion support back
|
461 |
|
462 | # 0.6.2 / 2012-04-26
|
463 |
|
464 | * Added homepage to package.json
|
465 | * Fixed .equal() with dates. Closes #63
|
466 |
|
467 | # 0.6.1 / 2012-04-10
|
468 |
|
469 | * package: add "repository" section [TooTallNate]
|
470 | * use valueOf() to get the reference the object [TooTallNate]
|
471 |
|
472 | # 0.6.0 / 2012-03-01
|
473 |
|
474 | * Added `err.actual` and `err.expected` for .{eql,equal}()
|
475 | * Added 'return this;' to 'get json' and 'get html' in order to provide chaining for should.be.json and should.be.html
|
476 |
|
477 | # 0.5.1 / 2012-01-13
|
478 |
|
479 | * Added better `.json`
|
480 | * Added better `.html`
|
481 |
|
482 | # 0.5.0 / 2012-01-12
|
483 |
|
484 | * Added string matching to `.throw()` [serby]
|
485 | * Added regexp matching to `.throw()` [serby]
|
486 | * Added `.includeEql()` [RubenVerborgh]
|
487 | * Added `.should.be.html`
|
488 | * Added `.should.be.json`
|
489 | * Added optional description args to most matchers [Mike Swift]
|
490 |
|
491 | # 0.4.2 / 2011-12-17
|
492 |
|
493 | * Fixed .header() for realzzz
|
494 |
|
495 | # 0.4.1 / 2011-12-16
|
496 |
|
497 | * Fixed: chain .header() to retain negation
|
498 |
|
499 | # 0.4.0 / 2011-12-16
|
500 |
|
501 | * Added `.should.throw()`
|
502 | * Added `.include()` support for strings
|
503 | * Added `.include()` support for arrays
|
504 | * Removed `keys()` `.include` modifier support
|
505 | * Removed `.object()`
|
506 | * Removed `.string()`
|
507 | * Removed `.contain()`
|
508 | * Removed `.respondTo()` rubyism
|
509 | * expresso -> mocha
|
510 |
|
511 | # 0.3.2 / 2011-10-24
|
512 |
|
513 | * Fixed tests for 0.5.x
|
514 | * Fixed sys warning
|
515 |
|
516 | # 0.3.1 / 2011-08-22
|
517 |
|
518 | * configurable
|
519 |
|
520 | # 0.3.0 / 2011-08-20
|
521 |
|
522 | * Added assertion for inclusion of an object: `foo.should.include.object({ foo: 'bar' })`
|
523 |
|
524 | # 0.2.1 / 2011-05-13
|
525 |
|
526 | * Fixed .status(code). Closes #18
|
527 |
|
528 | # 0.2.0 / 2011-04-17
|
529 |
|
530 | * Added `res.should.have.status(code)` method
|
531 | * Added `res.should.have.header(field, val)` method
|
532 |
|
533 | # 0.1.0 / 2011-04-06
|
534 |
|
535 | * Added `should.exist(obj)` [aseemk]
|
536 | * Added `should.not.exist(obj)` [aseemk]
|
537 |
|
538 | # 0.0.4 / 2010-11-24
|
539 |
|
540 | * Added `.ok` to assert truthfulness
|
541 | * Added `.arguments`
|
542 | * Fixed double required bug. [thanks dominictarr]
|
543 |
|
544 | # 0.0.3 / 2010-11-19
|
545 |
|
546 | * Added `true` / `false` assertions
|
547 |
|
548 | # 0.0.2 / 2010-11-19
|
549 |
|
550 | * Added chaining support
|
551 |
|
552 | # 0.0.1 / 2010-11-19
|
553 |
|
554 | * Initial release
|