Releases: pact-foundation/pact-js-core
Release v13.0.0
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
ofDEBUG
orTRACE
- 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)
Release v11.1.1
11.1.1 (2021-08-11)
Fixes and Improvements
Release v11.1.0
Release v11.0.1
Release v11.0.0
11.0.0 (2021-05-21)
⚠ BREAKING CHANGES
-
All the interfaces that previously returned
q.Promise
have now been replaced with native es6Promise
s. Calling code will need to be updated. -
All options deprecated in previous versions have been removed. Migration instructions:
-
In
VerifierOptions
: replace use oftags
,consumerVersionTag
andproviderVersionTag
with the appropriateconsumerVersionTags
orproviderVersionTags
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
orversion
. 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 nativePromise
(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)