This guide is for migrating code that calls Pact-Core to a new version. If you are a user of pact rather than a maintainer of tools for pact, you probably want to be using https://github.com/pact-foundation/pact-js directly instead of pact-core. There is a corresponding migration guide there.
- Remove
verbose. This option has been removed, as it is now implied bylogLevelofDEBUGorTRACE. customProviderHeadershas been removed. If you need this functionality, use an appropriate request filter withrequestFiltersinstead.- Remove
logDir/format/outoptions, as they are no longer supported.
- All logging and reporting is now on standard out. This was the default before. If your ecosystem needs the ability to customise logging and reporting, please let us know by opening an issue.
- The undocumented option
monkeypatchhas been removed. The use cases for this feature are mostly covered by other options.
- Update any calls that recieves a
q.Promiseto simply accept a native ESPromise. - In
VerifierOptions: replace use oftags,consumerVersionTagandproviderVersionTagwith the appropriateconsumerVersionTagsorproviderVersionTagsoption.
@pact-foundation/pact-nodehas been renamed to@pact-foundation/pact-core. This better describes what it is for, and will hopefully reduce confusion. See this issue for background.