Skip to content

Latest commit

 

History

History
executable file
·
1252 lines (555 loc) · 56.3 KB

CHANGELOG.md

File metadata and controls

executable file
·
1252 lines (555 loc) · 56.3 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

13.9.0 (2022-09-07)

Features

  • support PACT_BROKER_PUBLISH_VERIFICATION_RESULTS (64872ae)

Fixes and Improvements

  • update standalone to 1.91.0 (c6d747f)
  • upgrade to ffi 0.3.11 (550e4b3)

13.8.0 (2022-09-05)

Features

  • Add Linux/arm64 support (a174d7b)

13.7.9 (2022-08-30)

Fixes and Improvements

  • error if file source is invalid (f1ad86a)
  • update rust core to 0.3.9 (81483b8)

13.7.8 (2022-08-19)

Fixes and Improvements

  • correct binary matching behaviour (5794c74)

13.7.7 (2022-08-14)

Fixes and Improvements

  • update FFI core and fix order of verifier FFI calls (3a70f2e)

13.7.6 (2022-08-13)

Fixes and Improvements

  • validateOptions should ignore unknown properties (8e2af40)

13.7.5 (2022-08-13)

Fixes and Improvements

  • restore providerVersionBranch (c155f94)
  • support customProviderHeaders as a string[] (171cfd0)

13.7.4 (2022-08-13)

