Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/reinstate api #4

Merged
merged 7 commits into from
Jun 12, 2024
Merged

Conversation

YOU54F
Copy link
Member

@YOU54F YOU54F commented Jun 11, 2024

relates to

pact-foundation/pact-js-core#488

Given this consideration

Many users are using this API for pact publishing, and it is re-exported by Pact-JS (or, at least, it used to be). There should be a discussion on whether it is acceptable to remove the programmatic use of Pact before merging.

and the lack of input, I would prefer to err on the side on caution to avoid breaking users existing workflows, in intrusive ways.

So the proposal is to migrate both the cli/api to pact-js-cli, removing all traces from pact-js-core.

Users will be prompted to switch to pact-cli in thier api imports, or pact-cli for npx/cli based access in bin stubs, and import both packages (pact-js & pact-js-cli, if their workflows require the pact cli tools, or access to the pact-js-core api over the cli)

Regular users of pact-js not leveraging the ruby based pact-cli functionality will benefit from smaller packages, and can choose to install the pact-cli via other mechanisms, which would reduce the payload they need to download (as pact-cli will follow the current packaging to date, in providing all supported ruby platform/arch combos in a single package)

As this will be a breaking change in pact-js-core, I propose that we release v15 in lockstep of pact-js / pact-cli, so at least at the point of most friction (our breaking change) the imports will have the same version numbers, so it will feel nice and neat.

I would like to release this first to npm, update a few of our consuming projects to point at it, before releasing the pact-js-core change, as we can provide deltas from each consuming change, as part of our pact-js-core/pact-js release notes

@YOU54F YOU54F merged commit 7d6416d into pact-foundation:main Jun 12, 2024
10 checks passed
@YOU54F YOU54F deleted the chore/reinstate_api branch June 26, 2024 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant