Skip to content

Commit e589c01

Browse files
committed
docs: Add migration docs and update readme
BREAKING CHANGE: 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](https://github.com/pact-foundation/pact-js#modify-requests-prior-to-verification-request-filters) in pact-js.
1 parent 980d576 commit e589c01

File tree

2 files changed

+38
-5
lines changed

2 files changed

+38
-5
lines changed

MIGRATION.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.

README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,10 @@ pact.verifyPacts({
303303
| `pactBrokerPassword` | false | string | Password for Pact Broker basic authentication |
304304
| `pactBrokerToken` | false | string | Bearer token for Pact Broker authentication |
305305
| `publishVerificationResult` | false | boolean | Publish verification result to Broker (_NOTE_: you should only enable this during CI builds) |
306-
| `customProviderHeaders` | false | array | Header(s) to add to provider state set up and pact verification | | `requests`. eg 'Authorization: Basic cGFjdDpwYWN0'. |
307306
| `providerVersion` | false | string | Provider version, required to publish verification result to Broker. Optional otherwise. |
308307
| `enablePending` | false | boolean | Enable the [pending pacts](https://docs.pact.io/pending) feature. |
309308
| `timeout` | false | number | The duration in ms we should wait to confirm verification process was successful. Defaults to 30000. |
310-
| `format` | false | string | What format the verification results are printed in. Options are `json`, `xml`, `progress` and `RspecJunitFormatter` (which is a synonym for `xml`) |
311-
| `verbose` | false | boolean | Enables verbose output for underlying pact binary. |
312-
| `logDir` | false | string | Directory to output the pact.log file to
313-
| `logLevel` | false | LogLevel (string) | Log level. One of "DEBUG", "ERROR", "WARN", "INFO" |
309+
| `logLevel` | false | LogLevel (string) | Log level. One of "TRACE", "DEBUG", "ERROR", "WARN", "INFO" |
314310

315311
The consumer version selector looks like this:
316312

0 commit comments

Comments
 (0)