Pact v17.0.0 Released: Node.js 26 Support & Key Updates
Date: 2026-06-25 | Category: Test Automation
TL;DR
- Drops support for Node.js 20, now tests against Node.js 26.
- Introduces Scarf download analytics for better usage insights.
- Addresses a critical ESM import issue, improving module compatibility.
Key Changes
Pact Foundation has released v17.0.0 of its contract testing tool, a major update focusing on environmental compatibility and internal improvements. This version marks a significant shift in Node.js support and includes important fixes.
Breaking Changes
The most notable change is the deprecation of Node.js 20 support. Pact v17.0.0 now officially tests against Node.js 26. QA teams using Node.js 20 will need to upgrade their environments to ensure compatibility and continued support. This update aligns Pact with the latest Node.js LTS releases, promoting a modern development and testing ecosystem.
Features
A new feature in this release is the enablement of Scarf download analytics. This addition helps the Pact Foundation gather anonymous usage data, providing insights into tool adoption and distribution. This data can inform future development priorities and resource allocation.
Fixes and Improvements
This version resolves an ESM import issue. This fix is crucial for projects utilizing ECMAScript Modules, ensuring smoother integration and execution of Pact tests within modern JavaScript environments. It addresses potential hurdles faced by developers migrating to or working with ESM-first projects.
For a detailed list of changes, refer to the official changelog.
Impact for QA Teams
QA teams must assess their current Node.js environments. Upgrading to Node.js 26 is now a prerequisite for using Pact v17.0.0, which may require adjustments to CI/CD pipelines. The ESM import fix will benefit teams experiencing module resolution problems, streamlining their contract testing setup.
FAQ
Q: Do I need to upgrade Node.js to use Pact v17.0.0? A: Yes, Pact v17.0.0 drops support for Node.js 20 and is tested against Node.js 26. An upgrade is required.
Q: What is Scarf download analytics? A: Scarf analytics collects anonymous data on Pact downloads, helping the Pact Foundation understand usage patterns and improve the tool.
Q: Will this update affect my existing Pact tests? A: The primary impact will be Node.js compatibility. If you are on Node.js 20, your tests might fail until you upgrade your Node.js version. The ESM fix should resolve specific import issues.
