Skip to content

Conversation

@JP-Ellis
Copy link
Contributor

@JP-Ellis JP-Ellis commented Oct 3, 2025

📝 Summary

Change the default Pact specification from V3 to V4.

🚨 Breaking Changes

Pact instances default to version 4 of the Pact specification (previously used version 3). This should be mostly backwards compatible, but can be reverted by using with_specification("V3").

🔥 Motivation

Version 4 of the Pact specification has been available for a while now, and this will help with its adoption.

🔨 Test Plan

🔗 Related issues/PRs

BREAKING CHANGE: Pact instances default to version 4 of the Pact
    specification (previously used version 3). This should be mostly
    backwards compatible, but can be reverted by using
    `with_specification("V3")`.

Signed-off-by: JP-Ellis <josh@jpellis.me>
@JP-Ellis JP-Ellis self-assigned this Oct 3, 2025
Copilot AI review requested due to automatic review settings October 3, 2025 02:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR changes the default Pact specification version from V3 to V4, representing a breaking change to help promote adoption of the newer specification version.

  • Sets the default Pact specification to V4 in the constructor
  • Updates documentation to reflect the new default behavior
  • Maintains backward compatibility by allowing users to explicitly set V3 if needed

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@JP-Ellis JP-Ellis enabled auto-merge (rebase) October 3, 2025 02:42
@codecov
Copy link

codecov bot commented Oct 3, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 52%. Comparing base (3c2149c) to head (6d321c2).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/pact/pact.py 0% 1 Missing ⚠️
Additional details and impacted files
@@         Coverage Diff          @@
##           main   #1261   +/-   ##
====================================
- Coverage    52%     52%   -1%     
====================================
  Files        32      32           
  Lines      3729    3730    +1     
====================================
  Hits       1967    1967           
- Misses     1762    1763    +1     
Flag Coverage Δ
tests 52% <0%> (-1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JP-Ellis JP-Ellis merged commit 62b8903 into main Oct 3, 2025
60 of 62 checks passed
@JP-Ellis JP-Ellis deleted the feat/default-to-v4 branch October 3, 2025 02:48
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.

2 participants