Skip to content

Releases: apiaryio/gavel.js

v6.1.2

24 Jun 09:51
223150f
Compare
Choose a tag to compare

6.1.2 (2019-06-24)

Bug Fixes

  • package: update async to version 3.1.0 (fc9882e)

v6.1.1

20 Jun 14:06
b615ebb
Compare
Choose a tag to compare

6.1.1 (2019-06-20)

Bug Fixes

  • removes arrow functions to prevent context binding of Cucumber steps (ad30890)

v6.1.0

20 Jun 12:02
89e7d08
Compare
Choose a tag to compare

6.1.0 (2019-06-20)

Bug Fixes

  • fixes typos in comment blocks (a3dcc14)

Features

  • coerces missing "body" of the actual HTTP message (dc9aa42)

v6.0.0

18 Jun 09:43
0138366
Compare
Choose a tag to compare

6.0.0 (2019-06-18)

Bug Fixes

  • adjusts namespaces and call signatures of "isValid" utils (c830ff6)
  • improves explanatory comments (7870a99)
  • uses native "url" module for URI parsing (5bd3333)
  • uses new call signature of "validate()" in cli (4748564)
  • validates relative URI (7344f12)

Features

  • Adds validation of the "method" field (e5c4f72)
  • Adds validation of the "uri" field (f08d0a6)
  • Adds validation of the URI query parameters (1dfeab4)
  • removes "callback" argument of "validate" (681b032)
  • Uses "valid" instead of "isValid" on the top-level of a validation result to indicate the validity of the given message (969ab5a)
  • removes "isValidatable" from public API (33dc9b8)
  • removes "severity" from error messages (290dec8)
  • removes "type" parameter from "validate" call signature (4a4e9a3)
  • removes HttpRequest, HttpResponse, and Validatable (2c36cbb)
  • stops using "isValid" internally (807a879)
  • swaps the order of "real" and "expected" arguments (validate) (f631116)

BREAKING CHANGES

  • Gavel no longer validates expected statusMessage field
  • gavel.validate() no longer accepts a callback as an argument. Please use the "validate()" function as follows:
const result = gavel.validate(expected, real)
  • Gavel's call signature of the "validate" now lists "expected" HTTP message and the first argument, and real HTTP message as the second argument:
- gavel.validate(real, expected)
+ gavel.validate(expected, real)
  • Gavel no longer exports "HttpRequest" and "HttpResponse" classes. Use gavel.validate instead.
  • Calling gavel.validate no longer requires the "type" parameter.
  • Gavel no longer exports "isValid" method from public API. Please use gavel.validate instead.
  • Gavel no longer exposes "isValidatable" method in its public API
  • Gavel validation result no longer contains the version property

v5.0.0

30 May 13:23
28f4ac3
Compare
Choose a tag to compare

5.0.0 (2019-05-30)

Features

  • checks HTTP message properties on the "expected" message (a45bfaf)

BREAKING CHANGES

  • Validates all expected HTTP message properties

v4.0.2

29 May 09:54
cc1825f
Compare
Choose a tag to compare

4.0.2 (2019-05-29)

Bug Fixes

  • uses strict and weak coercion for real and expected messages respectively (9e976dd)

v4.0.1

27 May 09:57
74e465e
Compare
Choose a tag to compare

4.0.1 (2019-05-27)

Bug Fixes

  • package: update async to version 3.0.1 (8ab8057)

v4.0.0

27 May 08:23
0a1c4be
Compare
Choose a tag to compare

4.0.0 (2019-05-27)

Features

  • uses plain strings comparison for statusCode validation (491af29), closes #159

BREAKING CHANGES

  • Gavel doesn't return text diff data on status code comparison anymore.

v3.2.0

24 May 10:02
fafedef
Compare
Choose a tag to compare

3.2.0 (2019-05-24)

Features

  • adds "isValid" property on the validation results (f61846a)

v3.1.2

21 May 12:58
a39dbce
Compare
Choose a tag to compare

3.1.2 (2019-05-21)

Bug Fixes

  • returns validation error on unknown combination of real/expected body content types (ed81843)