Repository navigation
Conversation
Adds withRequestHeader/withResponseHeader index support via pactffi_with_header_v2 so each value of a repeated header (RFC 9110 §5.3) can carry its own matcher, with integration tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…evert before merge) Points download-ffi.sh at the YOU54F/pact-reference fork prerelease (overridable with PACT_FFI_BASEURL), bumps PACT_FFI_VERSION to 0.5.13-rc.1, and forces the prebuild path in CI (as if the PR title contained "(rebuild)") so the native addon is built against the rc instead of fetching published prebuilds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… longer matches) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
withRequestHeader/withResponseHeadertake a value index and callpactffi_with_header_v2, so each value of a repeated header (RFC 9110 §5.3) can carry its own matcher.logToBuffer()sends the native core logs to an in-memory buffer,fetchLogBuffer()reads the global buffer, andConsumerPact.mockServerLogs(port)reads a mock server's logs (beforecleanupMockServer). That lets tests assert the chore(deps): update dependency node-addon-api to v8 - autoclosed pact-foundation/pact-js-core#584 deprecation warning.pactffiFetchLogBuffernow takes an optional string log id and returnsstring | null, which matches the FFI signature.test/repeated-headers.integration.spec.ts(H1–H8b repeated request and response header cases).Test results (pact_ffi from pact-foundation#584)
101 pass, 1 skipped. Against released pact_ffi the repeated-header cases that depend on pact-foundation#584 fail (expected).
Release notes
logToBufferandfetchLogBuffer, andConsumerPact.mockServerLogs.pactffiFetchLogBuffer's type changed (logId?: string, returnsstring | null).Depends on
Draft until pact-foundation#584 is released and the FFI version here is bumped.
Known upstream issue
Per-index header matchers work in the mock server but collapse to a single, randomly chosen rule when the pact file is written (pact_models
to_v3_jsondrops the index). This predates pact-foundation#584; draft fix in YOU54F/pact-reference#15.🤖 Generated with Claude Code