|
| 1 | +# Pact-core migration guide |
| 2 | + |
| 3 | +This guide is for migrating code that calls Pact-Core to a new version. |
| 4 | +If you are a user of pact rather than a maintainer of tools for pact, you |
| 5 | +probably want to be using https://github.com/pact-foundation/pact-js directly |
| 6 | +instead of pact-core. There is a corresponding migration guide there. |
| 7 | + |
| 8 | +# v12.x.x from v11.x.x |
| 9 | + |
| 10 | +## Verifier |
| 11 | + |
| 12 | +* Remove `verbose`. This option has been removed, as it is now implied by `logLevel` |
| 13 | + of `DEBUG` or `TRACE`. |
| 14 | +* `customProviderHeaders` has been removed. If you need this functionality, use an |
| 15 | + appropriate request filter with `requestFilters` instead. |
| 16 | +* Remove `logDir` / `format` / `out` options, as they are no longer supported. |
| 17 | + |
| 18 | +### Changes you may want to know about: |
| 19 | + |
| 20 | +* All logging and reporting is now on standard out. This was the default before. If |
| 21 | + your ecosystem needs the ability to customise logging and reporting, please let us |
| 22 | + know by opening an issue. |
| 23 | +* The undocumented option `monkeypatch` has been removed. The use cases for this feature are mostly covered by other options. |
| 24 | + |
| 25 | +# v11.x.x. from v10.x.x and below |
| 26 | + |
| 27 | +* Update any calls that recieves a `q.Promise` to simply accept a native ES `Promise`. |
| 28 | +* In `VerifierOptions`: replace use of `tags`, `consumerVersionTag` and |
| 29 | + `providerVersionTag` with the appropriate `consumerVersionTags` or |
| 30 | + `providerVersionTags` option. |
| 31 | + |
| 32 | +# v10.12.0 (first version as `pact-core`) |
| 33 | + |
| 34 | +* `@pact-foundation/pact-node` has been renamed to `@pact-foundation/pact-core`. |
| 35 | + This better describes what it is for, and will hopefully reduce confusion. See |
| 36 | + [this issue](https://github.com/pact-foundation/pact-js-core/issues/224) for |
| 37 | + background. |
0 commit comments