Changelog
All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
9.12.2 (2020-10-06)
Bug Fixes
- types: Export LogLevel, PactOptions and MessageProviderOptions at the root of @pact-foundation/pact (a6b50d3)
9.12.1 (2020-09-24)
Bug Fixes
9.12.0 (2020-09-21)
Features
- allow also WebDAV HTTP Requests (2ac811d)
Bug Fixes
- package.json & package-lock.json to reduce vulnerabilities (0bb8512)
- pact-node: Bump version of pact-node to pick up improved logging options (1e09e1e)
9.11.1 (2020-07-18)
Bug Fixes
- deps: Bump lodash dependency version to obtain security fix (c035482)
- package.json & package-lock.json to reduce vulnerabilities (f147ad2)
- package.json & package-lock.json to reduce vulnerabilities (c620dc1)
- deps: Update vulnerable dependencies (2b2ce6e)
9.11.0 (2020-05-20)
Features
- error thrown when query not string (c3ff00f)
- support array as query param (d140d0c)
- support arrays (57288ff)
- validate object values are strings (3863527)
Bug Fixes
- dsl: Fix extractPayload so that it passes through object properties that are not matchers (fixes #454) (c0f3d37)
- package.json & package-lock.json to reduce vulnerabilities (69d97e0)
- package.json & package-lock.json to reduce vulnerabilities (2184a5d)
9.10.0 (2020-04-24)
Features
- remove need for pact-node in almost all uses, including examples (4e22828)
- update PactWeb and MessageProviderPact interface (b82976f)
9.9.12 (2020-04-19)
9.9.11 (2020-04-19)
9.9.10 (2020-04-19)
9.9.9 (2020-04-19)
9.9.8 (2020-04-19)
9.9.7 (2020-04-19)
9.9.6 (2020-04-19)
9.9.5 (2020-04-16)
9.9.4 (2020-04-16)
9.9.3 (2020-04-10)
Bug Fixes
- build: travis formatting (41afa50)
- pact-node: Bump dependency on pact-node to get support for wip pacts (5e165fb)
9.9.3 (2020-04-10)
Bug Fixes
- build: travis formatting (41afa50)
- pact-node: Bump dependency on pact-node to get support for wip pacts (5e165fb)
9.9.3 (2020-04-10)
Bug Fixes
- build: travis formatting (41afa50)
- pact-node: Bump dependency on pact-node to get support for wip pacts (5e165fb)
9.9.2 (2020-03-30)
9.9.1 (2020-03-30)
9.9.0 (2020-03-26)
Features
- support pending pacts and version selectors (51aacc3)
Bug Fixes
- deps: Update vulnerable dependencies (cae591e)
- pact-node: Bump pact-node to ^10.7.0, bringing a couple of fixes useful for debugging (25ecd71)
9.8.2 (2020-03-20)
9.8.1 (2020-03-16)
Bug Fixes
9.8.0 (2020-03-02)
Features
9.7.0 (2020-02-17)
Features
- upgrade Pact Node to 10.3.1 (4503b32)
9.6.1 (2020-01-23)
Bug Fixes
- dependencies: Move bunyan-prettystream to a dependency instead of a dev dependency (805ed11)
Features# [9.5.0](https://github.com/pact-foundation/pact-js/compare/v9.4.0...v9.5.0) (2019-11-10)
Features
- update pact-node to ^10.2.1 (100914f)
Features
- update pact-node to ^10.2.0 (c96cc89)
Features
- update pact-node to ^10.2.0 (f64cf69)
Bug Fixes
- deps: Update vulnerable dependencies (f5d798a)
Bug Fixes
- deps: Upgrade vulnerable dependencies and correct peer dependencies (#388) (4a19161)
- examples: Set jasmine timeout in Jest example, preventing brittle tests (fixes #383) (#386) (5f76433)
- net: stop port check from failing due to ipv6 unavailability (#381) (#389) (9ae53c2)
Bug Fixes
- deps: Update pact-node to ^10.0.1 (844870d)
Bug Fixes
- examples: correct karma/jasmine example to use jasmine instead of mocha (#365) (96a0758)
- MessageProvider: Shut down test environment even if message provider throws an error (#366) (3d66117)
- upgrade vulnerable dependencies (2380b75)
Features
- Automatically set
changeOrigin: true
for non-local verifications (#319) (60f2dc3), closes #280 #281 #282 - grahpql: allow operation to have null (88acdc0)
Bug Fixes
- Upgrade pact-node minimum version to bring in broker auth with token (41844fe)
Bug Fixes
- tests: correct test that would not compile (8cafbbf)
- types: correct consumerVersionTag in verifier type (fixes #341) (7f6a87d)
Features
- matching: add string type matcher. See https://github.com/pact-foundation/pact-js/issues/323 (#335) (9f49588)
Bug Fixes
- add pactBrokerToken to match pact-node VerifierOptions (89df786)
Bug Fixes
deps
- pact-node: bump version of pact-node to 9.0.0 (cede852)
BREAKING CHANGES
- pact-node: pact-node 9.0.0 removes the pact-cli wrapper in favour of exposing the pact-standalone binaries as binstubs. Scripts using the pact cli will need to be updated to use the standalone binaries.
Bug Fixes
- verifier: providerStateSetupUrl passed to Verifier constructor should take precedence (#295) (9d118a8)
Features## [8.1.2](https://github.com/pact-foundation/pact-js/compare/v8.1.1...v8.1.2) (2019-04-12)
Bug Fixes
- example: ensure 401 case has invalid bearer token (0dd519b)
Features
- upgrade to @pact-foundation/pact-node@^8.1.1 (087d79d), closes #287
Bug Fixes## [8.0.4](https://github.com/pact-foundation/pact-js/compare/v8.0.2...v8.0.4) (2019-03-11)
Bug Fixes
- messages: prevent message proxy from running twice (50219b1)
- veriry: allow self-signed certificates in provider verification. Fixes #280 (122eb24)
Bug Fixes
- messages: prevent message proxy from running twice (50219b1)
- veriry: allow self-signed certificates in provider verification. Fixes #280 (122eb24)
Bug Fixes
Features
- dynamic-proxy: working dynamic proxy code with tests (d8e2eec)
- proxy: add docs and e2e examples of filters and stateHandlers (5561980)
- proxy: cleanup verifier interface (63a661b)
Bug Fixes
- matchers: remove hardcoded true value from a boolean matcher (499c02c)
- portcheck: feedback from PR 266#discussion_r255314895 (c583224), closes 266#discussion_r255314895
Features# [7.3.0](https://github.com/pact-foundation/pact-js/compare/v7.2.0...v7.3.0) (2019-02-09)
Bug Fixes
Features# [7.2.0](https://github.com/pact-foundation/pact-js/compare/v7.1.0...v7.2.0) (2018-11-28)
Bug Fixes
Features
- examples: add array bracket notation example to jest tests (93c1572)
- isodate-matcher: ensure minimum 3 precision on iso data matcher (b9144bb)
Features## [7.0.4](https://github.com/pact-foundation/pact-js/compare/v7.0.3...v7.0.4) (2018-11-24)
Bug Fixes
- graphql: omit variables and operation name if empty. Fixes #243 (0ac2709)
- vulnerabilities: upgrade version of pact-node (#244) (d8214e6)
Bug Fixes
- apply logLevel to local logger (6e31407)
Bug Fixes
- graphql: allow arbitrary operation names in GraphQL interface #235 (16df628)
- interaction-failure: clear interactions on any verify() (fbc5ac0), closes #231
- matchers: allow integers/decimals to be 0 (#236) (c40ce32)
Bug Fixes# [7.0.0](https://github.com/pact-foundation/pact-js/compare/v6.0.2...v7.0.0) (2018-10-09)
Bug Fixes
- README.md: providerVersion is a string not a boolean (#217) (15706cc)
- test: fix port unavailable test on windows (c41a934)
Chores
- deprecate: deprecate Node version < 6 (c778880)
BREAKING CHANGES
- deprecate: No longer supporting Node versions 4 or 5.
Bug Fixes
- examples/typescript: fix example failing to run (f2ed7d7)
- examples/typescript: fix the typings for getMeDogs (42bbb9a)
- examples/typescript: missing dependencies (314119d)
- vulnerabilities: run npm audit fix on e2e tests (934789f)
Bug Fixes## [5.9.1](https://github.com/pact-foundation/pact-js/compare/v6.0.0-alpha.14...v5.9.1) (2018-05-10)
Bug Fixes
- interaction: include response body if set to empty string (2db0f23)
Bug Fixes
- interaction: include response body if set to empty string (abc20d4)
Features# [6.0.0-alpha.13](https://github.com/pact-foundation/pact-js/compare/v6.0.0-alpha.12...v6.0.0-alpha.13) (2018-04-29)
Features
- graphql: escape queries with variables (8b64dd4)
Features
- example: example GraphQL pact test (3280a81)
- graphql: add basic GraphQL wrapper function (641e0e7)
- message: tidy up Message interface and tests (58c334c)
Features
- example: example GraphQL pact test (3280a81)
- graphql: add basic GraphQL wrapper function (641e0e7)
- message: tidy up Message interface and tests (58c334c)
Bug Fixes# [6.0.0-alpha.9](https://github.com/pact-foundation/pact-js/compare/v6.0.0-alpha.8...v6.0.0-alpha.9) (2018-04-20)
Bug Fixes# [6.0.0-alpha.8](https://github.com/pact-foundation/pact-js/compare/v6.0.0-alpha.7...v6.0.0-alpha.8) (2018-04-15)
Features
- messages: setup provider states in verification (57f7352)
Features
- messages: implement v3 compatible provider states (8e113a5)
Bug Fixes
- test: fix promise resolution in test (ce31f31)
Features
- example: working serverless example with pact. #166 (d4a49f5)
- message: fix message structure sent to consumer verify(). #166 (ee1ddf0)
- serverless-example: add basic serverless SNS example (08cd73b)
Features
- messages: initial WIP for message pacts (fd3526e)
Features
- upgrade: update to pact-node 6.13.x (b19f069)
Features
- upgrade: update to pact-node 6.12.x (6e5c2e1)
Features## [5.6.1](https://github.com/pact-foundation/pact-js/compare/v5.6.0...v5.6.1) (2018-02-25)# [5.6.0](https://github.com/pact-foundation/pact-js/compare/v5.5.1...v5.6.0) (2018-02-22)
Features## [5.5.1](https://github.com/pact-foundation/pact-js/compare/v5.5.0...v5.5.1) (2018-02-20)# [5.5.0](https://github.com/pact-foundation/pact-js/compare/v5.4.0...v5.5.0) (2018-02-09)
Features
- upgrade: update to pact-node 6.8.x (fd4ae99)
Features
- types: allow builder usage in Pact tests (cb6305b)
Bug Fixes
- logging: set pact-node log level before constructing server #139 (b2f5c2d)
- verifier: properly wrap pact-node q promise in verifier (affca89)
Features# [5.2.0](https://github.com/pact-foundation/pact-js/compare/v5.0.3...v5.2.0) (2017-12-10)
Bug Fixes
Features
- examples: extending ava examples with matchers (51fb8ae)
- mock-service: pass arguments to CLI not API (2b9053c), closes #105
- pact-node: update to latest pact-node 6.4.x (2430ee0), closes #131
Bug Fixes
Features
- examples: extending ava examples with matchers (51fb8ae)
- pact-node: update to latest pact-node 6.4.x (3d8aef0)
Bug Fixes
- amd: do not name AMD module in UMD #98 (fced1ab)
- build: fix for bash script and output helpful information during projects tests (192f9e4)
- examples: update jasmine karma example with best practice #122 (93cba30)
- examples: update mocha karma example with best practice #122 (a62d00f)
- src: fix typo in eachLike error message (601d158)
- tests: update e2e tests with latest API (09a9f03)
- verification: pass validation error message on #114 (302357f)
Features
- api: cleanup public API (39dfc45)
- finalise: warn if finalise called more than once (bc52810)
- karma: relax consumer/provider requirement in MockService #96 (62a9c44)
- matching: add a number of common matchers to DSL (4259171)
- pact-node: upgrade to latest pact-node 5.1.x (fde380e)
- pact-node: upgrade to pact-node 5.2.1 (f9bd4ae)
- pact-server: allow running mock server on non-local host #115 (b6866ef)
- pact-web: refactor PactWeb module (95b26c4)
- release: update release process to use standard-version (ae96806)
- types: reexport Interaction and MockService namespace #117 (e1b658f)
- types: reexport Interaction and MockService namespace into pact-web #117 (c3cd435)
- typescript: add integration pact tests (3b2279a)
- typescript: fix pact-web and karma tests (91ef75c)
- typescript: initial TypeScript setup (c6e6c3a)
BREAKING CHANGES
- api: - Provider verification exposed via a Verifier class
- Matchers exposed through separate sub-module
- pact-web: Requires constructor to create now.
Features# [4.1.0](https://github.com/pact-foundation/pact-js/compare/v4.0.0...v4.1.0) (2017-10-18)
Features
- release: update release process to use standard-version (47d118d)
Bug Fixes
Features
- pact-node: upgrade to pact-node 5.x.x (6d2ad81)
- pact-server: Allow to run pact mock server on a host other than localhost/127.0.0.1 (e24be20)
Bug Fixes
- lint: fix lint in mock service (e4c61b1)
- tests: update e2e tests with timeout for CI builds (f141c5e)
- typo: cosmetic cleanup for typo of wrong project name (18d49f6)
Features
- karma: relax consumer/provider requirement in MockService (e9f3a4a)
Bug Fixes
Features
- example: adding example for the AVA test framework (65e8314)
- upgrade: upgrade to latest pact node v4.12.0 (50e1041)
Features
- writemode: update pactFileWriteMode flag and docs (6b32990)
Bug Fixes
Features
- mock service: add pactfile_write_mode option handling (da92274)
- verifications: update example to publish verification results (592b9db)
Features
- pact-web: only deploy pact-web on tagged master (a66cbea)
Features
- port-check: check if port is available during setup() #37 (c729d8e)
- typescript: add TypeScript annotations (8eeb561)
Bug Fixes
- test: fix logic issue in karma tests that was passing for the wrong reasons (080898f)
- test: update karma jasmine test to properly fail tests if verification fails. (802d5dc)
- test: update karma mocha test to fail if verification fails (98a6380)
Features# [2.1.0](https://github.com/pact-foundation/pact-js/compare/v2.0.1...v2.1.0) (2017-02-27)
Features
- test: update end-to-end test example (cb38b17)
- verify: update to latest pact-node including ability to set verification timeout #28 (4d0901e)
Bug Fixes# [2.0.0](https://github.com/pact-foundation/pact-js/compare/v1.0.0...v2.0.0) (2017-02-22)
Bug Fixes
- api: remove redundant responseParser and tests (a06a14d)
- test: properly pass through ssl flag (bc3120d)
- test: set timeout to 10s for Travis builds (e76d0e8)
- test: update all mainline tests to match new API (936a75d)
- test: update e2e test to properly wait for pact finalisation (b98c1f9)
- test: update formatting in integration test (6bd19c9)
- test: update jest tests with new API, fixes #21 (4eb2e1c)
- test: update mocha tests with new API, fixes #22 (2062d6d)
- tests: remove trailing semi-colons for consistency (7a9565d)
Features
- api: redesign API to make it simpler to interact with (67482d1)
- examples: update e2e provider test to use mocha interface (898203a)
- karma: update code formatting (ef27b7c)
- karma: update tests for karma suite and adapted Pact API for Karma (7182c7b)
Features
- example: add better readme, cleanup linting for E2E example (4a8e8cb)
- examples: running consumer tests for E2E example (274f18f)
- examples: update docu for e2e example (491f641)
- examples: WIP e2e example (14a464c)
- examples: working e2e example (24b9888)
Bug Fixes
Features
- interceptor: remove Interceptor from DSL (0b9e4f4)
Features
- app: update distribution files (8f9f7e2)
Bug Fixes
- lib: better handling HTTP responses (7b07821)