BREAKING CHANGE (pact.v3
only)
message_handler
signature has been changed and expanded.set_state
has been renamed tostate_handler
. If using a URL still, thebody
keyword argument is now a required parameter.- The provider name must be given as an argument of the
Verifier
constructor, instead of the first argument of theset_info
method. - The
set_info
verifier method is removed, withadd_transport
needing to be used. pact.v3.util
has been renamed topact.v3._util
and is now private.- The PactServer
__exit__
arguments no longer have leading underscores. This is typically handled by Python itself and therefore is unlikely to be a change for any user, unless the end user was calling the__exit__
method explicitly and using keyword arguments.
For a more detailed explanation of the changes, see the following blog post:
Feat
- v3: further simplify message interface
- v3: add state handler server
- v3: integrate message relay server
- v3: add message relay and callback servers
Pull Requests
- chore: update changelog by @JP-Ellis in #826
- chore(deps): update actions/upload-artifact digest to b4b15b8 by @renovate in #817
- chore(deps): update astral-sh/setup-uv action to v3.1.6 by @renovate in #828
- chore(deps): update astral-sh/setup-uv action to v3.1.7 by @renovate in #831
- chore(deps): update dependency mypy to v1.12.0 by @renovate in #830
- chore(deps): update ubuntu:24.04 docker digest to d4f6f70 by @renovate in #827
- chore: fix url by @JP-Ellis in #832
- chore(deps): update ruff to v0.7.0 by @renovate in #833
- chore(deps): update dependency mypy to v1.12.1 by @renovate in #835
- chore(deps): update ubuntu:24.04 docker digest to 99c3519 by @renovate in #834
- chore(deps): update actions/checkout digest to 11bd719 by @renovate in #839
- chore(deps): update pre-commit hook crate-ci/typos to v1.26.1 by @renovate in #838
- chore(deps): update actions/cache digest to 6849a64 by @renovate in #836
- chore(deps): update dependency mypy to v1.13.0 by @renovate in #837
- chore(deps): update pre-commit hook crate-ci/typos to v1.26.8 by @renovate in #841
- chore(deps): update ruff to v0.7.1 by @renovate in #840
- chore(deps): update astral-sh/setup-uv action to v3.2.0 by @renovate in #842
- fix(deps): update dependency pytest-cov to v6 by @renovate in #843
- chore(deps): update pre-commit hook crate-ci/committed to v1.1.0 by @renovate in #845
- chore(deps): update pypa/gh-action-pypi-publish action to v1.11.0 by @renovate in #844
- chore(deps): update softprops/action-gh-release digest to e7a8f85 by @renovate in #847
- chore(deps): update pre-commit hook crate-ci/committed to v1.1.1 by @renovate in #846
- chore(deps): update pre-commit hook crate-ci/typos to v1.27.0 by @renovate in #849
- chore(deps): update ruff to v0.7.2 by @renovate in #848
- chore(deps): update astral-sh/setup-uv action to v3.2.1 by @renovate in #852
- chore(deps): update pypa/gh-action-pypi-publish action to v1.12.0 by @renovate in #851
- chore(deps): update pre-commit hook crate-ci/typos to v1.27.1 by @renovate in #854
- chore(deps): update astral-sh/setup-uv action to v3.2.2 by @renovate in #853
- chore(deps): update pypa/gh-action-pypi-publish action to v1.12.1 by @renovate in #855
- chore(deps): update pypa/gh-action-pypi-publish action to v1.12.2 by @renovate in #857
- chore(deps): update pre-commit hook crate-ci/typos to v1.27.2 by @renovate in #856
- chore(deps): update pre-commit hook crate-ci/typos to v1.27.3 by @renovate in #860
- chore(deps): update ruff to v0.7.3 by @renovate in #859
- chore(deps): update softprops/action-gh-release action to v2.1.0 by @renovate in #861
- chore(deps): update codecov/codecov-action action to v5 by @renovate in #862
- chore(deps): update codecov/codecov-action action to v5.0.2 by @renovate in #866
- chore(deps): update astral-sh/setup-uv action to v3.2.3 by @renovate in #864
- chore(deps): update ubuntu:24.04 docker digest to 278628f by @renovate in #867
- chore(deps): update codecov/codecov-action action to v5.0.3 by @renovate in #868
- chore(deps): update codecov/codecov-action action to v5.0.6 by @renovate in #869
- chore(deps): update codecov/codecov-action action to v5.0.7 by @renovate in #870
- chore(deps): update ruff to v0.7.4 by @renovate in #865
- chore: add yamlfix by @JP-Ellis in #871
- chore: remove docker files and scripts by @JP-Ellis in #872
- chore: update biome version by @JP-Ellis in #873
- chore: rename master to main by @JP-Ellis in #879
- chore(deps): update ruff to v0.8.0 by @renovate in #874
- chore(deps): update pre-commit hook igorshubovych/markdownlint-cli to v0.43.0 by @renovate in #875
- chore(deps): update pypa/cibuildwheel action to v2.22.0 by @renovate in #876
- chore(deps): update astral-sh/setup-uv action to v4 by @renovate in #878
- fix(deps): update dependency pytest-bdd to v8 by @renovate in #863
- chore(deps): update pre-commit hook crate-ci/typos to v1.28.0 by @renovate in #880
- chore(deps): update pre-commit hook crate-ci/typos to v1.28.1 by @renovate in #881
- chore(ci): replace pre-commit/action by @JP-Ellis in #882
- chore(deps): pin actions/cache action to 6849a64 by @renovate in #883
- chore(v3)!: remove unnecessary underscores by @JP-Ellis in #885
- chore(v3)!: make util module private by @JP-Ellis in #884
- chore(deps): update ruff to v0.8.1 by @renovate in #887
- chore(deps): update pre-commit hook crate-ci/typos to v1.28.2 by @renovate in #889
- chore(deps): update pre-commit hook crate-ci/committed to v1.1.2 by @renovate in #888
- chore(ci): upgrade macos-12 to macos-13 by @JP-Ellis in #895
- chore(deps): update astral-sh/setup-uv action to v4.2.0 by @renovate in #886
- chore(deps): update ruff to v0.8.2 by @renovate in #891
- chore(deps): update actions/cache action to v4.2.0 by @renovate in #893
- chore(deps): update actions/cache digest to 1bd1e32 by @renovate in #892
- chore(deps): update codecov/codecov-action action to v5.1.1 by @renovate in #894
- chore(deps): update pre-commit hook biomejs/pre-commit to v0.6.0 by @renovate in #896
- chore(deps): update pypa/gh-action-pypi-publish action to v1.12.3 by @renovate in #898
- chore(deps): update softprops/action-gh-release action to v2.2.0 by @renovate in #899
- chore(deps): update pre-commit hook crate-ci/typos to v1.28.3 by @renovate in #901
- fix(deps): update ruff to v0.8.3 by @renovate in #900
- chore(deps): update pre-commit hook crate-ci/typos to v1.28.4 by @renovate in #903
- chore(deps): update codecov/codecov-action action to v5.1.2 by @renovate in #907
- chore(deps): update pre-commit hook crate-ci/committed to v1.1.4 by @renovate in #906
- chore(deps): update actions/upload-artifact digest to 6f51ac0 by @renovate in #905
- chore(deps): update pre-commit hook biomejs/pre-commit to v0.6.1 by @renovate in #904
- chore(deps): update pre-commit hook crate-ci/committed to v1.1.5 by @renovate in #908
- fix(deps): update ruff to v0.8.4 by @renovate in #909
- fix(deps): update dependency mypy to v1.14.0 by @renovate in #911
- chore(deps): update astral-sh/setup-uv action to v5 by @renovate in #910
- chore: add pytest-xdist by @JP-Ellis in #902
- chore(deps): update astral-sh/setup-uv action to v5.1.0 by @renovate in #912
- chore(deps): update peter-evans/create-pull-request action to v7.0.6 by @renovate in #913
- chore(deps): update pactfoundation/pact-broker:latest docker digest to a3dac71 by @renovate in #897
- Allow functional arguments for provider callbacks and message producers by @JP-Ellis in #890
- fix(deps): update dependency mypy to v1.14.1 by @renovate in #915
- docs(blog): add functional arguments post by @JP-Ellis in #914
- chore(ci): automerge renovate PRs by @JP-Ellis in #916
- Revert "chore(deps): update softprops/action-gh-release action to v2.2.0" by @JP-Ellis in #917
Full Changelog: v2.2.2...v2.3.0