Has anyone seen any issues upgrading from v9 to v1...
# pact-js
a
Has anyone seen any issues upgrading from v9 to v10, and the TS type changes for customProviderHeaders for the Verifier requires it to now be
customProviderHeaders: { [key: string]: string }
. Not a problem to swap from the v9 array to v10, but this then pumps out an error:
The v9 to v10 also states there are no changes but I think this shows there are a couple (providerVersionBranch -> providerBranch is another)
@pact-foundation/pact@10.0.2
@pact-foundation/pact-core@13.7.1
are the versions for the 2 pact deps
t
First one is a bug, I think. Can you open an issue on https://github.com/pact-foundation/pact-js-core please
Second one, it looks like those options were independently added to pact-node and pact-js-core, so it would have been missed when the migration guide was written. I’ll make a PR that updates this.
👍 1
First one is an easy fix, I think. I don’t think it ever would have worked
a
Sure, will open a bug there. And I get ya about the migration comments, thanks 🙂
Already on it, what a gent @Timothy Jones clap all !
t
It was more fun to fix the bug first 😉
I’m afraid I’m not a maintainer any more so you’ll have to wait for someone to merge it
a
I can wait a smidge, this was spotted as I was working on some of internal packages using v9 and moved to v10 of pact-js and spotted it. No one is crying for this fix from us other than myself so we can use v10 goodness 🙂
❤️ 1