Skip to content

Commit 3ce374a

Browse files
author
Github Action
committed
chore: synced pact-js docs
1 parent 5437e7f commit 3ce374a

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

website/docs/implementation_guides/javascript/changelog.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,32 @@ custom_edit_url: https://github.com/pact-foundation/pact-js/edit/master/CHANGELO
66

77
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
88

9+
## [17.0.1](https://github.com/pact-foundation/pact-js/compare/v17.0.0...v17.0.1) (2026-07-01)
10+
11+
12+
### Fixes and Improvements
13+
14+
* **verifier:** run beforeEach/afterEach once per interaction without desyncing on hook failure ([#1865](https://github.com/pact-foundation/pact-js/issues/1865)) ([fed47e2](https://github.com/pact-foundation/pact-js/commit/fed47e220af427d654f8b192333e6d6425118425)), closes [#1864](https://github.com/pact-foundation/pact-js/issues/1864)
15+
16+
## [17.0.0](https://github.com/pact-foundation/pact-js/compare/v16.5.0...v17.0.0) (2026-06-25)
17+
18+
19+
### ⚠ BREAKING CHANGES
20+
21+
* drop node 20, test against node 26 (#1813)
22+
23+
* drop node 20, test against node 26 ([#1813](https://github.com/pact-foundation/pact-js/issues/1813)) ([bdf71f7](https://github.com/pact-foundation/pact-js/commit/bdf71f758cb410f2795b46dc36d173a1399feac3))
24+
25+
26+
### Features
27+
28+
* enable scarf download analytics ([#1859](https://github.com/pact-foundation/pact-js/issues/1859)) ([c1d5593](https://github.com/pact-foundation/pact-js/commit/c1d5593ff0580f8439550c0e3ba7300c6c8f608a))
29+
30+
31+
### Fixes and Improvements
32+
33+
* ESM import issue ([#1860](https://github.com/pact-foundation/pact-js/issues/1860)) ([f6b204c](https://github.com/pact-foundation/pact-js/commit/f6b204c6bec219b94db8370eee4c44258253be09))
34+
935
## [16.5.0](https://github.com/pact-foundation/pact-js/compare/v16.4.0...v16.5.0) (2026-05-24)
1036

1137

website/docs/implementation_guides/javascript/docs/provider.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ new Verifier(opts).verifyProvider().then(function () {
7575
| `providerStatesSetupUrl` | false | string | Deprecated (use URL to send PUT requests to setup a given provider state |
7676
| `stateHandlers` | false | object | Map of "state" to a function that sets up a given provider state. See docs below for more information |
7777
| `requestFilter` | false | function ([Express middleware](https://expressjs.com/en/guide/using-middleware.html)) | Function that may be used to alter the incoming request or outgoing response from the verification process. See below for use. |
78+
| `tlsClientOptions` | false | object | TLS client credentials sent by the verification proxy to an HTTPS provider. Supports `pfx` and `passphrase`, or `cert` and `key`. |
7879
| `beforeEach` | false | function | Function to execute prior to each interaction being validated |
7980
| `afterEach` | false | function | Function to execute after each interaction has been validated |
8081
| `pactBrokerUsername` | false | string | Username for Pact Broker basic authentication |
@@ -118,6 +119,24 @@ const opts = {
118119

119120
If your broker has a self signed certificate, set the environment variable `SSL_CERT_FILE` (or `SSL_CERT_DIR`) pointing to a copy of your certificate.
120121

122+
To verify a provider that requires mutual TLS, pass the client credentials to
123+
the verification proxy. PKCS#12 and PEM credentials are supported through the
124+
standard Node.js TLS options:
125+
126+
```js
127+
const fs = require('node:fs');
128+
129+
const opts = {
130+
providerBaseUrl: 'https://provider.example.com',
131+
tlsClientOptions: {
132+
pfx: fs.readFileSync('./client.p12'),
133+
passphrase: process.env.CLIENT_CERTIFICATE_PASSPHRASE,
134+
},
135+
};
136+
137+
return new Verifier(opts).verifyProvider();
138+
```
139+
121140
Read more about [Verifying Pacts](https://docs.pact.io/getting_started/verifying_pacts).
122141

123142
#### API with Provider States

0 commit comments

Comments
 (0)