Fixes and Improvements

  • corrects customProviderHeaders validation (pact-foundation/pact-js-core#392) (#393) (f77dd65)

13.7.3 (2022-08-12)

Fixes and Improvements

  • update the argument validation and function mapping for ffi verification (#391) (fee85e1)

13.7.2 (2022-08-11)

Fixes and Improvements

  • verifier: Fix issue where using custom provider headers would cause a crash (fixes #388) (c4f60f2)

13.7.1 (2022-08-09)

Fixes and Improvements

  • map pactflow command to correct binary / add tests (31f4df9)

13.7.0 (2022-08-09)

Features

  • expose pactflow pact-ruby-standalone command (d9f9fc7)

13.6.2 (2022-07-06)

Fixes and Improvements

13.6.1 (2022-07-04)

Fixes and Improvements

  • send NUL terminated strings to pactffi_message_with_contents for non-binary payloads (ac4557c)
  • update standalone to 1.88.91-rc4 (#378) (f9344ea)
  • update standalone to 1.89.01-rc1 (#381) (8f70fa3)

13.6.0 (2022-03-21)

Features

  • add plugin consumer native methods (aeef054)
  • add plugin to consumer interfaces (ea0f536)
  • add test for protobufs/plugin (6bf78d8)
  • bump native version to 0.1.6 (d59d1a6)
  • message pact interface (76baab8)
  • support custom provider headers in verification (d63e1a9)

Fixes and Improvements

13.5.1 (2022-03-15)

Fixes and Improvements

  • update standalone to 1.88.83 (423817d)

13.5.0 (2022-02-21)

Features

  • collect usage telemetry data (f97e114)

Fixes and Improvements

13.4.1 (2021-12-16)

Fixes and Improvements

  • update standalone to 1.88.81 (9abfa06)

13.4.0 (2021-12-14)

Features

  • Add buildUrl option to Pact Broker Publishing API (58be64a)

Fixes and Improvements

  • update standalone to 1.88.80 (c0332e8)

13.3.0 (2021-10-29)

Features

  • Add new branch consumerVersionSelector options to verifier (c3872be)

Fixes and Improvements

  • Bump version of Pact FFI to 0.0.3 (bc74026)
  • update standalone to 1.88.78 (cb25136)

13.2.1 (2021-10-18)

Fixes and Improvements

  • publisher: Fix an issue that caused the publisher API to reject with the most recent binaries (As an aside, the recommended approach is to use the CLI not the API for almost all use cases- see the examples for more details) (4a100bb)
  • Substantially improve error messages if the pact publisher API fails (81d3511)

13.2.0 (2021-10-16)

Features

  • Add a beta interface to the FFI / V3 Consumer tests. Try it out with import { makeConsumerPact } from 'pact-core/src/consumer' (46d6667)
  • Revert the consumer changes until the issues with node 14 are fixed (the release notes about the V3 consumer support in this release are not true, sorry) (dc5217d)

Fixes and Improvements

  • Pass logLevel down to the native consumer (88b329c)
  • Pin standalone version back to the last known good version 1.88.66 (77eab71)
  • update standalone to 1.88.68 (5f38729)
  • update standalone to 1.88.69 (ceb7071)
  • update standalone to 1.88.70 (138a2c4)
  • update standalone to 1.88.71 (850178d)
  • update standalone to 1.88.72 (f8d0d0f)
  • update standalone to 1.88.73 (4ba164d)
  • update standalone to 1.88.75 (c2fc6ac)
  • update standalone to 1.88.76 (eea5c54)
  • update standalone to 1.88.77 (9659f35)
  • verifier: Correctly pass down log levels to the native core (c11ce75)
  • verifier: Correctly pass down log levels to the native core (13d5ded)
  • Warn if broker arguments are set without a broker URL and ignore the argument (fixes pact-foundation/pact-js#760) (17d3eb1)

13.1.7 (2021-09-22)

Fixes and Improvements

  • Bump version of libpact_ffi to 0.0.2 (490249c)
  • Verifier now accepts explicitly setting options to undefined (it will ignore and warn). This fixes a regression introduced in beta-45 (7521c61)

13.1.6 (2021-09-14)

Fixes and Improvements

  • verifier: Correct the way that authentication tokens are sent to the verifier (4902db7)

13.1.5 (2021-09-09)

Fixes and Improvements

  • add disableSslVerification option to verifier (f354d8a)
  • update standalone to 1.88.66 (#320) (92f0532)

13.1.4 (2021-09-08)

Fixes and Improvements

  • Fix an issue that caused ENOENT on some platforms (943484a)
  • update standalone to 1.88.65 (#319) (3be38b4)

13.1.3 (2021-09-06)

Fixes and Improvements

  • Add consumer version selectors for deployedOrReleased, deployed, released and environment (#715) (1bf3b22)

13.1.2 (2021-09-06)

Fixes and Improvements

  • Don't create logger on each log call, so that frameworks that check for imports after teardown (jest) don't throw errors deep inside pino (c5cf077)

13.1.1 (2021-09-06)

Fixes and Improvements

  • bump dependencies to fix a possible issue with a misbehaving pino (fe09e4e)

13.1.0 (2021-08-26)

Features

  • The new verifier now works on windows too (#316) (072e080)

Fixes and Improvements

  • correct ffi library name on windows (814ed9c)

13.0.1 (2021-08-24)

Fixes and Improvements

  • expose needle types as a dependency to fix TS (e8ad281)

13.0.0 (2021-08-24)

⚠ BREAKING CHANGES

  • setLogLevel no longer accepts or returns a number
  • The verbose option has been removed, as it is now implied by logLevel of DEBUG or TRACE
  • All logging and reporting is now on standard out. This was the default before. This means the logDir / format / out options are no longer supported. If your ecosystem needs the ability to customise logging and reporting, please let us know by opening an issue.
  • The undocumented option monkeypatch has been removed. The use cases for this feature are mostly covered by other options.
  • customProviderHeaders has been removed. Please see the request filter documentation in pact-js.

Features

  • include standalone binaries in released package (eedeb18)

  • Use the native ffi bindings for the Verifier instead of the ruby bindings (119c3ce)

  • Add migration docs and update readme (e589c01)

  • Refactor logger to make it easier to use ffi logs (c650192)

Fixes and Improvements

  • Correct exposed log levels to 'debug' | 'error' | 'info' | 'trace' | 'warn'. (4a6f573)
  • Expose logger as a base level export (5686a66)
  • Print warnings if 'latest' is used as a tag during verification (ddd516d)
  • Remove some unnecessary files from the npm package (60c4aa1)
  • Use the new pact_ffi instead of the verifier-only one (5d2f364)

11.1.1 (2021-08-11)

Fixes and Improvements

  • Avoid throwing an exception if needle can't connect to the mock service during polling (may fix #314) (74a2cde)
  • package.json & package-lock.json to reduce vulnerabilities (1a1439c)
  • package.json & package-lock.json to reduce vulnerabilities (44bd189)
  • update standalone to 1.88.63 (240ea6c)

11.1.0 (2021-08-02)

Features

  • improve m1 support (via rosetta2) (92bd98b)

Fixes and Improvements

  • Replace request with needle (b053e54)
  • update standalone to 1.88.58 (b95b6ae)
  • update standalone to 1.88.61 (019af87)

12.0.0-beta.0 (2021-06-28)

⚠ BREAKING CHANGES

  • The verbose option has been removed, as it is now implied by logLevel of DEBUG or TRACE
  • All logging and reporting is now on standard out. This was the default before. This means the logDir / format / out options are no longer supported. If your ecosystem needs the ability to customise logging and reporting, please let us know by opening an issue.
  • The undocumented option monkeypatch has been removed. The use cases for this feature are mostly covered by other options.
  • customProviderHeaders has been removed. Please see the request filter documentation in pact-js.

Features

  • Use the native ffi bindings for the Verifier instead of the ruby bindings (1aea16f)

  • Add migration docs and update readme (6bd0df0)

11.0.1 (2021-06-21)

Fixes and Improvements

  • Allow the user to specify the timeout (Fixes #298) (4c77ddb)
  • update standalone to 1.88.56 (81821fc)

11.0.0 (2021-05-21)

⚠ BREAKING CHANGES

  • All the interfaces that previously returned q.Promise have now been replaced with native es6 Promises. Calling code will need to be updated.

  • All options deprecated in previous versions have been removed. Migration instructions:

  • In VerifierOptions: replace use of tags, consumerVersionTag and providerVersionTag with the appropriate consumerVersionTags or providerVersionTags option.

  • The following classes have had their .create(options) removed. Please use the appropriate constructor instead (for example, new Verifier(options))

    • Verifier
    • Publisher
    • Server
    • Stub
  • docs: The type for consumer version selectors in the verifier has been corrected. This will affect typescript users who were using consumerVersionSelectors with the fields pacticipant, all or version. These fields never worked, and now will no longer compile in typescript. The correct type is:

ConsumerVersionSelector {
  tag?: string;
  latest?: boolean;
  consumer?: string;
  fallbackTag?: string;
}

Note that pacticipant, version and all have been removed. Existing code that uses pacticipant needs to use consumer instead. The other fields can be dropped. Any questions, please reach out to us at https://slack.pact.io/

Fixes and Improvements

  • ConsumerVersionSelector interface (b1e5afe)
  • Replace q ith native Promise (a5076cc)
  • The verifier option providerStatesSetupUrl is no longer deprecated. Other deprecated options have been removed. (95b88e0)
  • update standalone to 1.88.46 (e9f2b43)
  • update standalone to 1.88.47 (5626f3b)
  • update standalone to 1.88.48 (14e31cf)
  • update standalone to 1.88.49 (cb088ce)
  • update standalone to 1.88.50 (ce92950)
  • update standalone to 1.88.51 (de83a99)

10.12.2 (2021-04-20)

Fixes and Improvements

  • update standalone to 1.88.46 (e9f2b43)
  • update standalone to 1.88.47 (5626f3b)
  • update standalone to 1.88.48 (14e31cf)
  • update standalone to 1.88.49 (cb088ce)

10.12.1 (2021-03-31)

Fixes and Improvements

  • package.json & package-lock.json to reduce vulnerabilities (8d76550)
  • update standalone to 1.88.41 (3916c88)
  • update standalone to 1.88.45 (fcab9f8)

10.12.0 (2021-03-05)

Features

  • package-name: Pact-node renamed to pact-core (700ad09)

10.11.11 (2021-02-28)

Fixes and Improvements

  • update standalone to 1.88.40 (618fb9d)

10.11.10 (2021-02-25)

Fixes and Improvements

  • update standalone to 1.88.38 (de4aaf2)

10.11.9 (2021-02-24)

Fixes and Improvements

  • 🐛 only download binary if PACT_SKIP_BINARY_INSTALL is true (69cbba0)

10.11.8 (2021-02-09)

Fixes and Improvements

  • install: Use the current working directory instead of the installed directory when finding package.json (Fixes #234) (30c41dc)

10.11.7 (2021-02-02)

Fixes and Improvements

  • logger: Log output now correctly reads pact-node instead of pact (c9f22e1)
  • update standalone to 1.88.37 (383eb8a)

10.11.6 (2021-02-01)

Fixes and Improvements

  • types: Correctly export logger type (in the future we should use our own type) (a4f766f)

10.11.5 (2021-02-01)

Fixes and Improvements

  • update standalone to 1.88.36 (22e8414)
  • can-i-deploy: Can-i-deploy now prints a warning instead of failing if additional output is produced alongside the json (364afb2)
  • logger: Imply verbose mode when log level is debug or trace (814d4fb)
  • logger: Now pact-node and ruby use the same logLevel if specified (513a60d)
  • logging: Only log entire environment when log level is trace, not debug (c3b9f5f)

10.11.4 (2021-01-28)

Fixes and Improvements

  • update standalone to 1.88.35 (d8dfe39)

10.11.3 (2021-01-28)

Fixes and Improvements

  • update standalone to 1.88.34 (cba5625)

10.11.2 (2021-01-27)

Fixes and Improvements

  • message: Change the way pact-message is invoked which should avoid some issues in Windows environments (92185b0)
  • update standalone to 1.88.33 (d42e348)

10.11.1 (2021-01-04)

Bug Fixes

  • message: Fixed an issue where message pacts could not be created on some platforms (a092ed9)

10.11.0 (2020-10-22)

Features

  • install: Binary install can be skipped by setting PACT_SKIP_BINARY_INSTALL=true (4d6b194)

10.10.2 (2020-10-19)

Bug Fixes

  • Correct the config for using custom ca file (e83c895)
  • spelling in error message. (c40170d)
  • update standalone to 1.88.3 (6e1c80b)

10.10.1 (2020-08-26)

Bug Fixes

  • server: remove force-clone of options (1a7a6e0)

10.10.0 (2020-08-10)

Features

  • logging: Add logLevel to Stub options, and add logDir and logLevel to Verifier options (acc0579)

Bug Fixes

  • deps: Update vulnerable dependencies (239c7a7)
  • package.json & package-lock.json to reduce vulnerabilities (70aa0f0)
  • update standalone to 1.86.0 (524a7dd)

10.9.7 (2020-07-17)

Bug Fixes

  • deps: update package and package-lock to fix vulnerabilties (6566680)

10.9.6 (2020-06-29)

Bug Fixes

  • deps: Update vulnerable dependencies (d210c1b)

10.9.5 (2020-06-03)

Bug Fixes

  • update standalone to 1.85.0 (acb9aa9)

10.9.4 (2020-05-04)

Bug Fixes

  • options: Stop validating values for logLevel, pactFileWriteMode and format. This means we'll immediately pick up changes to those options without needing to modify pact-node (1319a86)

10.9.3 (2020-05-02)

Bug Fixes

  • update standalone to 1.84.0 (9f2eb16)

10.9.2 (2020-04-22)

Bug Fixes

  • update standalone to 1.83.0 (0cfefb4)

10.9.1 (2020-04-22)

Bug Fixes

  • consumerVersionSelector -> consumerVersionSelectors (dab9507)

10.9.0 (2020-04-10)

Bug Fixes

  • standalone: update standalone to 1.82.3 (#223) (70fac35)

Features

  • verifier: Add support for includeWipPactsSince (c691162)
  • deprecate consumerVersionTag and providerVersionTag. Fixes #218 (3e932bd)

10.8.1 (2020-04-08)

Bug Fixes

10.8.0 (2020-03-26)

Features

  • add consumer version selectors and pending pacts to verification (59ab437)

10.7.1 (2020-03-23)

Bug Fixes

  • standalone: Bump version of pact-standalone to 1.82.1 (improved json diff, basic auth config improvements) (bde0287)

10.7.0 (2020-03-23)

Bug Fixes

  • deps: Update vulnerable dependencies (3c20366)

Features

  • verifier: Add verbose option to improve debugging during verification (3f0a5a3)

10.6.0 (2020-03-15)

Bug Fixes

  • remove tests, point directly to npm config settings for ca and StrictSSL (ae36609)
  • set strictSSL on custom downloads from NPM config. Fixes #211 (d264f0b)

Features

  • upgrade: update standalone to 1.82.0 (92c3af3)

10.5.0 (2020-03-02)

Bug Fixes

  • lint errors (3786e13)
  • remove decompress dependency as it is highly vulnerable. Fixes #208 (6956544)
  • remove extracted binary folders on clean to avoid false positives (7e8f76b)
  • use unzipper for .zip files, tar for tar.gz (f6d8da0)

Features

  • upgrade: update standalone to 1.81.0 (21a1564)

10.4.0 (2020-02-18)

Features

  • upgrade: update standalone to 1.80.1 (1a2f517)

10.3.1 (2020-02-17)

Bug Fixes

10.3.0 (2020-02-14)

Features

  • add validation to broker token usage to avoid confusion (2a4afa3)
  • upgrade: update standalone to 1.79.0 (f33cbb8)

10.2.4 (2019-12-17)

Bug Fixes

  • standalone: Bump version of pact-standalone to 1.73.0; fixes #183 (41bafad)

10.2.3 (2019-12-11)

Bug Fixes

  • spawn: Improve debug log formatting (977a845)
  • spawn: Now binaries are spawned directly with array arguments, rather than quoted strings. Should fix #118 (378f256)

10.2.2 (2019-11-15)

10.2.1 (2019-11-10)

10.2.0 (2019-11-08)

Features

  • add provider version tag during verification (68b17d8)

10.1.0 (2019-11-08)

Features

  • add provider version tag during verification (68b17d8)

10.0.1 (2019-10-28)

Bug Fixes

  • install: Correctly skip downloading the binary archive if it already exists (1c9a809)
  • install: Fail installation if binary was not successfully downloaded (3dfb033)
  • spawn: The command used to spawn the binary is now debug rather than info (fixes #184) (a9f1470)

10.0.0 (2019-10-28)

Features

  • can-i-deploy: Add custom error type CannotDeployError for when the deploy check fails (635b449)
  • can-i-deploy: allow multiple pacticipants to be specified to CanDeploy (b4b3921)
  • canDeploy: resolve with output on success (d20744e)
  • CanDeploy: Set json output as the default for CanDeploy (200abe7)

BREAKING CHANGES

  • can-i-deploy: Options for CanDeploy have changed. Now, pacticipants are specified by an array of { name: , latest?: <string | boolean>, version?: }, allowing more than one pacticipant to be specified. You must specify one of latest or version. If latest is true, the latest pact is used. If it is string, then the latest pact with that tag is used.
  • CanDeploy: CanDeploy now defaults to json output (and returns the parsed object as the result of the promise. If you were using CanDeploy and relied on parsing the logged output, you will need to explicitly set output: table in your CanDeploy options.

9.0.7 (2019-10-23)

Bug Fixes

  • package.json: Move snyk to devDependencies (#193) (b3d7a8a)

9.0.6 (2019-10-10)

Bug Fixes

  • verifier: allow to use progress formatter during verification (#189) (2571725)
  • package.json, package-lock.json & .snyk to reduce vulnerabilities (0dc7a8f)

9.0.5 (2019-10-08)

Bug Fixes

  • upgrade vulnerable dependencies (e79f929)

9.0.4 (2019-09-11)

Bug Fixes

  • logging: print options in json instead of using a helper (9f09348)

9.0.3 (2019-09-05)

Bug Fixes

  • Upgrade pact-standalone version to v1.70.2 (3f0f1fc)

9.0.2 (2019-08-06)

Bug Fixes

  • Correct typo in verifier options mapping (810bd77)
  • logging: Print args for spawn binary correctly in debug output (2b0ce9d)

9.0.1 (2019-08-05)

Bug Fixes

  • server: Maintain a private reference to the global setTimeout function in case that function is mocked in a consumer test (e.g. sinon.useFakeTimers()) (#110) (f4ebfff)

9.0.0 (2019-07-16)

Bug Fixes

  • .snyk, package.json & package-lock.json to reduce vulnerabilities (31e34a1)
  • prevent archive extracting as the wrong user when installling as root (d0941b0)

Features

  • introduce pact binary, and remove pact-cli (BREAKING CHANGE) (884ce24)

8.6.2 (2019-07-03)

Bug Fixes

8.6.1 (2019-06-28)

Bug Fixes

8.6.0 (2019-06-18)

Features

  • verifier: update to latest verifier (9f328db)

8.5.1 (2019-06-15)

Bug Fixes

  • verifier: --monkeypatch flag missing (b1355bd)

8.5.0 (2019-06-12)

Features

  • verifier: update to latest verifier (da3d1e3)

8.4.1 (2019-06-06)

Bug Fixes

  • cli: propagate exit code in node CLI wrapper (b961b79)

8.4.0 (2019-05-30)

Bug Fixes

  • mock: fix q resolver in integration mocks (6de02db)

Features

  • binstubs: expose pact standalone binaries as alternative CLI (02f16cc)
  • binstubs: expose pact standalone binaries as alternative CLI (5c164da)

8.3.3 (2019-05-22)

8.3.2 (2019-05-19)

8.3.1 (2019-05-16)

Bug Fixes

  • Upgrade Caporal to fix vulnerability (Fixes #159) (6efa434)

8.3.0 (2019-05-13)

Features

  • can-deploy: add broker token to can-deploy task (#158) (fad1e63)

8.2.0 (2019-04-26)

Features

  • verifier: update to latest verifier (8637cae)

8.1.2 (2019-04-11)

Bug Fixes

  • package.json to reduce vulnerabilities (#151) (181e5d8)

8.1.1 (2019-03-28)

Bug Fixes

  • specify User-Agent when downloading binaries (a2a1698), closes #149

8.1.0 (2019-03-08)

Features

  • publish: add bearer token to publish (3a411b4)

8.0.0 (2019-03-07)

Features

  • verifier: update to latest verifier (888209b)
  • verify: support broker bearer token (f060b78)

BREAKING CHANGES

  • verifier: removal of Broker class

7.0.1 (2019-03-06)

Bug Fixes

7.0.0 (2019-03-04)

Bug Fixes

  • can-i-deploy: Fixing can-i-deploy to only have a single participant at a time, but breaking API. New major release. (#144) (2032ba2)

6.21.5 (2019-02-26)

6.21.4 (2019-02-09)

6.19.11 (2018-08-21)

6.19.10 (2018-08-13)

6.19.8 (2018-07-28)

6.19.6 (2018-07-13)

6.19.5 (2018-07-13)

Bug Fixes

  • binary-location: Fixing failing tests on windows because the path.resolve would add 'C:' to the front of the path, failing the expectation (40f4d6d)

6.16.4 (2018-05-10)

6.16.1 (2018-05-08)

6.14.3 (2018-04-17)

Bug Fixes

  • verifier: update error message if pactUrls not specified. Fixes #78 (1e7bfda)

6.14.2 (2018-04-05)

6.14.1 (2018-04-04)

6.14.0 (2018-03-30)

Features

  • message: add spec version to message type (7839a12)

6.13.0 (2018-03-27)

Features

  • messages: add Message Pact support (980a3f5)

6.10.0 (2018-02-22)

Features

  • upgrade: upgrade pact standalone to 3.7.0 (3b59836)

6.9.0 (2018-02-20)

Features

  • upgrade: upgrade pact standalone to 3.6.0 (0aa6f8f)

6.8.0 (2018-02-09)

Features

  • upgrade: upgrade pact standalone to 3.5.0 (82928f1)

6.6.0 (2017-12-13)

Features

  • api: add removeAll() interface to main API (9306183)
  • stub: add basic stub support (62185b5)

6.5.0 (2017-12-10)

Features

  • pactFileWriteMode: add pactFileWriteMode to server. Fixes #50 (0f8658b)

6.4.1 (2017-12-08)

6.4.0 (2017-12-08)

Features

  • upgrade: upgrade pact standalone to 3.4.0 (a77f9f7)

6.3.0 (2017-12-04)

Features

  • custom-headers: allow user to specify custom headers during provider verification (3797193)

6.2.0 (2017-12-04)

Features

  • types: re-export out common types for library use (fa19b57)

6.1.0 (2017-12-03)

Bug Fixes

  • lint: add noImplicitThis to TS configuration (eb17979)
  • lint: fix noImplicitReturns TS issues (5c57288)

Features

  • types: add support for TS 'strictNullChecks' (76d8c38)
  • types: feedback from mboudreau (e756592)
  • types: uplift code base to comply with noImplicitAny (861ae89)

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.