Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 21 Mar 06:07
3993bfc

0.5.0 (2023-03-21)

⚠ BREAKING CHANGES

  • Remove misnamed exports of CaseContract and CaseVerifier. Use the intended classes ContractDefiner and ContractVerifier instead
  • Rename VerifiyCaseJestCallback -> VerifyCaseJestCallback, fixing a typo in the name

Features

  • Add ability to override config on a per-test level using an optional config parameter for runExample() and runRejectingExample() (d3fe7de)
  • Add bearerToken() matcher for ease of auth headers; and a stringStateVariable() matcher for use when you know a variable is a string (f9fa501)
  • Add download-contracts binary which can download contracts from a broker (7c73360)
  • Add uriEncodedString() matcher for URI encoded strings (de7bdea)
  • docs: Defining contract documentation now written (ab894ff)
  • Expose config to test reponse functions during contract definition (d237618)
  • Support the Open Source Pact Broker by adding basic auth. Also added a basicAuth() matcher (997c3ab)

Bug Fixes

  • Correct typo in httpStatus human-readable string (httpStaus -> httpStatus) (70e44af)
  • Don't try to publish a contract if there's no CI token set; instead just print a warning (564aa6e)
  • Fix a bug where it was possible to have a failed test ignored instead of leading to failure to write the contract (757ebf8)
  • Increase timeout for verifications in Jest to 30 seconds (ce800c2)
  • Loosen type restriction when using variables from Config objects (f8918d9)
  • Remove hack to match Pact file format as it is now not necessary (30ddd7f)
  • Remove misnamed exports of CaseContract and CaseVerifier. Use the intended classes ContractDefiner and ContractVerifier instead (5cd77aa)
  • Rename VerifiyCaseJestCallback -> VerifyCaseJestCallback, fixing a typo in the name (d69c4b2)