diff --git a/.github/build-setup.yml b/.github/build-setup.yml new file mode 100644 index 000000000..19ceb3cba --- /dev/null +++ b/.github/build-setup.yml @@ -0,0 +1,19 @@ +# Steps dist runs before `dist build` in each per-target build job. + +# musl builds run cargo through dist-cargo.sh, which links pact_ffi's musl +# CRT dynamically and keeps the cross-rs toolchain in charge of aarch64. +# dist checks for cargo-zigbuild before an aarch64-musl build; the stub +# satisfies that check and forwards to the same script. The cross-rs +# images lack xz, which dist's installer needs. +- name: Route musl builds through dist-cargo.sh + if: contains(join(matrix.targets, ','), 'musl') + shell: bash + run: | + command -v xz >/dev/null || { apt-get update -q && apt-get install -y -q --no-install-recommends xz-utils; } + script="$GITHUB_WORKSPACE/.github/scripts/dist-cargo.sh" + bin="$RUNNER_TEMP/dist-cargo-bin" + mkdir -p "$bin" + printf '#!/bin/sh\nexec "%s" "$@"\n' "$script" > "$bin/cargo-zigbuild" + chmod +x "$bin/cargo-zigbuild" + echo "$bin" >> "$GITHUB_PATH" + echo "CARGO=$script" >> "$GITHUB_ENV" diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 3cd73a469..f4d13b267 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -53,15 +53,6 @@ cargo test --test v3_message cargo test --test v4 ``` -Cross-platform MUSL builds use the project Docker image: - -```bash -docker run --rm --user "$(id -u)":"$(id -g)" \ - -v $(pwd):/workspace -w /workspace/rust \ - -t -e TZ=UTC pactfoundation/rust-musl-build \ - ./scripts/ci-musl-build.sh -``` - ## High-level architecture This repository is the Rust reference implementation of Pact and exposes the same core through Rust crates, a C-compatible FFI layer, and a verifier CLI. diff --git a/.github/scripts/changelog-section.sh b/.github/scripts/changelog-section.sh new file mode 100755 index 000000000..21c993d0e --- /dev/null +++ b/.github/scripts/changelog-section.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# Prints the body of one version's section from a changelog whose +# sections are `##` headings. release-plz writes `## []`; the +# entries from before release-plz use `## - `. +# +# Usage: changelog-section.sh <CHANGELOG.md> <version> +# Exits 1 when the changelog has no section for <version>. +set -euo pipefail + +changelog=$1 +version=$2 + +awk -v heading="## [${version}]" ' + /^## / { + if (found) exit + if (index($0, heading) == 1) { found = 1; next } + } + found { print } + END { exit found ? 0 : 1 } +' "$changelog" diff --git a/.github/scripts/check-linkage.sh b/.github/scripts/check-linkage.sh new file mode 100755 index 000000000..c4f86d8f5 --- /dev/null +++ b/.github/scripts/check-linkage.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash +# Fails when a Linux artifact in a dist build links against the wrong C +# library: +# - musl: a shared object must need musl's C library (`libc.so`, or +# Alpine's `libc.musl-<arch>.so.1`), never glibc's libc.so.6; an +# executable must be fully static. +# - gnu: no symbol may need a glibc version newer than GLIBC_FLOOR. +# +# Usage: check-linkage.sh <dir> +# <dir> holds dist's `<package>-<target>.tar.xz` archives, e.g. a release +# build's `artifacts-*` artifacts, merged. +set -euo pipefail + +# The oldest glibc among supported major distributions: RHEL 8 and its +# rebuilds. dist-workspace.toml builds linux-gnu in manylinux_2_28 to match. +GLIBC_FLOOR=2.28 + +dir=$1 +readelf=$(command -v readelf || command -v llvm-readelf \ + || { ls /usr/lib/llvm-*/bin/llvm-readelf /opt/homebrew/opt/llvm/bin/llvm-readelf 2>/dev/null || true; } | sort -V | tail -1) +[[ -n $readelf ]] || { echo "check-linkage.sh needs readelf" >&2; exit 1; } +work=$(mktemp -d) +trap 'rm -rf "$work"' EXIT + +# Checks one ELF file against <flavour>: musl or gnu. +check() { + local file=$1 flavour=$2 needed newest + needed=$("$readelf" -d "$file" 2>/dev/null | sed -n 's/.*(NEEDED).*\[\(.*\)\].*/\1/p') + case "$flavour" in + musl) + if [[ "$("$readelf" -h "$file")" == *"EXEC (Executable file)"* || -z "$needed" ]]; then + [[ -z "$needed" ]] || { echo "::error::$file is not fully static: needs $needed"; return 1; } + elif grep -qx 'libc.so.6' <<<"$needed" || ! grep -qxE 'libc\.so|libc\.musl-[a-z0-9_]+\.so\.1' <<<"$needed"; then + echo "::error::$file does not link musl's libc.so: needs $(tr '\n' ' ' <<<"$needed")" + return 1 + fi + ;; + gnu) + newest=$("$readelf" -V "$file" | grep -o 'GLIBC_[0-9][0-9.]*' | sed 's/GLIBC_//' | sort -V | tail -1) + if [[ -n $newest && $(printf '%s\n%s\n' "$newest" "$GLIBC_FLOOR" | sort -V | tail -1) != "$GLIBC_FLOOR" ]]; then + echo "::error::$file needs glibc $newest, above the $GLIBC_FLOOR floor" + return 1 + fi + ;; + esac +} + +shopt -s nullglob +status=0 checked=0 +for archive in "$dir"/*-unknown-linux-gnu.tar.xz "$dir"/*-unknown-linux-musl.tar.xz; do + name=$(basename "$archive" .tar.xz) + mkdir "$work/$name" + tar xJf "$archive" -C "$work/$name" + # Shared objects and executables; static archives link nothing. + while IFS= read -r -d '' file; do + check "$file" "${name##*-}" || status=1 + echo "checked ${file#"$work/"}" + checked=$((checked + 1)) + done < <(find "$work/$name" -type f \( -name '*.so' -o -perm -u+x \) -print0) +done +(( checked )) || { echo "::error::no Linux archives in $dir"; exit 1; } +exit "$status" diff --git a/.github/scripts/dist-cargo.sh b/.github/scripts/dist-cargo.sh new file mode 100755 index 000000000..ad1dc030d --- /dev/null +++ b/.github/scripts/dist-cargo.sh @@ -0,0 +1,43 @@ +#!/usr/bin/env bash +# The cargo that dist runs in the musl build jobs (dist reads `CARGO`; see +# .github/build-setup.yml). +# +# - pact_ffi links the musl CRT dynamically: rustc drops a cdylib on a +# crt-static target. dist appends `+crt-static` to RUSTFLAGS for musl, so +# CARGO_ENCODED_RUSTFLAGS, which cargo prefers, overrides it for +# pact_ffi's build only. The CLI stays fully static. precise-builds gives +# each crate its own cargo invocation. +# - dist treats aarch64-musl in an x86_64 container as a cross build and +# runs `cargo zigbuild`. The cross-rs image already sets up its musl +# toolchain, so this runs a plain `cargo build`. +set -euo pipefail + +args=("$@") +[[ ${args[0]-} == zigbuild ]] && args[0]=build + +# Prints the crate name of a package spec: `name`, `name@ver`, +# `path+file:///.../name#ver` or `path+file:///...#name@ver`. +crate_name() { + local spec=$1 fragment + if [[ $spec == *'#'* ]]; then + fragment=${spec#*#} + if [[ $fragment == *@* ]]; then echo "${fragment%@*}"; else basename "${spec%%#*}"; fi + else + echo "${spec%@*}" + fi +} + +if [[ ${args[0]-} == build ]]; then + target='' package='' + for ((i = 1; i < ${#args[@]}; i++)); do + case "${args[i]}" in + --target) target=${args[i + 1]-} ;; + --package) package=$(crate_name "${args[i + 1]-}") ;; + esac + done + if [[ $target == *-linux-musl && $package == pact_ffi ]]; then + export CARGO_ENCODED_RUSTFLAGS="-Ctarget-feature=-crt-static" + fi +fi + +exec cargo "${args[@]}" diff --git a/.github/scripts/legacy-artifacts.sh b/.github/scripts/legacy-artifacts.sh new file mode 100755 index 000000000..84f2f25a2 --- /dev/null +++ b/.github/scripts/legacy-artifacts.sh @@ -0,0 +1,123 @@ +#!/usr/bin/env bash +# Rebuilds the pre-dist asset names from a dist release's archives, +# without recompiling: each binary or library is gzipped under its old +# name with an `openssl dgst -r`-style `.sha256` file. +# +# Usage: legacy-artifacts.sh <tag> <out-dir> +# Reads the release's assets with gh (needs GH_TOKEN and +# GITHUB_REPOSITORY), or, with LEGACY_ARCHIVES set, from that directory: +# for example a release gate run's artifacts, to check them before a tag. +# Needs LLVM for the Windows import libraries (see legacy-import-lib.sh). +set -euo pipefail + +# MARK: Cut-off + +# CUTOFF is the single source of the legacy cut-off date. From that date +# this script writes nothing, so no legacy assets are published. After it, +# delete: +# - .github/workflows/legacy-artifacts.yml; +# - the `legacy-artifacts` entries in dist-workspace.toml, then run +# `dist generate` and re-apply the `hand edit` changes to release.yml; +# - every .github/scripts/legacy-* file; +# - RELEASING.md's legacy sections. +CUTOFF=2027-06-30 + +if [[ ! "$(date -u +%Y-%m-%d)" < "$CUTOFF" ]]; then + echo "::notice::Past the $CUTOFF legacy cut-off; no legacy assets are written." + exit 0 +fi + +# MARK: Build + +scripts=$(cd "$(dirname "$0")" && pwd) + +tag=$1 +out=$(mkdir -p "$2" && cd "$2" && pwd) +package=${tag%-v*} +work=$(mktemp -d) +trap 'rm -rf "$work"' EXIT +cd "$work" + +# Copies release asset <name> into <dir>. +download() { + local name=$1 dir=$2 + if [[ -n ${LEGACY_ARCHIVES-} ]]; then + cp "$LEGACY_ARCHIVES/$name" "$dir/" + else + gh release download "$tag" --repo "$GITHUB_REPOSITORY" -p "$name" -D "$dir" --clobber + fi +} + +gzip_and_sum() { + local src=$1 name=$2 + gzip --no-name --best --stdout "$src" > "$out/$name" + (cd "$out" && sha256sum --binary "$name" > "$name.sha256") +} + +# Prints the path of <file> after unpacking <target>'s archive. Archives +# may or may not wrap their files in a top-level directory. +extract() { + local target=$1 file=$2 archive path + if [[ ! -d "$target" ]]; then + if [[ $target == *windows* ]]; then archive="$package-$target.zip"; else archive="$package-$target.tar.xz"; fi + download "$archive" . + mkdir "$target" + case "$archive" in + *.zip) unzip -q "$archive" -d "$target" ;; + *) tar xJf "$archive" -C "$target" ;; + esac + fi + path=$(find "$target" -type f -name "$file" | head -1) + [[ -n "$path" ]] || { echo "$file not found in $archive" >&2; return 1; } + echo "$path" +} + +case "$package" in + pact_verifier_cli) + # Linux names always pointed at the static musl builds. + for entry in \ + x86_64-unknown-linux-musl:pact-verifier:pact-verifier-linux-x86_64.gz \ + aarch64-unknown-linux-musl:pact-verifier:pact-verifier-linux-aarch64.gz \ + x86_64-apple-darwin:pact-verifier:pact-verifier-macos-x86_64.gz \ + aarch64-apple-darwin:pact-verifier:pact-verifier-macos-aarch64.gz \ + x86_64-pc-windows-msvc:pact-verifier.exe:pact-verifier-windows-x86_64.exe.gz \ + aarch64-pc-windows-msvc:pact-verifier.exe:pact-verifier-windows-aarch64.exe.gz + do + IFS=: read -r target file name <<<"$entry" + path=$(extract "$target" "$file") + gzip_and_sum "$path" "$name" + done + ;; + pact_ffi) + for entry in \ + x86_64-unknown-linux-gnu:linux-x86_64 \ + aarch64-unknown-linux-gnu:linux-aarch64 \ + x86_64-unknown-linux-musl:linux-x86_64-musl \ + aarch64-unknown-linux-musl:linux-aarch64-musl + do + IFS=: read -r target suffix <<<"$entry" + gzip_and_sum "$(extract "$target" libpact_ffi.so)" "libpact_ffi-$suffix.so.gz" + gzip_and_sum "$(extract "$target" libpact_ffi.a)" "libpact_ffi-$suffix.a.gz" + done + for entry in x86_64-apple-darwin:macos-x86_64 aarch64-apple-darwin:macos-aarch64; do + IFS=: read -r target suffix <<<"$entry" + gzip_and_sum "$(extract "$target" libpact_ffi.dylib)" "libpact_ffi-$suffix.dylib.gz" + gzip_and_sum "$(extract "$target" libpact_ffi.a)" "libpact_ffi-$suffix.a.gz" + done + # dist ships the DLL and the static library, but not the DLL's + # import library; it is rebuilt from the DLL's export table. + for arch in x86_64 aarch64; do + target=$arch-pc-windows-msvc + dll=$(extract "$target" pact_ffi.dll) + "$scripts/legacy-import-lib.sh" "$dll" "$arch" "$target/pact_ffi.dll.lib" + gzip_and_sum "$dll" "pact_ffi-windows-$arch.dll.gz" + gzip_and_sum "$target/pact_ffi.dll.lib" "pact_ffi-windows-$arch.dll.lib.gz" + gzip_and_sum "$(extract "$target" pact_ffi.lib)" "pact_ffi-windows-$arch.lib.gz" + done + download pact.h "$out" + download pact-cpp.h "$out" + ;; + *) + echo "No legacy assets for $package" >&2 + ;; +esac diff --git a/.github/scripts/legacy-import-lib.sh b/.github/scripts/legacy-import-lib.sh new file mode 100755 index 000000000..84ddfafbb --- /dev/null +++ b/.github/scripts/legacy-import-lib.sh @@ -0,0 +1,63 @@ +#!/usr/bin/env bash +# Builds the MSVC import library (`<name>.dll.lib`) for a DLL from its +# export table. dist ships the DLL but not the import library that rustc +# writes beside it. +# +# Exports outside the executable section are data, and are marked DATA so +# the library gives them no call thunk, as rustc's does. +# +# Usage: legacy-import-lib.sh <dll> <x86_64|aarch64> <out.lib> +# +# Only legacy-artifacts.sh uses this. Delete it after the legacy cut-off +# date set in legacy-artifacts.sh. +set -euo pipefail + +dll=$1 +arch=$2 +out=$3 + +llvm() { + local tool=$1 + command -v "$tool" \ + || { ls /usr/lib/llvm-*/bin/"$tool" /opt/homebrew/opt/llvm/bin/"$tool" 2>/dev/null || true; } | sort -V | tail -1 +} +readobj=$(llvm llvm-readobj) +dlltool=$(llvm llvm-dlltool) +[[ -n $readobj && -n $dlltool ]] || { echo "legacy-import-lib.sh needs llvm-readobj and llvm-dlltool" >&2; exit 1; } + +case "$arch" in + x86_64) machine=i386:x86-64 ;; + aarch64) machine=arm64 ;; + *) echo "unknown arch: $arch" >&2; exit 1 ;; +esac + +def=$(mktemp) +trap 'rm -f "$def"' EXIT +{ + echo "LIBRARY $(basename "$dll")" + echo "EXPORTS" + # Pass 1 collects the executable sections' address ranges; pass 2 + # prints each export, with DATA when its RVA falls outside them. + awk ' + function hex(s, i, v) { + s = tolower(s); sub(/^0x/, "", s); v = 0 + for (i = 1; i <= length(s); i++) v = v * 16 + index("0123456789abcdef", substr(s, i, 1)) - 1 + return v + } + BEGIN { n = 0 } + NR == FNR { + if ($1 == "VirtualSize:") size = hex($2) + if ($1 == "VirtualAddress:") addr = hex($2) + if ($1 == "IMAGE_SCN_MEM_EXECUTE") { lo[n] = addr; hi[n] = addr + size; n++ } + next + } + $1 == "Name:" { name = $2 } + $1 == "RVA:" { + rva = hex($2); data = 1 + for (i = 0; i < n; i++) if (rva >= lo[i] && rva < hi[i]) data = 0 + print " " name (data ? " DATA" : "") + } + ' <("$readobj" --sections "$dll") <("$readobj" --coff-exports "$dll") +} > "$def" + +"$dlltool" -m "$machine" -d "$def" -l "$out" diff --git a/.github/scripts/tag-releases.sh b/.github/scripts/tag-releases.sh new file mode 100755 index 000000000..835d265ba --- /dev/null +++ b/.github/scripts/tag-releases.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# Creates `<crate>-v<version>` for each workspace crate whose version has +# no tag, i.e. each crate whose release PR just merged, and pushes it. +# Each tag goes in its own push: GitHub fires no events for a push of +# more than three tags. +# +# Usage: tag-releases.sh <manifest-path> <remote> +set -euo pipefail + +manifest=$1 +remote=$2 + +cargo metadata --format-version 1 --no-deps --manifest-path "$manifest" \ + | jq -r '.packages[] | [.name, .version, .manifest_path] | @tsv' \ + | while IFS=$'\t' read -r name version crate_manifest; do + tag="$name-v$version" + git rev-parse -q --verify "refs/tags/$tag" >/dev/null && continue + # Published but untagged means a missing migration tag or a manual + # publish, never a release PR merge: tagging would start a release. + if curl -fso /dev/null -A 'pact-foundation/pact-reference release' "https://crates.io/api/v1/crates/$name/$version"; then + echo "::warning::$name $version is on crates.io but has no $tag tag; not tagging it." >&2 + continue + fi + # Tag the commit on master's first-parent line that set this + # version, which is the release PR's merge (squash or merge commit), + # even when later commits have landed since. + commit=$(git log -1 --first-parent --diff-merges=first-parent --no-patch --format=%H -G "^version = \"${version//./\\.}\"" -- "$crate_manifest") + git tag -a "$tag" -m "$tag" "${commit:-HEAD}" + git push -q "$remote" "refs/tags/$tag" + echo "$tag" + done diff --git a/.github/workflows/check-artifacts.yml b/.github/workflows/check-artifacts.yml new file mode 100644 index 000000000..bddfd3079 --- /dev/null +++ b/.github/workflows/check-artifacts.yml @@ -0,0 +1,35 @@ +--- +# Checks a release build's archives before anything is published. dist +# runs it after the per-target builds, on release gates and tags alike, and +# `host` waits for it. dist passes every custom job the plan. +name: Check artifacts + +on: + workflow_call: + inputs: + plan: + type: string + required: true + +permissions: + contents: read + +jobs: + linkage: + name: Check Linux linkage + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Download archives + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + pattern: artifacts-* + path: ${{ runner.temp }}/artifacts + merge-multiple: true + + - name: Check linkage + run: .github/scripts/check-linkage.sh "$RUNNER_TEMP/artifacts" diff --git a/.github/workflows/legacy-artifacts.yml b/.github/workflows/legacy-artifacts.yml new file mode 100644 index 000000000..8a6a9cf3b --- /dev/null +++ b/.github/workflows/legacy-artifacts.yml @@ -0,0 +1,88 @@ +--- +# Republishes pre-dist asset names for downstream installers that still +# hard-code them. pact_ffi assets also go to a `libpact_ffi-v<version>` +# release, the URL those installers build. +# +# Delete this file after the legacy cut-off date set in +# .github/scripts/legacy-artifacts.sh, which lists everything else to +# remove. The script publishes nothing from that date. +name: Legacy artifacts + +on: + workflow_call: + inputs: + plan: + type: string + required: true + # Runs the scripts from master: the recovery path when a fix to them + # must reach a release whose own run failed. + workflow_dispatch: + inputs: + tag: + description: dist release tag to publish legacy assets for (e.g. pact_ffi-v0.5.12) + type: string + required: true + +permissions: + contents: write + +jobs: + legacy-artifacts: + name: Publish legacy-named assets + runs-on: ubuntu-latest + steps: + - name: Resolve tag + id: tag + env: + PLAN: ${{ inputs.plan }} + MANUAL_TAG: ${{ inputs.tag }} + run: | + if [[ -n "$PLAN" ]]; then + echo "tag=$(jq -r '.announcement_tag' <<<"$PLAN")" >> "$GITHUB_OUTPUT" + else + echo "tag=$MANUAL_TAG" >> "$GITHUB_OUTPUT" + fi + + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + # legacy-import-lib.sh rebuilds the Windows import libraries with LLVM. + - name: Install LLVM + run: | + if ! ls /usr/lib/llvm-*/bin/llvm-dlltool >/dev/null 2>&1; then + sudo apt-get update -q + sudo apt-get install -y -q --no-install-recommends llvm + fi + + - name: Build legacy assets + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG: ${{ steps.tag.outputs.tag }} + run: .github/scripts/legacy-artifacts.sh "$TAG" "$RUNNER_TEMP/legacy" + + - name: Upload legacy assets + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG: ${{ steps.tag.outputs.tag }} + run: | + shopt -s nullglob + files=("$RUNNER_TEMP"/legacy/*) + (( ${#files[@]} )) || exit 0 + case "$TAG" in + pact_ffi-v*) + version=${TAG##*-v} + legacy="libpact_ffi-v$version" + # The legacy tag points at the release tag's commit. + sha=$(gh api "repos/$GITHUB_REPOSITORY/commits/$TAG" --jq .sha) + cutoff=$(sed -n 's/^CUTOFF=//p' .github/scripts/legacy-artifacts.sh) + gh api "repos/$GITHUB_REPOSITORY/git/refs" -f "ref=refs/tags/$legacy" -f "sha=$sha" >/dev/null 2>&1 || true + gh release view "$legacy" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1 || \ + gh release create "$legacy" --repo "$GITHUB_REPOSITORY" --target "$sha" --latest=false \ + --title "pact_ffi $version (legacy asset names)" \ + --notes "Legacy-named assets for [pact_ffi-v$version](https://github.com/$GITHUB_REPOSITORY/releases/tag/$TAG). These names are published until $cutoff." + gh release upload "$legacy" --repo "$GITHUB_REPOSITORY" --clobber "${files[@]}" + ;; + *) + gh release upload "$TAG" --repo "$GITHUB_REPOSITORY" --clobber "${files[@]}" + ;; + esac diff --git a/.github/workflows/publish-containers.yml b/.github/workflows/publish-containers.yml new file mode 100644 index 000000000..e3696e92f --- /dev/null +++ b/.github/workflows/publish-containers.yml @@ -0,0 +1,74 @@ +--- +name: Publish containers + +on: + workflow_call: + inputs: + plan: + type: string + required: true + workflow_dispatch: + inputs: + version: + description: pact_verifier_cli version, without `v` (e.g. 1.3.6) + type: string + required: true + +permissions: + contents: read + packages: write + +jobs: + publish: + name: Build and push pact-verifier images + # dist runs this after every release; only pact_verifier_cli has an image. + if: >- + inputs.plan == '' + || startsWith(fromJson(inputs.plan || '{}').announcement_tag, 'pact_verifier_cli-v') + runs-on: ubuntu-latest + steps: + - name: Resolve version + id: version + env: + PLAN: ${{ inputs.plan }} + MANUAL_VERSION: ${{ inputs.version }} + run: | + if [[ -n "$PLAN" ]]; then + tag=$(jq -r '.announcement_tag' <<<"$PLAN") + echo "version=${tag##*-v}" >> "$GITHUB_OUTPUT" + else + echo "version=$MANUAL_VERSION" >> "$GITHUB_OUTPUT" + fi + + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Set up Buildx + uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1 + + - name: Log in to Docker Hub + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} + + - name: Log in to GHCR + uses: docker/login-action@dbcb813823bdd20940b903addbd779551569679f # v4.6.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + working-directory: rust/pact_verifier_cli + env: + VERSION: ${{ steps.version.outputs.version }} + run: | + docker buildx build . \ + --platform linux/amd64,linux/arm64 \ + --build-arg "VERSION=$VERSION" \ + --tag "pactfoundation/pact-verifier:$VERSION" \ + --tag pactfoundation/pact-verifier:latest \ + --tag "ghcr.io/pact-foundation/pact-verifier:$VERSION" \ + --tag ghcr.io/pact-foundation/pact-verifier:latest \ + --push diff --git a/.github/workflows/publish-crate.yml b/.github/workflows/publish-crate.yml new file mode 100644 index 000000000..c02339533 --- /dev/null +++ b/.github/workflows/publish-crate.yml @@ -0,0 +1,85 @@ +--- +name: Publish crate + +on: + workflow_call: + inputs: + plan: + description: dist plan JSON; its announcement tag names the crate + type: string + default: '' + tag: + description: Release tag `<crate>-v<version>`, when not called by dist + type: string + default: '' + +permissions: + contents: read + id-token: write + +jobs: + publish: + name: Publish to crates.io + runs-on: ubuntu-latest + environment: crates-io + steps: + - name: Resolve crate and version + id: crate + env: + PLAN: ${{ inputs.plan }} + TAG_INPUT: ${{ inputs.tag }} + run: | + if [[ -n "$PLAN" ]]; then + tag=$(jq -r '.announcement_tag' <<<"$PLAN") + else + tag=$TAG_INPUT + fi + { + echo "tag=$tag" + echo "name=${tag%-v*}" + echo "version=${tag##*-v}" + } >> "$GITHUB_OUTPUT" + + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + ref: ${{ steps.crate.outputs.tag }} + + # A re-run after a later step failed must not fail on "already exists". + - name: Check whether this version is already published + id: published + env: + NAME: ${{ steps.crate.outputs.name }} + VERSION: ${{ steps.crate.outputs.version }} + run: | + if curl -fso /dev/null -A 'pact-foundation/pact-reference release' "https://crates.io/api/v1/crates/$NAME/$VERSION"; then + echo "exists=true" >> "$GITHUB_OUTPUT" + echo "::notice::${NAME} ${VERSION} is already on crates.io; skipping." + else + echo "exists=false" >> "$GITHUB_OUTPUT" + fi + + - name: Install Rust + if: steps.published.outputs.exists == 'false' + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + cache: false + + - name: Authenticate with crates.io + if: steps.published.outputs.exists == 'false' && vars.PUBLISH_DRY_RUN != 'true' + id: auth + uses: rust-lang/crates-io-auth-action@c6f97d42243bad5fab37ca0427f495c86d5b1a18 # v1.0.5 + + # Set the repository variable PUBLISH_DRY_RUN=true on a fork to + # rehearse releases without publishing. + - name: Publish + if: steps.published.outputs.exists == 'false' + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} + NAME: ${{ steps.crate.outputs.name }} + DRY_RUN: ${{ vars.PUBLISH_DRY_RUN }} + run: | + args=(--manifest-path rust/Cargo.toml -p "$NAME" --locked) + if [[ "$DRY_RUN" == true ]]; then args+=(--dry-run); fi + cargo publish "${args[@]}" diff --git a/.github/workflows/release-crate.yml b/.github/workflows/release-crate.yml new file mode 100644 index 000000000..7d5735fb7 --- /dev/null +++ b/.github/workflows/release-crate.yml @@ -0,0 +1,44 @@ +--- +name: Release crate + +on: + push: + tags: + - 'pact_models-v*' + - 'pact_matching-v*' + - 'pact_consumer-v*' + - 'pact_verifier-v*' + +permissions: + contents: read + +jobs: + publish: + uses: ./.github/workflows/publish-crate.yml + with: + tag: ${{ github.ref_name }} + permissions: + contents: read + id-token: write + secrets: inherit + + release: + name: GitHub release + needs: publish + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Create release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG: ${{ github.ref_name }} + run: | + crate=${TAG%-v*} + version=${TAG##*-v} + .github/scripts/changelog-section.sh "rust/$crate/CHANGELOG.md" "$version" > "$RUNNER_TEMP/notes.md" + gh release view "$TAG" >/dev/null 2>&1 || \ + gh release create "$TAG" --title "$crate $version" --notes-file "$RUNNER_TEMP/notes.md" --verify-tag diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml new file mode 100644 index 000000000..7f537308e --- /dev/null +++ b/.github/workflows/release-pr.yml @@ -0,0 +1,205 @@ +--- +name: Release PR + +on: + push: + branches: + - master + +permissions: + contents: read + +# Runs never overlap, so two runs can't race on the same tag. GitHub drops +# a pending run when a newer one queues; the newer run tags every +# untagged version, so no release is lost. +concurrency: + group: release-pr + cancel-in-progress: false + +jobs: + # MARK: Tag + + tag: + name: Tag released versions + if: github.repository == 'pact-foundation/pact-reference' + runs-on: ubuntu-latest + steps: + - name: Generate GitHub App token + id: app-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + app-id: ${{ vars.PACT_FOUNDATION_BOT_APP_ID }} + private-key: ${{ secrets.PACT_FOUNDATION_BOT_PRIVATE_KEY }} + + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + token: ${{ steps.app-token.outputs.token }} + + - name: Configure git identity + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + APP_SLUG: ${{ steps.app-token.outputs.app-slug }} + run: | + git config user.name "${APP_SLUG}[bot]" + git config user.email "$(gh api "/users/${APP_SLUG}[bot]" --jq .id)+${APP_SLUG}[bot]@users.noreply.github.com" + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + cache: false + + # The checkout's credentials are the App token, so the tag pushes + # start the release workflow. + - name: Tag merged releases + run: .github/scripts/tag-releases.sh rust/Cargo.toml origin + + # MARK: Prepare + + prepare: + name: Prepare (${{ matrix.crate }}) + needs: tag + if: github.repository == 'pact-foundation/pact-reference' + strategy: + fail-fast: false + matrix: + crate: + - pact_models + - pact_matching + - pact_consumer + - pact_verifier + - pact_verifier_cli + - pact_ffi + runs-on: ubuntu-latest + env: + CRATE: ${{ matrix.crate }} + BRANCH: release/${{ matrix.crate }} + steps: + - name: Generate GitHub App token + id: app-token + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 + with: + app-id: ${{ vars.PACT_FOUNDATION_BOT_APP_ID }} + private-key: ${{ secrets.PACT_FOUNDATION_BOT_PRIVATE_KEY }} + + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + fetch-depth: 0 + token: ${{ steps.app-token.outputs.token }} + + - name: Resolve bot identity + id: bot + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + APP_SLUG: ${{ steps.app-token.outputs.app-slug }} + run: | + id=$(gh api "/users/${APP_SLUG}[bot]" --jq .id) + echo "login=${APP_SLUG}[bot]" >> "$GITHUB_OUTPUT" + echo "author=${APP_SLUG}[bot] <${id}+${APP_SLUG}[bot]@users.noreply.github.com>" >> "$GITHUB_OUTPUT" + + # Between a release tag and its crates.io publish, release-plz would + # compare master against a registry that lacks the new version. Wait + # for the publish instead. + - name: Check for a release still being published + id: lag + run: | + version=$(sed -n 's/^version = "\(.*\)"$/\1/p' "rust/$CRATE/Cargo.toml" | head -1) + if git rev-parse -q --verify "refs/tags/$CRATE-v$version" >/dev/null \ + && ! curl -fso /dev/null -A 'pact-foundation/pact-reference release' "https://crates.io/api/v1/crates/$CRATE/$version"; then + echo "pending=true" >> "$GITHUB_OUTPUT" + echo "::notice::$CRATE $version is tagged but not yet on crates.io; skipping until it is." + else + echo "pending=false" >> "$GITHUB_OUTPUT" + fi + + # A release PR with commits from people is theirs: regenerating it + # would force-push over their edits. + - name: Check for manual edits + id: manual + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + BOT: ${{ steps.bot.outputs.login }} + run: | + others=$(gh pr view "$BRANCH" --json state,commits --jq ' + select(.state == "OPEN") + | [.commits[].authors[].login | select(. != env.BOT)] | length' 2>/dev/null || true) + if [[ "${others:-0}" -gt 0 ]]; then + echo "edited=true" >> "$GITHUB_OUTPUT" + else + echo "edited=false" >> "$GITHUB_OUTPUT" + fi + + - name: Note that regeneration is paused + if: steps.manual.outputs.edited == 'true' + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + run: | + marker='<!-- release-pr:paused -->' + if ! gh pr view "$BRANCH" --json comments --jq '.comments[].body' | grep -qF "$marker"; then + gh pr comment "$BRANCH" --body "$marker + This release PR has commits from people, so the release bot no longer regenerates it from \`master\`. Close it to get a fresh one." + fi + + - name: Decide whether to regenerate + id: gate + if: steps.manual.outputs.edited == 'false' && steps.lag.outputs.pending == 'false' + run: echo "proceed=true" >> "$GITHUB_OUTPUT" + + - name: Install Rust + if: steps.gate.outputs.proceed == 'true' + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + cache: false + + - name: Install tools + if: steps.gate.outputs.proceed == 'true' + uses: jdx/mise-action@08ae2a091c038e1e05ec6f5115dc5c69d5a2a6b8 # v5.1.2 + timeout-minutes: 3 + with: + cache_save: false + + - name: Update version and changelog + if: steps.gate.outputs.proceed == 'true' + run: >- + release-plz update + -p "$CRATE" + --manifest-path rust/Cargo.toml + --config rust/release-plz.toml + + - name: Describe the release + id: release + if: steps.gate.outputs.proceed == 'true' + run: | + version=$(cargo metadata --format-version 1 --no-deps --manifest-path rust/Cargo.toml \ + | jq -r --arg c "$CRATE" '.packages[] | select(.name == $c) | .version') + echo "version=$version" >> "$GITHUB_OUTPUT" + if git diff --quiet; then + echo "changed=false" >> "$GITHUB_OUTPUT" + else + echo "changed=true" >> "$GITHUB_OUTPUT" + .github/scripts/changelog-section.sh "rust/$CRATE/CHANGELOG.md" "$version" > "$RUNNER_TEMP/body.md" + fi + + - name: Open or update the release PR + if: steps.release.outputs.changed == 'true' + uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 + with: + token: ${{ steps.app-token.outputs.token }} + branch: ${{ env.BRANCH }} + base: master + draft: true + title: "chore(${{ matrix.crate }}): release v${{ steps.release.outputs.version }}" + commit-message: "chore(${{ matrix.crate }}): release v${{ steps.release.outputs.version }}" + body-path: ${{ runner.temp }}/body.md + author: ${{ steps.bot.outputs.author }} + committer: ${{ steps.bot.outputs.author }} + + - name: Close a release PR with nothing to release + if: steps.release.outputs.changed == 'false' + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + run: gh pr close "$BRANCH" --delete-branch 2>/dev/null || true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 608cbf78f..8bce757f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,116 +1,404 @@ -name: Release workflow +# This file was autogenerated by dist: https://axodotdev.github.io/cargo-dist +# +# Copyright 2022-2024, axodotdev +# SPDX-License-Identifier: MIT or Apache-2.0 +# +# CI that: +# +# * checks for a Git Tag that looks like a release +# * builds artifacts with dist (archives, installers, hashes) +# * uploads those artifacts to temporary workflow zip +# * on success, uploads the artifacts to a GitHub Release +# +# Note that the GitHub Release will be created with a generated +# title/body based on your changelogs. -on: - release: - types: - - published +name: Release +permissions: + "contents": "write" - workflow_dispatch: +# This task will run whenever you push a git tag that looks like a version +# like "1.0.0", "v0.1.0-prerelease.1", "my-app/0.1.0", "releases/v1.0.0", etc. +# Various formats will be parsed into a VERSION and an optional PACKAGE_NAME, where +# PACKAGE_NAME must be the name of a Cargo package in your workspace, and VERSION +# must be a Cargo-style SemVer Version (must have at least major.minor.patch). +# +# If PACKAGE_NAME is specified, then the announcement will be for that +# package (erroring out if it doesn't have the given version or isn't dist-able). +# +# If PACKAGE_NAME isn't specified, then the announcement will be for all +# (dist-able) packages in the workspace with that version (this mode is +# intended for workspaces with only one dist-able package, or with all dist-able +# packages versioned/released in lockstep). +# +# If you push multiple tags at once, separate instances of this workflow will +# spin up, creating an independent announcement for each one. However, GitHub +# will hard limit this to 3 tags per commit, as it will assume more tags is a +# mistake. +# +# If there's a prerelease-style suffix to the version, then the release(s) +# will be marked as a prerelease. +on: + # hand edit: run the full build only as the release gate for dist crates. + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + push: + # hand edit: only the crates dist builds. Library-only crates release + # through release-crate.yml. + tags: + - 'pact_ffi-v[0-9]+.[0-9]+.[0-9]+*' + - 'pact_verifier_cli-v[0-9]+.[0-9]+.[0-9]+*' jobs: - build-release: - name: build-release (${{ matrix.targets }}) - runs-on: ${{ matrix.operating-system }} + # Run 'dist plan' (or host) to determine what tasks we need to do + plan: + # hand edit: drafts and non-release PRs skip the release build. + if: >- + github.event_name != 'pull_request' + || (!github.event.pull_request.draft + && (github.head_ref == 'release/pact_ffi' || github.head_ref == 'release/pact_verifier_cli')) + runs-on: "ubuntu-22.04" + outputs: + val: ${{ steps.plan.outputs.manifest }} + # hand edit: a release gate builds the release PR's own tag. + tag: ${{ !github.event.pull_request && github.ref_name || steps.pr-tag.outputs.tag }} + tag-flag: ${{ format('--tag={0}', !github.event.pull_request && github.ref_name || steps.pr-tag.outputs.tag) }} + publishing: ${{ !github.event.pull_request }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + submodules: recursive + - name: Install dist + # we specify bash to get pipefail; it guards against the `curl` command + # failing. otherwise `sh` won't catch that `curl` returned non-0 + shell: bash + run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/axodotdev/cargo-dist/releases/download/v0.33.0/cargo-dist-installer.sh | sh" + - name: Cache dist + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 + with: + name: cargo-dist-cache + path: ~/.cargo/bin/dist + # sure would be cool if github gave us proper conditionals... + # so here's a doubly-nested ternary-via-truthiness to try to provide the best possible + # functionality based on whether this is a pull_request, and whether it's from a fork. + # (PRs run on the *source* but secrets are usually on the *target* -- that's *good* + # but also really annoying to build CI around when it needs secrets to work right.) + # hand edit: without a tag, dist plans every dist crate at once and + # refuses crates with unrelated versions. A release PR names its + # crate in its branch, and its manifest holds the version. + - name: Resolve the release PR's tag + id: pr-tag + if: github.event.pull_request + env: + HEAD_REF: ${{ github.head_ref }} + run: | + crate=${HEAD_REF#release/} + version=$(sed -n 's/^version = "\(.*\)"$/\1/p' "rust/$crate/Cargo.toml" | head -1) + echo "tag=$crate-v$version" >> "$GITHUB_OUTPUT" + - id: plan + run: | + dist ${{ (!github.event.pull_request && format('host --steps=create --tag={0}', github.ref_name)) || format('plan --tag={0}', steps.pr-tag.outputs.tag) }} --output-format=json > plan-dist-manifest.json + echo "dist ran successfully" + cat plan-dist-manifest.json + echo "manifest=$(jq -c "." plan-dist-manifest.json)" >> "$GITHUB_OUTPUT" + - name: "Upload dist-manifest.json" + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 + with: + name: artifacts-plan-dist-manifest + path: plan-dist-manifest.json + + # Build and packages all the platform-specific things + build-local-artifacts: + name: build-local-artifacts (${{ join(matrix.targets, ', ') }}) + # Let the initial task tell us to not run (currently very blunt) + needs: + - plan + if: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix.include != null && (needs.plan.outputs.publishing == 'true' || fromJson(needs.plan.outputs.val).ci.github.pr_run_mode == 'upload') }} strategy: - matrix: - include: - - operating-system: ubuntu-22.04 - targets: x86_64-unknown-linux-gnu - - operating-system: ubuntu-22.04 - targets: x86_64-unknown-linux-musl - - operating-system: ubuntu-22.04 - targets: aarch64-unknown-linux-gnu - - operating-system: ubuntu-22.04 - targets: aarch64-unknown-linux-musl - - operating-system: windows-2022 - targets: x86_64-pc-windows-msvc - - operating-system: windows-2022 - targets: aarch64-pc-windows-msvc - - operating-system: macos-15-intel - targets: x86_64-apple-darwin - - operating-system: macos-15 - targets: aarch64-apple-darwin fail-fast: false - + # Target platforms/runners are computed by dist in create-release. + # Each member of the matrix has the following arguments: + # + # - runner: the github runner + # - dist-args: cli flags to pass to dist + # - install-dist: expression to run to install dist on the runner + # + # Typically there will be: + # - 1 "global" task that builds universal installers + # - N "local" tasks that build each platform's binaries and platform-specific installers + matrix: ${{ fromJson(needs.plan.outputs.val).ci.github.artifacts_matrix }} + runs-on: ${{ matrix.runner }} + container: ${{ matrix.container && matrix.container.image || null }} env: - pact_do_not_track: true - + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BUILD_MANIFEST_NAME: target/distrib/${{ join(matrix.targets, '-') }}-dist-manifest.json steps: - - uses: actions/checkout@v4 - - # With no `toolchain` input, the action installs the one pinned in - # rust-toolchain.toml and adds the matrix target to it. - - name: Install release Rust toolchain - uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 - with: - target: ${{ matrix.targets }} - build-warnings: warn - cache: false - - - name: Rust caching - uses: Swatinem/rust-cache@v2 + - name: enable windows longpaths + run: | + git config --global core.longpaths true + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + submodules: recursive + - name: Install Rust non-interactively if not already installed + if: ${{ matrix.container }} + run: | + if ! command -v cargo > /dev/null 2>&1; then + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + echo "$HOME/.cargo/bin" >> $GITHUB_PATH + fi + - name: "Route musl builds through dist-cargo.sh" + if: "contains(join(matrix.targets, ','), 'musl')" + run: | + command -v xz >/dev/null || { apt-get update -q && apt-get install -y -q --no-install-recommends xz-utils; } + script="$GITHUB_WORKSPACE/.github/scripts/dist-cargo.sh" + bin="$RUNNER_TEMP/dist-cargo-bin" + mkdir -p "$bin" + printf '#!/bin/sh\nexec "%s" "$@"\n' "$script" > "$bin/cargo-zigbuild" + chmod +x "$bin/cargo-zigbuild" + echo "$bin" >> "$GITHUB_PATH" + echo "CARGO=$script" >> "$GITHUB_ENV" + shell: "bash" + - uses: swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 with: - workspaces: rust - key: ${{ matrix.targets }} + key: ${{ join(matrix.targets, '-') }} + cache-provider: ${{ matrix.cache_provider }} + - name: Install dist + run: ${{ matrix.install_dist.run }} + # Get the dist-manifest + - name: Fetch local artifacts + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 + with: + pattern: artifacts-* + path: target/distrib/ + merge-multiple: true + - name: Install dependencies + run: | + ${{ matrix.packages_install }} + - name: Build artifacts + run: | + # Actually do builds and make zips and whatnot + dist build ${{ needs.plan.outputs.tag-flag }} --print=linkage --output-format=json ${{ matrix.dist_args }} > dist-manifest.json + echo "dist ran successfully" + - id: cargo-dist + name: Post-build + # We force bash here just because github makes it really hard to get values up + # to "real" actions without writing to env-vars, and writing to env-vars has + # inconsistent syntax between shell and powershell. + shell: bash + run: | + # Parse out what we just built and upload it to scratch storage + echo "paths<<EOF" >> "$GITHUB_OUTPUT" + dist print-upload-files-from-manifest --manifest dist-manifest.json >> "$GITHUB_OUTPUT" + echo "EOF" >> "$GITHUB_OUTPUT" - - name: Set up QEMU - if: runner.os == 'Linux' - uses: docker/setup-qemu-action@v3 + cp dist-manifest.json "$BUILD_MANIFEST_NAME" + - name: "Upload artifacts" + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 + with: + name: artifacts-build-local-${{ join(matrix.targets, '_') }} + path: | + ${{ steps.cargo-dist.outputs.paths }} + ${{ env.BUILD_MANIFEST_NAME }} - - name: Set up Docker Buildx - if: runner.os == 'Linux' - uses: docker/setup-buildx-action@v3 + # hand edit: one check for branch protection to require. The build jobs + # are skipped on other PRs, and a target's failure skips the jobs after + # it; a skipped required check counts as passing. + gate: + name: Release gate complete + if: always() + needs: + - plan + - build-local-artifacts + - build-global-artifacts + - custom-check-artifacts + runs-on: "ubuntu-22.04" + steps: + - name: Fail if any job failed + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: exit 1 - - name: Platform abbreviation - id: platform-abbreviation + # Build and package all the platform-agnostic(ish) things + build-global-artifacts: + needs: + - plan + - build-local-artifacts + runs-on: "ubuntu-22.04" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BUILD_MANIFEST_NAME: target/distrib/global-dist-manifest.json + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + submodules: recursive + - name: Install cached dist + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 + with: + name: cargo-dist-cache + path: ~/.cargo/bin/ + - run: chmod +x ~/.cargo/bin/dist + # Get all the local artifacts for the global tasks to use (for e.g. checksums) + - name: Fetch local artifacts + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 + with: + pattern: artifacts-* + path: target/distrib/ + merge-multiple: true + - id: cargo-dist shell: bash run: | - if [[ "${{ runner.os }}" = "Linux" ]]; then - echo "platform=linux" >> "$GITHUB_OUTPUT" - elif [[ "${{ runner.os }}" = "Windows" ]]; then - echo "platform=win" >> "$GITHUB_OUTPUT" - elif [[ "${{ runner.os }}" = "macOS" ]]; then - echo "platform=macos" >> "$GITHUB_OUTPUT" - else - echo "Unknown platform" - exit 1 - fi + dist build ${{ needs.plan.outputs.tag-flag }} --output-format=json "--artifacts=global" > dist-manifest.json + echo "dist ran successfully" - - name: Cargo flags - id: cargo-flags - shell: bash - run: | - echo "flags=--release" >> "$GITHUB_OUTPUT" + # Parse out what we just built and upload it to scratch storage + echo "paths<<EOF" >> "$GITHUB_OUTPUT" + jq --raw-output ".upload_files[]" dist-manifest.json >> "$GITHUB_OUTPUT" + echo "EOF" >> "$GITHUB_OUTPUT" + + cp dist-manifest.json "$BUILD_MANIFEST_NAME" + - name: "Upload artifacts" + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 + with: + name: artifacts-build-global + path: | + ${{ steps.cargo-dist.outputs.paths }} + ${{ env.BUILD_MANIFEST_NAME }} - - name: Build verifier CLI - if: | - github.event_name == 'push' || - github.event_name == 'pull_request' || - github.event_name == 'workflow_dispatch' || - startsWith(github.ref, 'refs/tags/pact_verifier_cli') + custom-check-artifacts: + needs: + - plan + - build-local-artifacts + uses: ./.github/workflows/check-artifacts.yml + with: + plan: ${{ needs.plan.outputs.val }} + secrets: inherit + permissions: + "contents": "read" + # Determines if we should publish/announce + host: + needs: + - plan + - build-local-artifacts + - build-global-artifacts + - custom-check-artifacts + # Only run if we're "publishing", and only if plan, local and global didn't fail (skipped is fine) + if: ${{ always() && needs.plan.result == 'success' && needs.plan.outputs.publishing == 'true' && (needs.build-global-artifacts.result == 'skipped' || needs.build-global-artifacts.result == 'success') && (needs.custom-check-artifacts.result == 'skipped' || needs.custom-check-artifacts.result == 'success') && (needs.build-local-artifacts.result == 'skipped' || needs.build-local-artifacts.result == 'success') }} + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + runs-on: "ubuntu-22.04" + outputs: + val: ${{ steps.host.outputs.manifest }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + submodules: recursive + - name: Install cached dist + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 + with: + name: cargo-dist-cache + path: ~/.cargo/bin/ + - run: chmod +x ~/.cargo/bin/dist + # Fetch artifacts from scratch-storage + - name: Fetch artifacts + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 + with: + pattern: artifacts-* + path: target/distrib/ + merge-multiple: true + # This is a harmless no-op for GitHub Releases, hosting for that happens in "announce" + - id: host shell: bash run: | - ./release-${{ steps.platform-abbreviation.outputs.platform }}.sh ${{ matrix.targets }} \ - ${{ steps.cargo-flags.outputs.flags }} - working-directory: rust/pact_verifier_cli + dist host ${{ needs.plan.outputs.tag-flag }} --steps=upload --steps=release --output-format=json > dist-manifest.json + echo "artifacts uploaded and released successfully" + cat dist-manifest.json + echo "manifest=$(jq -c "." dist-manifest.json)" >> "$GITHUB_OUTPUT" + - name: "Upload dist-manifest.json" + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 + with: + # Overwrite the previous copy + name: artifacts-dist-manifest + path: dist-manifest.json - - name: Build FFI library - if: | - github.event_name == 'push' || - github.event_name == 'pull_request' || - github.event_name == 'workflow_dispatch' || - startsWith(github.ref, 'refs/tags/libpact_ffi') - shell: bash + custom-publish-crate: + needs: + - plan + - host + if: ${{ !fromJson(needs.plan.outputs.val).announcement_is_prerelease || fromJson(needs.plan.outputs.val).publish_prereleases }} + uses: ./.github/workflows/publish-crate.yml + with: + plan: ${{ needs.plan.outputs.val }} + secrets: inherit + # publish jobs get escalated permissions + permissions: + "contents": "read" + "id-token": "write" + + # Create a GitHub Release while uploading all files to it + announce: + needs: + - plan + - host + - custom-publish-crate + # use "always() && ..." to allow us to wait for all publish jobs while + # still allowing individual publish jobs to skip themselves (for prereleases). + # "host" however must run to completion, no skipping allowed! + if: ${{ always() && needs.host.result == 'success' && (needs.custom-publish-crate.result == 'skipped' || needs.custom-publish-crate.result == 'success') }} + runs-on: "ubuntu-22.04" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + submodules: recursive + # Create a GitHub Release while uploading all files to it + - name: "Download GitHub Artifacts" + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 + with: + pattern: artifacts-* + path: artifacts + merge-multiple: true + - name: Cleanup run: | - ./release-${{ steps.platform-abbreviation.outputs.platform }}.sh ${{ matrix.targets }} \ - ${{ steps.cargo-flags.outputs.flags }} - working-directory: rust/pact_ffi + # Remove the granular manifests + rm -f artifacts/*-dist-manifest.json + - name: Create GitHub Release + env: + PRERELEASE_FLAG: "${{ fromJson(needs.host.outputs.val).announcement_is_prerelease && '--prerelease' || '' }}" + ANNOUNCEMENT_TITLE: "${{ fromJson(needs.host.outputs.val).announcement_title }}" + ANNOUNCEMENT_BODY: "${{ fromJson(needs.host.outputs.val).announcement_github_body }}" + RELEASE_COMMIT: "${{ github.sha }}" + run: | + # Write and read notes from a file to avoid quoting breaking things + echo "$ANNOUNCEMENT_BODY" > $RUNNER_TEMP/notes.txt + + gh release create "${{ needs.plan.outputs.tag }}" --target "$RELEASE_COMMIT" $PRERELEASE_FLAG --title "$ANNOUNCEMENT_TITLE" --notes-file "$RUNNER_TEMP/notes.txt" artifacts/* + + custom-legacy-artifacts: + needs: + - plan + - announce + uses: ./.github/workflows/legacy-artifacts.yml + with: + plan: ${{ needs.plan.outputs.val }} + secrets: inherit + permissions: + "contents": "write" - - name: Upload Release Assets - if: ${{ github.event_name == 'release' }} - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: rust/release_artifacts/* - file_glob: true - tag: ${{ github.ref }} + custom-publish-containers: + needs: + - plan + - announce + uses: ./.github/workflows/publish-containers.yml + with: + plan: ${{ needs.plan.outputs.val }} + secrets: inherit + permissions: + "contents": "read" + "packages": "write" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7a1cca3f9..4db8b642a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,7 @@ jobs: - features - wasm - clippy + - release-deps runs-on: ubuntu-latest steps: - name: Fail if any job failed @@ -92,9 +93,9 @@ jobs: - name: Install tools uses: jdx/mise-action@08ae2a091c038e1e05ec6f5115dc5c69d5a2a6b8 # v5.1.2 + timeout-minutes: 3 with: working_directory: ${{ env.WORKSPACE_ROOT }} - install_args: aqua:nextest-rs/nextest/cargo-nextest cache_save: ${{ github.ref == 'refs/heads/master' }} - name: Run tests @@ -213,13 +214,11 @@ jobs: - name: Install nightly for cbindgen run: rustup toolchain install nightly --profile minimal - # mise's `cargo:` backend requires mise's own `rust` tool, which resolves - # to the toolchain already installed from rust-toolchain.toml. - name: Install tools uses: jdx/mise-action@08ae2a091c038e1e05ec6f5115dc5c69d5a2a6b8 # v5.1.2 + timeout-minutes: 3 with: working_directory: ${{ env.WORKSPACE_ROOT }} - install_args: rust aqua:cargo-bins/cargo-binstall cargo:cbindgen just cache_save: ${{ github.ref == 'refs/heads/master' }} - name: Install Conan @@ -308,8 +307,8 @@ jobs: - name: Install tools uses: jdx/mise-action@08ae2a091c038e1e05ec6f5115dc5c69d5a2a6b8 # v5.1.2 + timeout-minutes: 3 with: - install_args: github:taiki-e/cargo-hack cache_save: ${{ github.ref == 'refs/heads/master' }} - name: Check each feature @@ -360,3 +359,38 @@ jobs: - name: Run clippy working-directory: rust run: cargo clippy + + # MARK: Release PRs + + release-deps: + name: Release dependencies + if: github.event_name == 'pull_request' && startsWith(github.head_ref, 'release/') + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Install Rust + uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0 + with: + build-warnings: warn + cache: false + + # Packaging resolves the crate's siblings on crates.io, without the + # workspace's path and patch overrides, so a requirement on an + # unreleased sibling version fails here, in seconds, before any build. + - name: Check workspace dependencies are released + working-directory: rust + env: + HEAD_REF: ${{ github.head_ref }} + run: cargo package -p "${HEAD_REF#release/}" --locked --no-verify + + # Builds the crate as crates.io will, against those released versions. + # A crate using a sibling's unreleased code fails here, not after its + # tag. + - name: Package against released dependencies + if: ${{ !github.event.pull_request.draft }} + working-directory: rust + env: + HEAD_REF: ${{ github.head_ref }} + run: cargo package -p "${HEAD_REF#release/}" --locked diff --git a/CLAUDE.md b/CLAUDE.md index ae8f5c476..6aa504598 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -53,15 +53,6 @@ cargo build --release cargo build --target wasm32-wasip2 ``` -### Cross-compilation / MUSL static builds - -```bash -docker run --rm --user "$(id -u)":"$(id -g)" \ - -v $(pwd):/workspace -w /workspace/rust \ - -t -e TZ=UTC pactfoundation/rust-musl-build \ - ./scripts/ci-musl-build.sh -``` - ## Crate Architecture The dependency graph flows upward โ€” each layer depends on those below it: @@ -114,4 +105,4 @@ BDD-style integration tests covering V1โ€“V4 spec compliance live in `/compatibi ## Releasing -Each crate has a `release.groovy` script that guides the release process and updates changelogs. Releases are published to [crates.io](https://crates.io) and tagged on GitHub. CI builds attach platform binaries to each GH release. +See RELEASING.md: per-crate draft release PRs (release-plz), tags `<crate>-v<version>`, dist builds, crates.io trusted publishing. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8c3c4e9ca..8b16a584a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,12 +64,4 @@ Plain `cargo test` also runs the whole suite, doctests included. ### Releasing -The released libraries for each module are built by a GH action that attaches the libraries to the GH release for each -crate. To release a crate, run the `release.groovy` script in the crate directory. This will guide you through the -release process for the crate. Then create a GH release using the tag and changelog created by the script. - -To be able to release a component, you need to: -1. Have an account on [crates.io](crates.io). Go to that site, and select "Log in with GitHub". It will auto-create your user account. -2. Get a maintainer to invite you to the crate for the component. -3. Accept the invite on crates.io. This will allow you to release the Rust crate to crates.io. -4. \ No newline at end of file +See [RELEASING.md](RELEASING.md). diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 000000000..75ac527b0 --- /dev/null +++ b/RELEASING.md @@ -0,0 +1,151 @@ +# Releasing + +Each crate releases independently through its own pull request. + +## Release pull requests + +On every push to `master`, the Release PR workflow keeps one draft pull request per crate with unreleased changes, on branch `release/<crate>`. Each one bumps the crate's version and adds a changelog section generated from the conventional commits since its last release. + +To release a crate: + +1. Review the draft `release/<crate>` pull request. Edit the version or changelog on its branch if needed. Once anyone pushes to it, the bot stops regenerating it; close it to get a fresh one. +2. Mark it ready for review. The full test suite runs. For `pact_ffi` and `pact_verifier_cli`, the release build for all eight targets runs too, and checks the C library each Linux artifact links against. +3. Merge it. + +A release pull request cannot merge while it requires a workspace crate version that is not yet released; release that crate first. + +## After merge + +1. The merge commit is tagged `<crate>-v<version>`. +2. The tag starts the release workflow: + 1. `pact_ffi` and `pact_verifier_cli` build with dist. + 2. The crate is published to crates.io through trusted publishing. + 3. A GitHub release is created with the changelog section and any artifacts. +3. After a `pact_verifier_cli` release, the `pactfoundation/pact-verifier` image is pushed to Docker Hub and GHCR. + +## Legacy asset names + +Each `pact_ffi` release is mirrored to a `libpact_ffi-v<version>` release that carries the pre-dist asset names. Each `pact_verifier_cli` release also carries `pact-verifier-<os>-<arch>.gz`. + +These names are published until the legacy cut-off date set in `.github/scripts/legacy-artifacts.sh`. After that date, delete the legacy sections of this file, along with the other files that script lists. + +## Recovering a release + +Each step of a release can also be run by hand. Run these commands from the repository root, with tags fetched (`git fetch --tags origin`) and the tools from `mise.toml` installed (`mise install`). Each step names the credentials it needs. + +### Re-run failed jobs + +Most failures are transient, or are fixed outside the repository, e.g. a missing trusted publisher. Re-run only the failed jobs of the tag's release workflow: + +```sh +gh run rerun <run id> --failed +``` + +Publishing skips a version already on crates.io. Don't re-run the whole workflow: release creation fails once the GitHub release exists. + +If `announce` created the GitHub release but failed while uploading to it, re-running it fails on the existing release. Upload the run's archives by hand instead, then run the legacy and container steps below. This needs write access to releases. + +```sh +gh run download <run id> -p 'artifacts-*' -D artifacts +find artifacts -type f ! -name '*-dist-manifest.json' -exec gh release upload <crate>-v<version> --clobber {} + +``` + +### Release again after a failed release + +A tag whose release can never succeed, e.g. one that needs a code fix, blocks its crate. While the tagged version is missing from crates.io, the Release PR workflow skips that crate. Deleting the tag doesn't help: the next push to `master` would tag the same version again. + +Release the next version instead, from a release pull request opened by hand. It needs push access to the repository. + +```sh +git switch -c release/<crate> origin/master +cd rust +release-plz set-version <crate>@<next version> --config release-plz.toml +cd .. +git commit -am "chore(<crate>): release v<next version>" +git push --force origin release/<crate> +gh pr create --draft --base master --head release/<crate> \ + --title "chore(<crate>): release v<next version>" \ + --body-file <(.github/scripts/changelog-section.sh rust/<crate>/CHANGELOG.md <next version>) +``` + +`set-version` must run from `rust/`, where the changelog paths in `release-plz.toml` resolve. It bumps the version in the crate's `Cargo.toml` and in `Cargo.lock`, and retitles the newest changelog section, which is the failed release's section. Add the fix's changelog entry to that section by hand. The bot never regenerates a release pull request that has commits from people. The failed version's tag stays, and no release ever ships under it. + +If the Release PR workflow can't run at all, e.g. while the bot App is unavailable, open the pull request the same way, with `release-plz update -p <crate> --manifest-path rust/Cargo.toml --config rust/release-plz.toml` in place of `set-version`. It computes the version and the changelog from the commits since the last release. + +### Tag a merged release + +The Release PR workflow tags each version with no tag. If its `tag` job fails, re-run it, or tag by hand. This needs push access to tags. + +```sh +.github/scripts/tag-releases.sh rust/Cargo.toml origin +``` + +The script tags the commit that set each untagged version, and refuses a version that is already on crates.io. A tag pushed with your own credentials starts the release workflow, as the bot's does. + +### Publish to crates.io + +Trusted publishing works only from the release workflows. To publish by hand, you need an owner's crates.io API token with the `publish-update` scope. + +```sh +git switch --detach <crate>-v<version> +cargo login +cargo publish --manifest-path rust/Cargo.toml -p <crate> --locked +``` + +Then re-run the failed jobs of the tag's release workflow. Its publish job skips the version, and the GitHub release follows. + +### Create a library crate's GitHub release + +For `pact_models`, `pact_matching`, `pact_consumer` and `pact_verifier`, the GitHub release carries only the changelog section. This needs write access to releases. + +```sh +.github/scripts/changelog-section.sh rust/<crate>/CHANGELOG.md <version> > notes.md +gh release create <crate>-v<version> --verify-tag --title "<crate> <version>" --notes-file notes.md +``` + +The `pact_ffi` and `pact_verifier_cli` releases carry the archives built by the release workflow, and only that workflow builds every target. Re-run its failed jobs. + +### Publish legacy asset names + +If the release workflow's legacy job failed, re-run it. When the fix is a change to the legacy scripts, run the Legacy artifacts workflow with the release tag instead. It runs the scripts from `master`, while a re-run uses the tagged commit's. + +```sh +gh workflow run legacy-artifacts.yml -f tag=<crate>-v<version> +``` + +To build and upload them locally instead, you need write access to releases and LLVM: + +```sh +GITHUB_REPOSITORY=pact-foundation/pact-reference .github/scripts/legacy-artifacts.sh <crate>-v<version> out + +# pact_ffi: a separate release, never marked latest. +gh release create libpact_ffi-v<version> --target "$(git rev-parse 'pact_ffi-v<version>^{commit}')" \ + --latest=false --title "pact_ffi <version> (legacy asset names)" \ + --notes "Legacy-named assets for pact_ffi-v<version>." out/* + +# pact_verifier_cli: the release's own assets. +gh release upload pact_verifier_cli-v<version> --clobber out/* +``` + +### Publish the container image + +Run the Publish containers workflow with the version: + +```sh +gh workflow run publish-containers.yml -f version=<version> +``` + +To push locally instead, log in to Docker Hub with push access to `pactfoundation/pact-verifier`, and to GHCR with a token that has the `write:packages` scope. The image downloads the musl binaries from the `pact_verifier_cli-v<version>` release, so that release must exist. Building both platforms needs a buildx builder that supports them, e.g. one made with `docker buildx create --use`. + +```sh +docker login +docker login ghcr.io +docker buildx build rust/pact_verifier_cli \ + --platform linux/amd64,linux/arm64 \ + --build-arg VERSION=<version> \ + --tag pactfoundation/pact-verifier:<version> \ + --tag pactfoundation/pact-verifier:latest \ + --tag ghcr.io/pact-foundation/pact-verifier:<version> \ + --tag ghcr.io/pact-foundation/pact-verifier:latest \ + --push +``` diff --git a/dist-workspace.toml b/dist-workspace.toml new file mode 100644 index 000000000..6b0a97f86 --- /dev/null +++ b/dist-workspace.toml @@ -0,0 +1,80 @@ +[workspace] +members = ["cargo:rust"] + +[dist] +cargo-dist-version = "0.33.0" +ci = "github" +installers = [] +dist = false +targets = [ + "aarch64-apple-darwin", + "aarch64-pc-windows-msvc", + "aarch64-unknown-linux-gnu", + "aarch64-unknown-linux-musl", + "x86_64-apple-darwin", + "x86_64-pc-windows-msvc", + "x86_64-unknown-linux-gnu", + "x86_64-unknown-linux-musl", +] +# Link the MSVC runtime dynamically, as releases always have; consumers of +# the static library build against the same runtime. +msvc-crt-static = false +# Build each crate in its own cargo invocation: pact_ffi and the CLI need +# different musl CRT linkage (see .github/scripts/dist-cargo.sh). +precise-builds = true +# The release workflow carries hand edits for what dist has no setting +# for; see the comments marked `hand edit` in .github/workflows/release.yml. +allow-dirty = ["ci"] +pr-run-mode = "upload" +# The GitHub release follows the crates.io publish, so a failed publish +# leaves no release behind. +github-release = "announce" +global-artifacts-jobs = ["./check-artifacts"] +publish-jobs = ["./publish-crate"] +post-announce-jobs = ["./legacy-artifacts", "./publish-containers"] +github-build-setup = "../build-setup.yml" + +[dist.github-custom-job-permissions] +check-artifacts = { contents = "read" } +publish-crate = { contents = "read", id-token = "write" } +legacy-artifacts = { contents = "write" } +publish-containers = { contents = "read", packages = "write" } + +[dist.github-custom-runners] +x86_64-apple-darwin = "macos-15-intel" +aarch64-apple-darwin = "macos-15" +# dist would cross-compile this with cargo-xwin on Linux; releases have +# always built it with MSVC on Windows. +aarch64-pc-windows-msvc = "windows-2022" + +# Linux builds run in containers to fix what the libraries link against: +# - gnu: manylinux_2_28 (AlmaLinux 8) sets a glibc 2.28 floor, the oldest +# glibc among supported major distributions (RHEL 8 and its rebuilds). +# - musl: cross-rs's musl toolchains on x64 runners. Built on a glibc host, +# a musl cdylib would link glibc; and GitHub's JavaScript actions have no +# Alpine Node for arm64 runners. +[dist.github-custom-runners.x86_64-unknown-linux-gnu] +runner = "ubuntu-24.04" +container.image = "quay.io/pypa/manylinux_2_28_x86_64:2026.10.10-1@sha256:4131ddd7acb9c6c966af02fe7e71edc51e078c2d41f475966697676430bfa2ae" +container.host = "x86_64-unknown-linux-gnu" + +[dist.github-custom-runners.aarch64-unknown-linux-gnu] +runner = "ubuntu-24.04-arm" +container.image = "quay.io/pypa/manylinux_2_28_aarch64:2026.10.10-1@sha256:abd1230aa9e4058a74b89d27cd14ba18c0db036d7bfe6e6f219a29ea63c24eb6" +container.host = "aarch64-unknown-linux-gnu" + +[dist.github-custom-runners.x86_64-unknown-linux-musl] +runner = "ubuntu-24.04" +container.image = "ghcr.io/cross-rs/x86_64-unknown-linux-musl@sha256:0e3f9c34e663a9985ea26f569ec1f886334ce805dd6c7d72177e52f7b324ecac" +container.host = "x86_64-unknown-linux-gnu" + +[dist.github-custom-runners.aarch64-unknown-linux-musl] +runner = "ubuntu-24.04" +container.image = "ghcr.io/cross-rs/aarch64-unknown-linux-musl@sha256:4c29b5c7d0baf7d069dc48f0187f02c35e7a9df6f0f6a2b528400c6addb6a0cb" +container.host = "x86_64-unknown-linux-gnu" + +[dist.github-action-commits] +"actions/checkout" = "3d3c42e5aac5ba805825da76410c181273ba90b1" # v7.0.1 +"actions/upload-artifact" = "cf430e030ddbb5b0abf93d22962f4752f3646cd9" # v7.0.2 +"actions/download-artifact" = "9000827ccba6bdab643e8b6fd33ac0654aef8333" # v8.0.2 +"swatinem/rust-cache" = "6323deb102c322ba6fcbdcafc7e3dddab59af2b6" # v2.9.2 diff --git a/mise.toml b/mise.toml index 40eab52a4..5dc0cd5bd 100644 --- a/mise.toml +++ b/mise.toml @@ -2,9 +2,12 @@ # Development tooling. Rust itself is read from `rust-toolchain.toml`. [tools] +"aqua:axodotdev/cargo-dist" = "0.33.0" "aqua:cargo-bins/cargo-binstall" = "1.23.0" "aqua:nextest-rs/nextest/cargo-nextest" = "0.9.148" +"aqua:release-plz/release-plz" = "0.3.172" "cargo:cbindgen" = "0.29.4" +"github:obi1kenobi/cargo-semver-checks" = "0.51.0" "github:taiki-e/cargo-hack" = "0.6.45" just = "1.59.0" diff --git a/rust/.dockerignore b/rust/.dockerignore deleted file mode 100644 index cd9a84dc3..000000000 --- a/rust/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!target/x86_64-unknown-linux-musl/release/* diff --git a/rust/Cargo.lock b/rust/Cargo.lock index fd80a28dd..851bc273b 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -2880,7 +2880,7 @@ dependencies = [ [[package]] name = "pact_consumer" -version = "1.4.11" +version = "1.4.10" dependencies = [ "anyhow", "async-trait", @@ -2915,7 +2915,7 @@ dependencies = [ [[package]] name = "pact_ffi" -version = "0.5.12" +version = "0.5.11" dependencies = [ "ansi_term", "anyhow", @@ -2965,7 +2965,7 @@ dependencies = [ [[package]] name = "pact_matching" -version = "2.0.12" +version = "2.0.11" dependencies = [ "ansi_term", "anyhow", @@ -3049,7 +3049,7 @@ dependencies = [ [[package]] name = "pact_models" -version = "1.3.17" +version = "1.3.16" dependencies = [ "anyhow", "ariadne", @@ -3097,7 +3097,7 @@ dependencies = [ [[package]] name = "pact_verifier" -version = "1.4.8" +version = "1.4.7" dependencies = [ "ansi_term", "anyhow", @@ -3145,7 +3145,7 @@ dependencies = [ [[package]] name = "pact_verifier_cli" -version = "1.3.6" +version = "1.3.5" dependencies = [ "ansi_term", "anyhow", diff --git a/rust/Cargo.toml b/rust/Cargo.toml index eeb72f740..8778eb340 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -11,7 +11,7 @@ resolver = "2" [patch.crates-io] # Issue 389 - Pull change into other crates pact_models = { path = "./pact_models" } -pact_matching = { version = "~2.0.11", path = "./pact_matching" } +pact_matching = { path = "./pact_matching" } # Track unreleased changes in the crates this workspace depends on but doesn't own, so the whole # chain can be built and tested together before any of them are published to crates.io. pact-plugin-driver = { git = "https://github.com/pact-foundation/pact-plugins.git" } @@ -22,6 +22,9 @@ strip = true opt-level = "z" codegen-units = 1 +[profile.dist] +inherits = "release" + # Release-speed optimisations with debug symbols retained โ€” for flamegraph/perf. [profile.profiling] inherits = "release" diff --git a/rust/Cross.toml b/rust/Cross.toml deleted file mode 100644 index 59a7177d4..000000000 --- a/rust/Cross.toml +++ /dev/null @@ -1,12 +0,0 @@ -[target.x86_64-unknown-linux-gnu] -pre-build=[ - "apt-get update && apt-get install --assume-yes wget unzip", - "wget https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip", - "unzip protoc-21.5-linux-x86_64.zip -d /usr/local/" -] -[target.aarch64-unknown-linux-gnu] -pre-build=[ - "dpkg --add-architecture arm64 && apt-get update && apt-get install --assume-yes wget unzip", - "wget https://github.com/protocolbuffers/protobuf/releases/download/v21.5/protoc-21.5-linux-x86_64.zip", - "unzip protoc-21.5-linux-x86_64.zip -d /usr/local/" -] diff --git a/rust/Dockerfile.musl-build b/rust/Dockerfile.musl-build deleted file mode 100644 index 1326f4fb4..000000000 --- a/rust/Dockerfile.musl-build +++ /dev/null @@ -1,6 +0,0 @@ -FROM rust:1-alpine - -RUN apk --no-cache add bash musl-dev openssl-dev shared-mime-info sudo protobuf protobuf-dev tzdata zlib-dev -RUN rustup component add rustfmt - -ENTRYPOINT ["/bin/bash"] diff --git a/rust/README.md b/rust/README.md index 3d75becf9..836b19145 100644 --- a/rust/README.md +++ b/rust/README.md @@ -94,9 +94,7 @@ This will compile all the libraries and put the generated files in `rust/target/ ### Releasing -The released libraries for each module are built by a GH action that attaches the libraries to the GH release for each -crate. To release a crate, run the `release.groovy` script in the crate directory. This will guide you through the -release process for the crate. Then create a GH release using the tag and changelog created by the script. +See [RELEASING.md](../RELEASING.md). ## Contributing diff --git a/rust/pact_consumer/CHANGELOG.md b/rust/pact_consumer/CHANGELOG.md index 97d9564f3..d93f5f2d6 100644 --- a/rust/pact_consumer/CHANGELOG.md +++ b/rust/pact_consumer/CHANGELOG.md @@ -1,6 +1,6 @@ -To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD .` replacing TAGNAME and HEAD as appropriate. +# Changelog -# 1.4.10 - Support matching rules and generators from plugins +## 1.4.10 - Support matching rules and generators from plugins * a5e557e5 - chore: Update pact_mock_server to 2.2.5 (Ronald Holshausen, Fri Aug 7 09:52:09 2026 +1000) * 64fcc4ba - Revert "update changelog for release 1.4.10 [skip ci]" (Ronald Holshausen, Fri Aug 7 09:22:45 2026 +1000) @@ -14,17 +14,17 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1d8bfcbf - chore(pact-consumer): Remove default rustls features (Ronald Holshausen, Wed Aug 5 09:18:18 2026 +1000) * d4f4bccf - bump version to 1.4.10 [skip ci] (Ronald Holshausen, Tue Aug 4 15:51:35 2026 +1000) -# 1.4.9 - Bugfix Release +## 1.4.9 - Bugfix Release * f4e1fab7 - fix(pact-consumer): do not panic if the DSL builder can not set the default crypto provider (Ronald Holshausen, Tue Aug 4 15:18:39 2026 +1000) * 1bb2ec54 - bump version to 1.4.9 [skip ci] (Ronald Holshausen, Tue Aug 4 15:11:06 2026 +1000) -# 1.4.8 - Maintenance Release +## 1.4.8 - Maintenance Release * 43b53503 - chore(pact-consumer): Set the crypto provider in the DSL Builder if it has not already been set (Ronald Holshausen, Tue Aug 4 15:08:15 2026 +1000) * 6ab82882 - bump version to 1.4.8 [skip ci] (Ronald Holshausen, Tue Aug 4 11:29:45 2026 +1000) -# 1.4.7 - Maintenance Release +## 1.4.7 - Maintenance Release * 1ea32b09 - chore(pact-consumer): Update all dependencies and set rustls-no-provider feature (Ronald Holshausen, Tue Aug 4 11:01:03 2026 +1000) * 2fdb4e8f - chore: Update pact_mock_server to 2.2.4 (Ronald Holshausen, Tue Aug 4 10:47:47 2026 +1000) @@ -33,7 +33,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0904b3d3 - chore: Update pact_models to 1.3.13 (Ronald Holshausen, Mon Aug 3 17:16:00 2026 +1000) * 8db5b93f - bump version to 1.4.7 [skip ci] (Ronald Holshausen, Fri Jul 31 09:23:49 2026 +1000) -# 1.4.6 - Maintenance Release +## 1.4.6 - Maintenance Release * dae8ec0e - chore: Update pact_mock_server to 2.0.8 (Ronald Holshausen, Thu Jul 30 17:26:10 2026 +1000) * 03c48b5f - Revert "update changelog for release 1.4.6 [skip ci]" (Ronald Holshausen, Thu Jul 30 17:08:10 2026 +1000) @@ -45,7 +45,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 51d9f5fb - chore: Update pact-plugin-driver to 1.0.0-beta.6 (Ronald Holshausen, Thu Jul 2 17:08:12 2026 +1000) * 1049fd81 - bump version to 1.4.6 [skip ci] (Ronald Holshausen, Wed Jun 24 15:06:25 2026 +1000) -# 1.4.5 - V2 plugin logging improvements +## 1.4.5 - V2 plugin logging improvements * 0e529d39 - chore(pact-consumer): Update release script [skip ci] (Ronald Holshausen, Wed Jun 24 15:04:10 2026 +1000) * fb8a0a95 - chore: Update pact_matching to 2.0.7 (Ronald Holshausen, Wed Jun 24 15:01:51 2026 +1000) @@ -54,7 +54,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 46a285ae - chore: Update pact_models to 1.3.11 (Ronald Holshausen, Thu Jun 18 16:00:45 2026 +1000) * fda61fb6 - bump version to 1.4.5 (Ronald Holshausen, Tue Jun 9 15:30:20 2026 +1000) -# 1.4.4 - Support V2 plugins +## 1.4.4 - Support V2 plugins * 50fb5a6f - chore: Update pact_matching to 2.0.5 and pact_mock_server to 2.2.2 (Ronald Holshausen, Tue Jun 9 15:20:14 2026 +1000) * 8ec724bb - chore: Update pact-plugin-driver to 1.0.0-beta.2 to support V2 plugins (Ronald Holshausen, Tue Jun 9 14:49:40 2026 +1000) @@ -63,7 +63,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 27c4aa20 - chore: Update pact_models to 1.3.10 (Ronald Holshausen, Wed Apr 29 17:20:36 2026 +1000) * 42883d68 - bump version to 1.4.4 (Ronald Holshausen, Wed Apr 29 17:09:59 2026 +1000) -# 1.4.3 - Maintenance Release +## 1.4.3 - Maintenance Release * 9cf0855e - chore(pact_consumer): Correct doc comment (Ronald Holshausen, Tue Apr 28 16:08:01 2026 +1000) * e427d2b6 - chore(pact_consumer): Correct the signature of the new reference functions (Ronald Holshausen, Tue Apr 28 16:06:49 2026 +1000) @@ -80,7 +80,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * eaaee9de - chore: Upgrade pact_models to 1.3.7 (Ronald Holshausen, Tue Sep 16 13:57:37 2025 +1000) * 868379d8 - bump version to 1.4.3 (Ronald Holshausen, Fri Aug 1 09:36:59 2025 +1000) -# 1.4.2 - Maintenance Release +## 1.4.2 - Maintenance Release * a77b53c8 - chore: Update pact_matching to 2.0.1 (Ronald Holshausen, Fri Aug 1 09:16:28 2025 +1000) * 52f5e243 - Chore: Update pact_mock_server to 2.1.3 (Ronald Holshausen, Thu Jul 31 15:43:54 2025 +1000) @@ -92,7 +92,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 5371ee6f - chore(pact_verifier): Update pact_consumer to 1.4.1 (Ronald Holshausen, Wed Jun 11 16:29:07 2025 +1000) * 6c009917 - bump version to 1.4.2 (Ronald Holshausen, Wed Jun 11 16:25:26 2025 +1000) -# 1.4.1 - Maintenance Release +## 1.4.1 - Maintenance Release * 76530c4a - chore(pact_consumer): Update dependencies (Ronald Holshausen, Wed Jun 11 16:22:05 2025 +1000) * 8dd1502a - chore(pact_consumer): Update pact_mock_server to 2.1.1 (Ronald Holshausen, Wed Jun 11 16:16:06 2025 +1000) @@ -103,7 +103,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 372ee77c - chore: correct release script (Ronald Holshausen, Wed May 21 14:55:20 2025 +1000) * 720bd04a - bump version to 1.4.1 (Ronald Holshausen, Wed May 21 14:54:53 2025 +1000) -# 1.4.0 - Update to Rust 2024 and pact_matching 2.0.0-beta +## 1.4.0 - Update to Rust 2024 and pact_matching 2.0.0-beta * 60afbe95 - chore(pact_consumer): Update crate to Rust 2024 edition (Ronald Holshausen, Wed May 21 14:49:18 2025 +1000) * 71b1b7ed - chore(pact_consumer): Update pact_mock_server to 2.1.0 (Ronald Holshausen, Wed May 21 14:44:21 2025 +1000) @@ -127,14 +127,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 11cd9dc0 - Merge branch 'master' into feat/matching-engine-v2 (Ronald Holshausen, Fri Oct 25 10:01:15 2024 +1100) * 02e2ae13 - chore: Bump pact_matching to 2.0.0-beta.0 (Ronald Holshausen, Tue Jul 30 11:40:20 2024 +1000) -# 1.3.3 - Maintenance Release +## 1.3.3 - Maintenance Release * 6189c0cd - fix(pact_consumer): Pass the transport config to the plugin in the test context under the transport_config key (Ronald Holshausen, Fri Dec 13 12:00:05 2024 +1100) * 5fdfd023 - chore: Upgrade all the tracing crates to the latest (Ronald Holshausen, Fri Dec 13 10:54:51 2024 +1100) * fab32aa0 - chore: Upgrade pact_models to 1.2.6 (Ronald Holshausen, Wed Dec 11 15:28:01 2024 +1100) * 93ce0e95 - bump version to 1.3.3 (Ronald Holshausen, Fri Nov 29 16:46:10 2024 +1100) -# 1.3.2 - Bugfix Release +## 1.3.2 - Bugfix Release * 44d9dc1e - fix(plugins): Upgrade pact-plugin-driver to 0.7.2, fixes #473 (Ronald Holshausen, Fri Nov 29 15:48:40 2024 +1100) * f3918b61 - Merge pull request #464 from tienvx/fix-cant-compare-each-key-each-value-matching-rules (Ronald Holshausen, Wed Nov 13 11:07:10 2024 +1100) @@ -145,7 +145,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c1a00dd8 - chore: Upgrade pact-plugin-driver to 0.7.1 (Ronald Holshausen, Tue Sep 3 15:47:22 2024 +1000) * 73a19100 - bump version to 1.3.2 (Ronald Holshausen, Tue Aug 27 15:40:56 2024 +1000) -# 1.3.1 - Bugfix Release +## 1.3.1 - Bugfix Release * 941e4455 - fix(pact_consumer): Plugin config needs to be stored for both the request and response part of HTTP interactions (Ronald Holshausen, Tue Aug 27 15:35:16 2024 +1000) * dae427a7 - chore: Upgrade pact_mock_server to 2.0.1 (Ronald Holshausen, Tue Aug 27 15:23:18 2024 +1000) @@ -156,13 +156,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 00efcb56 - chore: Update readme (Ronald Holshausen, Mon Jul 29 11:01:32 2024 +1000) * c91bb0ca - bump version to 1.3.1 (Ronald Holshausen, Mon Jul 29 10:27:31 2024 +1000) -# 1.3.0 - Update to 2.0 Pact mock server +## 1.3.0 - Update to 2.0 Pact mock server * d46af23e - feat(pact-consumer): Give each mock server 2 worker threads (Ronald Holshausen, Mon Jul 29 10:03:38 2024 +1000) * 111a18cd - Feat(pact_consumer): Upgrade pact_mock_server to the new 2.0.0 version (Ronald Holshausen, Thu Jul 18 17:12:55 2024 +1000) * 3665a921 - bump version to 1.2.4 (Ronald Holshausen, Wed Jul 17 15:25:27 2024 +1000) -# 1.2.3 - Maintenance Release +## 1.2.3 - Maintenance Release * 9659c982 - chore(pact_consumer): Update dependencies (Ronald Holshausen, Wed Jul 17 15:20:24 2024 +1000) * 3c96c31b - chore: Upgrade pact_mock_server to 1.2.9 (Ronald Holshausen, Wed Jul 17 14:54:40 2024 +1000) @@ -175,7 +175,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c70c1072 - chore(pact_consumer): Update dependencies (Ronald Holshausen, Fri Jun 14 10:35:55 2024 +1000) * 55f584bf - bump version to 1.2.3 (Ronald Holshausen, Fri Jun 14 10:30:00 2024 +1000) -# 1.2.2 - Maintenance Release +## 1.2.2 - Maintenance Release * 29c3b5f0 - chore: Upgrade pact_matching to 1.2.4 (Ronald Holshausen, Fri Jun 14 10:18:26 2024 +1000) * 30998a95 - chore: Upgrade pact_models to 1.2.1 (Ronald Holshausen, Wed Jun 12 15:26:49 2024 +1000) @@ -186,7 +186,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 87e82e1b - fix(rust_consumer): correct term! documentation (Martijn Pieters, Mon May 20 15:35:51 2024 +0100) * d7d69964 - bump version to 1.2.2 (Ronald Holshausen, Wed May 8 11:42:08 2024 +1000) -# 1.2.1 - Maintenance Release +## 1.2.1 - Maintenance Release * f5ad729f - chore: Moved mock server crates to pact-foundation/pact-core-mock-server (Ronald Holshausen, Tue May 7 17:36:26 2024 +1000) * fa2b1d09 - chore: Upgrade pact_matching to 1.2.2 (Ronald Holshausen, Tue May 7 10:50:08 2024 +1000) @@ -196,7 +196,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 758f4c03 - chore: Update pact_matching to 1.2.1 (Ronald Holshausen, Tue Apr 16 16:29:38 2024 +1000) * 831995b9 - bump version to 1.2.1 (Ronald Holshausen, Tue Apr 16 15:18:59 2024 +1000) -# 1.2.0 - Maintenance Release +## 1.2.0 - Maintenance Release * bfd6eae0 - chore: Upgrade pact_mock_server to 1.2.6 (Ronald Holshausen, Tue Apr 16 15:14:00 2024 +1000) * b9c54975 - Revert "update changelog for release 1.2.0" (Ronald Holshausen, Tue Apr 16 14:39:01 2024 +1000) @@ -208,7 +208,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ffffa61d - chore: Upgrade pact_mock_server to 1.2.5 (Ronald Holshausen, Fri Mar 15 15:13:04 2024 +1100) * fa2af940 - bump version to 1.1.3 (Ronald Holshausen, Mon Feb 12 14:49:15 2024 +1100) -# 1.1.2 - Bugfix Release +## 1.1.2 - Bugfix Release * e31589d7 - chore: add test for checking matching rules on message metadata (Ronald Holshausen, Sat Feb 10 10:13:01 2024 +1100) * 6bb57df0 - fix: metadata matching rules for sync message (Stan, Fri Feb 9 00:16:51 2024 -0800) @@ -218,7 +218,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 95cbe5a9 - fix: Upgrade pact-plugin-driver to 0.5.1 (Ronald Holshausen, Wed Jan 31 19:56:04 2024 +1100) * 5f5ad750 - bump version to 1.1.2 (Ronald Holshausen, Sat Jan 20 22:00:01 2024 +1100) -# 1.1.1 - Maintenace Release +## 1.1.1 - Maintenace Release * c68e00a5 - chore: Upgrade dependencies (Ronald Holshausen, Sat Jan 20 21:53:03 2024 +1100) * def5685c - chore: Upgrade pact_mock_server to 1.2.4 (Ronald Holshausen, Sat Jan 20 18:56:26 2024 +1100) @@ -231,7 +231,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * dfd13760 - chore: Upgrade pact_models to 1.1.13 #355 (Ronald Holshausen, Tue Jan 16 07:42:33 2024 +1100) * 41618d94 - bump version to 1.1.1 (Ronald Holshausen, Wed Dec 20 14:32:05 2023 +1100) -# 1.1.0 - Maintenance Release +## 1.1.0 - Maintenance Release * 302a5e88 - chore(pact_consumer): Cleanup TODO (Ronald Holshausen, Fri Dec 15 16:26:44 2023 +1100) * 52dfe7d5 - chore(pact_consumer): Cleanup TODO (Ronald Holshausen, Fri Dec 15 16:10:45 2023 +1100) @@ -239,7 +239,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 713e4098 - chore: Upgrade pact-plugin-driver to 0.4.6 (Ronald Holshausen, Thu Dec 14 17:04:59 2023 +1100) * e12536a3 - bump version to 1.0.6 (Ronald Holshausen, Tue Nov 14 03:23:24 2023 +1100) -# 1.0.5 - Maintenance Release +## 1.0.5 - Maintenance Release * f8110971 - chore: cleanup compiler warning (Ronald Holshausen, Tue Nov 14 03:18:42 2023 +1100) * 3f0ae7f1 - chore: Upgrade pact_matching to 1.1.7 (Ronald Holshausen, Tue Nov 14 03:10:25 2023 +1100) @@ -248,7 +248,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 04bad264 - chore: Upgrade pact_matching to 1.1.6 (Ronald Holshausen, Fri Sep 22 11:03:38 2023 +1000) * 88dd9d61 - bump version to 1.0.5 (Ronald Holshausen, Tue Aug 29 14:35:03 2023 +1000) -# 1.0.4 - Bugfix Release +## 1.0.4 - Bugfix Release * d592cd8b - chore: Upgrade pact_mock_server to 1.2.3 (Ronald Holshausen, Tue Aug 29 09:25:14 2023 +1000) * 3ec99c41 - chore: Upgrade pact_matching to 1.1.5 (Ronald Holshausen, Fri Aug 18 15:40:02 2023 +1000) @@ -266,13 +266,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 71fba00c - feat(pact_comsumer): Added support for using EachKey and EachValue matchers (Ronald Holshausen, Mon Jul 17 11:33:08 2023 +1000) * a239f786 - bump version to 1.0.4 (Ronald Holshausen, Thu Jul 13 09:28:32 2023 +1000) -# 1.0.3 - Bugfix Release +## 1.0.3 - Bugfix Release * e08119ab - fix(pact-consumer): Some code for the datetime feature was not being excluded when the feature was turned off #290 (Ronald Holshausen, Thu Jul 13 09:22:24 2023 +1000) * 4f448b1f - fix(pact_matching): EachValue matcher was not applying the associated matching rules correctly #299 (Ronald Holshausen, Wed Jul 12 16:28:16 2023 +1000) * 7444b6af - bump version to 1.0.3 (Ronald Holshausen, Wed Jul 12 10:04:09 2023 +1000) -# 1.0.2 - Bugfixes + added crate features to disable functionality +## 1.0.2 - Bugfixes + added crate features to disable functionality * 6661077a - feat: Add support for disabling plugins with consumer DSL (Ronald Holshausen, Tue Jul 11 16:53:12 2023 +1000) * b3c65285 - chore: Add support for datetime, xml, multipart. plugins and tls crate features (Ronald Holshausen, Tue Jul 11 15:39:05 2023 +1000) @@ -293,14 +293,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * cd536170 - feat: Add builder interface for plugins to provide DSL to construct interactions (Ronald Holshausen, Wed Jun 7 15:12:15 2023 +1000) * 8287f375 - bump version to 1.0.2 (Ronald Holshausen, Wed Jun 7 11:51:33 2023 +1000) -# 1.0.1 - Bugfix Release +## 1.0.1 - Bugfix Release * 4fbd45cc - fix: Mock server errors were not being printed if the test was panicking due to a failed assertion #282 (Ronald Holshausen, Wed Jun 7 11:27:15 2023 +1000) * bc68ed7f - chore: Upgrade pact_models to 1.1.4 (Ronald Holshausen, Thu Jun 1 10:22:38 2023 +1000) * 397c837f - chore: Upgrade pact_models to 1.1.3 (fixes MockServerURL generator) (Ronald Holshausen, Mon May 29 15:12:22 2023 +1000) * cbcb530e - bump version to 1.0.1 (Ronald Holshausen, Tue May 23 16:13:29 2023 +1000) -# 1.0.0 - Bugfixes + Update Pact models to 1.1 (breaking change) +## 1.0.0 - Bugfixes + Update Pact models to 1.1 (breaking change) * e9bb4c69 - chore: fix deps (Ronald Holshausen, Tue May 23 16:10:46 2023 +1000) * 90cd909d - Revert "update changelog for release 1.0.0" (Ronald Holshausen, Tue May 23 16:10:02 2023 +1000) @@ -315,7 +315,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 261ecf47 - fix: Add RefUnwindSafe trait bound to all Pact and Interaction uses (Ronald Holshausen, Mon May 15 13:59:31 2023 +1000) * 470b1a25 - bump version to 0.10.9 (Ronald Holshausen, Tue Apr 18 16:39:36 2023 +1000) -# 0.10.8 - Bugfix Release +## 0.10.8 - Bugfix Release * 6a71b12d - chore: Upgrade pact_mock_server to 1.0.2 (Ronald Holshausen, Tue Apr 18 13:30:21 2023 +1000) * 0bcba082 - chore: Upgrade pact_matching to 1.0.8 (Ronald Holshausen, Tue Apr 18 13:14:38 2023 +1000) @@ -327,12 +327,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 669f7812 - chore: Upgrade pact_models to 1.0.10 (Ronald Holshausen, Thu Apr 13 15:32:34 2023 +1000) * 9da17e24 - bump version to 0.10.8 (Ronald Holshausen, Wed Apr 5 17:03:39 2023 +1000) -# 0.10.7 - Bugfix Release +## 0.10.7 - Bugfix Release * 779a59f0 - fix: Upgrade pact-plugin-driver to 0.4.1 (fixes an issue introduced in 0.4.0 with shared channels to plugins) (Ronald Holshausen, Wed Apr 5 17:01:18 2023 +1000) * ddcb3ded - bump version to 0.10.7 (Ronald Holshausen, Wed Apr 5 14:49:04 2023 +1000) -# 0.10.6 - Bugfix Release +## 0.10.6 - Bugfix Release * 7bd44a0d - fix: PactBuilder drop handler was cauing plugins to be shutdown twice (Ronald Holshausen, Wed Apr 5 14:44:26 2023 +1000) * 6aa389c9 - fix: Make using_plugin consume self so that the builder will have the same lifetime as the returned async one (Ronald Holshausen, Wed Apr 5 14:43:43 2023 +1000) @@ -344,7 +344,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * f8aea4fc - fix: request and response builders were incorrectly setting empty bodies from plugin contents (Ronald Holshausen, Mon Apr 3 14:52:29 2023 +1000) * a31bfa41 - bump version to 0.10.6 (Ronald Holshausen, Tue Mar 21 10:23:17 2023 +1100) -# 0.10.5 - Maintenance Release +## 0.10.5 - Maintenance Release * 11c701b4 - fix: Upgrade pact_matching to 1.0.6 (fixes some issues with matching HTTP headers) (Ronald Holshausen, Wed Mar 15 14:54:54 2023 +1100) * e96bc54e - fix: Upgrade pact_models to 1.0.9 (fixes issues with headers) (Ronald Holshausen, Wed Mar 15 14:31:00 2023 +1100) @@ -354,7 +354,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7589b9b0 - chore: Bump pact_mock_server version to 1.0.0 (Ronald Holshausen, Fri Feb 10 14:43:53 2023 +1100) * c5c66721 - bump version to 0.10.5 (Ronald Holshausen, Wed Feb 8 14:16:36 2023 +1100) -# 0.10.4 - Bugfix Release +## 0.10.4 - Bugfix Release * 019bd2fe - chore: Upgrade pact_matching to 1.0.5 (Ronald Holshausen, Wed Feb 8 13:53:15 2023 +1100) * f6d0c35e - fix(consumer): request and response builders were using the first interaction from plugins, not the correct one (Ronald Holshausen, Wed Feb 8 13:29:02 2023 +1100) @@ -367,7 +367,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 3aecb702 - chore: require tracing-subscriber for tests for crates that use pact_models #239 (Ronald Holshausen, Thu Dec 22 14:37:01 2022 +1100) * 94cfe951 - bump version to 0.10.4 (Ronald Holshausen, Mon Dec 19 17:01:07 2022 +1100) -# 0.10.3 - Support generators in plugins +## 0.10.3 - Support generators in plugins * 81e55220 - chore: Upgrade pact_mock_server to 0.9.7 (Ronald Holshausen, Mon Dec 19 16:04:55 2022 +1100) * e827f591 - chore: Upgrade pact_matching to 1.0.2 (Ronald Holshausen, Mon Dec 19 15:30:14 2022 +1100) @@ -378,12 +378,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8be00f0c - chore: Upgrade pact-plugin-driver to 0.2.1 (Ronald Holshausen, Wed Dec 14 14:55:32 2022 +1100) * 7b473b2c - bump version to 0.10.3 (Ronald Holshausen, Mon Dec 12 14:27:43 2022 +1100) -# 0.10.2 - Bugfix Release +## 0.10.2 - Bugfix Release * e91ad622 - fix: Interaction builder was not copying plugin config data to the Pact metadata (Ronald Holshausen, Mon Dec 12 13:59:36 2022 +1100) * 1fdb4176 - bump version to 0.10.2 (Ronald Holshausen, Mon Dec 12 11:42:05 2022 +1100) -# 0.10.1 - Support plugins generating interaction content +## 0.10.1 - Support plugins generating interaction content * 9be00044 - chore: Upgrade pact_mock_server to 0.9.6 (Ronald Holshausen, Mon Dec 12 10:06:25 2022 +1100) * e7a1b9f2 - chore: Upgrade pact_matching to 1.0 and plugin driver to 0.2 (Ronald Holshausen, Fri Dec 9 17:29:33 2022 +1100) @@ -395,7 +395,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c6aebcb5 - chore: add a test with two near identical interactions (Ronald Holshausen, Mon Nov 14 12:37:05 2022 +1100) * 57de6527 - bump version to 0.10.1 (Ronald Holshausen, Mon Nov 7 13:49:06 2022 +1100) -# 0.10.0 - Bugfix Release +## 0.10.0 - Bugfix Release * 8ec8fe9b - chore: Upgrade pact_consumer to 0.10.0 (Ronald Holshausen, Mon Nov 7 13:15:23 2022 +1100) * 248d9502 - chore: fix code blocks in readme (Ronald Holshausen, Mon Nov 7 12:58:08 2022 +1100) @@ -411,7 +411,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 60b2b642 - chore: Upgrade pact-plugin-driver to 0.1.12 (Ronald Holshausen, Mon Sep 12 17:44:13 2022 +1000) * f3af0e5e - bump version to 0.9.8 (Ronald Holshausen, Thu Sep 8 12:16:31 2022 +1000) -# 0.9.7 - Bugfix Release +## 0.9.7 - Bugfix Release * 57a8ad7d - fix: Consumer DSL needs to increment plugin access to avoid plugin shutting down when mock server starts (Ronald Holshausen, Thu Sep 8 11:54:33 2022 +1000) * fcab3016 - chore: Upgrade pact-plugin-driver to 0.1.11 (Ronald Holshausen, Thu Sep 8 11:28:52 2022 +1000) @@ -419,7 +419,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * f8db90d2 - fix: Upgrade pact_models to 0.4.5 - fixes FFI bug with generators for request paths (Ronald Holshausen, Fri Aug 26 11:44:08 2022 +1000) * c4f1c973 - bump version to 0.9.7 (Ronald Holshausen, Thu Aug 18 16:12:40 2022 +1000) -# 0.9.6 - Maintenance Release +## 0.9.6 - Maintenance Release * 296e43ae - chore: cleanup some compiler warnings (Ronald Holshausen, Thu Aug 18 16:09:02 2022 +1000) * 9d1e8e89 - chore: Upgrade pact_mock_server to 0.9.3 (Ronald Holshausen, Thu Aug 18 16:03:38 2022 +1000) @@ -435,20 +435,20 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 9a6c846f - chore: Upgrade pact_matching to 0.12.9 (Ronald Holshausen, Fri Jun 10 15:46:07 2022 +1000) * e099715a - bump version to 0.9.6 (Ronald Holshausen, Mon May 30 12:27:28 2022 +1000) -# 0.9.5 - Maintenance Release +## 0.9.5 - Maintenance Release * f42026d5 - chore: Upgrade pact_mock_server to 0.9.1 (Ronald Holshausen, Mon May 30 12:09:06 2022 +1000) * bcddbcfb - chore: Upgrade pact_matching to 0.12.8 (Ronald Holshausen, Mon May 30 11:52:26 2022 +1000) * 80256458 - chore: Upgrade pact-plugin-driver to 0.1.8 (Ronald Holshausen, Mon May 30 11:36:54 2022 +1000) * 08e6aa12 - bump version to 0.9.5 (Ronald Holshausen, Mon May 23 14:37:14 2022 +1000) -# 0.9.4 - Maintenance Release +## 0.9.4 - Maintenance Release * d9b9fe72 - chore: Upgrade pact-plugin-driver to 0.1.7 (Ronald Holshausen, Fri May 20 15:56:23 2022 +1000) * 6463c5ea - bump version to 0.9.4 (Ronald Holshausen, Wed May 11 17:59:26 2022 +1000) * ff607074 - chore: update readme (Ronald Holshausen, Wed May 11 17:56:49 2022 +1000) -# 0.9.3 - Maintenance Release +## 0.9.3 - Maintenance Release * 91d72007 - chore: switch from logging crate to tracing crate (Ronald Holshausen, Wed May 11 17:50:30 2022 +1000) * 5c0f28fa - chore: Upgrade crate dependencies (Ronald Holshausen, Wed May 11 17:46:26 2022 +1000) @@ -458,7 +458,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 020b5715 - chore: upgrade pact_models to 0.4.1 (Ronald Holshausen, Wed May 11 11:36:57 2022 +1000) * eebe3bc2 - bump version to 0.9.3 (Ronald Holshausen, Wed Apr 27 15:52:57 2022 +1000) -# 0.9.2 - Maintenance Release +## 0.9.2 - Maintenance Release * 563ae9fc - chore: Upgrade pact_mock_server to 0.8.10 (Ronald Holshausen, Wed Apr 27 15:06:50 2022 +1000) * bcae77b4 - chore: upgrade pact_matching to 0.12.6 (Ronald Holshausen, Wed Apr 27 14:29:26 2022 +1000) @@ -468,7 +468,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 2395143a - feat: forward verification to plugin for transports provided by the plugin (Ronald Holshausen, Fri Apr 22 12:02:05 2022 +1000) * 6704f230 - bump version to 0.9.2 (Ronald Holshausen, Wed Apr 13 16:19:13 2022 +1000) -# 0.9.1 - Bugfix Release +## 0.9.1 - Bugfix Release * 1e8ae855 - chore: Upgrade pact_mock_server to 0.8.9 (Ronald Holshausen, Wed Apr 13 15:49:03 2022 +1000) * 0df06dd2 - chore: Upgrade pact_matching to 0.12.5 (Ronald Holshausen, Wed Apr 13 15:38:49 2022 +1000) @@ -478,7 +478,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ffeca2e2 - chore: update to the latest plugin driver (Ronald Holshausen, Wed Apr 13 13:08:25 2022 +1000) * 23a0f91f - bump version to 0.9.1 (Ronald Holshausen, Thu Mar 24 15:15:31 2022 +1100) -# 0.9.0 - Supports mock servers from plugins +## 0.9.0 - Supports mock servers from plugins * 89027c87 - chore: update pact_matching (0.12.4) and pact_mock_server (0.8.8) (Ronald Holshausen, Thu Mar 24 14:09:45 2022 +1100) * 9baf03a9 - chore: use the published version of the plugin driver (Ronald Holshausen, Thu Mar 24 13:36:01 2022 +1100) @@ -489,7 +489,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * e10841d7 - chore: bump consumer crate to 0.9.0 (Ronald Holshausen, Tue Mar 15 14:16:47 2022 +1100) * ae87a65d - bump version to 0.8.7 (Ronald Holshausen, Fri Mar 4 14:58:50 2022 +1100) -# 0.8.6 - Maintenance Release +## 0.8.6 - Maintenance Release * 5a4a8a1c - chore: update pact_mock_server to 0.8.7 (Ronald Holshausen, Fri Mar 4 14:24:23 2022 +1100) * 8894fdfd - chore: update pact_matching to 0.12.3 (Ronald Holshausen, Fri Mar 4 14:09:17 2022 +1100) @@ -497,7 +497,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 50c73c68 - chore: remove accidental debug statement (Ronald Holshausen, Mon Feb 14 09:04:22 2022 +1100) * 418e81f8 - bump version to 0.8.6 (Ronald Holshausen, Mon Jan 17 17:12:24 2022 +1100) -# 0.8.5 - Bugfix Release +## 0.8.5 - Bugfix Release * 10c9b842 - chore: Upgrade pact_mock_server to 0.8.6 (Ronald Holshausen, Mon Jan 17 16:57:31 2022 +1100) * 5e4c68ef - chore: update pact matching to 0.12.2 (Ronald Holshausen, Mon Jan 17 16:29:21 2022 +1100) @@ -506,7 +506,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c2089645 - fix: log crate version must be fixed across all crates (including plugin driver) (Ronald Holshausen, Fri Jan 14 16:10:50 2022 +1100) * 30aa8573 - bump version to 0.8.5 (Ronald Holshausen, Tue Jan 4 12:51:34 2022 +1100) -# 0.8.4 - Maintenance Release +## 0.8.4 - Maintenance Release * 62e89d78 - chore: update pact_mock_server to 0.8.5 (Ronald Holshausen, Tue Jan 4 12:45:42 2022 +1100) * 8259c12a - chore: update pact_models 0.2.6, pact_matching 0.12.1, pact-plugin-driver 0.0.16 (Ronald Holshausen, Tue Jan 4 12:38:26 2022 +1100) @@ -515,7 +515,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0a6e7d9d - refactor: Convert MatchingContext to a trait and use DocPath instead of string slices (Ronald Holshausen, Wed Dec 29 14:24:39 2021 +1100) * 4e59a652 - bump version to 0.8.4 (Ronald Holshausen, Thu Dec 23 13:32:50 2021 +1100) -# 0.8.3 - Maintenance Release +## 0.8.3 - Maintenance Release * 4d088317 - chore: Update pact_mock_server crate to 0.8.4 (Ronald Holshausen, Thu Dec 23 13:24:15 2021 +1100) * 52bc1735 - chore: update pact_matching crate to 0.11.5 (Ronald Holshausen, Thu Dec 23 13:12:08 2021 +1100) @@ -524,7 +524,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8911d5b0 - chore: update to latest plugin driver crate (metrics fixes) (Ronald Holshausen, Mon Dec 20 12:11:35 2021 +1100) * 47c51f74 - bump version to 0.8.3 (Ronald Holshausen, Wed Dec 15 14:35:59 2021 +1100) -# 0.8.2 - Maintenance Release +## 0.8.2 - Maintenance Release * 8d8c7706 - chore: update models and mock server crates (Ronald Holshausen, Wed Dec 15 14:03:30 2021 +1100) * cba3f08e - feat: add metrics events for Pact-Rust consumer tests (Ronald Holshausen, Tue Dec 14 16:20:40 2021 +1100) @@ -532,14 +532,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * fc5be202 - fix: update to latest driver crate (Ronald Holshausen, Tue Nov 16 16:19:02 2021 +1100) * 24fc4e90 - bump version to 0.8.2 (Ronald Holshausen, Tue Nov 16 13:01:59 2021 +1100) -# 0.8.1 - Add plugin support to FFI functions +## 0.8.1 - Add plugin support to FFI functions * 5d974c4a - chore: update to latest models and plugin driver crates (Ronald Holshausen, Tue Nov 16 11:56:53 2021 +1100) * 20643590 - feat(plugins): add plugin support to FFI functions (Ronald Holshausen, Tue Nov 9 16:06:01 2021 +1100) * 188caf6a - chore: update release script (Ronald Holshausen, Thu Nov 4 16:19:38 2021 +1100) * c7dbfdb9 - bump version to 0.8.1 (Ronald Holshausen, Thu Nov 4 16:17:23 2021 +1100) -# 0.8.0 - Pact V4 release +## 0.8.0 - Pact V4 release * 6dfec56a - chore: drop beta from pact_consumer version (Ronald Holshausen, Thu Nov 4 16:08:47 2021 +1100) * fc4580b8 - chore: drop beta from pact_mock_server version (Ronald Holshausen, Thu Nov 4 15:28:51 2021 +1100) @@ -554,13 +554,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1427aa33 - feat: update tests and docs with message examples (Ronald Holshausen, Wed Oct 20 16:49:29 2021 +1100) * 45511b6e - bump version to 0.8.0-beta.4 (Ronald Holshausen, Tue Oct 19 17:51:58 2021 +1100) -# 0.8.0-beta.3 - Bugfix Release +## 0.8.0-beta.3 - Bugfix Release * df67b723 - fix: async message builder was not setting the pact plugin config correctly (Ronald Holshausen, Tue Oct 19 17:44:35 2021 +1100) * 918e5beb - fix: update to latest models and plugin driver crates (Ronald Holshausen, Tue Oct 19 17:09:48 2021 +1100) * 1fc6eb17 - bump version to 0.8.0-beta.3 (Ronald Holshausen, Tue Oct 19 11:56:35 2021 +1100) -# 0.8.0-beta.2 - Support matching synchronous request/response messages +## 0.8.0-beta.2 - Support matching synchronous request/response messages * 3819522d - chore: update to the latest matching and mock server crates (Ronald Holshausen, Tue Oct 19 11:34:18 2021 +1100) * aa434ba3 - chore: update to latest driver crate (Ronald Holshausen, Tue Oct 19 11:09:46 2021 +1100) @@ -568,7 +568,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 2b4b7cc3 - feat(plugins): Support matching synchronous request/response messages (Ronald Holshausen, Fri Oct 15 16:01:50 2021 +1100) * c72f8b04 - bump version to 0.8.0-beta.2 (Ronald Holshausen, Tue Oct 12 16:43:50 2021 +1100) -# 0.8.0-beta.1 - Support consumer tests with synchronous messages (Protobuf) +## 0.8.0-beta.1 - Support consumer tests with synchronous messages (Protobuf) * 1dc6f543 - chore: bump pact_mock_server version (Ronald Holshausen, Tue Oct 12 16:36:51 2021 +1100) * 9bbbb52e - chore: bump pact matching crate version (Ronald Holshausen, Tue Oct 12 16:24:01 2021 +1100) @@ -576,7 +576,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 35ff0993 - feat: record the version of the lib that created the pact in the metadata (Ronald Holshausen, Tue Oct 12 14:52:43 2021 +1100) * acbe66f1 - bump version to 0.8.0-beta.1 (Ronald Holshausen, Wed Oct 6 13:04:36 2021 +1100) -# 0.8.0-beta.0 - Plugin support with consumer tests +## 0.8.0-beta.0 - Plugin support with consumer tests * a81659e9 - chore: update release script (Ronald Holshausen, Wed Oct 6 12:51:24 2021 +1100) * ddc64246 - chore: use the published version of the models crate (Ronald Holshausen, Wed Oct 6 12:40:52 2021 +1100) @@ -635,7 +635,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 68f8f84e - chore: skip failing tests in alpine to get the build going (Ronald Holshausen, Tue Jun 1 13:47:20 2021 +1000) * c5059104 - bump version to 0.7.7 (Ronald Holshausen, Sun May 30 18:58:43 2021 +1000) -# 0.7.8 - Bugfixes + support native TLS certs +## 0.7.8 - Bugfixes + support native TLS certs * df715cd5 - feat: support native TLS. Fixes #144 (Matt Fellows, Mon Sep 20 13:00:33 2021 +1000) * 971b980e - chore: fix clippy warnings (Ronald Holshausen, Fri Sep 10 17:31:16 2021 +1000) @@ -645,7 +645,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 533c9e1f - chore: bump minor version of the Pact models crate (Ronald Holshausen, Fri Jul 23 13:15:32 2021 +1000) * 0671221f - bump version to 0.7.8 (Ronald Holshausen, Fri Jul 23 11:00:25 2021 +1000) -# 0.7.7 - Bugfix Release +## 0.7.7 - Bugfix Release * ad7d3d54 - chore: pin the dependant versions for now (Ronald Holshausen, Fri Jul 23 10:42:52 2021 +1000) * 084ab46b - feat: Copied pact_mockserver_ffi to pact_ffi (Ronald Holshausen, Sat Jul 10 16:24:29 2021 +1000) @@ -660,7 +660,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 68f8f84e - chore: skip failing tests in alpine to get the build going (Ronald Holshausen, Tue Jun 1 13:47:20 2021 +1000) * c5059104 - bump version to 0.7.7 (Ronald Holshausen, Sun May 30 18:58:43 2021 +1000) -# 0.7.6 - V4 features + DSL enhancements +## 0.7.6 - V4 features + DSL enhancements * 7022625 - refactor: move provider state models to the pact models crate (Ronald Holshausen, Sat May 29 17:18:48 2021 +1000) * 73a53b8 - feat(V4): add an HTTP status code matcher (Ronald Holshausen, Fri May 28 18:40:11 2021 +1000) @@ -675,18 +675,18 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 80812d0 - refactor: move Consumer and Provider structs to models crate (Ronald Holshausen, Thu Apr 22 13:11:03 2021 +1000) * 5ed389b - bump version to 0.7.6 (Ronald Holshausen, Sun Mar 14 15:39:21 2021 +1100) -# 0.7.5 - mock server metrics +## 0.7.5 - mock server metrics * 5a529fd - feat: add ability of mock server to expose metrics #94 (Ronald Holshausen, Sun Mar 14 11:41:16 2021 +1100) * eec03d2 - bump version to 0.7.5 (Ronald Holshausen, Mon Feb 8 16:23:43 2021 +1100) -# 0.7.4 - Use a file system lock when merging pact files +## 0.7.4 - Use a file system lock when merging pact files * 9976e80 - feat: added read locks and a mutex guard to reading and writing pacts (Ronald Holshausen, Mon Feb 8 11:58:52 2021 +1100) * e43fdb8 - chore: upgrade maplit, itertools (Audun Halland, Mon Jan 11 05:30:10 2021 +0100) * 8792c29 - bump version to 0.7.4 (Ronald Holshausen, Mon Jan 11 15:11:22 2021 +1100) -# 0.7.3 - Updated dependencies +## 0.7.3 - Updated dependencies * 4a70bef - chore: upgrade expectest to 0.12 (Audun Halland, Sat Jan 9 11:29:29 2021 +0100) * 3a28a6c - chore: upgrade regex, chrono-tz (Audun Halland, Sat Jan 9 11:12:49 2021 +0100) @@ -696,20 +696,20 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 3a6945e - chore: Upgrade reqwest to 0.11 and hence tokio to 1.0 (Ronald Holshausen, Wed Jan 6 15:34:47 2021 +1100) * c9a7e44 - bump version to 0.7.3 (Ronald Holshausen, Tue Jan 5 13:39:06 2021 +1100) -# 0.7.2 - Upgrade Tokio to 1.0 +## 0.7.2 - Upgrade Tokio to 1.0 * ef76f38 - chore: cleanup compiler warnings (Ronald Holshausen, Tue Jan 5 10:10:39 2021 +1100) * 4636982 - chore: update other crates to use Tokio 1.0 (Ronald Holshausen, Mon Jan 4 17:26:59 2021 +1100) * 648a8a3 - bump version to 0.7.2 (Ronald Holshausen, Thu Dec 31 14:47:10 2020 +1100) -# 0.7.1 - support generators associated with array contains matcher variants +## 0.7.1 - support generators associated with array contains matcher variants * beb1c03 - fix: cleanup compiler warning (Ronald Holshausen, Thu Dec 31 14:41:09 2020 +1100) * 335e921 - chore: update pact_matching and pact_mock_server crates to latest (Ronald Holshausen, Thu Dec 31 14:39:50 2020 +1100) * 5e56ecb - refactor: support generators associated with array contains matcher variants (Ronald Holshausen, Tue Dec 29 11:46:56 2020 +1100) * 6182b56 - bump version to 0.7.1 (Ronald Holshausen, Fri Oct 16 13:25:59 2020 +1100) -# 0.7.0 - Update to latest matching and mock server crates +## 0.7.0 - Update to latest matching and mock server crates * 5e0e470 - chore: bump minor version of pact_consumer crate (Ronald Holshausen, Fri Oct 16 13:22:12 2020 +1100) * 13976f5 - fix: failing pact_consumer build (Ronald Holshausen, Thu Oct 15 12:00:09 2020 +1100) @@ -724,14 +724,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 359a944 - chore: update versions in readmes (Ronald Holshausen, Sat Jun 27 13:21:24 2020 +1000) * fc86c16 - bump version to 0.6.3 (Ronald Holshausen, Wed Jun 24 11:09:16 2020 +1000) -# 0.6.2 - Updated XML Matching +## 0.6.2 - Updated XML Matching * 97d8521 - chore: update to latest matching crate (Ronald Holshausen, Wed Jun 24 11:03:24 2020 +1000) * a15edea - chore: try set the content type on the body if known (Ronald Holshausen, Tue Jun 23 16:53:32 2020 +1000) * 570f405 - chore: correct version in readme (Ronald Holshausen, Wed May 27 16:38:58 2020 +1000) * a54dfd0 - bump version to 0.6.2 (Ronald Holshausen, Wed May 27 14:43:24 2020 +1000) -# 0.6.1 - Bugfix Release +## 0.6.1 - Bugfix Release * bea787c - chore: bump matching crate version to 0.6.0 (Ronald Holshausen, Sat May 23 17:56:04 2020 +1000) * 754a483 - chore: updated itertools to latest (Ronald Holshausen, Wed May 6 15:49:27 2020 +1000) @@ -742,7 +742,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 6ff9c33 - fix: ignore flakey test (Matt Fellows, Tue Mar 3 12:14:08 2020 +1100) * 3c590fb - bump version to 0.6.1 (Ronald Holshausen, Sun Jan 19 11:46:21 2020 +1100) -# 0.6.0 - Convert to async/await +## 0.6.0 - Convert to async/await * 9d3ad57 - chore: bump minor version of pact consumer crate (Ronald Holshausen, Sun Jan 19 11:40:27 2020 +1100) * d457221 - chore: update dependant crates to use mock server lib 0.7.0 (Ronald Holshausen, Sun Jan 19 11:31:21 2020 +1100) @@ -763,7 +763,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 6a43f82 - Cut down tokio features to the bone (Audun Halland, Wed Dec 11 22:15:03 2019 +0100) * d4bdcb6 - Update ValidatingMockServer interfaces for use with tokio::test (Audun Halland, Wed Dec 11 22:01:06 2019 +0100) -# 0.5.3 - Bugfix Release +## 0.5.3 - Bugfix Release * ec1a368 - chore: update lib versions (Ronald Holshausen, Sat Dec 14 18:09:26 2019 +1100) * 19e8ced - fix: cleanup env var and set tests to not run in parallel on CI #54 (Ronald Holshausen, Sat Dec 14 16:08:56 2019 +1100) @@ -780,7 +780,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 924452f - 2018 edition autofix "cargo fix --edition" (Audun Halland, Sat Nov 16 22:27:42 2019 +0100) * d736b8a - bump version to 0.5.3 (Ronald Holshausen, Mon Sep 30 11:02:42 2019 +1000) -# 0.5.2 - Fix dependency versions +## 0.5.2 - Fix dependency versions * b5ab246 - chore: update the pact_matching and pact_mock_server to latest versions (Ronald Holshausen, Mon Sep 30 10:41:02 2019 +1000) * eef3d97 - feat: added some tests for publishing verification results to the pact broker #44 (Ronald Holshausen, Sun Sep 22 16:44:52 2019 +1000) @@ -791,13 +791,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * f79b033 - chore: update terminal support in release scripts (Ronald Holshausen, Sat Aug 24 12:25:28 2019 +1000) * bcc75da - bump version to 0.5.2 (Ronald Holshausen, Sat Aug 24 12:20:56 2019 +1000) -# 0.5.1 - support headers with multiple values +## 0.5.1 - support headers with multiple values * da1956a - chore: bump the version of the matching lib (Ronald Holshausen, Sat Aug 24 12:06:51 2019 +1000) * f0c0d07 - feat: support headers with multiple values (Ronald Holshausen, Sat Aug 10 17:01:10 2019 +1000) * b595eff - bump version to 0.5.1 (Ronald Holshausen, Sat Jul 27 17:22:11 2019 +1000) -# 0.5.0 - Upgrade to non-blocking Hyper 0.12 +## 0.5.0 - Upgrade to non-blocking Hyper 0.12 * d842100 - chore: bump component versions to 0.5.0 (Ronald Holshausen, Sat Jul 27 15:44:51 2019 +1000) * ee8a898 - Rewrite server matches sync from mpsc queue to Arc<Mutex<Vec>>. Avoids awkward synchronization (Audun Halland, Tue Jul 23 02:10:55 2019 +0200) @@ -812,7 +812,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a5588dc - feat: Allow the directory pacts are written to to be overriden in consumer tests #21 (Ronald Holshausen, Sun Apr 8 15:20:38 2018 +1000) * b83a0f6 - bump version to 0.4.1 (Ronald Holshausen, Sat Apr 7 14:45:05 2018 +1000) -# 0.4.0 - First V3 specification release +## 0.4.0 - First V3 specification release * 398edaf - Upgrade UUID library to latest (Ronald Holshausen, Sat Apr 7 12:29:58 2018 +1000) * 6597141 - WIP - start of implementation of applying generators to the bodies (Ronald Holshausen, Sun Mar 4 17:01:11 2018 +1100) @@ -830,12 +830,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 639ac22 - fixes after merge in from master (Ronald Holshausen, Sun Oct 23 10:45:54 2016 +1100) * 49e45f7 - Merge branch 'master' into v3-spec (Ronald Holshausen, Sun Oct 23 10:10:40 2016 +1100) -# 0.3.1 - Converted OptionalBody::Present to take a Vec<u8> +## 0.3.1 - Converted OptionalBody::Present to take a Vec<u8> * 24e3f73 - Converted OptionalBody::Present to take a Vec<u8> #19 (Ronald Holshausen, Sun Oct 22 18:04:46 2017 +1100) * 1c70982 - bump version to 0.3.1 (Ronald Holshausen, Fri Oct 20 11:46:27 2017 +1100) -# 0.3.0 - Improved Consumer DSL +## 0.3.0 - Improved Consumer DSL * 89bebb3 - Correct the paths in the release scripts for pact_consumer (Ronald Holshausen, Fri Oct 20 11:36:05 2017 +1100) * ac94388 - Tests are now all passing #20 (Ronald Holshausen, Thu Oct 19 15:14:25 2017 +1100) @@ -875,7 +875,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a59fb98 - Migrate remaining pact modules over to serde (Anthony Damtsis, Mon May 15 16:59:04 2017 +1000) * c988180 - bump version to 0.2.1 (Ronald Holshausen, Sun Oct 9 16:55:35 2016 +1100) -# 0.2.0 - V2 implementation +## 0.2.0 - V2 implementation * 2eb38fc - update the consumer library versions for the V2 branch (Ronald Holshausen, Sun Oct 9 16:50:03 2016 +1100) * e3eebbd - update projects to use the published pact mock server library (Ronald Holshausen, Sun Oct 9 16:36:25 2016 +1100) @@ -883,7 +883,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 574e072 - upadte versions for V2 branch and fix an issue with loading JSON bodies encoded as a string (Ronald Holshausen, Sun Oct 9 15:31:57 2016 +1100) * 6d581d5 - bump version to 0.1.1 (Ronald Holshausen, Sat Oct 8 17:59:33 2016 +1100) -# 0.1.0 - V1.1 specification implementation +## 0.1.0 - V1.1 specification implementation * dae5d42 - correct the doc link (Ronald Holshausen, Sat Oct 8 17:55:15 2016 +1100) * 16b99b5 - V1.1 spec changes (Ronald Holshausen, Sat Oct 8 17:53:53 2016 +1100) @@ -892,4 +892,4 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 548c5aa - bump version to 0.0.1 (Ronald Holshausen, Mon Sep 26 23:16:50 2016 +1000) * d80e899 - release script needs to be executable (Ronald Holshausen, Mon Sep 26 23:14:15 2016 +1000) -# 0.0.0 - First Release +## 0.0.0 - First Release diff --git a/rust/pact_consumer/Cargo.toml b/rust/pact_consumer/Cargo.toml index e92999023..24b3813ea 100644 --- a/rust/pact_consumer/Cargo.toml +++ b/rust/pact_consumer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pact_consumer" -version = "1.4.11" +version = "1.4.10" authors = ["Ronald Holshausen <ronald.holshausen@gmail.com>", "Eric Kidd <git@randomhacks.net>"] edition = "2024" description = "Pact-Rust module that provides support for writing consumer pact tests" diff --git a/rust/pact_consumer/release.groovy b/rust/pact_consumer/release.groovy deleted file mode 100755 index 7bda1fad4..000000000 --- a/rust/pact_consumer/release.groovy +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/env groovy -@Grab(group = 'com.github.zafarkhaja', module = 'java-semver', version = '0.9.0') -import com.github.zafarkhaja.semver.Version - -def executeOnShell(String command, Closure closure = null) { - executeOnShell(command, new File(System.properties.'user.dir'), closure) -} - -def executeOnShell(String command, File workingDir, Closure closure = null) { - println command - def processBuilder = new ProcessBuilder(['sh', '-c', command]) - .directory(workingDir) - if (closure) { - processBuilder.redirectErrorStream(true) - } else { - processBuilder.inheritIO() - } - def process = processBuilder.start() - if (closure) { - process.inputStream.eachLine closure - } - process.waitFor() - if (process.exitValue() > 0) { - System.exit(process.exitValue()) - } -} - -void ask(String prompt, String defaultValue = 'Y', Closure cl) { - def promptValue = System.console().readLine(prompt + ' ').trim() - if (promptValue.empty) { - promptValue = defaultValue - } - if (promptValue.toUpperCase() == 'Y') { - cl.call() - } -} - -executeOnShell 'git pull' - -ask('Execute Build?: [Y]') { - executeOnShell 'cargo clean' - executeOnShell 'cargo build' - executeOnShell 'cargo test' -} - -def projectProps = new File('Cargo.toml').text -def versionMatch = projectProps =~ /(?m)version\s*=\s*"(.*)"/ -def version = versionMatch[0][1] - -def prevTag = 'git describe --abbrev=0 --tags --match=pact_consumer-*'.execute().text.trim() -def changelog = [] -executeOnShell("git log --pretty='* %h - %s (%an, %ad)' ${prevTag}..HEAD .".toString()) { - println it - changelog << it -} - -def releaseDesc = System.console().readLine('Describe this release: [Bugfix Release]').trim() -if (releaseDesc.empty) { - releaseDesc = 'Bugfix Release' -} - -def releaseVer = System.console().readLine("What is the version for this release?: [$version]").trim() -if (releaseVer.empty) { - releaseVer = version -} - -ask('Update Changelog?: [Y]') { - def changeLogFile = new File('CHANGELOG.md') - def changeLogFileLines = changeLogFile.readLines() - changeLogFile.withPrintWriter() { p -> - p.println(changeLogFileLines[0]) - - p.println() - p.println("# $releaseVer - $releaseDesc") - p.println() - changelog.each { - p.println(it) - } - - changeLogFileLines[1..-1].each { - p.println(it) - } - } - - executeOnShell("git add CHANGELOG.md") - executeOnShell("git commit -m 'update changelog for release $releaseVer [skip ci]'") - executeOnShell("git status") - executeOnShell("git diff HEAD^..HEAD") -} - -ask('Tag and Push commits?: [Y]') { - executeOnShell 'git push' - executeOnShell("git tag pact_consumer-v${releaseVer}") - executeOnShell 'git push --tags' -} - -ask('Publish library to crates.io?: [Y]') { - executeOnShell 'cargo package' - executeOnShell 'cargo publish' -} - -def nextVer = Version.valueOf(releaseVer).incrementPatchVersion() -ask("Bump version to $nextVer?: [Y]") { - executeOnShell "sed -i -e 's/^version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml" - executeOnShell "sed -i -e 's/pact_consumer = \"${releaseVer}\"/pact_consumer = \"${nextVer}\"/' README.md" - executeOnShell("cargo update") - executeOnShell("git add Cargo.toml README.md") - executeOnShell("git add ../Cargo.lock") - executeOnShell("git diff --cached") - ask("Commit and push this change?: [Y]") { - executeOnShell("git commit -m 'bump version to $nextVer [skip ci]'") - executeOnShell("git push") - } -} diff --git a/rust/pact_ffi/CHANGELOG.md b/rust/pact_ffi/CHANGELOG.md index c01bd3f14..12e96977f 100644 --- a/rust/pact_ffi/CHANGELOG.md +++ b/rust/pact_ffi/CHANGELOG.md @@ -1,6 +1,6 @@ -To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD .` replacing TAGNAME and HEAD as appropriate. +# Changelog -# 0.5.11 - Feature Release +## 0.5.11 - Feature Release * fa7d0c76 - fix(ffi): make plugin log callbacks callable from C (w3lld1, Sat Oct 10 07:50:16 2026 +0200) * 669bc567 - chore: Update pact-models to 1.3.16 (Ronald Holshausen, Sat Oct 10 11:55:46 2026 +1100) @@ -8,12 +8,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 2a38f700 - feat(ffi): add pactffi_sync_message_match_response_contents (Fabio Rodrigues, Thu Oct 8 14:10:17 2026 +0100) * 7a0e6a5a - fix(ci): pin release Rust to 1.98.1 for correct FFI bool returns (Yousaf Nabi, Wed Oct 7 17:51:19 2026 +0100) -# 0.5.10 - [Feature Release] +## 0.5.10 - [Feature Release] * 83e9936c - feat(ffi): add pactffi_sync_message_generate_contents for sync message consumer tests (#555) (Fรกbio Andrรฉ Ramos Rodrigues, Mon Sep 28 00:44:23 2026 +0100) * d86f3792 - bump version to 0.5.10 (Ronald Holshausen, Thu Sep 24 11:30:06 2026 +1000) -# 0.5.9 - Expose a log callback for host language logging +## 0.5.9 - Expose a log callback for host language logging * d7879658 - docs(pact-ffi): publish pactffi_string_delete in the crate docs (JP-Ellis, Thu Sep 17 20:14:48 2026 +1000) * 3f511126 - feat(ffi): expose a log callback for host language logging (JP-Ellis, Thu Sep 17 21:48:33 2026 +1000) @@ -21,13 +21,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 89e09e97 - feat(ffi): install the plugin log sink on callback registration (JP-Ellis, Thu Sep 17 21:31:51 2026 +1000) * 22a58148 - bump version to 0.5.9 (Yousaf Nabi, Mon Sep 14 15:37:50 2026 +0100) -# 0.5.8 - Bugfix Release +## 0.5.8 - Bugfix Release * 71841f3c - chore: Update pact_models to 1.3.15 (Ronald Holshausen, Fri Sep 11 09:19:34 2026 +1000) * 8ef0c83f - feat(pact_verifier): include pact and mismatch details in interaction results (frudisch, Mon Sep 7 05:32:37 2026 +0200) * 66f17412 - bump version to 0.5.8 (Ronald Holshausen, Fri Sep 4 09:19:25 2026 +1000) -# 0.5.7 - TLS panic fix + v2 plugin support +## 0.5.7 - TLS panic fix + v2 plugin support * 9930b06c - fix: panic when there is no configured TLS provider #546 (Ronald Holshausen, Wed Aug 12 11:08:13 2026 +1000) * e62d9e52 - chore: Update pact-plugin-driver to 1.2.3 (Ronald Holshausen, Wed Aug 12 11:00:09 2026 +1000) @@ -43,7 +43,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 149b3e81 - chore: Update pact-plugin-driver to 1.2.0 (Ronald Holshausen, Wed Aug 5 15:43:01 2026 +1000) * 409f3213 - bump version to 0.5.7 (Ronald Holshausen, Wed Aug 5 11:32:00 2026 +1000) -# 0.5.6 - Bugfix Release +## 0.5.6 - Bugfix Release * 7a016cc2 - chore: Update pact_verifier to 1.4.6 (Ronald Holshausen, Wed Aug 5 11:18:27 2026 +1000) * 2bd503ac - chore(pact-ffi): fix independant test (Ronald Holshausen, Wed Aug 5 09:10:06 2026 +1000) @@ -55,7 +55,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0904b3d3 - chore: Update pact_models to 1.3.13 (Ronald Holshausen, Mon Aug 3 17:16:00 2026 +1000) * b674cfce - bump version to 0.5.6 (Ronald Holshausen, Fri Jul 31 10:28:19 2026 +1000) -# 0.5.5 - Bugfix Release +## 0.5.5 - Bugfix Release * 7551fe54 - chore: Update pact_verifier to 1.4.4 (Ronald Holshausen, Fri Jul 31 09:45:27 2026 +1000) * dae8ec0e - chore: Update pact_mock_server to 2.0.8 (Ronald Holshausen, Thu Jul 30 17:26:10 2026 +1000) @@ -81,7 +81,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * bdfe6f68 - fix(pact-ffi): pactffi_create_mock_server_for_transport is unable to start a TLS mock server (Ronald Holshausen, Tue May 5 16:01:31 2026 +1000) * 4420a878 - bump version to 0.5.5 (Ronald Holshausen, Thu Apr 30 10:33:24 2026 +1000) -# 0.5.4 - Maintenance Release +## 0.5.4 - Maintenance Release * 28c540cd - chore: Update pact_verifier to 1.3.5 (Ronald Holshausen, Thu Apr 30 10:04:40 2026 +1000) * 27c4aa20 - chore: Update pact_models to 1.3.10 (Ronald Holshausen, Wed Apr 29 17:20:36 2026 +1000) @@ -94,7 +94,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 3d289f52 - test(pact_ffi): Test xml content (tien.xuan.vo, Sun Mar 22 19:57:16 2026 +0700) * 0f04596d - bump version to 0.5.4 (Ronald Holshausen, Thu Feb 19 11:46:41 2026 +1100) -# 0.5.3 - Maintenance Release +## 0.5.3 - Maintenance Release * f818fe62 - chore: Fix flaky test on CI (Ronald Holshausen, Thu Feb 19 11:23:18 2026 +1100) * 1d9105de - chore: Update pact_verifier to 1.3.4 (Ronald Holshausen, Thu Feb 19 11:08:03 2026 +1100) @@ -107,13 +107,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 55be8997 - chore(pact_consumer): update bytes to 1.11.1 to resolve RUSTSEC-2026-0007 chore(pact_ffi): update bytes to 1.11.1 to resolve RUSTSEC-2026-0007 (Andrew Tecey, Mon Feb 9 14:25:43 2026 +0000) * b8ecf51d - bump version to 0.5.3 (Ronald Holshausen, Thu Jan 15 09:58:31 2026 +1100) -# 0.5.2 - Bugfix Release +## 0.5.2 - Bugfix Release * 7473d61f - chore(pact_ffi): Remove the deprecated Clap-based FFI functions (Ronald Holshausen, Thu Jan 15 09:39:00 2026 +1100) * f0fc2a93 - fix(pact_ffi): update mock server status functions to use the server manager Tokio runtime #511 (Ronald Holshausen, Wed Jan 14 16:51:19 2026 +1100) * a6bdccd7 - bump version to 0.5.2 (Ronald Holshausen, Tue Jan 13 16:15:59 2026 +1100) -# 0.5.1 - Bugfix Release +## 0.5.1 - Bugfix Release * 93b0d736 - chore(pact_ffi): Cleanup some compiler warnings (Ronald Holshausen, Tue Jan 13 15:42:57 2026 +1100) * afbcd605 - fix(pact_ffi): Update to mockserver 2.0 crate dropped support for mock servers from plugins #510 (Ronald Holshausen, Tue Jan 13 15:31:27 2026 +1100) @@ -124,7 +124,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 6f9b0737 - chore(pact_ffi): Update dependencies (Ronald Holshausen, Tue Jan 13 12:00:59 2026 +1100) * c171b42b - bump version to 0.5.1 (Ronald Holshausen, Thu Dec 18 15:09:42 2025 +1100) -# 0.5.0 - 2.0 Mock server + removed some deprecated functions +## 0.5.0 - 2.0 Mock server + removed some deprecated functions * 2eacbdb7 - chore: Bump minor version of pact_ffi (Ronald Holshausen, Thu Dec 18 15:05:22 2025 +1100) * 9d1a12a8 - feat(ffi): upgrade mock server to v2 (JP-Ellis, Tue Dec 16 10:25:23 2025 +1100) @@ -141,7 +141,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0c8187dc - Merge branch 'pact_ffi/0.4.28' (Ronald Holshausen, Thu Jul 17 16:04:12 2025 +1000) * 01052fd4 - bump version to 0.4.29 (Ronald Holshausen, Thu Jul 17 15:10:53 2025 +1000) -# 0.4.28 - Maintenance Release +## 0.4.28 - Maintenance Release * 4fc0136c - chore: Upgrade pact_verifier to 1.3.2 (Ronald Holshausen, Fri Jun 20 11:33:58 2025 +1000) * 42b0b285 - chore(pact-ffi): Update pact_mock_server to 1.2.16 (Ronald Holshausen, Wed Jun 11 15:33:46 2025 +1000) @@ -168,7 +168,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 11cd9dc0 - Merge branch 'master' into feat/matching-engine-v2 (Ronald Holshausen, Fri Oct 25 10:01:15 2024 +1100) * 02e2ae13 - chore: Bump pact_matching to 2.0.0-beta.0 (Ronald Holshausen, Tue Jul 30 11:40:20 2024 +1000) -# 0.4.27 - Bugfix Release +## 0.4.27 - Bugfix Release * df9beec3 - chore: Upgrade pact_verifier to 1.2.5 (Ronald Holshausen, Wed Mar 19 14:08:12 2025 +1100) * e32f0dbd - fix: Upgrade pact-plugin-driver to 0.7.3 (Ronald Holshausen, Wed Mar 19 11:20:39 2025 +1100) @@ -182,7 +182,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * d93dfb3f - fix: Do not apply date/time matchers at the collection level #483 (Ronald Holshausen, Wed Jan 29 14:34:31 2025 +1100) * 283fcb12 - bump version to 0.4.27 (Ronald Holshausen, Fri Dec 20 14:19:23 2024 +1100) -# 0.4.26 - Re-release FFI +## 0.4.26 - Re-release FFI * 823b009a - Reapply "chore(ci): refactor release pipeline" (Ronald Holshausen, Fri Dec 20 11:08:57 2024 +1100) * 9321da66 - Revert "chore(release): Rename MacOS artifacts correctly" (Ronald Holshausen, Fri Dec 20 11:07:26 2024 +1100) @@ -198,7 +198,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * fab32aa0 - chore: Upgrade pact_models to 1.2.6 (Ronald Holshausen, Wed Dec 11 15:28:01 2024 +1100) * 7792c635 - bump version to 0.4.25 (Ronald Holshausen, Fri Nov 29 16:03:37 2024 +1100) -# 0.4.25 - Support for FORM urlencoded bodies +## 0.4.25 - Support for FORM urlencoded bodies * 648ab1c9 - chore: Upgrade pact_matching to 1.2.8 (Ronald Holshausen, Thu Dec 19 16:14:10 2024 +1100) * d74af0ab - Merge pull request #462 from tienvx/support-integration-json-for-form-urlencoded (Ronald Holshausen, Thu Dec 19 15:15:09 2024 +1100) @@ -208,7 +208,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * fab32aa0 - chore: Upgrade pact_models to 1.2.6 (Ronald Holshausen, Wed Dec 11 15:28:01 2024 +1100) * 7792c635 - bump version to 0.4.25 (Ronald Holshausen, Fri Nov 29 16:03:37 2024 +1100) -# 0.4.24 - Bugfix Release +## 0.4.24 - Bugfix Release * 44d9dc1e - fix(plugins): Upgrade pact-plugin-driver to 0.7.2, fixes #473 (Ronald Holshausen, Fri Nov 29 15:48:40 2024 +1100) * b55407ef - fix(FFI): pactffi_with_pact_metadata overwrites existing namespace contents #466 (Ronald Holshausen, Mon Nov 18 12:22:42 2024 +1100) @@ -226,7 +226,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8a5150e0 - chore: Copy the in-mem logging functions to the FFI crate (Ronald Holshausen, Wed Sep 4 15:50:51 2024 +1000) * 8350e4d3 - bump version to 0.4.24 (Ronald Holshausen, Wed Sep 4 15:19:59 2024 +1000) -# 0.4.23 - Bugfix Release +## 0.4.23 - Bugfix Release * 3cb09550 - chore(pact_ffi): Update dependencies (Ronald Holshausen, Wed Sep 4 11:09:27 2024 +1000) * c1a00dd8 - chore: Upgrade pact-plugin-driver to 0.7.1 (Ronald Holshausen, Tue Sep 3 15:47:22 2024 +1000) @@ -241,7 +241,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 033a50ab - feat: Update the matching rule expression parser to support values from provider states (Ronald Holshausen, Fri Aug 2 10:06:52 2024 +1000) * fd1ba0c3 - bump version to 0.4.23 (Ronald Holshausen, Thu Jul 18 15:51:48 2024 +1000) -# 0.4.22 - Bugfix Release +## 0.4.22 - Bugfix Release * 4257ed1e - chore: Upgrade pact_verifier to 1.2.3 (Ronald Holshausen, Wed Jul 17 15:19:58 2024 +1000) * 3c96c31b - chore: Upgrade pact_mock_server to 1.2.9 (Ronald Holshausen, Wed Jul 17 14:54:40 2024 +1000) @@ -257,7 +257,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * efc54d26 - fix(FFI): update_provider_info was not setting the transport scheme correctly (Ronald Holshausen, Mon Jun 24 11:35:57 2024 +1000) * 45914c08 - bump version to 0.4.22 (Ronald Holshausen, Wed Jun 19 14:54:30 2024 +1000) -# 0.4.21 - Bugfix Release +## 0.4.21 - Bugfix Release * 3acc9ae5 - Merge pull request #443 from pact-foundation/feat/generate-contents (Ronald Holshausen, Wed Jun 19 14:21:50 2024 +1000) * a18b7746 - feat: add `generate_contents` methods (JP-Ellis, Mon Jun 17 14:35:10 2024 +1000) @@ -282,7 +282,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 968be075 - feat: update content_type_matching logic for binary payloads (Yousaf Nabi, Tue May 28 23:25:07 2024 +0100) * efc3dc49 - bump version to 0.4.21 (Ronald Holshausen, Thu May 9 14:03:59 2024 +1000) -# 0.4.20 - Maintenance Release +## 0.4.20 - Maintenance Release * 2c28d36b - chore(FFI): Upgrade dependencies (Ronald Holshausen, Wed May 8 16:32:55 2024 +1000) * edc1ad0c - chore: Upgrade pact_verifier to 1.2.1 (Ronald Holshausen, Wed May 8 15:32:36 2024 +1000) @@ -302,7 +302,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a38e93c5 - fix(ci): fix macos extensions (JP-Ellis, Thu Apr 11 13:12:30 2024 +1000) * c2ec4610 - bump version to 0.4.20 (Ronald Holshausen, Thu Apr 11 12:05:29 2024 +1000) -# 0.4.19 - Bugfix Release +## 0.4.19 - Bugfix Release * d3c18d21 - chore(ffi): Remove unecessary mutable references #399 (Ronald Holshausen, Wed Mar 20 14:47:54 2024 +1100) * 21406631 - feat(ffi): Update intermediate JSON to support matching rule expressions #399 (Ronald Holshausen, Wed Mar 20 11:59:46 2024 +1100) @@ -325,7 +325,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 634bc589 - chore(FFI): FFI Feature tests were writing to the same Pact file and can cause race conditions (Ronald Holshausen, Wed Feb 21 11:58:37 2024 +1100) * e902c532 - bump version to 0.4.18 (Ronald Holshausen, Wed Feb 21 11:29:01 2024 +1100) -# 0.4.18 - Maintenance Release +## 0.4.18 - Maintenance Release * 93f02c74 - feat(ffi): allow setting comments (JP-Ellis, Mon Feb 26 11:26:39 2024 +1100) * 8ac21bdb - feat(ffi): allow toggling pending state (JP-Ellis, Mon Feb 26 10:48:32 2024 +1100) @@ -333,7 +333,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 634bc589 - chore(FFI): FFI Feature tests were writing to the same Pact file and can cause race conditions (Ronald Holshausen, Wed Feb 21 11:58:37 2024 +1100) * e902c532 - bump version to 0.4.18 (Ronald Holshausen, Wed Feb 21 11:29:01 2024 +1100) -# 0.4.17 - Bugfix Release +## 0.4.17 - Bugfix Release * 82804395 - Revert "chore: Upgrade pact_verifier to 1.1.1" (Ronald Holshausen, Mon Feb 19 11:43:12 2024 +1100) * d17dac05 - chore: Upgrade pact_verifier to 1.1.1 (Ronald Holshausen, Mon Feb 19 11:42:50 2024 +1100) @@ -346,13 +346,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * df22043e - feat: convert musl static .a to .so (Yousaf Nabi, Tue Feb 13 21:51:02 2024 +0000) * 41e9c469 - bump version to 0.4.17 (Ronald Holshausen, Mon Feb 12 17:06:33 2024 +1100) -# 0.4.16 - Bugfix Release +## 0.4.16 - Bugfix Release * 29b326e5 - fix(FFI): Metadata matching rules from plugins were being ignored (Ronald Holshausen, Thu Feb 8 18:31:05 2024 +1100) * 4b9aeb2d - chore: correct CHANGELOG.md (Ronald Holshausen, Wed Feb 7 14:21:29 2024 +1100) * 76debd2d - bump version to 0.4.16 (Ronald Holshausen, Wed Feb 7 14:15:28 2024 +1100) -# 0.4.15 - Bugfix Release +## 0.4.15 - Bugfix Release * b0f0151e - Merge pull request #383 from pact-foundation/feat/with-matching-rules-2 (Ronald Holshausen, Wed Feb 7 14:54:11 2024 +1100) * 3554a333 - feat(ffi): add with_matching_rules (JP-Ellis, Tue Feb 6 12:47:42 2024 +1100) @@ -363,7 +363,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7370d8f9 - chore: update artifact path for aarch64 musl pact_ffi (Yousaf Nabi, Thu Jan 25 12:01:20 2024 +0000) * 0cd5fe82 - bump version to 0.4.15 (Ronald Holshausen, Sat Jan 20 22:33:27 2024 +1100) -# 0.4.14 - Bugfix Release +## 0.4.14 - Bugfix Release * 6b82b19f - chore(FFI): Update all dependencies (Ronald Holshausen, Sat Jan 20 22:24:41 2024 +1100) * 8d3f146a - chore: Upgrade pact_verifier to 1.0.5 (Ronald Holshausen, Sat Jan 20 21:31:51 2024 +1100) @@ -391,12 +391,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 37e498e9 - test(pact_matching): Test more cases for ContentType matcher (tien.xuan.vo, Sat Jan 20 17:39:07 2024 +0700) * a990c55d - bump version to 0.4.14 (Ronald Holshausen, Fri Jan 19 15:05:21 2024 +1100) -# 0.4.13 - Bugfix Release +## 0.4.13 - Bugfix Release * 944613df - fix: regression - upgrade pact_models to 1.1.16 #359 (Ronald Holshausen, Fri Jan 19 14:52:36 2024 +1100) * db970926 - bump version to 0.4.13 (Ronald Holshausen, Wed Jan 17 09:48:16 2024 +1100) -# 0.4.12 - Bugfix Release +## 0.4.12 - Bugfix Release * 403c0af1 - chore: Upgrade pact_models to 1.1.14 #355 (Ronald Holshausen, Tue Jan 16 10:31:12 2024 +1100) * 9d121e5e - fix(FFI): Headers configured with provider state generator have invalid paths in Pact file #355 (Ronald Holshausen, Tue Jan 16 07:48:20 2024 +1100) @@ -405,7 +405,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 713e4098 - chore: Upgrade pact-plugin-driver to 0.4.6 (Ronald Holshausen, Thu Dec 14 17:04:59 2023 +1100) * ca698fce - bump version to 0.4.12 (Ronald Holshausen, Mon Nov 27 19:55:59 2023 +1100) -# 0.4.11 - Bugfix Release +## 0.4.11 - Bugfix Release * 82e51872 - Merge pull request #348 from tienvx/update-trace-logs (Ronald Holshausen, Tue Nov 28 09:36:04 2023 +1100) * 133bf14f - Merge pull request #347 from tienvx/update-comment-metadata-v2 (Ronald Holshausen, Tue Nov 28 09:35:22 2023 +1100) @@ -424,7 +424,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7405ccbe - Merge branch 'release/0.4.10' (Ronald Holshausen, Tue Nov 14 05:50:08 2023 +1100) * 08786976 - bump version to 0.4.11 (Ronald Holshausen, Tue Nov 14 04:08:57 2023 +1100) -# 0.4.10 - Bugfix Release +## 0.4.10 - Bugfix Release * 3f0ae7f1 - chore: Upgrade pact_matching to 1.1.7 (Ronald Holshausen, Tue Nov 14 03:10:25 2023 +1100) * 826758a6 - chore: Upgrade pact_models to 1.1.12 (Ronald Holshausen, Mon Nov 13 17:25:21 2023 +1100) @@ -439,7 +439,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 335d52dc - fix: Only specification v3 or higher support binary body's content type matching rule (tien.xuan.vo, Mon Oct 16 22:11:54 2023 +0700) * c0201a77 - bump version to 0.4.10 (Ronald Holshausen, Fri Sep 22 11:25:07 2023 +1000) -# 0.4.9 - Bugfix Release +## 0.4.9 - Bugfix Release * 04bad264 - chore: Upgrade pact_matching to 1.1.6 (Ronald Holshausen, Fri Sep 22 11:03:38 2023 +1000) * 9f8dde99 - fix: Nested array contains matchers where not having their values propogated to the outer matcher #324 (Ronald Holshausen, Fri Sep 22 10:18:56 2023 +1000) @@ -451,7 +451,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 63b7cf9d - fix: Allow matching string values using content type matching rule (tien.xuan.vo, Mon Sep 11 18:32:24 2023 +0700) * 89a18dab - bump version to 0.4.9 (Ronald Holshausen, Tue Aug 29 14:57:35 2023 +1000) -# 0.4.8 - Bugfix Release +## 0.4.8 - Bugfix Release * a3025b14 - chore(pact_ffi): Disable aarch64-unknown-linux-gnu target from release build (Ronald Holshausen, Tue Aug 29 14:53:10 2023 +1000) * c924b9ce - chore: Upgrade pact_verifier to 1.0.3 (Ronald Holshausen, Tue Aug 29 10:04:18 2023 +1000) @@ -467,7 +467,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 24ed7835 - chore: Upgrade pact-models to 1.1.10 (Ronald Holshausen, Fri Aug 4 16:11:24 2023 +1000) * ef920ba7 - bump version to 0.4.8 (Ronald Holshausen, Thu Jul 27 15:28:46 2023 +1000) -# 0.4.7 - Bugfix Release +## 0.4.7 - Bugfix Release * 04af3923 - chore: Upgrade pact_verifier to 1.0.2 (Ronald Holshausen, Thu Jul 27 15:17:57 2023 +1000) * 0586fcf1 - chore: Upgrade pact_mock_server to 1.2.2 (Ronald Holshausen, Thu Jul 27 14:45:02 2023 +1000) @@ -478,7 +478,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0459d40c - fix(pact_matching): Number of keys were still be compared when an EachKeys matcher is defined #301 (Ronald Holshausen, Mon Jul 17 13:37:05 2023 +1000) * e69eef09 - bump version to 0.4.7 (Ronald Holshausen, Thu Jul 13 10:26:33 2023 +1000) -# 0.4.6 - Bugfix Release +## 0.4.6 - Bugfix Release * 7527fd32 - chore: Correct release script (Ronald Holshausen, Thu Jul 13 10:23:51 2023 +1000) * 4f448b1f - fix(pact_matching): EachValue matcher was not applying the associated matching rules correctly #299 (Ronald Holshausen, Wed Jul 12 16:28:16 2023 +1000) @@ -499,7 +499,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 397c837f - chore: Upgrade pact_models to 1.1.3 (fixes MockServerURL generator) (Ronald Holshausen, Mon May 29 15:12:22 2023 +1000) * 4555d0c4 - bump version to 0.4.6 (Ronald Holshausen, Tue May 23 16:45:37 2023 +1000) -# 0.4.5 - Bugfix Release +## 0.4.5 - Bugfix Release * 6137bba1 - chore: fix deps (Ronald Holshausen, Tue May 23 16:41:20 2023 +1000) * e7e889f0 - Revert "update changelog for release 0.4.5" (Ronald Holshausen, Tue May 23 16:40:53 2023 +1000) @@ -519,7 +519,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 99e7c08a - chore: drop nightly-2022-12-01 fixed https://github.com/rust-lang/rust/issues/105886 (Yousaf Nabi, Fri Apr 21 17:26:01 2023 +0100) * cece8369 - bump version to 0.4.5 (Ronald Holshausen, Tue Apr 18 16:53:28 2023 +1000) -# 0.4.4 - Bugfix Release +## 0.4.4 - Bugfix Release * 8cfc3d79 - chore: Upgrade pact_verifier to 0.15.3 (Ronald Holshausen, Tue Apr 18 15:22:26 2023 +1000) * 6a71b12d - chore: Upgrade pact_mock_server to 1.0.2 (Ronald Holshausen, Tue Apr 18 13:30:21 2023 +1000) @@ -538,12 +538,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 779a59f0 - fix: Upgrade pact-plugin-driver to 0.4.1 (fixes an issue introduced in 0.4.0 with shared channels to plugins) (Ronald Holshausen, Wed Apr 5 17:01:18 2023 +1000) * 81fbfa7f - bump version to 0.4.4 (Ronald Holshausen, Wed Apr 5 14:31:56 2023 +1000) -# 0.4.3 - Bugfix Release +## 0.4.3 - Bugfix Release * 0af00359 - fix: use a shared global tokio runtime so shared plugin connections can be used (Ronald Holshausen, Wed Apr 5 14:05:11 2023 +1000) * 33ef054f - bump version to 0.4.3 (Ronald Holshausen, Wed Apr 5 11:17:18 2023 +1000) -# 0.4.2 - Bugfix Release +## 0.4.2 - Bugfix Release * d216b5d5 - chore: Update dependencies (Ronald Holshausen, Wed Apr 5 11:10:52 2023 +1000) * 799f886d - chore: remove use of deprecated methods (Ronald Holshausen, Wed Apr 5 11:07:22 2023 +1000) @@ -560,7 +560,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c9333f94 - feat: add option to generate JUnit XML report format for consumption by CI servers #257 (Ronald Holshausen, Thu Mar 2 10:48:56 2023 +1100) * af786d20 - bump version to 0.4.2 (Ronald Holshausen, Thu Feb 16 14:59:56 2023 +1100) -# 0.4.1 - Maintenance Release +## 0.4.1 - Maintenance Release * c368c651 - fix: Pass any custom header values on to the plugin verification call (Ronald Holshausen, Thu Feb 16 13:52:03 2023 +1100) * 0676047e - chore: Upgrade pact-plugin-driver to 0.3.2 (Ronald Holshausen, Thu Feb 16 12:09:46 2023 +1100) @@ -574,7 +574,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a56bc056 - fix(FFI): Message metadata was not being passed on to the mock server (Ronald Holshausen, Fri Feb 3 11:30:32 2023 +1100) * f391b4de - bump version to 0.4.1 (Ronald Holshausen, Wed Jan 11 16:57:57 2023 +1100) -# 0.4.0 - Add FFI functions for plugin authors to parse Pact JSON and get matching rules and generators + bugfixes +## 0.4.0 - Add FFI functions for plugin authors to parse Pact JSON and get matching rules and generators + bugfixes * fbc4dbe1 - chore: Upgrade pact_verifier to 0.13.20 (Ronald Holshausen, Wed Jan 11 16:06:21 2023 +1100) * c1b22f1c - chore: Upgrade pact_matching to 1.0.3 (Ronald Holshausen, Wed Jan 11 15:19:29 2023 +1100) @@ -592,13 +592,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 34a67cb9 - fix: when loading pacts from a dir, filter by the provider name #233 (Ronald Holshausen, Wed Jan 4 18:12:28 2023 +1100) * 00c77e92 - bump version to 0.3.20 (Ronald Holshausen, Thu Dec 22 15:44:18 2022 +1100) -# 0.3.19 - Fix for V3 Message ignores the interaction ID when loaded from a Pact Broker +## 0.3.19 - Fix for V3 Message ignores the interaction ID when loaded from a Pact Broker * 1bdb1054 - chore: Upgrade pact_models to 1.0.3 #239 (Ronald Holshausen, Thu Dec 22 15:37:53 2022 +1100) * 09479b91 - Merge branch 'fix/release-0.3.18' (Ronald Holshausen, Mon Dec 19 18:52:51 2022 +1100) * 68b7a37d - bump version to 0.3.19 (Ronald Holshausen, Mon Dec 19 17:24:59 2022 +1100) -# 0.3.18 - Bugfixes + Support generators in plugins +## 0.3.18 - Bugfixes + Support generators in plugins * c55a7758 - chore: Upgrade pact_verifier to 0.13.19 (Ronald Holshausen, Mon Dec 19 16:20:24 2022 +1100) * 81e55220 - chore: Upgrade pact_mock_server to 0.9.7 (Ronald Holshausen, Mon Dec 19 16:04:55 2022 +1100) @@ -615,7 +615,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * dbe56950 - bump version to 0.3.18 (Ronald Holshausen, Thu Dec 15 13:26:05 2022 +1100) * c1ccb62f - feat: allow non deafult json content-type (Leonardo Santana, Mon Dec 12 15:26:22 2022 -0500) -# 0.3.17 - Bugfix Release +## 0.3.17 - Bugfix Release * ec2ed51d - fix(FFI): use a multi-threaded reactor for FFI setup_contents call to plugins (Ronald Holshausen, Thu Dec 15 12:22:24 2022 +1100) * 46254545 - chore: Upgrade pact_verifier to 0.13.18 (Ronald Holshausen, Wed Dec 14 17:15:22 2022 +1100) @@ -623,7 +623,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8be00f0c - chore: Upgrade pact-plugin-driver to 0.2.1 (Ronald Holshausen, Wed Dec 14 14:55:32 2022 +1100) * f0387856 - bump version to 0.3.17 (Ronald Holshausen, Mon Dec 12 14:18:18 2022 +1100) -# 0.3.16 - Support for plugin authors +## 0.3.16 - Support for plugin authors * 9be00044 - chore: Upgrade pact_mock_server to 0.9.6 (Ronald Holshausen, Mon Dec 12 10:06:25 2022 +1100) * 4f366ac5 - fix(FFI): broken build after upgrading pact_models (Ronald Holshausen, Fri Dec 9 17:31:40 2022 +1100) @@ -633,7 +633,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7756d305 - fix(FFI): Replaced the matching rule union type with 3 FFI functions which should support Go better (Ronald Holshausen, Wed Nov 30 16:10:15 2022 +1100) * fbdcaabc - bump version to 0.3.16 (Ronald Holshausen, Mon Nov 28 16:09:44 2022 +1100) -# 0.3.15 - Bugfix + FFI functions to support plugin authors +## 0.3.15 - Bugfix + FFI functions to support plugin authors * 2f0ada6b - chore: Upgrade pact_verifier to 0.13.16 (Ronald Holshausen, Mon Nov 28 15:08:47 2022 +1100) * 246c0730 - chore: Upgrade pact_mock_server to 0.9.5 (Ronald Holshausen, Mon Nov 28 14:52:37 2022 +1100) @@ -653,7 +653,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 768a132b - feat: add FFI function to parse a matching definition expression (Ronald Holshausen, Thu Nov 10 18:18:39 2022 +1100) * 2c7788fb - bump version to 0.3.15 (Ronald Holshausen, Mon Nov 7 15:11:44 2022 +1100) -# 0.3.14 - Bugfix Release +## 0.3.14 - Bugfix Release * 0ed385bf - chore: correct version in manifest file after previous release was done wrong (Ronald Holshausen, Mon Nov 7 15:06:05 2022 +1100) * 5f75239e - Revert "update changelog for release 0.3.13" (Ronald Holshausen, Mon Nov 7 15:03:15 2022 +1100) @@ -669,14 +669,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 9dad5d2a - fix: ffi.pactffi_logger_attach_sink causes seg fault if log directory doesn't exist #226 (Ronald Holshausen, Fri Nov 4 12:26:15 2022 +1100) * 3bc69045 - chore: correct FFI function doc comments (Ronald Holshausen, Wed Nov 2 10:36:46 2022 +1100) -# 0.3.13 - Bugfix Release +## 0.3.13 - Bugfix Release * eb505b7f - Merge pull request #221 from pact-foundation/feat/multiple-transports-in-ffi (Matt Fellows, Wed Oct 12 10:11:15 2022 +1100) * 965a1c41 - fix: Upgrade plugin driver to 0.1.13 (fixes issue loading plugin when there are multiple versions for the same plugin) (Ronald Holshausen, Wed Oct 5 17:29:37 2022 +1100) * dda213e3 - feat(ffi): support adding transports to provider via pactffi_verifier_add_provider_transport (Matt Fellows, Wed Oct 5 10:49:07 2022 +1100) * 2014c432 - bump version to 0.3.13 (Ronald Holshausen, Wed Sep 28 10:54:32 2022 +1000) -# 0.3.12 - Bugfix Release +## 0.3.12 - Bugfix Release * b7bb9cd1 - chore: Upgrade pact_verifier crate to 0.13.14 (Ronald Holshausen, Wed Sep 28 10:34:48 2022 +1000) * cf913949 - chore: update the list of matcher types (Ronald Holshausen, Wed Sep 28 10:20:18 2022 +1000) @@ -692,12 +692,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * b6ab1785 - chore: correct cargo manifest after release (Ronald Holshausen, Wed Sep 7 10:46:44 2022 +1000) * 333bb92a - bump version to 0.3.12 (Ronald Holshausen, Wed Sep 7 10:44:40 2022 +1000) -# 0.3.11 - Bugfix Release +## 0.3.11 - Bugfix Release * cdb555f8 - fix: Upgrade pact_verifier to 0.13.13 (Ronald Holshausen, Wed Sep 7 09:53:05 2022 +1000) * 1c5bde33 - bump version to 0.3.11 (Ronald Holshausen, Wed Aug 31 17:05:22 2022 +1000) -# 0.3.10 - Add option to not fail verification if no Pacts are found +## 0.3.10 - Add option to not fail verification if no Pacts are found * 5c1d4293 - chore: Upgrade pact_verifier crate to 0.13.12 (Ronald Holshausen, Wed Aug 31 16:09:16 2022 +1000) * c128d22b - feat(FFI): add pactffi_verifier_set_no_pacts_is_error function #213 (Ronald Holshausen, Wed Aug 31 15:37:04 2022 +1000) @@ -711,7 +711,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 70d2c09a - chore: Build FFI lib with Debian stretch image #202 (Ronald Holshausen, Fri Aug 19 11:33:40 2022 +1000) * 546d84f6 - bump version to 0.3.8 (Ronald Holshausen, Thu Aug 18 16:38:32 2022 +1000) -# 0.3.9 - Bugfix Release +## 0.3.9 - Bugfix Release * 508005a3 - chore: clean up some compiler warnings (Ronald Holshausen, Fri Aug 26 13:48:58 2022 +1000) * f8db90d2 - fix: Upgrade pact_models to 0.4.5 - fixes FFI bug with generators for request paths (Ronald Holshausen, Fri Aug 26 11:44:08 2022 +1000) @@ -720,12 +720,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 70d2c09a - chore: Build FFI lib with Debian stretch image #202 (Ronald Holshausen, Fri Aug 19 11:33:40 2022 +1000) * 546d84f6 - bump version to 0.3.8 (Ronald Holshausen, Thu Aug 18 16:38:32 2022 +1000) -# 0.3.8 - Support FFI libs on Ubuntu 18.04 +## 0.3.8 - Support FFI libs on Ubuntu 18.04 * 70d2c09a - chore: Build FFI lib with Debian stretch image #202 (Ronald Holshausen, Fri Aug 19 11:33:40 2022 +1000) * 546d84f6 - bump version to 0.3.8 (Ronald Holshausen, Thu Aug 18 16:38:32 2022 +1000) -# 0.3.7 - Bugfix Release +## 0.3.7 - Bugfix Release * 5e52d685 - chore: Upgrade pact_verifier to 0.13.11 (Ronald Holshausen, Thu Aug 18 16:33:19 2022 +1000) * 9d1e8e89 - chore: Upgrade pact_mock_server to 0.9.3 (Ronald Holshausen, Thu Aug 18 16:03:38 2022 +1000) @@ -737,7 +737,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 3c5c45d4 - fix(FFI): pactffi_with_binary_file was incorrectly setting the response content type to application/octet-stream #171 (Ronald Holshausen, Wed Aug 17 14:46:03 2022 +1000) * 033b5ee9 - bump version to 0.3.7 (Ronald Holshausen, Mon Aug 15 17:55:05 2022 +1000) -# 0.3.6 - Maintenance Release +## 0.3.6 - Maintenance Release * a41fe69c - chore: Upgrade pact_mock_server to 0.9.2 (Ronald Holshausen, Mon Aug 15 17:40:09 2022 +1000) * 68ef5b4b - Revert "update changelog for release 0.3.6" (Ronald Holshausen, Mon Aug 15 17:31:28 2022 +1000) @@ -757,7 +757,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 68c5444e - feat(FFI): add function to disable coloured output with the verifier (Ronald Holshausen, Mon Aug 1 14:07:28 2022 +1000) * 4a7a935c - bump version to 0.3.6 (Ronald Holshausen, Mon Aug 1 12:12:59 2022 +1000) -# 0.3.5 - Support message interactions with FFI body functions +## 0.3.5 - Support message interactions with FFI body functions * 4c957894 - feat(FFI): updated doc comments for pactffi_with_multipart_file (Ronald Holshausen, Mon Aug 1 11:48:37 2022 +1000) * 128ae7c3 - feat(FFI): update pactffi_with_binary_file function to support message interactions (Ronald Holshausen, Mon Aug 1 11:12:20 2022 +1000) @@ -772,7 +772,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * b80064d1 - chore: correct function docs (Ronald Holshausen, Mon Jul 25 10:46:04 2022 +1000) * eb8123aa - bump version to 0.3.5 (Ronald Holshausen, Mon Jul 25 10:21:25 2022 +1000) -# 0.3.4 - Bugfix Release +## 0.3.4 - Bugfix Release * e95d701d - fix(FFI): fix matching rule for paths #205 (Ronald Holshausen, Fri Jul 22 13:42:06 2022 +1000) * b0fdbb6e - fix(FFI): fix matching rule for paths #205 (Ronald Holshausen, Fri Jul 22 13:34:46 2022 +1000) @@ -783,14 +783,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 40f7bdc4 - feat: add verification option to disable ANSI escape codes in output #203 (Ronald Holshausen, Wed Jul 20 12:18:12 2022 +1000) * d069b3f2 - bump version to 0.3.4 (Ronald Holshausen, Fri Jul 1 10:30:30 2022 +1000) -# 0.3.3 - Bug fixes + Support publishing results from webhook calls +## 0.3.3 - Bug fixes + Support publishing results from webhook calls * 9a6c846f - chore: Upgrade pact_matching to 0.12.9 (Ronald Holshausen, Fri Jun 10 15:46:07 2022 +1000) * b3f98a2c - chore: Upgrade pact_verifier to 0.13.8 (Ronald Holshausen, Tue Jun 7 11:07:24 2022 +1000) * 18118e82 - feat: add retries to the provider state change calls #197 (Ronald Holshausen, Tue Jun 7 09:10:23 2022 +1000) * 23c0c593 - bump version to 0.3.3 (Ronald Holshausen, Mon May 30 14:31:20 2022 +1000) -# 0.3.2 - Bugfix Release +## 0.3.2 - Bugfix Release * 42dcd525 - chore: Disable ANSI escape codes in logs as Pact .Net is unable to deal with them (Ronald Holshausen, Mon May 30 13:16:05 2022 +1000) * 61fc3771 - chore: Upgrade pact_verifier to 0.13.7 (Ronald Holshausen, Mon May 30 12:21:12 2022 +1000) @@ -800,13 +800,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 873f0c93 - fix(ffi): resources were not freed correctly when the mock server is provided by a plugin (Ronald Holshausen, Mon May 30 11:05:20 2022 +1000) * e32caf8d - bump version to 0.3.2 (Ronald Holshausen, Tue May 24 15:55:23 2022 +1000) -# 0.3.1 - Bugfix Release +## 0.3.1 - Bugfix Release * 797d1cce - fix(ffi): plugin data was not merged into the Pact file correctly (Ronald Holshausen, Tue May 24 14:13:25 2022 +1000) * a78f2a1d - fix(ffi): pactffi_create_mock_server_for_transport was returning the wrong status for invalid address (Ronald Holshausen, Mon May 23 16:56:32 2022 +1000) * bf70164f - bump version to 0.3.1 (Ronald Holshausen, Mon May 23 15:33:59 2022 +1000) -# 0.3.0 - Support mock servers from plugins +## 0.3.0 - Support mock servers from plugins * 5cd2ae5a - feat: add pactffi_create_mock_server_for_transport function (Ronald Holshausen, Fri May 20 16:09:36 2022 +1000) * d9b9fe72 - chore: Upgrade pact-plugin-driver to 0.1.7 (Ronald Holshausen, Fri May 20 15:56:23 2022 +1000) @@ -831,7 +831,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 020b5715 - chore: upgrade pact_models to 0.4.1 (Ronald Holshausen, Wed May 11 11:36:57 2022 +1000) * e8d62b79 - bump version to 0.2.7 (Ronald Holshausen, Wed Apr 27 16:46:23 2022 +1000) -# 0.2.6 - Maintenance Release +## 0.2.6 - Maintenance Release * 14a010a9 - chore: Upgrade pact_verifier to 0.13.5 (Ronald Holshausen, Wed Apr 27 15:21:15 2022 +1000) * 563ae9fc - chore: Upgrade pact_mock_server to 0.8.10 (Ronald Holshausen, Wed Apr 27 15:06:50 2022 +1000) @@ -842,7 +842,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 2395143a - feat: forward verification to plugin for transports provided by the plugin (Ronald Holshausen, Fri Apr 22 12:02:05 2022 +1000) * 2eeaccf4 - bump version to 0.2.6 (Ronald Holshausen, Tue Apr 19 13:59:46 2022 +1000) -# 0.2.5 - Maintenance Release +## 0.2.5 - Maintenance Release * d41e2440 - fix(ffi): correct race condition in pactffi_using_plugin (Ronald Holshausen, Wed Apr 13 16:51:36 2022 +1000) * 136c8a82 - chore: Upgrade pact_verifier to 0.13.4 (Ronald Holshausen, Wed Apr 13 16:06:02 2022 +1000) @@ -862,7 +862,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 345b0011 - feat: support mock servers provided from plugins (Ronald Holshausen, Mon Mar 21 15:59:46 2022 +1100) * 63b63358 - bump version to 0.2.5 (Matt Fellows, Mon Mar 21 11:29:45 2022 +1100) -# 0.2.4 - Bugfix Release +## 0.2.4 - Bugfix Release * 13f7c36f - fix: xml response matching rules (Matt Fellows, Wed Mar 9 17:07:56 2022 +1100) * c5b96ebb - chore: need musl-tools om release build (Ronald Holshausen, Fri Mar 4 17:15:43 2022 +1100) @@ -877,7 +877,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 74bd4531 - feat: add support for custom headers with the verifier FFI calls #182 (Ronald Holshausen, Mon Feb 28 13:58:46 2022 +1100) * c6d553e0 - bump version to 0.2.3 (Ronald Holshausen, Mon Feb 14 13:45:19 2022 +1100) -# 0.2.3 - Support Custom headers + Date-Time expression parser +## 0.2.3 - Support Custom headers + Date-Time expression parser * 16fbe7cf - feat: add musl target to the release build #185 (Ronald Holshausen, Fri Mar 4 16:23:39 2022 +1100) * b6433500 - chore: upgrade pact_verifier to 0.13.2 (Ronald Holshausen, Fri Mar 4 14:49:18 2022 +1100) @@ -888,13 +888,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 74bd4531 - feat: add support for custom headers with the verifier FFI calls #182 (Ronald Holshausen, Mon Feb 28 13:58:46 2022 +1100) * c6d553e0 - bump version to 0.2.3 (Ronald Holshausen, Mon Feb 14 13:45:19 2022 +1100) -# 0.2.2 - Bugfix Release +## 0.2.2 - Bugfix Release * 76889087 - fix(pact-ffi): intermediate JSON - add test for JSON with decimal matcher #179 (Ronald Holshausen, Mon Feb 14 13:04:16 2022 +1100) * b10453c3 - fix(pact-ffi): intermediate JSON - type matcher paths were being incorrectly allocated to children #179 (Ronald Holshausen, Mon Feb 14 12:45:43 2022 +1100) * 1555c682 - bump version to 0.2.2 (Ronald Holshausen, Thu Feb 3 14:12:46 2022 +1100) -# 0.2.1 - add option to strip ANSI control codes from verifier output +## 0.2.1 - add option to strip ANSI control codes from verifier output * 506add91 - chore: bump pact_verifier version (Ronald Holshausen, Thu Feb 3 13:54:45 2022 +1100) * cc872209 - chore: add non-windows init ansi support function (Ronald Holshausen, Thu Feb 3 13:22:51 2022 +1100) @@ -903,7 +903,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * fbfd072f - feat(FFI): add an explicit function to enable ANSI terminal support on Windows (Ronald Holshausen, Thu Feb 3 11:11:30 2022 +1100) * 07806b05 - bump version to 0.2.1 (Ronald Holshausen, Mon Jan 31 14:28:33 2022 +1100) -# 0.2.0 - Bugfixes + FFI functions to return the verifier output and results +## 0.2.0 - Bugfixes + FFI functions to return the verifier output and results * 1d95f3cf - chore: Bump minor version of Pact FFI lib (Ronald Holshausen, Mon Jan 31 13:58:42 2022 +1100) * 739cb7b8 - chore: fix missing import on Windows (Ronald Holshausen, Mon Jan 31 11:16:55 2022 +1100) @@ -918,7 +918,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8bee40b0 - feat(ffi)!: Separate verification and publishing options (Adam Rodger, Tue Jan 25 16:31:29 2022 +0000) * bef310b2 - bump version to 0.1.7 (Ronald Holshausen, Mon Jan 17 17:20:07 2022 +1100) -# 0.1.6 - Maintenance Release +## 0.1.6 - Maintenance Release * 0c200ea5 - chore: Upgrade pact verifier crate to 0.12.4 (Ronald Holshausen, Mon Jan 17 17:07:18 2022 +1100) * 10c9b842 - chore: Upgrade pact_mock_server to 0.8.6 (Ronald Holshausen, Mon Jan 17 16:57:31 2022 +1100) @@ -929,7 +929,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c2089645 - fix: log crate version must be fixed across all crates (including plugin driver) (Ronald Holshausen, Fri Jan 14 16:10:50 2022 +1100) * 255d6eba - bump version to 0.1.6 (Ronald Holshausen, Tue Jan 4 10:59:38 2022 +1100) -# 0.1.5 - Maintenance Release +## 0.1.5 - Maintenance Release * 7dbdd456 - chore: update test log crate (Ronald Holshausen, Tue Jan 4 10:46:46 2022 +1100) * 1b16e30a - chore: test-env-log has been renamed to test-log (Ronald Holshausen, Tue Jan 4 10:43:51 2022 +1100) @@ -945,14 +945,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8911d5b0 - chore: update to latest plugin driver crate (metrics fixes) (Ronald Holshausen, Mon Dec 20 12:11:35 2021 +1100) * 9153cc5b - bump version to 0.1.5 (Ronald Holshausen, Wed Dec 15 16:44:22 2021 +1100) -# 0.1.4 - Maintenance Release +## 0.1.4 - Maintenance Release * a1d03b95 - chore: update dependent pact crates (Ronald Holshausen, Wed Dec 15 16:34:39 2021 +1100) * f8042d6b - feat: add metrics event for provider verification (Ronald Holshausen, Tue Dec 14 17:29:44 2021 +1100) * 4f1ba7d9 - chore: update to the latest plugin driver (Ronald Holshausen, Tue Dec 14 13:55:02 2021 +1100) * 2f97c25f - bump version to 0.1.4 (Ronald Holshausen, Thu Dec 2 13:21:24 2021 +1100) -# 0.1.3 - Bugfix Release +## 0.1.3 - Bugfix Release * 4184e562 - chore(pact_ffi): upgrade to latest models, matching and verifier crates (Ronald Holshausen, Thu Dec 2 13:13:37 2021 +1100) * d43b1847 - Merge pull request #164 from tienvx/feat-filter-info (Ronald Holshausen, Fri Nov 19 11:38:41 2021 +1100) @@ -962,7 +962,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 86ea5779 - chore: fix FFI release build (Ronald Holshausen, Wed Nov 17 15:52:14 2021 +1100) * 5480733f - bump version to 0.1.3 (Ronald Holshausen, Wed Nov 17 15:20:29 2021 +1100) -# 0.1.2 - Bugfix Release +## 0.1.2 - Bugfix Release * 631167fa - chore: update to latest mock server crate (Ronald Holshausen, Wed Nov 17 15:13:32 2021 +1100) * 87e7f11e - chore: remove note from pactffi_write_pact_file (Ronald Holshausen, Wed Nov 17 14:55:22 2021 +1100) @@ -975,7 +975,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * e4a445ba - fix: race condition when shutting down plugin via FFI (Ronald Holshausen, Tue Nov 16 16:01:18 2021 +1100) * f3c5e7c1 - bump version to 0.1.2 (Ronald Holshausen, Tue Nov 16 14:04:54 2021 +1100) -# 0.1.1 - Support V4 synchronous messages + protobuf plugin +## 0.1.1 - Support V4 synchronous messages + protobuf plugin * 5d974c4a - chore: update to latest models and plugin driver crates (Ronald Holshausen, Tue Nov 16 11:56:53 2021 +1100) * 19beb0ea - feat(plugins): add support for synch messages via FFI (Ronald Holshausen, Tue Nov 16 10:06:07 2021 +1100) @@ -987,7 +987,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 2027537d - refactor: update FFI to use V4 models internally (Ronald Holshausen, Mon Nov 8 16:44:39 2021 +1100) * e1ff90c7 - bump version to 0.1.1 (Ronald Holshausen, Thu Nov 4 17:23:32 2021 +1100) -# 0.1.0 - Pact V4 release +## 0.1.0 - Pact V4 release * 59e21413 - feat: Pact V4 release (Ronald Holshausen, Thu Nov 4 16:54:56 2021 +1100) * 400a1231 - chore: drop beta from pact_verifier version (Ronald Holshausen, Thu Nov 4 15:56:22 2021 +1100) @@ -1033,7 +1033,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * bdfc6f02 - feat(plugins): Load required plugins when verifying a V4 pact (Ronald Holshausen, Wed Aug 11 14:23:54 2021 +1000) * dfe3cd42 - chore: bump minor version of Pact verifier libs (Ronald Holshausen, Mon Aug 9 15:10:47 2021 +1000) -# 0.0.3 - support native TLS certs + updated verifier FFI functions +## 0.0.3 - support native TLS certs + updated verifier FFI functions * 42be9eb8 - feat: add FFI functions to extract logs from a verifcation run (Ronald Holshausen, Tue Sep 28 12:48:40 2021 +1000) * 40cf1ab9 - chore: mark pactffi_logger_attach_sink as unsafe #148 (Ronald Holshausen, Fri Sep 24 11:36:38 2021 +1000) @@ -1070,14 +1070,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * eaefe4d2 - chore: correct the conan recipes (Ronald Holshausen, Sun Aug 22 16:18:50 2021 +1000) * 72125560 - bump version to 0.0.3 (Ronald Holshausen, Sun Aug 22 15:51:25 2021 +1000) -# 0.0.2 - Bugfix Release +## 0.0.2 - Bugfix Release * 9370327c - feat(FFI): Added initial verifier FFI prototype (Ronald Holshausen, Sun Aug 22 15:01:17 2021 +1000) * c274ca1a - fix: use the pacts for verification endpoint if the conusmer selectors are specified #133 (Ronald Holshausen, Sun Aug 22 11:51:22 2021 +1000) * 3215821e - chore: correct the OSX release (Ronald Holshausen, Tue Aug 17 12:47:20 2021 +1000) * 64cf38e9 - bump version to 0.0.2 (Ronald Holshausen, Tue Aug 17 11:00:54 2021 +1000) -# 0.0.1 - M1 architecture support + Bugfixes +## 0.0.1 - M1 architecture support + Bugfixes * a9940325 - chore: release m1 arm package for new Mac hardware (Matt Fellows, Wed Aug 11 22:57:46 2021 +1000) * b5a7b779 - feat: support new selectors (Matt Fellows, Mon Aug 9 13:27:33 2021 +1000) @@ -1098,4 +1098,4 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 6d1ff318 - fix: conan packages for pact_ffi (Ronald Holshausen, Mon Jul 12 09:23:48 2021 +1000) * d7079e43 - bump version to 0.0.1 (Ronald Holshausen, Sun Jul 11 17:47:18 2021 +1000) -# 0.0.0 - Initial Release +## 0.0.0 - Initial Release diff --git a/rust/pact_ffi/Cargo.toml b/rust/pact_ffi/Cargo.toml index 570499aef..4bbe4d976 100644 --- a/rust/pact_ffi/Cargo.toml +++ b/rust/pact_ffi/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "pact_ffi" -version = "0.5.12" +version = "0.5.11" authors = ["Ronald Holshausen <ronald.holshausen@gmail.com>", "Matt Fellows <matt.fellows@onegeek.com.au>", "Andrew Lilley Brinker <abrinker@mitre.org>", "Caleb Stepanian <cstepanian@mitre.org>"] edition = "2021" description = "Pact interface for foreign languages." homepage = "https://www.pact.io" -repository = "https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi" +repository = "https://github.com/pact-foundation/pact-reference" readme = "README.md" keywords = ["testing", "pact", "cdc", "mockserver", "ffi"] license = "MIT" @@ -67,3 +67,11 @@ crate-type = ["cdylib", "staticlib", "rlib"] [build-dependencies] os_info = { version = "3.14.0", default-features = false } + +[package.metadata.dist] +dist = true +package-libraries = ["cdylib", "cstaticlib"] + +[[package.metadata.dist.extra-artifacts]] +artifacts = ["pact.h", "pact-cpp.h"] +build = ["./build-headers.sh"] diff --git a/rust/pact_ffi/Dockerfile.linux-build b/rust/pact_ffi/Dockerfile.linux-build deleted file mode 100644 index e5facac64..000000000 --- a/rust/pact_ffi/Dockerfile.linux-build +++ /dev/null @@ -1,6 +0,0 @@ -FROM rust:stretch - -RUN rustup install stable && rustup default stable -RUN rustup component add rustfmt - -ENTRYPOINT ["/bin/bash"] diff --git a/rust/pact_ffi/README.md b/rust/pact_ffi/README.md index 6547b7ac2..fcf38f109 100644 --- a/rust/pact_ffi/README.md +++ b/rust/pact_ffi/README.md @@ -43,25 +43,6 @@ You can also optionally install the built artifacts as follows: $ cmake --install . --prefix=<install location (omit to install globally)> ``` -## Conan recipes - -The library files (lib and DLLs) are published as Conan recipes to the repository at https://pactfoundation.jfrog.io/artifactory/api/conan/pactfoundation-conan. -To use it with a CMake project, add that repository as a Conan remote and then use Conan to generate -the CMake dependency files for your project. There are two recipes, `pact_ffi` to use the static lib and -`pact_ffi_dll` to use the dynamic lib. - -```console -$ conan remote add pact-foundation https://pactfoundation.jfrog.io/artifactory/api/conan/pactfoundation-conan -$ conan search pact_ffi -r=pact-foundation -Existing package recipes: - -pact_ffi/0.0.0@pact/beta -$ conan search pact_ffi_dll -r=pact-foundation -Existing package recipes: - -pact_ffi_dll/0.0.0@pact/beta -``` - ## Examples This project also includes example uses which depend on the crate via CMake. diff --git a/rust/pact_ffi/build-headers.sh b/rust/pact_ffi/build-headers.sh new file mode 100755 index 000000000..4c592e148 --- /dev/null +++ b/rust/pact_ffi/build-headers.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# Generates pact.h and pact-cpp.h in the current directory; dist uploads +# them with each pact_ffi release. +set -euo pipefail + +ffi_dir=$(cd "$(dirname "$0")" && pwd) +# dist's global build job has no mise; install the version mise.toml pins. +if ! command -v cbindgen >/dev/null; then + version=$(sed -n 's/^"cargo:cbindgen" = "\(.*\)"$/\1/p' "$ffi_dir/../../mise.toml") + cargo install cbindgen --locked --version "$version" +fi +# cbindgen expands macros with -Zunpretty=expanded, a nightly-only flag. +rustup run nightly rustc --version >/dev/null 2>&1 \ + || rustup toolchain install nightly --profile minimal +(cd "$ffi_dir" && rustup run nightly cbindgen --config cbindgen.toml --crate pact_ffi --output "$OLDPWD/pact.h") +(cd "$ffi_dir" && rustup run nightly cbindgen --config cbindgen-c++.toml --crate pact_ffi --output "$OLDPWD/pact-cpp.h") diff --git a/rust/pact_ffi/conan/dll/conanfile.py b/rust/pact_ffi/conan/dll/conanfile.py deleted file mode 100644 index 331025d45..000000000 --- a/rust/pact_ffi/conan/dll/conanfile.py +++ /dev/null @@ -1,50 +0,0 @@ -from conans import ConanFile, VisualStudioBuildEnvironment, CMake, tools - -class CbindgenTestConan(ConanFile): - name = "pact_ffi_dll" - version = "0.0.4" - description = "Pact/Rust FFI bindings (DLL/Shared Lib)" - url = "https://pactfoundation.jfrog.io/artifactory/pactfoundation-conan/" - homepage = "https://github.com/pact-foundation/pact-reference" - license = "MIT" - settings = "os", "compiler", "build_type", "arch" - no_copy_source = True - requires = "openssl/1.1.1k" - topics = ("pact", "consumer-driven-contracts", "contract-testing", "mock-server") - - def build(self): - if self.settings.os == "Windows": - url = ("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/pact_ffi-windows-x86_64.dll.gz" - % (str(self.version))) - tools.download(url, "pact_ffi.dll.gz") - tools.unzip("pact_ffi.dll.gz") - url = ("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/pact_ffi-windows-x86_64.dll.lib.gz" - % (str(self.version))) - tools.download(url, "pact_ffi.dll.lib.gz") - tools.unzip("pact_ffi.dll.lib.gz") - elif self.settings.os == "Linux": - url = ("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-linux-x86_64.so.gz" - % (str(self.version))) - tools.download(url, "libpact_ffi.so.gz") - tools.unzip("libpact_ffi.so.gz") - elif self.settings.os == "Macos": - url = ("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-osx-x86_64.dylib.gz" - % (str(self.version))) - tools.download(url, "libpact_ffi.dylib.gz") - tools.unzip("libpact_ffi.dylib.gz") - else: - raise Exception("Binary does not exist for these settings") - tools.download(("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/pact.h" - % (str(self.version))), "include/pact.h") - tools.download(("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/pact-cpp.h" - % (str(self.version))), "include/pact-cpp.h") - - def package(self): - self.copy("libpact_ffi*.so", "lib", "") - self.copy("libpact_ffi*.dylib", "lib", "") - self.copy("pact_ffi*.lib", "lib", "") - self.copy("pact_ffi*.dll", "bin", "") - self.copy("*.h", "", "") - - def package_info(self): # still very useful for package consumers - self.cpp_info.libs = ["pact_ffi"] diff --git a/rust/pact_ffi/conan/dll/test_package/CMakeLists.txt b/rust/pact_ffi/conan/dll/test_package/CMakeLists.txt deleted file mode 100644 index 778032a53..000000000 --- a/rust/pact_ffi/conan/dll/test_package/CMakeLists.txt +++ /dev/null @@ -1,16 +0,0 @@ -cmake_minimum_required(VERSION 3.1) -project(PackageTest CXX) - -include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) -conan_basic_setup() - -set( CMAKE_CXX_FLAGS " -pthread " ) - -add_executable(example example.cpp) -target_link_libraries(example ${CONAN_LIBS} dl) -include_directories(${CONAN_INCLUDE_DIRS}) - -enable_testing() -add_test(NAME example - WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin - COMMAND example) diff --git a/rust/pact_ffi/conan/dll/test_package/conanfile.py b/rust/pact_ffi/conan/dll/test_package/conanfile.py deleted file mode 100644 index 8a640a6b3..000000000 --- a/rust/pact_ffi/conan/dll/test_package/conanfile.py +++ /dev/null @@ -1,25 +0,0 @@ -from conans import ConanFile, CMake, tools - -class CbindgentestTestConan(ConanFile): - settings = "os", "compiler", "build_type", "arch" - generators = "cmake" - requires = "openssl/1.1.1k" - - def build(self): - cmake = CMake(self) - cmake.configure() - cmake.build() - - def imports(self): - self.copy(pattern="*.dll", dst="bin", - src="bin") - self.copy(pattern="*.dylib", dst="bin", - src="lib") - self.copy(pattern="*.so*", dst="bin", - src="lib") - - def test(self): - if not tools.cross_building(self.settings): - with tools.run_environment(self): - cmake = CMake(self) - cmake.test() diff --git a/rust/pact_ffi/conan/dll/test_package/example.cpp b/rust/pact_ffi/conan/dll/test_package/example.cpp deleted file mode 100644 index 4920b2938..000000000 --- a/rust/pact_ffi/conan/dll/test_package/example.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include <pact-cpp.h> - -int main(int argc, char *argv[]) { - int port = pactffi_create_mock_server("{}", "127.0.0.1:0", false); - pactffi_mock_server_matched(port); - return 0; -} diff --git a/rust/pact_ffi/conan/lib/conanfile.py b/rust/pact_ffi/conan/lib/conanfile.py deleted file mode 100644 index b1957d5ac..000000000 --- a/rust/pact_ffi/conan/lib/conanfile.py +++ /dev/null @@ -1,44 +0,0 @@ -from conans import ConanFile, VisualStudioBuildEnvironment, CMake, tools - -class CbindgenTestConan(ConanFile): - name = "pact_ffi" - version = "0.0.4" - description = "Pact/Rust FFI bindings" - url = "https://pactfoundation.jfrog.io/artifactory/pactfoundation-conan/" - homepage = "https://github.com/pact-foundation/pact-reference" - license = "MIT" - settings = "os", "compiler", "build_type", "arch" - no_copy_source = True - requires = "openssl/1.1.1k" - topics = ("pact", "consumer-driven-contracts", "contract-testing", "mock-server") - - def build(self): - if self.settings.os == "Windows": - url = ("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/pact_ffi-windows-x86_64.lib.gz" - % (str(self.version))) - tools.download(url, "pact_ffi.lib.gz") - tools.unzip("pact_ffi.lib.gz") - elif self.settings.os == "Linux": - url = ("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-linux-x86_64.a.gz" - % (str(self.version))) - tools.download(url, "libpact_ffi.a.gz") - tools.unzip("libpact_ffi.a.gz") - elif self.settings.os == "Macos": - url = ("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/libpact_ffi-osx-x86_64.a.gz" - % (str(self.version))) - tools.download(url, "libpact_ffi.a.gz") - tools.unzip("libpact_ffi.a.gz") - else: - raise Exception("Binary does not exist for these settings") - tools.download(("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/pact.h" - % (str(self.version))), "include/pact.h") - tools.download(("https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v%s/pact-cpp.h" - % (str(self.version))), "include/pact-cpp.h") - - def package(self): - self.copy("libpact_ffi*.a", "lib", "") - self.copy("pact_ffi*.lib", "lib", "") - self.copy("*.h", "", "") - - def package_info(self): # still very useful for package consumers - self.cpp_info.libs = ["pact_ffi"] diff --git a/rust/pact_ffi/conan/lib/test_package/CMakeLists.txt b/rust/pact_ffi/conan/lib/test_package/CMakeLists.txt deleted file mode 100644 index 778032a53..000000000 --- a/rust/pact_ffi/conan/lib/test_package/CMakeLists.txt +++ /dev/null @@ -1,16 +0,0 @@ -cmake_minimum_required(VERSION 3.1) -project(PackageTest CXX) - -include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) -conan_basic_setup() - -set( CMAKE_CXX_FLAGS " -pthread " ) - -add_executable(example example.cpp) -target_link_libraries(example ${CONAN_LIBS} dl) -include_directories(${CONAN_INCLUDE_DIRS}) - -enable_testing() -add_test(NAME example - WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin - COMMAND example) diff --git a/rust/pact_ffi/conan/lib/test_package/conanfile.py b/rust/pact_ffi/conan/lib/test_package/conanfile.py deleted file mode 100644 index fd97aaf66..000000000 --- a/rust/pact_ffi/conan/lib/test_package/conanfile.py +++ /dev/null @@ -1,27 +0,0 @@ -import os - -from conans import ConanFile, CMake, tools - -class CbindgentestTestConan(ConanFile): - settings = "os", "compiler", "build_type", "arch" - generators = "cmake" - requires = "openssl/1.1.1d" - - def build(self): - cmake = CMake(self) - cmake.configure() - cmake.build() - - def imports(self): - self.copy(pattern="*.dll", dst="bin", - src="bin") - self.copy(pattern="*.dylib", dst="bin", - src="lib") - self.copy(pattern="*.so*", dst="bin", - src="lib") - - def test(self): - if not tools.cross_building(self.settings): - with tools.run_environment(self): - cmake = CMake(self) - cmake.test() diff --git a/rust/pact_ffi/conan/lib/test_package/example.cpp b/rust/pact_ffi/conan/lib/test_package/example.cpp deleted file mode 100644 index 4920b2938..000000000 --- a/rust/pact_ffi/conan/lib/test_package/example.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include <pact-cpp.h> - -int main(int argc, char *argv[]) { - int port = pactffi_create_mock_server("{}", "127.0.0.1:0", false); - pactffi_mock_server_matched(port); - return 0; -} diff --git a/rust/pact_ffi/publish.md b/rust/pact_ffi/publish.md deleted file mode 100644 index 6b4b83153..000000000 --- a/rust/pact_ffi/publish.md +++ /dev/null @@ -1,22 +0,0 @@ -## Publishing the FFI libs to conan repo - -You're obviously going to replace the versions below with the actual versions you're releasing, and not -just copy it verbatim and expect magical things to happen. - -### For lib conan package - -``` - git checkout libpact_ffi-v0.0.7 - cd conan/lib/ - conan create . pact/beta - conan upload pact_ffi/0.0.7@pact/beta -r=pact-foundation -``` - -### For DLL conan package - -``` - git checkout libpact_ffi-v0.0.7 - cd conan/dll/ - conan create . pact/beta - conan upload pact_ffi_dll/0.0.7@pact/beta -r=pact-foundation -``` diff --git a/rust/pact_ffi/release-ios.sh b/rust/pact_ffi/release-ios.sh deleted file mode 100755 index 38cdfdf10..000000000 --- a/rust/pact_ffi/release-ios.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -x -# Requires all architectures to be added to in order to produce universal library for iOS. -# ```rustup target add aarch64-apple-ios armv7-apple-ios armv7s-apple-ios x86_64-apple-ios i386-apple-ios -# cargo install cargo-lipo``` - -cargo clean -cargo lipo --release -mkdir -p ../release_artifacts -gzip -c ../target/universal/release/libpact_ffi.a > ../release_artifacts/libpact_ffi-ios-universal.a.gz -openssl dgst -sha256 -r ../release_artifacts/libpact_ffi-ios-universal.a.gz > ../release_artifacts/libpact_ffi-ios-universal.a.gz.sha256 diff --git a/rust/pact_ffi/release-linux.sh b/rust/pact_ffi/release-linux.sh deleted file mode 100755 index 91b960444..000000000 --- a/rust/pact_ffi/release-linux.sh +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/bash - -set -e -set -x - -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -APP_NAME=libpact_ffi - -source "$RUST_DIR/scripts/gzip-and-sum.sh" -ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"} -mkdir -p "$ARTIFACTS_DIR" -install_cross() { - cargo install cross@0.2.5 --force -} -install_cross_latest() { - cargo install cross --git https://github.com/cross-rs/cross --force -} -clean_cargo_release_build() { - rm -rf $CARGO_TARGET_DIR/release/build -} - -export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"} - -# All flags passed to this script are passed to cargo. -case $1 in -x86_64-unknown-linux-musl) - TARGET=$1 - shift - ;; -aarch64-unknown-linux-musl) - TARGET=$1 - shift - ;; -x86_64-unknown-linux-gnu) - TARGET=$1 - shift - ;; -aarch64-unknown-linux-gnu) - TARGET=$1 - shift - ;; -*) ;; -esac -cargo_flags=("$@") - -build_target() { - TARGET=$1 - - case $TARGET in - x86_64-unknown-linux-musl) - FILE_SUFFIX=linux-x86_64-musl - RUSTFLAGS="-C target-feature=-crt-static" - ;; - aarch64-unknown-linux-musl) - FILE_SUFFIX=linux-aarch64-musl - RUSTFLAGS="-C target-feature=-crt-static" - ;; - x86_64-unknown-linux-gnu) - FILE_SUFFIX=linux-x86_64 - ;; - aarch64-unknown-linux-gnu) - FILE_SUFFIX=linux-aarch64 - ;; - *) - echo unknown target $TARGET - exit 1 - ;; - esac - RUSTFLAGS=${RUSTFLAGS:-""} cross build --target $TARGET "${cargo_flags[@]}" - - if [[ "${cargo_flags[*]}" =~ "--release" ]]; then - file "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.a" - file "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.so" - du -sh "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.a" - du -sh "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.so" - gzip_and_sum \ - "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.a" \ - "$ARTIFACTS_DIR/$APP_NAME-$FILE_SUFFIX.a.gz" - gzip_and_sum \ - "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.so" \ - "$ARTIFACTS_DIR/$APP_NAME-$FILE_SUFFIX.so.gz" - fi -} - -build_header() { - rustup toolchain install nightly - rustup run nightly cbindgen \ - --config cbindgen.toml \ - --crate pact_ffi \ - --output "$ARTIFACTS_DIR/pact.h" - rustup run nightly cbindgen \ - --config cbindgen-c++.toml \ - --crate pact_ffi \ - --output "$ARTIFACTS_DIR/pact-cpp.h" -} - -install_cross -if [ ! -z "$TARGET" ]; then - echo building for target $TARGET - build_target $TARGET - - # If we are building indiv targets, ensure we build the headers - # for at least 1 nominated target - if [ "$TARGET" == "x86_64-unknown-linux-gnu" ]; then - build_header - fi -else - echo building for all targets - # clean release build to avoid conflicting symbols when building all targets - clean_cargo_release_build - build_target x86_64-unknown-linux-gnu - clean_cargo_release_build - build_target aarch64-unknown-linux-gnu - clean_cargo_release_build - build_target x86_64-unknown-linux-musl - clean_cargo_release_build - build_target aarch64-unknown-linux-musl - build_header -fi diff --git a/rust/pact_ffi/release-macos.sh b/rust/pact_ffi/release-macos.sh deleted file mode 100755 index f4edfcada..000000000 --- a/rust/pact_ffi/release-macos.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -set -e -set -x - -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -APP_NAME=libpact_ffi - -source "$RUST_DIR/scripts/gzip-and-sum.sh" -ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"} -mkdir -p "$ARTIFACTS_DIR" -export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"} - -# We target the oldest supported version of macOS. -export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET:-12} - -# All flags passed to this script are passed to cargo. -case $1 in -x86_64-apple-darwin) - TARGET=$1 - shift - ;; -aarch64-apple-darwin) - TARGET=$1 - shift - ;; -*) ;; -esac -cargo_flags=("$@") - -build_target() { - TARGET=$1 - - case $TARGET in - x86_64-apple-darwin) - ARCH_SUFFIX=x86_64 - ;; - aarch64-apple-darwin) - ARCH_SUFFIX=aarch64 - ;; - *) - echo unknown target $TARGET - exit 1 - ;; - esac - cargo build --target $TARGET "${cargo_flags[@]}" - - if [[ "${cargo_flags[*]}" =~ "--release" ]]; then - file "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.a" - file "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.dylib" - du -sh "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.a" - du -sh "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.dylib" - gzip_and_sum \ - "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.a" \ - "$ARTIFACTS_DIR/$APP_NAME-macos-$ARCH_SUFFIX.a.gz" - gzip_and_sum \ - "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.dylib" \ - "$ARTIFACTS_DIR/$APP_NAME-macos-$ARCH_SUFFIX.dylib.gz" - fi -} - -if [ ! -z "$TARGET" ]; then - echo building for target $TARGET - build_target $TARGET -else - echo building for all targets - build_target x86_64-apple-darwin - build_target aarch64-apple-darwin -fi diff --git a/rust/pact_ffi/release-win.sh b/rust/pact_ffi/release-win.sh deleted file mode 100755 index 4cfb26d89..000000000 --- a/rust/pact_ffi/release-win.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -set -e -set -x - -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -APP_NAME=pact_ffi - -source "$RUST_DIR/scripts/gzip-and-sum.sh" -ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"} -mkdir -p "$ARTIFACTS_DIR" -export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"} - -# All flags passed to this script are passed to cargo. -case $1 in -x86_64-pc-windows-msvc) - TARGET=$1 - shift - ;; -aarch64-pc-windows-msvc) - TARGET=$1 - shift - ;; -*) ;; -esac -cargo_flags=("$@") -build_target() { - TARGET=$1 - - case $TARGET in - x86_64-pc-windows-msvc) - FILE_SUFFIX=windows-x86_64 - ;; - aarch64-pc-windows-msvc) - FILE_SUFFIX=windows-aarch64 - ;; - *) - echo unknown target $TARGET - exit 1 - ;; - esac - cargo build --target $TARGET "${cargo_flags[@]}" - - if [[ "${cargo_flags[*]}" =~ "--release" ]]; then - gzip_and_sum \ - "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.dll" \ - "$ARTIFACTS_DIR/$APP_NAME-$FILE_SUFFIX.dll.gz" - gzip_and_sum \ - "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.dll.lib" \ - "$ARTIFACTS_DIR/$APP_NAME-$FILE_SUFFIX.dll.lib.gz" - gzip_and_sum \ - "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.lib" \ - "$ARTIFACTS_DIR/$APP_NAME-$FILE_SUFFIX.lib.gz" - fi -} - -if [ ! -z "$TARGET" ]; then - echo building for target $TARGET - build_target $TARGET -else - echo building for all targets - build_target x86_64-pc-windows-msvc - build_target aarch64-pc-windows-msvc -fi diff --git a/rust/pact_ffi/release.groovy b/rust/pact_ffi/release.groovy deleted file mode 100755 index fd36886ba..000000000 --- a/rust/pact_ffi/release.groovy +++ /dev/null @@ -1,128 +0,0 @@ -#!/usr/bin/env groovy -@Grab(group = 'com.github.zafarkhaja', module = 'java-semver', version = '0.9.0') -import com.github.zafarkhaja.semver.Version - -def executeOnShell(String command, Closure closure = null) { - executeOnShell(command, new File(System.properties.'user.dir'), closure) -} - -def executeOnShell(String command, File workingDir, Closure closure = null) { - println command - def processBuilder = new ProcessBuilder(['sh', '-c', command]) - .directory(workingDir) - if (closure) { - processBuilder.redirectErrorStream(true) - } else { - processBuilder.inheritIO() - } - def process = processBuilder.start() - if (closure) { - process.inputStream.eachLine closure - } - process.waitFor() - if (process.exitValue() > 0) { - System.exit(process.exitValue()) - } -} - -void ask(String prompt, String defaultValue = 'Y', Closure cl) { - def promptValue = System.console().readLine(prompt + ' ').trim() - if (promptValue.empty) { - promptValue = defaultValue - } - if (promptValue.toUpperCase() == 'Y') { - cl.call() - } -} - -executeOnShell 'git pull' - -ask('Execute Build?: [Y]') { - executeOnShell 'cargo clean' - executeOnShell 'mkdir -p ../release_artifacts' - executeOnShell 'cargo build' - executeOnShell 'cargo test' -} - -ask('Execute CMake Build?: [Y]') { - executeOnShell 'mkdir -p build' - executeOnShell 'cd build && cmake ..' - executeOnShell 'cd build && cmake --build .' -} - -def projectProps = new File('Cargo.toml').text -def versionMatch = projectProps =~ /(?m)version\s*=\s*"(.*)"/ -def version = versionMatch[0][1] - -def prevTag = 'git describe --abbrev=0 --tags --match=libpact_ffi-*'.execute().text.trim() -def changelog = [] -executeOnShell("git log --pretty='* %h - %s (%an, %ad)' ${prevTag}..HEAD .".toString()) { - println it - changelog << it -} - -def releaseDesc = System.console().readLine('Describe this release: [Bugfix Release]').trim() -if (releaseDesc.empty) { - releaseDesc = 'Bugfix Release' -} - -def releaseVer = System.console().readLine("What is the version for this release?: [$version]").trim() -if (releaseVer.empty) { - releaseVer = version -} - -ask('Update Changelog?: [Y]') { - def changeLogFile = new File('CHANGELOG.md') - def changeLogFileLines = changeLogFile.readLines() - changeLogFile.withPrintWriter() { p -> - p.println(changeLogFileLines[0]) - - p.println() - p.println("# $releaseVer - $releaseDesc") - p.println() - changelog.each { - p.println(it) - } - - changeLogFileLines[1..-1].each { - p.println(it) - } - } - - executeOnShell("git add CHANGELOG.md") - executeOnShell("git commit -m 'update changelog for release $releaseVer'") - executeOnShell("git status") - executeOnShell("git diff HEAD^..HEAD") -} - -ask('Tag and Push commits?: [Y]') { - executeOnShell 'git push' - executeOnShell("git tag libpact_ffi-v${releaseVer}") - executeOnShell 'git push --tags' -} - -ask('Publish library to crates.io?: [Y]') { - executeOnShell 'rm -rf build' - executeOnShell 'cargo package' - executeOnShell 'cargo publish' -} - -ask('Publish Conan packages?: [Y]') { - executeOnShell "cd conan/lib && conan create . pact/beta && CONAN_REVISIONS_ENABLED=1 conan upload pact_ffi/${releaseVer}@pact/beta -r=pact-foundation" - executeOnShell "cd conan/dll && conan create . pact/beta && CONAN_REVISIONS_ENABLED=1 conan upload pact_ffi_dll/${releaseVer}@pact/beta -r=pact-foundation" -} - -def nextVer = Version.valueOf(releaseVer).incrementPatchVersion() -ask("Bump version to $nextVer?: [Y]") { - executeOnShell "sed -i -e 's/^version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml" - executeOnShell "sed -i -e 's/version = \"${releaseVer}\"/version = \"${nextVer}\"/' conan/lib/conanfile.py" - executeOnShell "sed -i -e 's/version = \"${releaseVer}\"/version = \"${nextVer}\"/' conan/dll/conanfile.py" - executeOnShell("cargo update") - executeOnShell("git add Cargo.toml README.md conan/lib/conanfile.py conan/dll/conanfile.py") - executeOnShell("git add ../Cargo.lock") - executeOnShell("git diff --cached") - ask("Commit and push this change?: [Y]") { - executeOnShell("git commit -m 'bump version to $nextVer'") - executeOnShell("git push") - } -} diff --git a/rust/pact_matching/CHANGELOG.md b/rust/pact_matching/CHANGELOG.md index 8c662c50a..772661609 100644 --- a/rust/pact_matching/CHANGELOG.md +++ b/rust/pact_matching/CHANGELOG.md @@ -1,13 +1,13 @@ -To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD .` replacing TAGNAME and HEAD as appropriate. +# Changelog -# 2.0.11 - Support plugins calling core framework matching rules +## 2.0.11 - Support plugins calling core framework matching rules * 387a477e - chore: Update pact-plugin-driver to 1.2.2 (Ronald Holshausen, Mon Aug 10 16:39:48 2026 +1000) * 973d83c7 - feat(plugins): Advertise the transports and interaction types this framework handles (Ronald Holshausen, Fri Aug 7 17:06:19 2026 +1000) * 251d86bc - feat(plugins): Register the standard matching rules and generators as core plugin capabilities (Ronald Holshausen, Fri Aug 7 16:10:06 2026 +1000) * 323b7dd4 - bump version to 2.0.11 [skip ci] (Ronald Holshausen, Fri Aug 7 09:09:42 2026 +1000) -# 2.0.10 - Support matching rules and generators from plugins +## 2.0.10 - Support matching rules and generators from plugins * 8740c3fe - feat(v2-plugins): Support matching rules and generators from plugins (Ronald Holshausen, Thu Aug 6 15:13:56 2026 +1000) * 343a96fe - chore: Update pact-plugin-driver to 1.2.1 (Ronald Holshausen, Thu Aug 6 15:09:50 2026 +1000) @@ -16,7 +16,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0ce1b247 - chore(pact-matching): reqwest form requires the form feature enabled (Ronald Holshausen, Tue Aug 4 10:30:31 2026 +1000) * a547439e - bump version to 2.0.10 [skip ci] (Ronald Holshausen, Tue Aug 4 09:41:59 2026 +1000) -# 2.0.9 - Maintenance Release +## 2.0.9 - Maintenance Release * c99c46c9 - chore(pact-matching): Update reqwest to 0.13.4 and set rustls-no-provider (Ronald Holshausen, Tue Aug 4 09:16:28 2026 +1000) * 3043dc06 - chore(pact-matching): Update dependencies (Ronald Holshausen, Tue Aug 4 09:14:51 2026 +1000) @@ -25,7 +25,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 59535d64 - chore: Update pact_models to 1.3.12 (Ronald Holshausen, Thu Jul 30 16:41:12 2026 +1000) * 7188e2ce - bump version to 2.0.9 [skip ci] (Ronald Holshausen, Wed Jul 22 13:59:59 2026 +1000) -# 2.0.8 - Plugin Host-provided matching and generation interface +## 2.0.8 - Plugin Host-provided matching and generation interface * 050ec62d - fix: parenthesize the text-matcher closure to survive async_trait's re-tokenization (Ronald Holshausen, Wed Jul 22 12:00:25 2026 +1000) * 06087bdc - feat: register host-provided core content matcher/generator capabilities (Ronald Holshausen, Wed Jul 22 11:40:50 2026 +1000) @@ -33,24 +33,24 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 51d9f5fb - chore: Update pact-plugin-driver to 1.0.0-beta.6 (Ronald Holshausen, Thu Jul 2 17:08:12 2026 +1000) * 06ae6424 - bump version to 2.0.8 [skip ci] (Ronald Holshausen, Wed Jun 24 14:56:32 2026 +1000) -# 2.0.7 - V2 plugin logging improvements +## 2.0.7 - V2 plugin logging improvements * 40318b16 - feat(008): Plugin observability โ€” test run ID correlation and FFI log sink (#537) (Ronald Holshausen, Wed Jun 24 10:08:42 2026 +1000) * d76db156 - bump version to 2.0.7 [skip ci] (Ronald Holshausen, Fri Jun 19 09:26:58 2026 +1000) -# 2.0.6 - Maintenance Release +## 2.0.6 - Maintenance Release * 46a285ae - chore: Update pact_models to 1.3.11 (Ronald Holshausen, Thu Jun 18 16:00:45 2026 +1000) * b0554f31 - chore: add crate name and version to all http clients (JP-Ellis, Thu Jun 18 09:26:08 2026 +1000) * d3ae94a4 - bump version to 2.0.6 (Ronald Holshausen, Tue Jun 9 14:58:21 2026 +1000) -# 2.0.5 - V2 plugin support +## 2.0.5 - V2 plugin support * 8ec724bb - chore: Update pact-plugin-driver to 1.0.0-beta.2 to support V2 plugins (Ronald Holshausen, Tue Jun 9 14:49:40 2026 +1000) * a579270d - chore: update Pact plugin driver to version supporting initial V2 plugins (Ronald Holshausen, Fri May 29 13:41:41 2026 +1000) * 6bf379a6 - bump version to 2.0.5 (Ronald Holshausen, Wed May 27 16:09:23 2026 +1000) -# 2.0.4 - Maintenance Release +## 2.0.4 - Maintenance Release * fb640a1e - docs(pact_matching): Add performance optimisation guide (Ronald Holshausen, Tue May 19 11:58:19 2026 +1000) * 5d721171 - perf(pact_matching): Eliminate redundant tree-cloning in V2 engine interpreter (Ronald Holshausen, Tue May 19 11:13:09 2026 +1000) @@ -68,14 +68,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 92490fee - chore(pact_matching): Update dependencies (Ronald Holshausen, Thu Feb 19 10:10:55 2026 +1100) * 71dab8b2 - bump version to 2.0.4 (Ronald Holshausen, Thu Feb 19 10:04:11 2026 +1100) -# 2.0.3 - Bugfix Release +## 2.0.3 - Bugfix Release * 650a2582 - chore: Update pact_models to 1.3.8 (Ronald Holshausen, Wed Feb 18 12:19:37 2026 +1100) * 2e7fe4a5 - fix: only split known multi-value HTTP headers on commas (Matt Fellows, Sat Feb 14 21:55:07 2026 +1100) * fa52876a - chore: Fix compatability tests after update for wasm32-wasip2 target (Ronald Holshausen, Wed Sep 17 12:03:27 2025 +1000) * 44b28cfc - bump version to 2.0.3 (Ronald Holshausen, Wed Sep 17 10:31:10 2025 +1000) -# 2.0.2 - Support the wasm32-wasip2 target +## 2.0.2 - Support the wasm32-wasip2 target * b95b30dd - chore(pact_matching): Support compiling with wasm32-wasip2 target (Ronald Holshausen, Wed Sep 17 10:14:50 2025 +1000) * eaaee9de - chore: Upgrade pact_models to 1.3.7 (Ronald Holshausen, Tue Sep 16 13:57:37 2025 +1000) @@ -84,12 +84,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * e2d2ca33 - fix: compatibility-suite was failing after upgrading pact_matching to 2.0.1 (Ronald Holshausen, Wed Aug 20 10:32:37 2025 +1000) * 805777f7 - bump version to 2.0.2 (Ronald Holshausen, Fri Aug 1 09:01:58 2025 +1000) -# 2.0.1 - Bugfix Release +## 2.0.1 - Bugfix Release * d1b455f5 - fix(pact_matching): Add missing XML feature gates (Ronald Holshausen, Thu Jul 31 15:32:16 2025 +1000) * 167b05ac - bump version to 2.0.1 (Ronald Holshausen, Thu Jul 31 15:11:30 2025 +1000) -# 2.0.0 - 2.0 Release +## 2.0.0 - 2.0 Release * 72be9b0b - chore(pact_matching): remove beta pre-release version (Ronald Holshausen, Thu Jul 31 13:57:50 2025 +1000) * dcdc4825 - refactor(v2-matching-engine): Record the elapsed time for executing a plan (Ronald Holshausen, Thu Jul 31 13:36:42 2025 +1000) @@ -114,14 +114,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 684a885a - chore: Remove snailquote as it is GPL licensed #493 (Ronald Holshausen, Thu Jun 12 14:41:47 2025 +1000) * 7921641e - bump version to 2.0.0-beta.4 (Ronald Holshausen, Wed Jun 11 13:44:12 2025 +1000) -# 2.0.0-beta.3 - Fix for Alpine +## 2.0.0-beta.3 - Fix for Alpine * 2b74599f - chore: Correct release script (Ronald Holshausen, Wed Jun 11 13:40:16 2025 +1000) * 6e8167c4 - fix(Alpine): Updae pact_models to 1.3.3 (Ronald Holshausen, Wed Jun 11 13:23:10 2025 +1000) * 1d18d3f5 - fix: Onig crate needs default-features = false so it compiles on Alpine (Ronald Holshausen, Wed Jun 11 12:35:06 2025 +1000) * 97d1d413 - bump version to 2.0.0-beta.3 (Ronald Holshausen, Wed Jun 11 11:18:14 2025 +1000) -# 2.0.0-beta.2 - Maintenance Release +## 2.0.0-beta.2 - Maintenance Release * 31010256 - chore(pact_matching): Update dependencies (Ronald Holshausen, Wed Jun 11 10:29:42 2025 +1000) * 18e53fbd - chore: Update pact_models to 1.3.2 (Ronald Holshausen, Wed Jun 11 10:16:03 2025 +1000) @@ -131,14 +131,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * d1fb1f35 - bump version to 2.0.0-beta.2 (Ronald Holshausen, Wed May 21 12:00:21 2025 +1000) * e798b1cf - feat: Use new XML generator (tien.xuan.vo, Tue Feb 11 08:07:43 2025 +0700) -# 2.0.0-beta.1 - Bugfix Release +## 2.0.0-beta.1 - Bugfix Release * 7c10b6af - fix(pact_matching): All XML code must be behind the xml feature gate (Ronald Holshausen, Wed May 21 11:26:09 2025 +1000) * 7d8e8f61 - chore: Upgrade pact_models to 1.3.1 (Ronald Holshausen, Tue May 20 14:53:42 2025 +1000) * 0383b9ac - chore: Remove the use of the deprecated pact_matching::logging::LOG_ID (Ronald Holshausen, Wed Mar 26 15:52:47 2025 +1100) * 045df74e - chore: bump version to v2.0.0-beta.1 (Ronald Holshausen, Tue Mar 25 17:09:26 2025 +1100) -# 2.0.0-beta.0 - V2 matching engine for requests +## 2.0.0-beta.0 - V2 matching engine for requests * 90c5db04 - chore: Update readme with V2 engine details (Ronald Holshausen, Tue Mar 25 17:03:47 2025 +1100) * a7f218f1 - fix: kiss_xml should be required with the XML feature (Ronald Holshausen, Tue Mar 25 16:52:31 2025 +1100) @@ -205,14 +205,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 035a3561 - feat: Prototype request matching plan (Ronald Holshausen, Tue Jul 30 16:58:34 2024 +1000) * 02e2ae13 - chore: Bump pact_matching to 2.0.0-beta.0 (Ronald Holshausen, Tue Jul 30 11:40:20 2024 +1000) -# 1.2.9 - Bugfix Release +## 1.2.9 - Bugfix Release * e98a2183 - fix: Do not apply include matcher at the collection level #485 (Ronald Holshausen, Wed Jan 29 17:09:04 2025 +1100) * 096deedc - fix: when comparing JSON with number matchers, don't covert numbers in string form to numbers #484 (Ronald Holshausen, Wed Jan 29 16:52:06 2025 +1100) * d93dfb3f - fix: Do not apply date/time matchers at the collection level #483 (Ronald Holshausen, Wed Jan 29 14:34:31 2025 +1100) * 5002bace - bump version to 1.2.9 (Ronald Holshausen, Thu Dec 19 15:37:28 2024 +1100) -# 1.2.8 - Bugfix Release +## 1.2.8 - Bugfix Release * c1bf98ef - Merge pull request #479 from tienvx/apply-generators-for-form-urlencoded (Ronald Holshausen, Thu Dec 19 15:04:20 2024 +1100) * 5fdfd023 - chore: Upgrade all the tracing crates to the latest (Ronald Holshausen, Fri Dec 13 10:54:51 2024 +1100) @@ -229,12 +229,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c1a00dd8 - chore: Upgrade pact-plugin-driver to 0.7.1 (Ronald Holshausen, Tue Sep 3 15:47:22 2024 +1000) * 08288e32 - bump version to 1.2.8 (Ronald Holshausen, Tue Aug 27 14:48:23 2024 +1000) -# 1.2.7 - Bugfix Release +## 1.2.7 - Bugfix Release * e6f8ae46 - fix(plugins): Plugin config needs to have seperate values for HTTP request and response parts (Ronald Holshausen, Tue Aug 27 14:32:37 2024 +1000) * 9f6a8c35 - bump version to 1.2.7 (Ronald Holshausen, Tue Aug 13 15:21:05 2024 +1000) -# 1.2.6 - Maintenance Release +## 1.2.6 - Maintenance Release * ab836e18 - chore(pact_matching): Update dependencies (Ronald Holshausen, Tue Aug 13 15:01:16 2024 +1000) * f50454ff - chore: Upgrade test dependencies (Ronald Holshausen, Tue Aug 13 11:54:59 2024 +1000) @@ -243,7 +243,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * bcf4db6d - chore: Upgrade pact_models to 1.2.3 (Ronald Holshausen, Tue Aug 6 11:06:22 2024 +1000) * c6df3fcc - bump version to 1.2.6 (Ronald Holshausen, Wed Jul 17 11:56:14 2024 +1000) -# 1.2.5 - Bugfix Release +## 1.2.5 - Bugfix Release * fd9ff70a - chore: Upgrade pact_models to 1.2.2 (Ronald Holshausen, Wed Jul 17 11:15:34 2024 +1000) * e8b62f98 - chore: Upgrade pact-plugin-driver to 0.7.0 (Ronald Holshausen, Wed Jul 17 10:45:34 2024 +1000) @@ -252,14 +252,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * da869ddb - fix: reduce log level for matching to debug (Matt Fellows, Fri Jul 5 00:13:50 2024 +1000) * 2163476d - bump version to 1.2.5 (Ronald Holshausen, Fri Jun 14 10:07:48 2024 +1000) -# 1.2.4 - Maintenance Release +## 1.2.4 - Maintenance Release * 30998a95 - chore: Upgrade pact_models to 1.2.1 (Ronald Holshausen, Wed Jun 12 15:26:49 2024 +1000) * 37d65469 - chore: add some debug logs + fix compiler warning (Ronald Holshausen, Tue Jun 11 15:12:26 2024 +1000) * a811b8a4 - chore: Update pact_matching to 1.2.3 (Ronald Holshausen, Thu May 30 15:57:32 2024 +1000) * 67c75a09 - bump version to 1.2.4 (Ronald Holshausen, Thu May 30 15:47:12 2024 +1000) -# 1.2.3 - Supports content type detection on Windows +## 1.2.3 - Supports content type detection on Windows * e0ffa61f - chore: refactor matching logic and add debug logs if text/plain detected, before we match (Yousaf Nabi, Wed May 29 20:42:15 2024 +0100) * 72c6e572 - chore: preserve original behaviour for text/plain content-type header with application/json body (Yousaf Nabi, Wed May 29 06:09:12 2024 +0100) @@ -269,19 +269,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 968be075 - feat: update content_type_matching logic for binary payloads (Yousaf Nabi, Tue May 28 23:25:07 2024 +0100) * 88f71944 - bump version to 1.2.3 (Ronald Holshausen, Tue May 7 10:05:48 2024 +1000) -# 1.2.2 - Maintenance Release +## 1.2.2 - Maintenance Release * 694100fb - chore: Update pact_models to 1.2.0 (Ronald Holshausen, Tue Apr 23 10:51:11 2024 +1000) * edfac7ba - chore: remove local pact_models from the other pact crates (Ronald Holshausen, Tue Apr 23 10:03:29 2024 +1000) * c3128a6d - feat: Support optional query parameter values (where there is only a name) (Ronald Holshausen, Mon Apr 22 10:36:05 2024 +1000) * facb2c45 - bump version to 1.2.2 (Ronald Holshausen, Tue Apr 16 16:26:37 2024 +1000) -# 1.2.1 - Maintenance Release +## 1.2.1 - Maintenance Release * 3706f6ef - chore: Add From implementation for CommonMismatch (Ronald Holshausen, Tue Apr 16 16:13:34 2024 +1000) * eb4d9a59 - bump version to 1.2.1 (Ronald Holshausen, Tue Apr 16 10:21:53 2024 +1000) -# 1.2.0 - Maintenance Release +## 1.2.0 - Maintenance Release * d6125b75 - chore(pact_matching): Bump minor version (Ronald Holshausen, Tue Apr 16 10:16:44 2024 +1000) * 7900fe5a - chore(pact_matching): Update dependencies (Ronald Holshausen, Tue Apr 16 09:55:36 2024 +1000) @@ -299,7 +299,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 20742d98 - feat: Rephrase the content type matching error message (tien.xuan.vo, Wed Feb 7 09:58:13 2024 +0700) * 7552d617 - bump version to 1.1.11 (Ronald Holshausen, Wed Feb 7 13:15:52 2024 +1100) -# 1.1.10 - Bugfix Release +## 1.1.10 - Bugfix Release * a8efa111 - fix: was missing an implementation of MinType and MaxType matchers for maps (Ronald Holshausen, Wed Feb 7 12:27:59 2024 +1100) * 24a26cca - chore: Update pact_models to 1.1.18 (Ronald Holshausen, Wed Feb 7 10:53:22 2024 +1100) @@ -309,13 +309,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * d5e58424 - test(pact_matching): Test Values matcher with json body (tien.xuan.vo, Mon Jan 22 23:36:44 2024 +0700) * 482da6f0 - bump version to 1.1.10 (Ronald Holshausen, Sat Jan 20 15:10:39 2024 +1100) -# 1.1.9 - Maintenance Release +## 1.1.9 - Maintenance Release * 7b087acf - chore: Upgrade pact-plugin-driver to 0.5.0 (Ronald Holshausen, Sat Jan 20 14:49:21 2024 +1100) * b735df9d - chore: Upgrade pact_models to 1.1.17 (Ronald Holshausen, Sat Jan 20 13:54:03 2024 +1100) * 3ffd77ce - bump version to 1.1.9 (Ronald Holshausen, Fri Jan 19 18:16:32 2024 +1100) -# 1.1.8 - Bugfix Release +## 1.1.8 - Bugfix Release * f9792697 - Merge pull request #364 from tienvx/allow-matching-strings-with-values-matcher (Ronald Holshausen, Mon Jan 22 10:51:13 2024 +1100) * 045ffbb6 - Merge pull request #363 from tienvx/test-content-type-matcher (Ronald Holshausen, Mon Jan 22 10:45:34 2024 +1100) @@ -329,7 +329,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 713e4098 - chore: Upgrade pact-plugin-driver to 0.4.6 (Ronald Holshausen, Thu Dec 14 17:04:59 2023 +1100) * b7789ae1 - bump version to 1.1.8 (Ronald Holshausen, Tue Nov 14 02:45:34 2023 +1100) -# 1.1.7 - Maintenance Release +## 1.1.7 - Maintenance Release * 826758a6 - chore: Upgrade pact_models to 1.1.12 (Ronald Holshausen, Mon Nov 13 17:25:21 2023 +1100) * 5402b6af - chore: Add a test for using Values matcher with headers #331 (Ronald Holshausen, Wed Oct 25 04:12:07 2023 +1100) @@ -337,12 +337,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 985cb590 - chore: header module is not public (Ronald Holshausen, Mon Oct 23 03:07:28 2023 +1100) * bfcd4d94 - bump version to 1.1.7 (Ronald Holshausen, Fri Sep 22 10:58:19 2023 +1000) -# 1.1.6 - Bugfix Release +## 1.1.6 - Bugfix Release * 63b7cf9d - fix: Allow matching string values using content type matching rule (tien.xuan.vo, Mon Sep 11 18:32:24 2023 +0700) * fa661d30 - bump version to 1.1.6 (Ronald Holshausen, Fri Aug 18 15:35:06 2023 +1000) -# 1.1.5 - Maintenance Release +## 1.1.5 - Maintenance Release * ea98f458 - feat(compatibility-suite): Implemented V4 HTTP scenarios (Ronald Holshausen, Tue Aug 15 15:09:24 2023 +1000) * f168617d - chore(compatibility-suite): Update suite and correct V3 steps (Ronald Holshausen, Fri Aug 11 11:38:09 2023 +1000) @@ -352,7 +352,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1299a622 - fix(pact_matching): Support generators for V3 Message interactions (Ronald Holshausen, Wed Aug 2 16:43:51 2023 +1000) * a5ce79d4 - bump version to 1.1.5 (Ronald Holshausen, Thu Jul 27 10:51:04 2023 +1000) -# 1.1.4 - Bugfix Release +## 1.1.4 - Bugfix Release * ac885b89 - fix: Date/Time matchers should fall back to ISO 8601 formats if no format string is provided (Ronald Holshausen, Thu Jul 27 10:42:17 2023 +1000) * 4a01919a - chore: Upgrade pact_models to 1.1.9 (Ronald Holshausen, Thu Jul 27 10:24:00 2023 +1000) @@ -364,7 +364,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 3cd0417c - chore: Add crate features to readme and module docs (Ronald Holshausen, Tue Jul 11 14:24:40 2023 +1000) * 53867be5 - bump version to 1.1.4 (Ronald Holshausen, Tue Jul 11 11:33:25 2023 +1000) -# 1.1.3 - Add crate features to turn-off some behaviour and dependencies +## 1.1.3 - Add crate features to turn-off some behaviour and dependencies * f6024b1d - chore: Add support for plugin feature (Ronald Holshausen, Tue Jul 11 11:21:24 2023 +1000) * 27441992 - chore: Add support for multipart feature (Ronald Holshausen, Tue Jul 11 10:38:23 2023 +1000) @@ -372,7 +372,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * f2ae77ba - chore: Upgrade pact-plugin-driver to 0.4.5 (Ronald Holshausen, Mon Jul 10 17:15:20 2023 +1000) * a5e04a3d - bump version to 1.1.3 (Ronald Holshausen, Mon Jul 10 16:36:04 2023 +1000) -# 1.1.2 - Bugfix Release +## 1.1.2 - Bugfix Release * 1deca59a - chore: Upgrade pact_models to 1.1.8 (Ronald Holshausen, Mon Jul 10 16:15:43 2023 +1000) * 913e9a27 - feat(multipart): Support the content-transfer-encoding header (Ronald Holshausen, Mon Jul 10 11:20:04 2023 +1000) @@ -388,7 +388,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * f88adb2a - fix: Correct the format of matching errors on JSON (Ronald Holshausen, Wed Jun 28 11:51:10 2023 +1000) * a3c5db59 - bump version to 1.1.2 (Ronald Holshausen, Thu Jun 22 15:56:55 2023 +1000) -# 1.1.1 - Bugfix Release +## 1.1.1 - Bugfix Release * e95ae4d0 - chore: Upgrade pact_models to 1.1.6 (Ronald Holshausen, Thu Jun 22 15:40:55 2023 +1000) * af498c73 - fix(pact_matching): EachValue matcher was applying the associated rule to the list and not the items in the list (Ronald Holshausen, Thu Jun 22 12:29:32 2023 +1000) @@ -399,14 +399,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ac2e24da - chore: Use "Minimum version, with restricted compatibility range" for all Pact crate versions (Ronald Holshausen, Tue May 23 11:46:52 2023 +1000) * 67cf4a06 - bump version to 1.1.1 (Ronald Holshausen, Tue May 23 11:30:39 2023 +1000) -# 1.1.0 - Update Pact models to 1.1 (breaking change) +## 1.1.0 - Update Pact models to 1.1 (breaking change) * 54887690 - chore: Bump pact_matching to 1.1 (Ronald Holshausen, Tue May 23 11:13:14 2023 +1000) * f72f8191 - feat: Implemented the remaining V1 HTTP consumer compatability suite feature (Ronald Holshausen, Thu May 18 14:12:40 2023 +1000) * 261ecf47 - fix: Add RefUnwindSafe trait bound to all Pact and Interaction uses (Ronald Holshausen, Mon May 15 13:59:31 2023 +1000) * 40df44ba - bump version to 1.0.9 (Ronald Holshausen, Tue Apr 18 13:03:24 2023 +1000) -# 1.0.8 - Bugfix Release +## 1.0.8 - Bugfix Release * 6c14abfd - chore: Upgrade pact_models to 1.0.13 (Ronald Holshausen, Tue Apr 18 13:00:01 2023 +1000) * ce16d43f - chore: Upgrade pact-plugin-driver to 0.4.2 (supports auto-installing known plugins) (Ronald Holshausen, Tue Apr 18 11:49:52 2023 +1000) @@ -417,14 +417,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 126cf462 - chore: Upgrade pact_matching to 1.0.7 (Ronald Holshausen, Tue Apr 4 15:12:28 2023 +1000) * f816170b - bump version to 1.0.8 (Ronald Holshausen, Tue Apr 4 15:06:25 2023 +1000) -# 1.0.7 - Maintenance Release +## 1.0.7 - Maintenance Release * eb0b7fdf - chore: Update dependencies (Ronald Holshausen, Tue Apr 4 14:46:30 2023 +1000) * 6f0c4b2f - feat: Upgrade pact-plugin-driver to 0.4.0 which uses a shared gRPC channel to each plugin (Ronald Holshausen, Tue Apr 4 14:32:36 2023 +1000) * c6b66a28 - chore: Test was failing with dates where day of the month has one digit (Ronald Holshausen, Mon Apr 3 11:55:45 2023 +1000) * 8ecf1a68 - bump version to 1.0.7 (Ronald Holshausen, Wed Mar 15 14:49:40 2023 +1100) -# 1.0.6 - Bugfix Release +## 1.0.6 - Bugfix Release * e96bc54e - fix: Upgrade pact_models to 1.0.9 (fixes issues with headers) (Ronald Holshausen, Wed Mar 15 14:31:00 2023 +1100) * f7e0b669 - chore: Upgrade pact_models to 1.0.8 (Ronald Holshausen, Wed Mar 15 12:19:22 2023 +1100) @@ -434,17 +434,17 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 46e0a7df - chore: correct doc comment (Ronald Holshausen, Wed Feb 8 14:35:38 2023 +1100) * 14b1b240 - bump version to 1.0.6 (Ronald Holshausen, Wed Feb 8 13:50:37 2023 +1100) -# 1.0.5 - Maintenance Release +## 1.0.5 - Maintenance Release * 1e7331f1 - fix: Upgrade plugin driver to 0.3.1 (Ronald Holshausen, Wed Feb 8 13:28:07 2023 +1100) * e9978a00 - bump version to 1.0.5 (Ronald Holshausen, Mon Feb 6 15:32:35 2023 +1100) -# 1.0.4 - Support matching rules for message metadata +## 1.0.4 - Support matching rules for message metadata * 0b70060f - chore: Upgrade pact-plugin-driver and base64 crates (supports message metadata) (Ronald Holshausen, Mon Feb 6 14:56:29 2023 +1100) * 1acacffd - bump version to 1.0.4 (Ronald Holshausen, Wed Jan 11 14:55:00 2023 +1100) -# 1.0.3 - Bugfix Release +## 1.0.3 - Bugfix Release * 7d84d941 - chore: Upgrade pact_models to 1.0.4 (Ronald Holshausen, Wed Jan 11 14:33:13 2023 +1100) * a8abf5df - chore: log spans at trace level to reduce the log entry size at other log levels #243 (Ronald Holshausen, Tue Jan 10 09:00:52 2023 +1100) @@ -455,35 +455,35 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 3aecb702 - chore: require tracing-subscriber for tests for crates that use pact_models #239 (Ronald Holshausen, Thu Dec 22 14:37:01 2022 +1100) * 9c5bc31d - bump version to 1.0.3 (Ronald Holshausen, Mon Dec 19 15:25:33 2022 +1100) -# 1.0.2 - Maintenance Release +## 1.0.2 - Maintenance Release * 5fbb0d6a - feat: Upgrade plugin driver to 0.2.2 (supports passing a test context to support generators) (Ronald Holshausen, Fri Dec 16 16:38:03 2022 +1100) * 1ab47c6f - chore: Upgrade Tokio to latest (Ronald Holshausen, Fri Dec 16 16:31:31 2022 +1100) * e749dbad - bump version to 1.0.2 (Ronald Holshausen, Wed Dec 14 16:59:54 2022 +1100) -# 1.0.1 - Bugfix Release +## 1.0.1 - Bugfix Release * 8be00f0c - chore: Upgrade pact-plugin-driver to 0.2.1 (Ronald Holshausen, Wed Dec 14 14:55:32 2022 +1100) * e91ad622 - fix: Interaction builder was not copying plugin config data to the Pact metadata (Ronald Holshausen, Mon Dec 12 13:59:36 2022 +1100) * b258c94f - bump version to 1.0.1 (Ronald Holshausen, Fri Dec 9 17:56:35 2022 +1100) -# 1.0.0 - Support plugins generating interaction content +## 1.0.0 - Support plugins generating interaction content * 1744ddc2 - feat: Support plugins generating interaction content (Ronald Holshausen, Fri Dec 9 17:24:04 2022 +1100) * bf2eca32 - bump version to 0.12.16 (Ronald Holshausen, Mon Nov 28 14:20:13 2022 +1100) -# 0.12.15 - Maintenance Release +## 0.12.15 - Maintenance Release * c9721fd5 - chore: Upgrade pact_models to 1.0.1 and pact-plugin-driver to 0.1.16 (Ronald Holshausen, Mon Nov 28 14:10:53 2022 +1100) * 123060e3 - chore: Upgrade pact_matching to 0.12.14 (Ronald Holshausen, Mon Nov 7 11:34:36 2022 +1100) * adaa1b02 - bump version to 0.12.15 (Ronald Holshausen, Mon Nov 7 11:22:16 2022 +1100) -# 0.12.14 - Maintenance Release +## 0.12.14 - Maintenance Release * 577824e7 - fix: Upgrade pact_models to 1.0 and pact-plugin-driver to 0.1.15 to fix cyclic dependency issue (Ronald Holshausen, Mon Nov 7 11:14:20 2022 +1100) * 972e27dd - bump version to 0.12.14 (Ronald Holshausen, Fri Nov 4 16:48:51 2022 +1100) -# 0.12.13 - Bugfix Release +## 0.12.13 - Bugfix Release * e1f985ad - chore: Upgrade pact_models to 0.4.6 and pact-plugin-driver to 0.1.14 (Ronald Holshausen, Fri Nov 4 16:38:36 2022 +1100) * 6ad00a5d - fix: Update onig to latest master to fix Regex Matcher Fails On Valid Inputs #214 (Ronald Holshausen, Fri Nov 4 15:23:50 2022 +1100) @@ -491,7 +491,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 965a1c41 - fix: Upgrade plugin driver to 0.1.13 (fixes issue loading plugin when there are multiple versions for the same plugin) (Ronald Holshausen, Wed Oct 5 17:29:37 2022 +1100) * 244849d7 - bump version to 0.12.13 (Ronald Holshausen, Wed Sep 28 10:04:47 2022 +1000) -# 0.12.12 - Maintenance Release +## 0.12.12 - Maintenance Release * b8be05c1 - fix(FFI): Use a star for the path with values matcher #216 (Ronald Holshausen, Tue Sep 27 17:50:32 2022 +1000) * 60b2b642 - chore: Upgrade pact-plugin-driver to 0.1.12 (Ronald Holshausen, Mon Sep 12 17:44:13 2022 +1000) @@ -500,7 +500,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * f8db90d2 - fix: Upgrade pact_models to 0.4.5 - fixes FFI bug with generators for request paths (Ronald Holshausen, Fri Aug 26 11:44:08 2022 +1000) * 4524bcf9 - bump version to 0.12.12 (Ronald Holshausen, Thu Aug 18 15:01:27 2022 +1000) -# 0.12.11 - Maintenance Release +## 0.12.11 - Maintenance Release * 72f9f75d - chore: clean some deprecation warnings (Ronald Holshausen, Thu Aug 18 14:58:35 2022 +1000) * 32a70382 - chore: Upgrade pact_models (0.4.4), plugin driver (0.1.10), tracing and tracing core crates (Ronald Holshausen, Thu Aug 18 14:41:52 2022 +1000) @@ -509,7 +509,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 6c5c90ee - refactor: split metrics into sync and async functions (Ronald Holshausen, Thu Aug 11 14:55:32 2022 +1000) * f5e4c3a7 - bump version to 0.12.11 (Ronald Holshausen, Wed Aug 10 12:33:21 2022 +1000) -# 0.12.10 - Maintenance Release +## 0.12.10 - Maintenance Release * 33b04eee - chore: cleanup some deprecation warnings (Ronald Holshausen, Wed Aug 10 10:34:58 2022 +1000) * 195ad07b - chore: Updated dependant crates (uuid, simplelog) (Ronald Holshausen, Wed Aug 10 10:22:07 2022 +1000) @@ -519,19 +519,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 40f7bdc4 - feat: add verification option to disable ANSI escape codes in output #203 (Ronald Holshausen, Wed Jul 20 12:18:12 2022 +1000) * 4de924d0 - bump version to 0.12.10 (Ronald Holshausen, Fri Jun 10 15:35:55 2022 +1000) -# 0.12.9 - Bugfix Release +## 0.12.9 - Bugfix Release * 0e3db9df - fix: comparing query paraneters where actual has less values but there is a type matcher (Ronald Holshausen, Fri Jun 10 15:17:45 2022 +1000) * 4e9d8374 - fix: min/max type matchers were not being applied to query parameters (Ronald Holshausen, Fri Jun 10 14:17:41 2022 +1000) * 09e63637 - bump version to 0.12.9 (Ronald Holshausen, Mon May 30 11:42:13 2022 +1000) -# 0.12.8 - Maintenance Release +## 0.12.8 - Maintenance Release * 80256458 - chore: Upgrade pact-plugin-driver to 0.1.8 (Ronald Holshausen, Mon May 30 11:36:54 2022 +1000) * d9b9fe72 - chore: Upgrade pact-plugin-driver to 0.1.7 (Ronald Holshausen, Fri May 20 15:56:23 2022 +1000) * 191cd687 - bump version to 0.12.8 (Ronald Holshausen, Wed May 11 15:55:02 2022 +1000) -# 0.12.7 - Maintenance Release +## 0.12.7 - Maintenance Release * 6bf1e9aa - chore: switch from logging crate to tracing crate (Ronald Holshausen, Wed May 11 14:57:37 2022 +1000) * e8e5cb5a - chore: Upgrade dependencies (Ronald Holshausen, Wed May 11 12:57:29 2022 +1000) @@ -539,7 +539,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 020b5715 - chore: upgrade pact_models to 0.4.1 (Ronald Holshausen, Wed May 11 11:36:57 2022 +1000) * 45e1d194 - bump version to 0.12.7 (Ronald Holshausen, Wed Apr 27 14:21:29 2022 +1000) -# 0.12.6 - Maintenance Release +## 0.12.6 - Maintenance Release * dba7252e - chore: Upgrade pact-plugin-driver to 0.1.5 (Ronald Holshausen, Tue Apr 26 13:56:22 2022 +1000) * 688e49e7 - chore: Upgrade pact-plugin-driver to 0.1.4 (Ronald Holshausen, Fri Apr 22 14:47:01 2022 +1000) @@ -548,7 +548,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 49640c5f - chore: minor update to release scripts (Ronald Holshausen, Wed Apr 13 15:32:46 2022 +1000) * dce0ec9d - bump version to 0.12.6 (Ronald Holshausen, Wed Apr 13 15:30:39 2022 +1000) -# 0.12.5 - Maintenance Release +## 0.12.5 - Maintenance Release * d043f6c7 - chore: upgrade pact_models to 0.3.3 (Ronald Holshausen, Wed Apr 13 15:24:33 2022 +1000) * eee09ba6 - chore: Upgrade pact-plugin-driver to 0.1.3 (Ronald Holshausen, Wed Apr 13 14:07:36 2022 +1000) @@ -556,13 +556,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ffeca2e2 - chore: update to the latest plugin driver (Ronald Holshausen, Wed Apr 13 13:08:25 2022 +1000) * 6f85c8bc - bump version to 0.12.5 (Ronald Holshausen, Thu Mar 24 13:56:30 2022 +1100) -# 0.12.4 - Maintenance Release +## 0.12.4 - Maintenance Release * 9baf03a9 - chore: use the published version of the plugin driver (Ronald Holshausen, Thu Mar 24 13:36:01 2022 +1100) * 345b0011 - feat: support mock servers provided from plugins (Ronald Holshausen, Mon Mar 21 15:59:46 2022 +1100) * 68207eb6 - bump version to 0.12.4 (Ronald Holshausen, Fri Mar 4 14:00:31 2022 +1100) -# 0.12.3 - Maintenance Release +## 0.12.3 - Maintenance Release * fbcec27a - chore: Upgrade pact-models to 0.3.0 (Ronald Holshausen, Fri Mar 4 12:23:49 2022 +1100) * 5f148cdd - feat: capture all the output from the verifier (Ronald Holshausen, Thu Jan 27 16:08:02 2022 +1100) @@ -570,7 +570,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 5e4c68ef - chore: update pact matching to 0.12.2 (Ronald Holshausen, Mon Jan 17 16:29:21 2022 +1100) * 9bb56cfe - bump version to 0.12.3 (Ronald Holshausen, Mon Jan 17 11:29:51 2022 +1100) -# 0.12.2 - Bugfix Release +## 0.12.2 - Bugfix Release * 80b241c5 - chore: Upgrade plugin driver crate to 0.0.17 (Ronald Holshausen, Mon Jan 17 11:22:48 2022 +1100) * 4f1ecff2 - chore: Upgrade pact-models to 0.2.7 (Ronald Holshausen, Mon Jan 17 10:53:26 2022 +1100) @@ -579,13 +579,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 9c2810ad - chore: Upgrade pact-plugin-driver to 0.0.15 (Ronald Holshausen, Fri Dec 31 15:12:56 2021 +1100) * f8e718ac - bump version to 0.12.2 (Ronald Holshausen, Fri Dec 31 10:05:17 2021 +1100) -# 0.12.1 - Bugfix Release +## 0.12.1 - Bugfix Release * dfa9f614 - fix: Values matcher should not be applied to a slice like Equality (Ronald Holshausen, Thu Dec 30 16:23:41 2021 +1100) * 3576c857 - chore: fix compiler warning (Ronald Holshausen, Thu Dec 30 14:24:58 2021 +1100) * aab26798 - bump version to 0.12.1 (Ronald Holshausen, Thu Dec 30 14:22:19 2021 +1100) -# 0.12.0 - Support for matching Protobuf payloads +## 0.12.0 - Support for matching Protobuf payloads * 1a01d111 - fix: correct the matching logic with lists and eachkey/eachvalue matchers (Ronald Holshausen, Thu Dec 30 13:34:21 2021 +1100) * 28f562e2 - fix: Each key matching was not implemented correctly (Ronald Holshausen, Wed Dec 29 17:20:05 2021 +1100) @@ -599,38 +599,38 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 85a4ae53 - chore: Make pact_matching::matchingrules public so it can be used outside of the crate (Ronald Holshausen, Thu Dec 23 16:38:54 2021 +1100) * 8089b542 - bump version to 0.11.6 (Ronald Holshausen, Thu Dec 23 13:04:14 2021 +1100) -# 0.11.5 - Maintenance Release +## 0.11.5 - Maintenance Release * 5479a634 - chore: Update pact_models (0.2.4) and pact-plugin-driver (0.0.14) (Ronald Holshausen, Thu Dec 23 12:57:02 2021 +1100) * 226795ee - bump version to 0.11.5 (Ronald Holshausen, Mon Dec 20 12:19:00 2021 +1100) -# 0.11.4 - Bugfix Release +## 0.11.4 - Bugfix Release * 8911d5b0 - chore: update to latest plugin driver crate (metrics fixes) (Ronald Holshausen, Mon Dec 20 12:11:35 2021 +1100) * 25d8cd9b - fix(metrics): swap uid for cid (Matt Fellows, Fri Dec 17 15:48:42 2021 +1100) * ef29bc17 - chore: make json::compare_json public so it can be used by other crates (Ronald Holshausen, Fri Dec 17 13:55:22 2021 +1100) * d4a46381 - bump version to 0.11.4 (Ronald Holshausen, Wed Dec 15 10:06:34 2021 +1100) -# 0.11.3 - Bugfix Release +## 0.11.3 - Bugfix Release * 48d061ef - feat: add metrics publishing to matching crate (Ronald Holshausen, Tue Dec 14 16:19:59 2021 +1100) * 4f1ba7d9 - chore: update to the latest plugin driver (Ronald Holshausen, Tue Dec 14 13:55:02 2021 +1100) * ecb6afbe - bump version to 0.11.3 (Ronald Holshausen, Thu Dec 2 11:58:27 2021 +1100) -# 0.11.2 - Upgrade to latest models and plugins crates +## 0.11.2 - Upgrade to latest models and plugins crates * c1eca940 - chore(pact_matching): upgrade to latest models and plugins crate (Ronald Holshausen, Thu Dec 2 11:49:32 2021 +1100) * 2db6a46f - refactor: test_env_log has been replaced with test_log (Ronald Holshausen, Tue Nov 23 16:15:02 2021 +1100) * fc5be202 - fix: update to latest driver crate (Ronald Holshausen, Tue Nov 16 16:19:02 2021 +1100) * 718cdbcf - bump version to 0.11.2 (Ronald Holshausen, Tue Nov 16 12:10:26 2021 +1100) -# 0.11.1 - Updated to latest models crate +## 0.11.1 - Updated to latest models crate * 5d974c4a - chore: update to latest models and plugin driver crates (Ronald Holshausen, Tue Nov 16 11:56:53 2021 +1100) * 1e76c400 - chore: correct readme (Ronald Holshausen, Wed Nov 3 17:09:56 2021 +1100) * b8da65c2 - bump version to 0.11.1 (Ronald Holshausen, Wed Nov 3 17:07:06 2021 +1100) -# 0.11.0 - Pact V4 release +## 0.11.0 - Pact V4 release * e62cefdc - chore: fix clippy warnings (Ronald Holshausen, Wed Nov 3 16:52:24 2021 +1100) * bd2bd0ec - chore: drop beta from pact_matching version (Ronald Holshausen, Wed Nov 3 13:28:35 2021 +1100) @@ -638,26 +638,26 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a561f883 - chore: use the non-beta models crate (Ronald Holshausen, Thu Oct 21 18:10:27 2021 +1100) * 9f674ca3 - bump version to 0.11.0-beta.5 (Ronald Holshausen, Tue Oct 19 17:16:10 2021 +1100) -# 0.11.0-beta.4 - Bugfix Release +## 0.11.0-beta.4 - Bugfix Release * 918e5beb - fix: update to latest models and plugin driver crates (Ronald Holshausen, Tue Oct 19 17:09:48 2021 +1100) * 8f8ad35a - bump version to 0.11.0-beta.4 (Ronald Holshausen, Tue Oct 19 11:17:01 2021 +1100) -# 0.11.0-beta.3 - Support matching synchronous request/response messages +## 0.11.0-beta.3 - Support matching synchronous request/response messages * aa434ba3 - chore: update to latest driver crate (Ronald Holshausen, Tue Oct 19 11:09:46 2021 +1100) * df386c8a - chore: use the published version of pact-plugin-driver (Ronald Holshausen, Mon Oct 18 13:41:36 2021 +1100) * 2b4b7cc3 - feat(plugins): Support matching synchronous request/response messages (Ronald Holshausen, Fri Oct 15 16:01:50 2021 +1100) * db3c6268 - bump version to 0.11.0-beta.3 (Ronald Holshausen, Tue Oct 12 16:17:18 2021 +1100) -# 0.11.0-beta.2 - synchronous messages with plugins +## 0.11.0-beta.2 - synchronous messages with plugins * d0bfb8a8 - feat: Support consumer tests with synchronous messages (Ronald Holshausen, Tue Oct 12 15:51:08 2021 +1100) * 48d662a8 - chore: add docs about the matching rule definition language (Ronald Holshausen, Thu Oct 7 13:29:16 2021 +1100) * 605aa158 - chore: Update the matching readme with the new V4 matchers (Ronald Holshausen, Thu Oct 7 10:49:48 2021 +1100) * de5bbeef - bump version to 0.11.0-beta.2 (Ronald Holshausen, Wed Oct 6 11:30:22 2021 +1100) -# 0.11.0-beta.1 - Plugin support (driver version 0.0.3) +## 0.11.0-beta.1 - Plugin support (driver version 0.0.3) * 2c47023c - chore: pin plugin driver version to 0.0.3 (Ronald Holshausen, Wed Oct 6 11:21:07 2021 +1100) * 288e2168 - chore: use the published version of the plugin driver lib (Ronald Holshausen, Tue Oct 5 15:36:06 2021 +1100) @@ -667,7 +667,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * b71dcabf - refactor(plugins): rename ContentTypeOverride -> ContentTypeHint (Ronald Holshausen, Tue Sep 14 15:08:52 2021 +1000) * 7eb10081 - bump version to 0.11.0-beta.1 (Ronald Holshausen, Mon Sep 13 11:03:28 2021 +1000) -# 0.11.0-beta.0 - Plugin support + nontEmpty and semver matchers +## 0.11.0-beta.0 - Plugin support + nontEmpty and semver matchers * 716809f6 - chore: Get CI build passing (Ronald Holshausen, Fri Sep 10 14:55:46 2021 +1000) * ceb1c35f - Merge branch 'master' into feat/plugins (Ronald Holshausen, Tue Sep 7 10:07:45 2021 +1000) @@ -687,26 +687,26 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 2662241e - feat(plugins): Call out to plugins when comparing content owned by the plugin during verification (Ronald Holshausen, Fri Aug 13 14:29:30 2021 +1000) * 60869969 - feat(plugins): Add core features to the plugin catalogue (Ronald Holshausen, Thu Aug 12 13:00:41 2021 +1000) -# 0.10.3 - Upgrade treemagic => upgrade nom => upgrade memchr +## 0.10.3 - Upgrade treemagic => upgrade nom => upgrade memchr * 42de0a5d - chore: skip tests requiring mime db in Windows (Ronald Holshausen, Sat Sep 4 14:46:32 2021 +1000) * 4e97e806 - chore: do not include tree_magic_db to keep the project license MIT (Ronald Holshausen, Sat Sep 4 14:15:42 2021 +1000) * 3cf339ae - chore: upgrade tree_magic_mini to 3.0.1 (Audun Halland, Tue Aug 31 11:08:48 2021 +0200) * cfdc475c - bump version to 0.10.3 (Ronald Holshausen, Sun Aug 22 15:22:12 2021 +1000) -# 0.10.2 - upgrade nom to 7.0 +## 0.10.2 - upgrade nom to 7.0 * 21be6bce - chore: upgrade nom to 7.0 #128 (Ronald Holshausen, Sun Aug 22 11:56:33 2021 +1000) * e07a1b84 - bump version to 0.10.2 (Ronald Holshausen, Tue Aug 17 10:22:37 2021 +1000) -# 0.10.1 - Bugfix Release +## 0.10.1 - Bugfix Release * 8bcd1c7e - fix: min/max type matchers must not apply the limits when cascading (Ronald Holshausen, Sun Aug 8 15:50:40 2021 +1000) * 0b347204 - chore: update spec test cases (Ronald Holshausen, Sun Aug 8 14:29:43 2021 +1000) * 6124ed0b - refactor: Introduce DocPath struct for path expressions (Caleb Stepanian, Thu Jul 29 12:27:32 2021 -0400) * 26f642e7 - bump version to 0.10.1 (Ronald Holshausen, Fri Jul 23 14:15:58 2021 +1000) -# 0.10.0 - Final version after extracting models +## 0.10.0 - Final version after extracting models * 9baa714d - chore: bump minor version of matching crate (Ronald Holshausen, Fri Jul 23 14:03:20 2021 +1000) * 533c9e1f - chore: bump minor version of the Pact models crate (Ronald Holshausen, Fri Jul 23 13:15:32 2021 +1000) @@ -717,7 +717,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 82a2d5df - feat: added verification of req/res interaction (Ronald Holshausen, Mon Jul 12 16:57:04 2021 +1000) * 331211da - bump version to 0.9.5 (Ronald Holshausen, Sun Jul 11 16:53:33 2021 +1000) -# 0.9.4 - Moved structs to models crate + bugfixes and enhancements +## 0.9.4 - Moved structs to models crate + bugfixes and enhancements * e2151800 - feat: support generating UUIDs with different formats #121 (Ronald Holshausen, Sun Jul 11 12:36:23 2021 +1000) * e2e10241 - refactor: moved Request and Response structs to the models crate (Ronald Holshausen, Wed Jul 7 18:09:36 2021 +1000) @@ -738,7 +738,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 4db98181 - refactor: move file_utils to the models crate (Ronald Holshausen, Tue Jun 22 16:06:02 2021 +1000) * 56da2e11 - bump version to 0.9.4 (Ronald Holshausen, Tue Jun 22 15:22:29 2021 +1000) -# 0.9.3 - Refactor + Bugfixes +## 0.9.3 - Refactor + Bugfixes * 4fe8383c - chore: upgrade nom to 6.2.0 to resolve lexical-core compiler error (Ronald Holshausen, Tue Jun 22 14:41:16 2021 +1000) * bbc638be - feat(pact file verification): verify consumer and provider sections (Ronald Holshausen, Fri Jun 18 16:52:15 2021 +1000) @@ -759,7 +759,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 17beef62 - feat: support accumulating log entries per running mock server (Ronald Holshausen, Mon May 31 15:09:20 2021 +1000) * e27ce896 - bump version to 0.9.3 (Ronald Holshausen, Sun May 30 10:45:06 2021 +1000) -# 0.9.2 - Bugfixes + V4 changes (Status code matcher + Pending flag) +## 0.9.2 - Bugfixes + V4 changes (Status code matcher + Pending flag) * 44e7eb4 - chore: cleanup deprecation warnings (Ronald Holshausen, Sat May 29 17:55:04 2021 +1000) * f24bbbc - refactor: decouple matching rule logic from matching rule model (Ronald Holshausen, Sat May 29 17:44:12 2021 +1000) @@ -789,12 +789,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * f56ae24 - feat: support a dummy matcher (Matt Fellows, Sun May 16 14:05:08 2021 +1000) * fbd5ae3 - bump version to 0.9.2 (Ronald Holshausen, Tue May 4 10:13:02 2021 +1000) -# 0.9.1 - V4 features +## 0.9.1 - V4 features * 6b2da7d - feat(V4): added a boolean matcher (Ronald Holshausen, Sun May 2 12:57:09 2021 +1000) * e3a71a3 - bump version to 0.9.1 (Ronald Holshausen, Sun Apr 25 14:09:22 2021 +1000) -# 0.9.0 - Extracted some models to pact_models + V4 spec updates +## 0.9.0 - Extracted some models to pact_models + V4 spec updates * 735c9e7 - chore: bump pact_matching to 0.9 (Ronald Holshausen, Sun Apr 25 13:50:18 2021 +1000) * fb373b4 - chore: bump version to 0.0.2 (Ronald Holshausen, Sun Apr 25 13:40:52 2021 +1000) @@ -812,13 +812,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 34e7dcd - chore: add a pact models crate (Ronald Holshausen, Thu Apr 22 10:04:40 2021 +1000) * a0f6a1d - refactor: Use Anyhow instead of `io::Result` (Caleb Stepanian, Wed Apr 7 16:17:35 2021 -0400) -# 0.8.14 - Bugfix Release +## 0.8.14 - Bugfix Release * 75c2c1a - fix: upgrade to tree_magic_mini 2.0.0 because they pulled 1.0.0 from crates.io and now builds fail (Matt Fellows, Wed Apr 7 12:53:26 2021 +1000) * 4f48223 - chore: add some tests for process_object (Ronald Holshausen, Fri Mar 26 15:00:32 2021 +1100) * 41652e2 - bump version to 0.8.14 (Ronald Holshausen, Sun Mar 14 14:34:21 2021 +1100) -# 0.8.13 - V4 features (message refactor) +## 0.8.13 - V4 features (message refactor) * b7c80e8 - chore: update specification tests (Ronald Holshausen, Mon Mar 8 15:48:34 2021 +1100) * 4fe65fb - feat(V4): Update matching code to use matchingRules.content for V4 messages (Ronald Holshausen, Mon Mar 8 12:10:31 2021 +1100) @@ -827,19 +827,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 127e6f2 - refactor: converted V4 interaction models from enum structs to plain structs (Ronald Holshausen, Sun Mar 7 17:17:15 2021 +1100) * b71a13f - bump version to 0.8.13 (Ronald Holshausen, Fri Mar 5 11:07:43 2021 +1100) -# 0.8.12 - Values matcher - match values, ignoring keys +## 0.8.12 - Values matcher - match values, ignoring keys * bc84a4d - feat: implemented matching values ignoring keys (Ronald Holshausen, Fri Mar 5 10:52:01 2021 +1100) * 16f736c - bump version to 0.8.12 (Ronald Holshausen, Wed Feb 10 15:21:46 2021 +1100) -# 0.8.11 - file locking with exp backoff +## 0.8.11 - file locking with exp backoff * 6f13f49 - feat: implemented non-blocking write file locking with exp backoff (Ronald Holshausen, Wed Feb 10 14:50:38 2021 +1100) * f34629e - feat: implemented non-blockng read file locking with exp backoff (Ronald Holshausen, Wed Feb 10 14:27:31 2021 +1100) * 7f054e8 - fix: correctly assemble UTF-8 percent encoded query parameters (Ronald Holshausen, Tue Feb 9 14:02:04 2021 +1100) * aae3c01 - bump version to 0.8.11 (Ronald Holshausen, Mon Feb 8 15:18:29 2021 +1100) -# 0.8.10 - use a file system lock when merging pact files +## 0.8.10 - use a file system lock when merging pact files * eae1b16 - chore: fix clippy errors (Ronald Holshausen, Mon Feb 8 14:57:42 2021 +1100) * 4442949 - chore: keep the file locked for the smallest possible window (Ronald Holshausen, Mon Feb 8 14:34:22 2021 +1100) @@ -848,7 +848,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 49a3cf2 - refactor: use bytes crate instead of vector of bytes for body content (Ronald Holshausen, Sun Feb 7 14:43:40 2021 +1100) * 48997d6 - bump version to 0.8.10 (Ronald Holshausen, Mon Jan 25 10:07:31 2021 +1100) -# 0.8.9 - Fixes + thread safe support functions +## 0.8.9 - Fixes + thread safe support functions * c8f7091 - feat: made pact broker module public so it can be used by other crates (Ronald Holshausen, Sun Jan 24 18:24:30 2021 +1100) * 53232b4 - chore: added some thread safe support functions to Interaction trait (Ronald Holshausen, Sun Jan 24 14:38:06 2021 +1100) @@ -857,7 +857,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ae95e0c - fix: apply generators to the request in the same manor as the response (Ronald Holshausen, Mon Jan 18 17:25:38 2021 +1100) * 1c0cfba - bump version to 0.8.9 (Ronald Holshausen, Mon Jan 11 09:57:30 2021 +1100) -# 0.8.8 - Bugfixes + updated dependencies +## 0.8.8 - Bugfixes + updated dependencies * 56ce20a - fix: MockServerURL generator was using the incorrect field (Ronald Holshausen, Sun Jan 10 15:54:18 2021 +1100) * 2bcf8fa - Merge pull request #88 from audunhalland/upgrade-http (Ronald Holshausen, Sun Jan 10 10:33:50 2021 +1100) @@ -872,7 +872,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 3a6945e - chore: Upgrade reqwest to 0.11 and hence tokio to 1.0 (Ronald Holshausen, Wed Jan 6 15:34:47 2021 +1100) * df77b63 - bump version to 0.8.8 (Ronald Holshausen, Tue Jan 5 12:29:55 2021 +1100) -# 0.8.7 - Updated dependencies +## 0.8.7 - Updated dependencies * e78969d - refactor: Generator body handler now returns a Result (Ronald Holshausen, Mon Jan 4 15:47:28 2021 +1100) * 7b8d74e - deps: remove httparse (Audun Halland, Sun Jan 3 04:51:32 2021 +0100) @@ -880,7 +880,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 51ff156 - chore: cleanup rustdoc warnings (Ronald Holshausen, Wed Dec 30 15:29:44 2020 +1100) * d7d86d2 - bump version to 0.8.7 (Ronald Holshausen, Wed Dec 30 15:10:01 2020 +1100) -# 0.8.6 - support generators associated with array contains matcher variants +## 0.8.6 - support generators associated with array contains matcher variants * c180d2c - chore: Implement Hash and PartialEq for Generator (Ronald Holshausen, Wed Dec 30 14:31:13 2020 +1100) * 5556b32 - feat: added test for array contains as a generator (Ronald Holshausen, Wed Dec 30 13:47:31 2020 +1100) @@ -896,7 +896,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 5e56ecb - refactor: support generators associated with array contains matcher variants (Ronald Holshausen, Tue Dec 29 11:46:56 2020 +1100) * ab16c08 - bump version to 0.8.6 (Matt Fellows, Sun Nov 22 23:52:51 2020 +1100) -# 0.8.5 - Bugfix Release +## 0.8.5 - Bugfix Release * 5058a2d - feat: include the mockserver URL and port in the verification context (Ronald Holshausen, Fri Nov 20 16:43:10 2020 +1100) * 09b197d - feat: add a mock server URL generator (Ronald Holshausen, Fri Nov 20 13:24:09 2020 +1100) @@ -905,14 +905,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 88eff15 - fix: when matching bodies, use any content type header matcher (Ronald Holshausen, Thu Nov 19 14:19:08 2020 +1100) * 12a3c43 - bump version to 0.8.5 (Ronald Holshausen, Tue Nov 17 16:36:15 2020 +1100) -# 0.8.4 - Support provider state injected values +## 0.8.4 - Support provider state injected values * 850282d - fix: times with millisecond precision less 3 caused chronos to panic (Ronald Holshausen, Tue Nov 17 16:29:47 2020 +1100) * baf3693 - fix: when displaying diff, if actual body was empty a panic resulted (Ronald Holshausen, Tue Nov 17 16:29:12 2020 +1100) * 13ce2f2 - fix: introduce GeneratorTestMode and restrict provider state generator to the provider side (Ronald Holshausen, Mon Nov 16 15:00:01 2020 +1100) * 4cb3c26 - bump version to 0.8.4 (Matt Fellows, Wed Nov 11 11:08:37 2020 +1100) -# 0.8.3 - Bugfix Release +## 0.8.3 - Bugfix Release * 8dccd1a - Merge pull request #79 from pact-foundation/feat/pacts-for-verification (Ronald Holshausen, Wed Nov 11 09:43:37 2020 +1100) * b3cca0d - test: add basic pact test for pacts for verification feature (Matt Fellows, Wed Nov 11 00:30:45 2020 +1100) @@ -922,18 +922,18 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 6633575 - fix: ported matching logic fixes from Pact-JVM (Ronald Holshausen, Mon Nov 2 18:20:22 2020 +1100) * 6cddd4c - bump version to 0.8.3 (Ronald Holshausen, Fri Oct 30 12:10:23 2020 +1100) -# 0.8.2 - Bugfix Release +## 0.8.2 - Bugfix Release * b4c4de8 - chore: upgrade to latest Onig crate (Ronald Holshausen, Wed Oct 28 09:59:36 2020 +1100) * 3acf437 - fix: when merging pacts, it helps to use the new interations in the merged pact, not the old ones #77 (Ronald Holshausen, Sat Oct 17 18:17:57 2020 +1100) * 2d945bf - bump version to 0.8.2 (Ronald Holshausen, Fri Oct 16 16:11:32 2020 +1100) -# 0.8.1 - Bugfix Release +## 0.8.1 - Bugfix Release * d24cfe3 - fix: matching binary data was broken after refactor (Ronald Holshausen, Fri Oct 16 16:05:26 2020 +1100) * aa287ed - bump version to 0.8.1 (Ronald Holshausen, Fri Oct 16 11:08:30 2020 +1100) -# 0.8.0 - V4 models + arrayContains matcher +## 0.8.0 - V4 models + arrayContains matcher * b668d81 - chore: cleanup warnings and add missing doc comments (Ronald Holshausen, Thu Oct 15 16:57:57 2020 +1100) * c686ce0 - fix: arrayContains matcher JSON was missing match attribute (Ronald Holshausen, Thu Oct 15 15:55:50 2020 +1100) @@ -970,7 +970,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * cbb6e20 - fix: generators to_json was only writing the first one for bodies, headers and queries (Ronald Holshausen, Sun Oct 4 12:52:24 2020 +1100) * 3131237 - bump version to 0.7.2 (Ronald Holshausen, Mon Sep 28 11:54:03 2020 +1000) -# 0.7.1 - CORS pre-flight + fixes +## 0.7.1 - CORS pre-flight + fixes * 7fd4dd2 - refactor: update the mock server CLI to use webmachine 0.2 and hyper 0.13 (Ronald Holshausen, Sun Sep 27 09:39:23 2020 +1000) * 2e662a6 - feat: handle CORS pre-flight requests in the mock server (Ronald Holshausen, Wed Sep 23 17:59:32 2020 +1000) @@ -983,7 +983,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a5f17a5 - fix: UUID generator should return hyphenated values (Ronald Holshausen, Thu Sep 17 10:06:52 2020 +1000) * 91cc833 - bump version to 0.7.1 (Ronald Holshausen, Mon Sep 14 16:43:41 2020 +1000) -# 0.7.0 - Message pacts and matching messages +## 0.7.0 - Message pacts and matching messages * 865327d - feat: handle comparing content types correctly (Ronald Holshausen, Mon Sep 14 16:37:11 2020 +1000) * ebee1c0 - feat: implemented matching for message metadata (Ronald Holshausen, Mon Sep 14 15:31:18 2020 +1000) @@ -996,14 +996,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * cc42fbc - feat: add MessagePact (Pact with Messages instead of Interactions) (Caleb Stepanian, Sun Aug 16 15:25:01 2020 -0400) * ec3193e - bump version to 0.6.6 (Ronald Holshausen, Sun Aug 23 14:07:51 2020 +1000) -# 0.6.5 - implemented provider state generator +## 0.6.5 - implemented provider state generator * f2532ee - chore: remove incorrect imports (Ronald Holshausen, Sun Aug 23 14:02:07 2020 +1000) * b130cd2 - feat: add tests for serialising Generator::ProviderStateGenerator (Ronald Holshausen, Sun Aug 23 13:53:41 2020 +1000) * 76f73c6 - feat: implemented provider state generator (Ronald Holshausen, Sun Aug 23 13:29:55 2020 +1000) * 30d5a75 - bump version to 0.6.5 (Ronald Holshausen, Sun Jul 26 12:05:16 2020 +1000) -# 0.6.4 - Refactor to return the most relevant response from the mock server +## 0.6.4 - Refactor to return the most relevant response from the mock server * da53bac - fix: return the most relevant response from the mock server #69 (Ronald Holshausen, Tue Jul 21 16:10:54 2020 +1000) * b242eb1 - refactor: changed the remaining uses of the old content type methods (Ronald Holshausen, Sun Jun 28 17:11:51 2020 +1000) @@ -1014,7 +1014,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 359a944 - chore: update versions in readmes (Ronald Holshausen, Sat Jun 27 13:21:24 2020 +1000) * 876c60d - bump version to 0.6.4 (Ronald Holshausen, Wed Jun 24 10:30:33 2020 +1000) -# 0.6.3 - Updated XML Matching +## 0.6.3 - Updated XML Matching * a15edea - chore: try set the content type on the body if known (Ronald Holshausen, Tue Jun 23 16:53:32 2020 +1000) * daeaa0c - feat: update the spec test cases after implementing XML matching MkII (Ronald Holshausen, Tue Jun 23 16:09:23 2020 +1000) @@ -1022,7 +1022,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 4d18e1b - bump version to 0.6.3 (Ronald Holshausen, Fri Jun 12 12:00:38 2020 +1000) * f2c7145 - fix: correct build dependencies (Ronald Holshausen, Fri Jun 12 11:57:48 2020 +1000) -# 0.6.2 - Overhaul date/time matching +## 0.6.2 - Overhaul date/time matching * 45fc1a0 - fix: cleanup warnings and fixed test (Ronald Holshausen, Fri Jun 12 10:51:44 2020 +1000) * a6cbe4b - feat: support validating datetimes with timezones (Ronald Holshausen, Wed Jun 10 17:03:56 2020 +1000) @@ -1033,13 +1033,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * f94f25a - fix: intermediate date/time matcher JSON should use the format attribute (Ronald Holshausen, Wed May 27 14:19:34 2020 +1000) * ae0af17 - bump version to 0.6.2 (Ronald Holshausen, Wed May 27 10:35:40 2020 +1000) -# 0.6.1 - Bugfix Release +## 0.6.1 - Bugfix Release * 6c65dab - feat: handle namespaces when matching XML (Ronald Holshausen, Mon May 25 16:23:20 2020 +1000) * 67e2147 - fix: was incorrectly selecting the matching rule when weight was equal (Ronald Holshausen, Mon May 25 16:22:36 2020 +1000) * 1e3516b - bump version to 0.6.1 (Ronald Holshausen, Sun May 24 11:49:20 2020 +1000) -# 0.6.0 - multi-part form post bodies +## 0.6.0 - multi-part form post bodies * ce94df9 - feat: cleaned up the logging of request matches (Ronald Holshausen, Sun May 24 11:17:08 2020 +1000) * bea787c - chore: bump matching crate version to 0.6.0 (Ronald Holshausen, Sat May 23 17:56:04 2020 +1000) @@ -1047,20 +1047,20 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ac2903d - chore: update the specification test cases (Ronald Holshausen, Wed May 20 12:08:08 2020 +1000) * b0f3387 - bump version to 0.5.15 (Ronald Holshausen, Fri May 15 16:27:48 2020 +1000) -# 0.5.14 - Bugfix Release +## 0.5.14 - Bugfix Release * 61ab50f - fix: date/time matchers fallback to the old key (Ronald Holshausen, Fri May 15 11:27:27 2020 +1000) * ddacb5d - fix: FFI datetime matcher was using incorrect field (Ronald Holshausen, Wed May 13 17:58:31 2020 +1000) * 6af29ce - fix: improve the error message when a merge conflict occurs (Ronald Holshausen, Wed May 13 10:57:25 2020 +1000) * ddd0881 - bump version to 0.5.14 (Ronald Holshausen, Tue May 12 12:33:30 2020 +1000) -# 0.5.13 - matching of binary payloads +## 0.5.13 - matching of binary payloads * 708db47 - feat: implement matching of binary payloads (application/octet-stream) (Ronald Holshausen, Fri May 8 15:52:03 2020 +1000) * 754a483 - chore: updated itertools to latest (Ronald Holshausen, Wed May 6 15:49:27 2020 +1000) * b6b81a3 - bump version to 0.5.13 (Ronald Holshausen, Tue May 5 16:39:23 2020 +1000) -# 0.5.12 - Bugfix Release +## 0.5.12 - Bugfix Release * d85f28c - fix: mock server matching requests with headers with multiple values (Ronald Holshausen, Tue May 5 15:23:11 2020 +1000) * a45d0c3 - fix: FFI mismatch json should have the actual values as UTF-8 string not bytes #64 (Ronald Holshausen, Thu Apr 30 11:16:25 2020 +1000) @@ -1069,20 +1069,20 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 47cc589 - chore: added clippy and fixed resulting lint errors (Ronald Holshausen, Wed Apr 29 15:32:55 2020 +1000) * 6f24994 - bump version to 0.5.12 (Ronald Holshausen, Fri Apr 24 10:11:33 2020 +1000) -# 0.5.11 - Cleaned up logging and warnings +## 0.5.11 - Cleaned up logging and warnings * 3d490ef - chore: implemented Display for Interaction (Ronald Holshausen, Wed Apr 22 13:01:45 2020 +1000) * af8d19a - chore: cleanup warning (Ronald Holshausen, Thu Apr 16 14:37:55 2020 +1000) * 9ff6f20 - chore: cleaned up some debug logging (Ronald Holshausen, Tue Apr 7 12:10:12 2020 +1000) * 1ad8edd - bump version to 0.5.11 (Ronald Holshausen, Tue Apr 7 11:42:14 2020 +1000) -# 0.5.10 - Bugfix Release +## 0.5.10 - Bugfix Release * b52f095 - fix: V3 path matcher JSON format was incorrect (Ronald Holshausen, Tue Apr 7 11:14:25 2020 +1000) * 9623183 - chore: upgraded the testing crates to latest (Ronald Holshausen, Tue Apr 7 09:40:39 2020 +1000) * a9d512f - bump version to 0.5.10 (Ronald Holshausen, Fri Mar 13 09:39:43 2020 +1100) -# 0.5.9 - Bugfixes + Date/Time matchers with JSON +## 0.5.9 - Bugfixes + Date/Time matchers with JSON * e0f23a2 - feat: exposes time/date utils for language implementations (Ronald Holshausen, Thu Mar 12 17:01:44 2020 +1100) * 2920364 - fix: date and time matchers with JSON (Ronald Holshausen, Thu Mar 12 16:07:05 2020 +1100) @@ -1094,7 +1094,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * d594dbb - Fix broken documentation link for provider_states. (Andrew Lilley Brinker, Mon Mar 2 08:21:40 2020 -0800) * 6187cfa - bump version to 0.5.9 (Ronald Holshausen, Sun Jan 19 11:11:09 2020 +1100) -# 0.5.8 - Upgrade reqwest to 0.10 +## 0.5.8 - Upgrade reqwest to 0.10 * 9dec41b - Upgrade reqwest to 0.10 (Audun Halland, Tue Dec 31 07:22:36 2019 +0100) * fda11e4 - Merge remote-tracking branch 'upstream/master' into async-await (Audun Halland, Tue Dec 17 02:13:58 2019 +0100) @@ -1102,7 +1102,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 298f217 - pact_matching: Upgrade reqwest to current alpha (Audun Halland, Tue Dec 17 00:36:33 2019 +0100) * d28d97d - bump version to 0.5.8 (Ronald Holshausen, Sat Dec 14 16:57:02 2019 +1100) -# 0.5.7 - Bugfix Release +## 0.5.7 - Bugfix Release * a660b87 - fix: correct pact merging to remove duplicates #54 (Ronald Holshausen, Sat Dec 14 15:06:30 2019 +1100) * 51f5a3e - Update READMEs and doc to not require any "extern crate" (Audun Halland, Sun Nov 17 23:28:21 2019 +0100) @@ -1116,19 +1116,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 924452f - 2018 edition autofix "cargo fix --edition" (Audun Halland, Sat Nov 16 22:27:42 2019 +0100) * 8523e69 - bump version to 0.5.7 (Ronald Holshausen, Sun Nov 10 10:30:20 2019 +1100) -# 0.5.6 - Bugfix Release +## 0.5.6 - Bugfix Release * a0dc946 - fix: store matching rules in a set to avoid duplicates (Ronald Holshausen, Sun Nov 10 10:08:34 2019 +1100) * 66c328e - feat: add colons to the allowed path characters (Ronald Holshausen, Sun Oct 27 17:13:14 2019 +1100) * 869af94 - bump version to 0.5.6 (Ronald Holshausen, Fri Sep 27 14:57:05 2019 +1000) -# 0.5.5 - Oniguruma crate for regex matching +## 0.5.5 - Oniguruma crate for regex matching * defe890 - fix: switch to the Oniguruma crate for regex matching #46 (Ronald Holshausen, Fri Sep 27 14:35:16 2019 +1000) * d5c0ac8 - chore: re-enabled time and timestamp matching tests (Ronald Holshausen, Fri Sep 27 12:49:32 2019 +1000) * 19bf916 - bump version to 0.5.5 (Ronald Holshausen, Sun Sep 22 17:11:00 2019 +1000) -# 0.5.4 - Refactor for publishing verification results +## 0.5.4 - Refactor for publishing verification results * eef3d97 - feat: added some tests for publishing verification results to the pact broker #44 (Ronald Holshausen, Sun Sep 22 16:44:52 2019 +1000) * 1110b47 - feat: implemented publishing verification results to the pact broker #44 (Ronald Holshausen, Sun Sep 22 13:53:27 2019 +1000) @@ -1136,14 +1136,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8932ef6 - feat: support an integration format for matchers for language integration (Ronald Holshausen, Sun Aug 25 11:36:23 2019 +1000) * 6899663 - bump version to 0.5.4 (Ronald Holshausen, Sun Aug 11 14:41:09 2019 +1000) -# 0.5.3 - support bearer tokens +## 0.5.3 - support bearer tokens * 152682e - chore: cleanup crates and warnings (Ronald Holshausen, Sun Aug 11 14:28:02 2019 +1000) * dac8ae1 - feat: support authentication when fetching pacts from a pact broker (Ronald Holshausen, Sun Aug 11 13:57:29 2019 +1000) * e007763 - feat: support bearer tokens when fetching pacts from URLs (Ronald Holshausen, Sun Aug 11 13:21:17 2019 +1000) * 8009184 - bump version to 0.5.3 (Ronald Holshausen, Sun Aug 11 09:46:21 2019 +1000) -# 0.5.2 - Support headers with multiple values +## 0.5.2 - Support headers with multiple values * 0c5f718 - feat: support matchers on plain text bodies #43 (Ronald Holshausen, Sat Aug 10 17:54:26 2019 +1000) * f0c0d07 - feat: support headers with multiple values (Ronald Holshausen, Sat Aug 10 17:01:10 2019 +1000) @@ -1151,13 +1151,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0fe57d9 - fix: release script (Ronald Holshausen, Sat Jun 29 19:28:46 2019 +1000) * 756ac9d - chore: update release script (Ronald Holshausen, Sat Jun 29 19:27:45 2019 +1000) -# 0.5.1 - Bugfix Release +## 0.5.1 - Bugfix Release * eab2d86 - chore: removed P macro (Ronald Holshausen, Sat Jun 29 18:45:12 2019 +1000) * 91da912 - fix: correct overflow of max value for random int generator #39 (Ronald Holshausen, Sat Jun 29 18:43:56 2019 +1000) * 4ccd09d - bump version to 0.5.1 (Ronald Holshausen, Sat Jan 5 19:42:58 2019 +1100) -# 0.5.0 - Regex, Date and Time matching and generators +## 0.5.0 - Regex, Date and Time matching and generators * f8fa0d8 - chore: Bump pact matchig version to 0.5.0 (Ronald Holshausen, Sat Jan 5 19:25:53 2019 +1100) * 4f471de - feat: implemented generating values from regex (Ronald Holshausen, Sat Jan 5 18:46:48 2019 +1100) @@ -1172,37 +1172,37 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 433d9c5 - fix: handle path expressions that start with an underscore (Ronald Holshausen, Tue Jan 1 10:51:43 2019 +1100) * 009b176 - bump version to 0.4.6 (Ronald Holshausen, Sat Sep 8 14:41:35 2018 +1000) -# 0.4.5 - feat: added convenience header methods to HttpPart +## 0.4.5 - feat: added convenience header methods to HttpPart * ead1af2 - feat: added convenience header methods to HttpPart (Ronald Holshausen, Sat Sep 8 14:29:59 2018 +1000) * 129333f - bump version to 0.4.5 (Ronald Holshausen, Sat Aug 11 15:21:01 2018 +1000) -# 0.4.4 - Bugfix Release +## 0.4.4 - Bugfix Release * 97abce4 - fix: support matching rules affected by Pact-JVM defect 743 (Ronald Holshausen, Sat Aug 11 15:07:41 2018 +1000) * f9d091e - bump version to 0.4.4 (Ronald Holshausen, Sat Jun 30 17:14:16 2018 +1000) -# 0.4.3 - Bugfix Release +## 0.4.3 - Bugfix Release * 1184203 - fix: Allow dashes in path expressions for headers like Content-Type (Ronald Holshausen, Sat Jun 30 17:03:08 2018 +1000) * 995139b - Revert "fix: query and header paths should be escaped" (Ronald Holshausen, Sat Jun 30 16:56:05 2018 +1000) * 74e9116 - bump version to 0.4.3 (Ronald Holshausen, Sat Jun 30 16:40:17 2018 +1000) -# 0.4.2 - Bugfix Release +## 0.4.2 - Bugfix Release * d6fbed4 - fix: query and header paths should be escaped (Ronald Holshausen, Sat Jun 30 16:22:56 2018 +1000) * 948e620 - fix: parse the V3 keys as path expressions for query and header matchers (Ronald Holshausen, Sat Jun 30 15:22:51 2018 +1000) * dec17b8 - doc: update readme (Ronald Holshausen, Sun May 13 14:33:20 2018 +1000) * c3898b9 - bump version to 0.4.2 (Ronald Holshausen, Sun May 13 14:24:54 2018 +1000) -# 0.4.1 - implemented some missing matchers (include, null, integer, decimal, number) +## 0.4.1 - implemented some missing matchers (include, null, integer, decimal, number) * b060bbb - feat: implemented some missing matchers (include, null, integer, decimal, number) (Ronald Holshausen, Sun May 13 13:46:23 2018 +1000) * 0aa161d - test: Added a test to confirm that binary bodies are persisted in base64 format #19 (Ronald Holshausen, Sun Apr 8 14:27:19 2018 +1000) * b68c893 - fix: pact specification key in the metadata should be camelcase #3 (Ronald Holshausen, Sun Apr 8 12:05:39 2018 +1000) * 10eb623 - bump version to 0.4.1 (Ronald Holshausen, Sat Apr 7 14:08:52 2018 +1000) -# 0.4.0 - First V3 specification release +## 0.4.0 - First V3 specification release * e5322f1 - code cleanup in prep of release (Ronald Holshausen, Sat Apr 7 13:58:55 2018 +1000) * d90af09 - Implemented decimal, hexadecimal and string generators (Ronald Holshausen, Fri Mar 9 16:48:46 2018 +1100) @@ -1246,7 +1246,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7361688 - moved missing files after merge from master (Ronald Holshausen, Sun Oct 23 10:19:31 2016 +1100) * 49e45f7 - Merge branch 'master' into v3-spec (Ronald Holshausen, Sun Oct 23 10:10:40 2016 +1100) -# 0.3.1 - Converted OptionalBody::Present to take a Vec<u8> +## 0.3.1 - Converted OptionalBody::Present to take a Vec<u8> * 24e3f73 - Converted OptionalBody::Present to take a Vec<u8> #19 (Ronald Holshausen, Sun Oct 22 18:04:46 2017 +1100) * cd564ac - Added cargo update after to release script after bumping the version (Ronald Holshausen, Fri Oct 20 09:34:57 2017 +1100) @@ -1254,7 +1254,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c507222 - Correct the version in the readme (Ronald Holshausen, Fri Oct 20 09:21:55 2017 +1100) * aa5cc66 - bump version to 0.3.1 (Ronald Holshausen, Fri Oct 20 09:11:35 2017 +1100) -# 0.3.0 - Backported matching rules from V3 branch +## 0.3.0 - Backported matching rules from V3 branch * ac94388 - Tests are now all passing #20 (Ronald Holshausen, Thu Oct 19 15:14:25 2017 +1100) * d990729 - Some code cleanup #20 (Ronald Holshausen, Wed Oct 18 16:32:37 2017 +1100) @@ -1270,7 +1270,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7afd258 - Update all the cargo manifest versions and commit the cargo lock files (Ronald Holshausen, Wed May 17 10:37:44 2017 +1000) * bb278d3 - bump version to 0.2.3 (Anthony Damtsis, Tue May 16 17:09:58 2017 +1000) -# 0.2.2 - Bugfix Release +## 0.2.2 - Bugfix Release * 3399f7c - Merge pull request #13 from adamtsis/remove-deprecated-json-lib (Ronald Holshausen, Tue May 16 15:56:22 2017 +1000) * efe4ca7 - Cleanup unused imports and unreachable pattern warning messages (Anthony Damtsis, Tue May 16 10:31:29 2017 +1000) @@ -1296,7 +1296,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 227b61b - correct the doc URL in the cargo manifest (Ronald Holshausen, Sun Oct 9 16:13:27 2016 +1100) * 5233cfa - correct updating the documentation URL in the release script (Ronald Holshausen, Sun Oct 9 16:08:33 2016 +1100) -# 0.2.1 - Changes required for verifying V2 pacts +## 0.2.1 - Changes required for verifying V2 pacts * 574e072 - upadte versions for V2 branch and fix an issue with loading JSON bodies encoded as a string (Ronald Holshausen, Sun Oct 9 15:31:57 2016 +1100) * a21973a - Get the build passing after merge from V1.1 branch (Ronald Holshausen, Sun Oct 9 13:47:09 2016 +1100) @@ -1304,7 +1304,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 797c9b9 - correct the URLs to the repos (Ronald Holshausen, Sat Oct 8 17:10:56 2016 +1100) * b7e038e - bump version to 0.1.2 (Ronald Holshausen, Sat Oct 8 16:54:52 2016 +1100) -# 0.1.1 - Changes required for verifying V1.1 pacts +## 0.1.1 - Changes required for verifying V1.1 pacts * 373f82d - regenerated the specification tests (Ronald Holshausen, Sat Oct 8 16:50:38 2016 +1100) * 388a19f - update references (Ronald Holshausen, Sat Oct 8 16:46:11 2016 +1100) @@ -1316,7 +1316,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * d7c859c - bump version to 0.0.3 (Ronald Holshausen, Mon Sep 26 20:55:12 2016 +1000) * 02421d5 - exclude IntelliJ files from packaging (Ronald Holshausen, Mon Sep 26 20:46:47 2016 +1000) -# 0.1.0 - V1.1 Specification Implementation +## 0.1.0 - V1.1 Specification Implementation * 140526d - Implement V1.1 matching (Ronald Holshausen, Tue Jun 28 15:58:35 2016 +1000) * 4224875 - update readmes and bump versions for V1.1 implementation (Ronald Holshausen, Tue Jun 28 15:05:39 2016 +1000) @@ -1324,7 +1324,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 44ec659 - in prep for supporting other spec versions, take the version into account when parsing a pact file (Ronald Holshausen, Tue Jun 28 11:40:07 2016 +1000) * 91d6d62 - removed the v1 from the project path, will use a git branch instead (Ronald Holshausen, Mon Jun 27 22:09:32 2016 +1000) -# 0.0.2 - Fixes required for verifying pacts +## 0.0.2 - Fixes required for verifying pacts * 429ef78 - Implemented handling state change requests in the pact verifier (Ronald Holshausen, Sun Sep 25 15:55:18 2016 +1000) * cc1e359 - implemented rudimentary diff output on json bodies (Ronald Holshausen, Sun Sep 25 13:43:45 2016 +1000) @@ -1333,7 +1333,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * bc3405c - implemented handling templated HAL URLs (Ronald Holshausen, Sun Sep 18 13:58:54 2016 +1000) * c3a8a30 - renamed the pact_matching and pact_mock_server directories (Ronald Holshausen, Sun Sep 18 11:07:32 2016 +1000) -# 0.0.1 - Second Feature Release +## 0.0.1 - Second Feature Release * 25bf4d0 - added changelog (Ronald Holshausen, Sun Jun 26 15:20:23 2016 +1000) * 4c60f07 - replace rustful with webmachine (Ronald Holshausen, Thu Jun 16 17:31:11 2016 +1000) @@ -1344,4 +1344,4 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 937360d - Oops, test generates a pact with the version in the metadata (Ronald Holshausen, Wed Jun 1 17:07:29 2016 +1000) * e957983 - bump libpact_matching version (Ronald Holshausen, Wed Jun 1 17:00:41 2016 +1000) -# 0.0.0 - First Release +## 0.0.0 - First Release diff --git a/rust/pact_matching/Cargo.toml b/rust/pact_matching/Cargo.toml index 63c96e8b3..088b95aa4 100644 --- a/rust/pact_matching/Cargo.toml +++ b/rust/pact_matching/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pact_matching" -version = "2.0.12" +version = "2.0.11" authors = ["Ronald Holshausen <ronald.holshausen@gmail.com>"] edition = "2024" description = "Pact-Rust support library that implements request and response matching logic" diff --git a/rust/pact_matching/release.groovy b/rust/pact_matching/release.groovy deleted file mode 100755 index 91ce2a1e3..000000000 --- a/rust/pact_matching/release.groovy +++ /dev/null @@ -1,113 +0,0 @@ -#!/usr/bin/env groovy -@Grab(group = 'com.github.zafarkhaja', module = 'java-semver', version = '0.9.0') -import com.github.zafarkhaja.semver.Version - -def executeOnShell(String command, Closure closure = null) { - executeOnShell(command, new File(System.properties.'user.dir'), closure) -} - -def executeOnShell(String command, File workingDir, Closure closure = null) { - println command - def processBuilder = new ProcessBuilder(['sh', '-c', command]) - .directory(workingDir) - if (closure) { - processBuilder.redirectErrorStream(true) - } else { - processBuilder.inheritIO() - } - def process = processBuilder.start() - if (closure) { - process.inputStream.eachLine closure - } - process.waitFor() - if (process.exitValue() > 0) { - System.exit(process.exitValue()) - } -} - -void ask(String prompt, String defaultValue = 'Y', Closure cl) { - def promptValue = System.console().readLine(prompt + ' ').trim() - if (promptValue.empty) { - promptValue = defaultValue - } - if (promptValue.toUpperCase() == 'Y') { - cl.call() - } -} - -executeOnShell 'git pull' - -ask('Execute Build?: [Y]') { - executeOnShell 'cargo clean' - executeOnShell 'cargo build' - executeOnShell 'cargo test' -} - -def projectProps = new File('Cargo.toml').text -def versionMatch = projectProps =~ /(?m)version\s*=\s*"(.*)"/ -def version = versionMatch[0][1] - -def prevTag = 'git describe --abbrev=0 --tags --match=libpact_matching-*'.execute().text.trim() -def changelog = [] -executeOnShell("git log --pretty='* %h - %s (%an, %ad)' ${prevTag}..HEAD .".toString()) { - println it - changelog << it -} - -def releaseDesc = System.console().readLine('Describe this release: [Bugfix Release]').trim() -if (releaseDesc.empty) { - releaseDesc = 'Bugfix Release' -} - -def releaseVer = System.console().readLine("What is the version for this release?: [$version]").trim() -if (releaseVer.empty) { - releaseVer = version -} - -ask('Update Changelog?: [Y]') { - def changeLogFile = new File('CHANGELOG.md') - def changeLogFileLines = changeLogFile.readLines() - changeLogFile.withPrintWriter() { p -> - p.println(changeLogFileLines[0]) - - p.println() - p.println("# $releaseVer - $releaseDesc") - p.println() - changelog.each { - p.println(it) - } - - changeLogFileLines[1..-1].each { - p.println(it) - } - } - - executeOnShell("git add CHANGELOG.md") - executeOnShell("git commit -m 'update changelog for release $releaseVer [skip ci]'") - executeOnShell("git status") - executeOnShell("git diff HEAD^..HEAD") -} - -ask('Tag and Push commits?: [Y]') { - executeOnShell 'git push' - executeOnShell("git tag libpact_matching-v${releaseVer}") - executeOnShell 'git push --tags' -} - -ask('Publish library to crates.io?: [Y]') { - executeOnShell 'cargo package' - executeOnShell 'cargo publish' -} - -def nextVer = Version.valueOf(releaseVer).incrementPatchVersion() -ask("Bump version to $nextVer?: [Y]") { - executeOnShell "sed -i -e 's/^version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml" - executeOnShell "sed -i -e 's/pact_matching = \"${releaseVer}\"/pact_matching = \"${nextVer}\"/' README.md" - executeOnShell("cargo update") - executeOnShell("git add Cargo.toml README.md ../Cargo.lock") - executeOnShell("git diff --cached") - ask("Commit and push this change?: [Y]") { - executeOnShell("git commit -m 'bump version to $nextVer [skip ci]'") - executeOnShell("git push") - } -} diff --git a/rust/pact_models/CHANGELOG.md b/rust/pact_models/CHANGELOG.md index 3982963d3..2fc510c0b 100644 --- a/rust/pact_models/CHANGELOG.md +++ b/rust/pact_models/CHANGELOG.md @@ -1,50 +1,50 @@ -To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD .` replacing TAGNAME and HEAD as appropriate. +# Changelog -# 1.3.16 - Body generator fix +## 1.3.16 - Body generator fix * fab0da69 - feat(models): apply body generators shallowest-path-first (#558) (Tien Vo Xuan, Fri Oct 9 05:23:29 2026 +0700) * 1ad011ba - fix(models): make plugin data merge idempotent and let the newer pact win (Ronald Holshausen, Fri Sep 25 10:39:57 2026 +1000) * f648e622 - chore(pact_models): bump version to 1.3.16 [skip ci] (Ronald Holshausen, Thu Sep 10 16:23:42 2026 +1000) -# 1.3.15 - Bugfix Release +## 1.3.15 - Bugfix Release * 7452d828 - fix: sort interactions before merge_join_by to prevent duplicates on pact merge #550 (Ronald Holshausen, Thu Sep 10 15:52:38 2026 +1000) * ca3f8ba9 - chore(pact_models): bump version to 1.3.15 [skip ci] (Ronald Holshausen, Thu Aug 6 11:20:45 2026 +1000) -# 1.3.14 - Bugfix + Support for matching rules and generators provided by plugins +## 1.3.14 - Bugfix + Support for matching rules and generators provided by plugins * 57daad23 - feat(pact-models): Support for matching rules and generators provided by plugins (Ronald Holshausen, Thu Aug 6 10:11:20 2026 +1000) * 3208dd76 - fix(pact_models): V4 body with no content attribute is not a missing body (Endika Iglesias, Mon Aug 3 15:25:57 2026 +0200) * 9a3c59d0 - chore(pact_models): bump version to 1.3.14 [skip ci] (Ronald Holshausen, Mon Aug 3 17:06:08 2026 +1000) -# 1.3.13 - Maintenance Release +## 1.3.13 - Maintenance Release * 4f35334b - chore(pact_models): Update reqwest to 0.13.4 and set rustls-no-provider (Ronald Holshausen, Mon Aug 3 16:41:50 2026 +1000) * ee4abc34 - chore(pact_models): Update dependencies (Ronald Holshausen, Mon Aug 3 16:33:49 2026 +1000) * b74a0e4b - chore(pact_models): bump version to 1.3.13 [skip ci] (Ronald Holshausen, Thu Jul 30 16:27:44 2026 +1000) -# 1.3.12 - Maintenance Release +## 1.3.12 - Maintenance Release * adabf328 - chore(pact_models): use neutral values in arrayContains expression tests (Stan Vodetskyi, Mon Jul 27 17:16:52 2026 -0700) * 46a285ae - chore: Update pact_models to 1.3.11 (Ronald Holshausen, Thu Jun 18 16:00:45 2026 +1000) * 2ac36a10 - chore(pact_models): bump version to 1.3.12 [skip-ci] (Ronald Holshausen, Thu Jun 18 15:55:42 2026 +1000) -# 1.3.11 - Maintenance Release +## 1.3.11 - Maintenance Release * b0554f31 - chore: add crate name and version to all http clients (JP-Ellis, Thu Jun 18 09:26:08 2026 +1000) * 2aa42a36 - bump version to 1.3.11 (Ronald Holshausen, Wed Apr 29 16:57:05 2026 +1000) -# 1.3.10 - Bugfix Release +## 1.3.10 - Bugfix Release * bf2fc778 - fix: ArrayContains variants must serialise as objects in values() (Stan Vodetskyi, Tue Apr 28 14:25:11 2026 -0700) * 03d7ae43 - bump version to 1.3.10 (Ronald Holshausen, Tue Apr 28 09:38:11 2026 +1000) -# 1.3.9 - add arrayContains expression to matching rule definition parser +## 1.3.9 - add arrayContains expression to matching rule definition parser * c90ffaea - feat: add arrayContains expression to matching rule definition parser (Stan Vodetskyi, Fri Apr 17 12:41:47 2026 -0700) * 47533664 - bump version to 1.3.9 (Ronald Holshausen, Wed Feb 18 12:13:20 2026 +1100) -# 1.3.8 - Bugfix Release +## 1.3.8 - Bugfix Release * a65303bd - chore(pact_models): Upgrade rand and rand_regex (Ronald Holshausen, Wed Feb 18 12:03:42 2026 +1100) * 9d4b31fe - chore(pact_models): Update dependencies (Ronald Holshausen, Wed Feb 18 11:41:57 2026 +1100) @@ -52,23 +52,23 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 2e7fe4a5 - fix: only split known multi-value HTTP headers on commas (Matt Fellows, Sat Feb 14 21:55:07 2026 +1100) * 52a7af7f - bump version to 1.3.8 (Ronald Holshausen, Tue Sep 16 13:35:40 2025 +1000) -# 1.3.7 - Support wasm32-wasip2 target +## 1.3.7 - Support wasm32-wasip2 target * 183a8c74 - fix(pact-models): Support compiling with wasm32-wasip2 target (Ronald Holshausen, Tue Sep 16 13:06:38 2025 +1000) * dfa63271 - bump version to 1.3.7 (Ronald Holshausen, Wed Jul 30 09:45:24 2025 +1000) -# 1.3.6 - Maintenance Release +## 1.3.6 - Maintenance Release * 7d4f5819 - chore(v2-matching-engine): Support root matching rules for bodies (Ronald Holshausen, Tue Jul 29 16:09:29 2025 +1000) * 2767ac68 - bump version to 1.3.6 (Ronald Holshausen, Mon Jul 28 10:17:13 2025 +1000) -# 1.3.5 - Maintenance Release +## 1.3.5 - Maintenance Release * e3d23beb - chore(v2-matching-engine): Support XML namespaces with attributes (Ronald Holshausen, Fri Jul 25 15:38:20 2025 +1000) * f95f7e35 - chore(v2-matching-engine): Fixes ported over from Pact-JVM (Ronald Holshausen, Wed Jul 23 16:31:50 2025 +1000) * d9b2d33a - bump version to 1.3.5 (Ronald Holshausen, Thu Jun 26 09:45:42 2025 +1000) -# 1.3.4 - Bugfix Release +## 1.3.4 - Bugfix Release * 72da979e - feat: Allow atLeast and atMost first in expression (tien.xuan.vo, Wed Jun 25 01:22:58 2025 +0700) * de9ec164 - Merge pull request #496 from tienvx/add-test-case-for-atLeast-atMost-at-beginning (Ronald Holshausen, Thu Jun 19 09:50:28 2025 +1000) @@ -76,17 +76,17 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 262fbe8e - feat: Support fromProviderState generator in regex matching expression (tien.xuan.vo, Wed Jun 18 23:49:26 2025 +0700) * 61667972 - bump version to 1.3.4 (Ronald Holshausen, Wed Jun 11 13:12:52 2025 +1000) -# 1.3.3 - Fix for Alpine +## 1.3.3 - Fix for Alpine * 1d18d3f5 - fix: Onig crate needs default-features = false so it compiles on Alpine (Ronald Holshausen, Wed Jun 11 12:35:06 2025 +1000) * 03ffd616 - bump version to 1.3.3 (Ronald Holshausen, Wed Jun 11 10:12:59 2025 +1000) -# 1.3.2 - Maintenance Release +## 1.3.2 - Maintenance Release * 82d078d9 - fix: Upgrade onig to 6.5.1 as the Match Whole String for is_match has been released (Ronald Holshausen, Wed Jun 11 10:00:52 2025 +1000) * 6a613889 - bump version to 1.3.2 (Ronald Holshausen, Tue May 20 14:48:26 2025 +1000) -# 1.3.1 - Supports generators with XML +## 1.3.1 - Supports generators with XML * 84085856 - chore(pact-models): Update dependencies (Ronald Holshausen, Tue May 20 11:40:04 2025 +1000) * 035bfd72 - test: Test apply XML generator to elements located too deep (tien.xuan.vo, Tue Mar 18 00:53:17 2025 +0700) @@ -103,7 +103,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a545c105 - chore(pact-models): Correct changelog (Ronald Holshausen, Tue Mar 25 16:14:59 2025 +1100) * 45ac2c65 - bump version to 1.3.1 (Ronald Holshausen, Tue Mar 25 16:10:29 2025 +1100) -# 1.3.0 - Support V2 matching engine +## 1.3.0 - Support V2 matching engine * fd3aed0f - chore(pact-models): Upgrade pact models crate to Rust 2024 edition (Ronald Holshausen, Tue Mar 25 16:06:21 2025 +1100) * 0ed75202 - chore(pact-models): Upgrade pact models crate to Rust 2024 edition (Ronald Holshausen, Tue Mar 25 16:02:47 2025 +1100) @@ -121,7 +121,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 63c97865 - chore: Correct failing tests after dependency update (Ronald Holshausen, Fri Mar 14 11:10:58 2025 +1100) * 242e7b8d - bump version to 1.2.8 (Ronald Holshausen, Fri Mar 14 10:46:51 2025 +1100) -# 1.2.7 - Maintenance Release +## 1.2.7 - Maintenance Release * c6346594 - fix: join_field should only replace * and not [*] parts (Ronald Holshausen, Fri Mar 14 10:38:08 2025 +1100) * 92394a40 - feat: enhancements backported from the V2 matching engine branch (Ronald Holshausen, Fri Mar 14 10:21:40 2025 +1100) @@ -132,7 +132,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 74df5d1d - fix: Remove duplicated timezone entries from timezone_db (Ronald Holshausen, Wed Dec 11 15:45:10 2024 +1100) * c266f8ea - bump version to 1.2.7 (Ronald Holshausen, Wed Dec 11 15:22:25 2024 +1100) -# 1.2.6 - Maintenance Release +## 1.2.6 - Maintenance Release * 707752ad - feat: Support generators for form urlencoded (tien.xuan.vo, Mon Dec 2 10:10:43 2024 +0700) * f3918b61 - Merge pull request #464 from tienvx/fix-cant-compare-each-key-each-value-matching-rules (Ronald Holshausen, Wed Nov 13 11:07:10 2024 +1100) @@ -140,7 +140,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c2793764 - test: Add test for eachKey and eachValue matching rules comparation (tien.xuan.vo, Fri Sep 6 11:40:19 2024 +0700) * 691ddae5 - fix: Fix can't compare 2 eachKey matching rules, 2 eachValue matching rules (tien.xuan.vo, Fri Sep 6 11:15:59 2024 +0700) -# 1.2.5 - Maintenance Release +## 1.2.5 - Maintenance Release * e485190f - chore(pact-models): Updated dependencies (Ronald Holshausen, Wed Nov 13 10:29:10 2024 +1100) * 234cbaf0 - chore(pact-models): Upgraded rand_regex to 0.17.0 (Ronald Holshausen, Wed Nov 13 10:25:55 2024 +1100) @@ -150,13 +150,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 9cc38a2f - chore: do not write empty matching rules to the Pact file (Ronald Holshausen, Tue Aug 27 11:23:43 2024 +1000) * 60ce3bc6 - bump version to 1.2.5 (Ronald Holshausen, Tue Aug 13 11:45:30 2024 +1000) -# 1.2.4 - Bugfix Release +## 1.2.4 - Bugfix Release * 50fc022c - fix(pact_models): Provider state values may be passed in under a "providerState" key (Ronald Holshausen, Thu Aug 8 11:53:23 2024 +1000) * 8387b9e1 - fix(pact_models): ProviderStateGenerator name was not correct (Ronald Holshausen, Tue Aug 6 11:49:19 2024 +1000) * 42911cfd - bump version to 1.2.4 (Ronald Holshausen, Tue Aug 6 10:54:23 2024 +1000) -# 1.2.3 - Support for provider state injected values in plugins +## 1.2.3 - Support for provider state injected values in plugins * 033a50ab - feat: Update the matching rule expression parser to support values from provider states (Ronald Holshausen, Fri Aug 2 10:06:52 2024 +1000) * 2ca9a9ae - chore(pact_models): Improve the matching rule expression parser error messages (Ronald Holshausen, Thu Aug 1 16:07:31 2024 +1000) @@ -164,13 +164,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 3c96c31b - chore: Upgrade pact_mock_server to 1.2.9 (Ronald Holshausen, Wed Jul 17 14:54:40 2024 +1000) * 57f05775 - bump version to 1.2.3 (Ronald Holshausen, Wed Jul 17 11:10:27 2024 +1000) -# 1.2.2 - Maintenance Release +## 1.2.2 - Maintenance Release * 2e2580f6 - feat(pact_consumer): Improve the mock server error output (Ronald Holshausen, Wed Jul 10 15:23:48 2024 +1000) * efa1295a - feat(pact_verifier): Allow provider state generator to fall back to the provider state parameters #441 (Ronald Holshausen, Tue Jul 9 17:27:09 2024 +1000) * 86704a82 - bump version to 1.2.2 (Ronald Holshausen, Wed Jun 12 15:17:57 2024 +1000) -# 1.2.1 - Bugfix Release +## 1.2.1 - Bugfix Release * ab80cd2b - fix: merge pact duplicates with diff desc/same prov state fix: merge message / sync pacts with no provider state (Yousaf Nabi, Sat Jun 8 23:48:30 2024 +0100) * 19957df5 - chore: Lock tracing crates to the same version via cargo patch block (Ronald Holshausen, Tue Jun 11 16:00:04 2024 +1000) @@ -178,7 +178,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * b0fd7e2f - chore: refactor to preserve existing error messages (Yousaf Nabi, Wed May 29 03:31:11 2024 +0100) * 7ca9e223 - bump version to 1.2.1 (Ronald Holshausen, Tue Apr 23 10:23:09 2024 +1000) -# 1.2.0 - Support query parameters with no values +## 1.2.0 - Support query parameters with no values * f20bb77d - chore(pact_models): Bump minor version (Ronald Holshausen, Tue Apr 23 10:04:56 2024 +1000) * e12cb9f0 - Merge pull request #410 from kageru/fix-user-agent-headers (Ronald Holshausen, Tue Apr 23 09:43:11 2024 +1000) @@ -190,24 +190,24 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 712bc797 - chore: update examples in matchers to JSON test (Ronald Holshausen, Sun Feb 18 03:54:56 2024 +1100) * 88581695 - bump version to 1.1.19 (Ronald Holshausen, Wed Feb 7 10:49:24 2024 +1100) -# 1.1.18 - Maintenance Release +## 1.1.18 - Maintenance Release * c7a086d6 - feat(models): add merge method (JP-Ellis, Tue Feb 6 12:45:59 2024 +1100) * 7222cd27 - fix: Min and Max type matchers were not able to parse their integration form (Ronald Holshausen, Wed Feb 7 09:45:45 2024 +1100) * 1d463aae - bump version to 1.1.18 (Ronald Holshausen, Sat Jan 20 13:45:58 2024 +1100) -# 1.1.17 - Bugfix Release +## 1.1.17 - Bugfix Release * 57e8d092 - fix: Implemented missing atLeast and atMost options with matching rule definitions (Ronald Holshausen, Sat Jan 20 13:29:30 2024 +1100) * e9f7c06f - fix: Regex generator panics if the regex has any anchors #311 (Ronald Holshausen, Fri Jan 19 19:33:50 2024 +1100) * 69c1cbb6 - bump version to 1.1.17 (Ronald Holshausen, Fri Jan 19 14:46:18 2024 +1100) -# 1.1.16 - Bugfix Release +## 1.1.16 - Bugfix Release * 0f5f563f - fix: regression - prevous matching rules change broke specification tests #359 (Ronald Holshausen, Fri Jan 19 14:41:37 2024 +1100) * a77c9eb0 - bump version to 1.1.16 (Ronald Holshausen, Fri Jan 19 14:13:25 2024 +1100) -# 1.1.15 - Bugfix Release +## 1.1.15 - Bugfix Release * 1d9034aa - fix: regression - generators must support query parameters in q[]= form #359 (Ronald Holshausen, Fri Jan 19 14:03:23 2024 +1100) * 01903998 - fix: regression - matching rules must support query parameters in q[]= form #359 (Ronald Holshausen, Fri Jan 19 13:03:21 2024 +1100) @@ -216,35 +216,35 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ab1d496f - fix: Add set-cookie header to the list of single value headers #353 (Ronald Holshausen, Wed Jan 17 13:46:49 2024 +1100) * 54022150 - bump version to 1.1.15 (Ronald Holshausen, Tue Jan 16 10:24:00 2024 +1100) -# 1.1.14 - Bugfix Release +## 1.1.14 - Bugfix Release * d94c7827 - fix: Support V2 matching rule header/query paths in encoded format #355 (Ronald Holshausen, Tue Jan 16 09:19:21 2024 +1100) * e7e0c278 - bump version to 1.1.14 (Ronald Holshausen, Tue Jan 16 04:25:00 2024 +1100) -# 1.1.13 - Bugfix Release +## 1.1.13 - Bugfix Release * 6e5504cd - fix: matching rules and generators for headers could be written to JSON form incorrectly #355 (Ronald Holshausen, Tue Jan 16 03:44:20 2024 +1100) * d8688c17 - bump version to 1.1.13 (Ronald Holshausen, Mon Nov 13 17:14:24 2023 +1100) -# 1.1.12 - Bugfix Release +## 1.1.12 - Bugfix Release * 07a1e7c2 - fix: Fallback to always generate a value to fix 'Could not generate a random TYPE from null' (tien.xuan.vo, Wed Nov 8 08:12:29 2023 +0700) * 3af7357f - feat: Force generators works regardless of value's type (tien.xuan.vo, Fri Nov 3 09:58:17 2023 +0700) * 10174b28 - chore: fix clippy errors (Ronald Holshausen, Fri Oct 6 09:54:49 2023 +1100) * c5c49849 - bump version to 1.1.12 (Ronald Holshausen, Mon Aug 7 12:04:15 2023 +1000) -# 1.1.11 - Maintenance Release +## 1.1.11 - Maintenance Release * 86da370f - feat(pact_models): Add functions for dealing with different header key case with V4 req/res models (Ronald Holshausen, Mon Aug 7 11:49:22 2023 +1000) * 2b97c737 - bump version to 1.1.11 (Ronald Holshausen, Fri Aug 4 15:43:39 2023 +1000) -# 1.1.10 - Bugfix Release +## 1.1.10 - Bugfix Release * a03fc5f0 - fix: V3 message binary content was not being base64 decoded correctly when loaded from a Pact file (Ronald Holshausen, Fri Aug 4 15:41:38 2023 +1000) * 7e108383 - fix(pact_models): Implement add_header for V3 Message (Ronald Holshausen, Wed Aug 2 16:42:35 2023 +1000) * 28a9df9e - bump version to 1.1.10 (Ronald Holshausen, Thu Jul 27 10:05:20 2023 +1000) -# 1.1.9 - Bugfix Release +## 1.1.9 - Bugfix Release * 2e45e223 - fix: Update matching error messages to be in line with the compatibility-suite (Ronald Holshausen, Tue Jul 25 17:42:03 2023 +1000) * e729e348 - chore: MockServerURL generator should look for both url and href keys (Ronald Holshausen, Tue Jul 25 14:39:19 2023 +1000) @@ -252,20 +252,20 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1deca59a - chore: Upgrade pact_models to 1.1.8 (Ronald Holshausen, Mon Jul 10 16:15:43 2023 +1000) * c78ea504 - bump version to 1.1.9 (Ronald Holshausen, Mon Jul 10 15:59:15 2023 +1000) -# 1.1.8 - Bugfix Release +## 1.1.8 - Bugfix Release * 4b4e7105 - fix(pact_models): MatchingRule::from_json shoud support integration format (Ronald Holshausen, Mon Jul 10 13:56:13 2023 +1000) * a6049684 - refactor: Update MIME multipart parser to a supported lib + make implementation inline with Pact-JVM (Ronald Holshausen, Fri Jul 7 15:42:02 2023 +1000) * fa93d6c7 - bump version to 1.1.8 (Ronald Holshausen, Thu Jul 6 10:20:20 2023 +1000) -# 1.1.7 - Bugfix Release +## 1.1.7 - Bugfix Release * 7dd89384 - feat: Add application/x-www-form-urlencoded to the known content types (Ronald Holshausen, Wed Jul 5 16:58:21 2023 +1000) * f6ba3b2a - fix: When writing V4 format, correct the content type set on the body (Ronald Holshausen, Wed Jul 5 16:57:40 2023 +1000) * 52d6bfab - feat: Add method to DocPath to return a lower-case copy of the path (Ronald Holshausen, Wed Jun 28 15:20:39 2023 +1000) * 59cbaad0 - bump version to 1.1.7 (Ronald Holshausen, Thu Jun 22 15:34:04 2023 +1000) -# 1.1.6 - Bugfix Release +## 1.1.6 - Bugfix Release * 727ea824 - fix: Support string escape sequences in matching definitions #283 (Ronald Holshausen, Wed Jun 21 14:55:42 2023 +1000) * 3cd0cbbb - chore: Upgrade Logos to 0.13.0 (Ronald Holshausen, Tue Jun 20 16:54:05 2023 +1000) @@ -273,72 +273,72 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 27bc02c9 - fix(pact_models): DocPath.parent was creating incorrect paths when the parent is a * (Ronald Holshausen, Tue Jun 20 10:41:18 2023 +1000) * b33f884d - bump version to 1.1.6 (Ronald Holshausen, Fri Jun 16 16:15:11 2023 +1000) -# 1.1.5 - Add crate features for date/time and XML support +## 1.1.5 - Add crate features for date/time and XML support * 161f1b82 - chore: cleanup deprecation warnings (Ronald Holshausen, Fri Jun 16 16:11:18 2023 +1000) * c5887670 - feat(pact-models): Add crate features for date/time and XML support #290 (Ronald Holshausen, Fri Jun 16 16:00:04 2023 +1000) * 2477729f - chore: reduce log entry to debug level as it makes no sense as a warning (Ronald Holshausen, Mon Jun 5 15:01:45 2023 +1000) * b7d949ed - bump version to 1.1.5 (Ronald Holshausen, Thu Jun 1 10:17:41 2023 +1000) -# 1.1.4 - Bugfix Release +## 1.1.4 - Bugfix Release * 9d3205a0 - fix: Support fraction of seconds with more then 3 digits #279 (Ronald Holshausen, Wed May 31 14:40:41 2023 +1000) * f001eba2 - bump version to 1.1.4 (Ronald Holshausen, Mon May 29 15:03:44 2023 +1000) -# 1.1.3 - Bugfix Release +## 1.1.3 - Bugfix Release * 743b1823 - fix: MockServerURL generator was fetching the incorrect field from the test context (Ronald Holshausen, Mon May 29 14:58:19 2023 +1000) * 2eeecc4a - bump version to 1.1.3 (Ronald Holshausen, Mon May 15 13:25:58 2023 +1000) -# 1.1.2 - Removed auto-generated keys and updates all trait methods so they can be used in an FFI context +## 1.1.2 - Removed auto-generated keys and updates all trait methods so they can be used in an FFI context * f8f0e773 - fix: Add RefUnwindSafe trait bound to all Pact and Interaction trait methods so they can be used in an FFI context (Ronald Holshausen, Mon May 15 12:37:16 2023 +1000) * cf55b3c5 - fix: do not auto-generate the interaction key if not set #264 (Ronald Holshausen, Mon May 8 11:10:20 2023 +1000) * 5eed834a - feat: Update date validation to check for leap years (Ronald Holshausen, Tue May 2 14:22:10 2023 +1000) * 1a33368f - bump version to 1.0.14 (Ronald Holshausen, Tue Apr 18 12:51:22 2023 +1000) -# 1.0.13 - Maintenance Release +## 1.0.13 - Maintenance Release * 473d3167 - chore: remove dbg statements (Ronald Holshausen, Mon Apr 17 11:52:12 2023 +1000) * 2eed4e60 - bump version to 1.0.13 (Ronald Holshausen, Mon Apr 17 10:16:45 2023 +1000) -# 1.0.12 - Fixes hash function for generators +## 1.0.12 - Fixes hash function for generators * a81b2df3 - chore: fix for diabled generators hash test (Ronald Holshausen, Mon Apr 17 09:25:49 2023 +1000) * 04ddccac - chore: disable hash_test_for_generators as it is failing on CI (Ronald Holshausen, Fri Apr 14 17:37:25 2023 +1000) * afbd35d1 - chore: switch generator tests to FxHasher as they are failing on CI (Ronald Holshausen, Fri Apr 14 17:22:22 2023 +1000) * 848b1943 - bump version to 1.0.12 (Ronald Holshausen, Fri Apr 14 17:06:03 2023 +1000) -# 1.0.11 - Bugfix Release +## 1.0.11 - Bugfix Release * d3cd2357 - fix(V4): corrected all the hash functions for all V4 models (Ronald Holshausen, Fri Apr 14 16:51:01 2023 +1000) * 867936d6 - fix: V4 models were not including the key in the implementation of equals (Ronald Holshausen, Fri Apr 14 11:16:34 2023 +1000) * 67123cb0 - bump version to 1.0.11 (Ronald Holshausen, Thu Apr 13 15:27:32 2023 +1000) -# 1.0.10 - Bugfix Release +## 1.0.10 - Bugfix Release * 10239f7c - fix(V4): when generating the interaction key, treat header keys in a case-insensitive manner (Ronald Holshausen, Thu Apr 13 15:02:29 2023 +1000) * 6f70f30a - fix: exclude headers from the pact conflict check (Ronald Holshausen, Wed Mar 15 15:23:19 2023 +1100) * 2b5c53f6 - bump version to 1.0.10 (Ronald Holshausen, Wed Mar 15 14:23:05 2023 +1100) -# 1.0.9 - Bugfix Release +## 1.0.9 - Bugfix Release * 97684ade - fix: Correctly deal with headers when the value is a string (Ronald Holshausen, Wed Mar 15 14:12:24 2023 +1100) * 55748ea0 - bump version to 1.0.9 (Ronald Holshausen, Wed Mar 15 12:15:43 2023 +1100) -# 1.0.8 - Bugfix Release +## 1.0.8 - Bugfix Release * 315e6aee - fix(V4): Bodies where the content attribute is NULL should be NULL bodies (Ronald Holshausen, Wed Mar 15 12:01:28 2023 +1100) * 86d4ee08 - bump version to 1.0.8 (Ronald Holshausen, Wed Mar 15 11:32:50 2023 +1100) -# 1.0.7 - Bugfix Release +## 1.0.7 - Bugfix Release * eeb256db - fix(V4): Bodies specified as a single empty JSON string should be mapped to an empty body (Ronald Holshausen, Wed Mar 15 11:22:08 2023 +1100) * 20d9efd1 - bump version to 1.0.7 (Ronald Holshausen, Tue Mar 14 17:10:26 2023 +1100) * 1e51e8a9 - Revert "bump version to 1.0.7" (Ronald Holshausen, Tue Mar 14 17:09:08 2023 +1100) * dbb750b1 - bump version to 1.0.7 (Ronald Holshausen, Tue Mar 14 16:46:19 2023 +1100) -# 1.0.6 - Maintenance Release +## 1.0.6 - Maintenance Release * fbe6ebe2 - chore: set pact_models version to 1.0.6 as 1.0.5 was yanked (Ronald Holshausen, Tue Mar 14 16:41:56 2023 +1100) * f04a3273 - feat: add a simple header parser to pact_models #259 (Ronald Holshausen, Tue Mar 14 16:38:54 2023 +1100) @@ -365,62 +365,62 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ba24b0a8 - fix: correct parsing of JSON encoded bodies as per V4 spec (Ronald Holshausen, Mon Jan 30 15:19:38 2023 +1100) * 68aad6e9 - bump version to 1.0.5 (Ronald Holshausen, Wed Jan 11 14:26:02 2023 +1100) -# 1.0.4 - Bugfix Release +## 1.0.4 - Bugfix Release * 155dae40 - fix: Support RequestResponsePact loading from V4 formatted JSON #246 (Ronald Holshausen, Wed Jan 11 12:32:01 2023 +1100) * 4c04cb65 - fix: sort the header and query parameter keys when writing the pact #246 (Ronald Holshausen, Wed Jan 11 10:39:36 2023 +1100) * 1cbd7fc6 - bump version to 1.0.4 (Ronald Holshausen, Thu Dec 22 15:00:32 2022 +1100) -# 1.0.3 - Bugfix Release +## 1.0.3 - Bugfix Release * 64d500b0 - fix: Message pact was not loading the IDs from the Pact Broker #239 (Ronald Holshausen, Thu Dec 22 14:24:26 2022 +1100) * a359c22f - chore: enable generator doc test (Ronald Holshausen, Mon Dec 12 11:08:30 2022 +1100) * 9038c04f - bump version to 1.0.3 (Ronald Holshausen, Fri Dec 9 12:28:39 2022 +1100) -# 1.0.2 - Bugfix Release +## 1.0.2 - Bugfix Release * f84adc7a - fix: Metadata was missing from the generator categories (Ronald Holshausen, Fri Dec 9 11:00:34 2022 +1100) * f9dd7a4e - Fix: date and time matchers were not being persisted as per the spec (Ronald Holshausen, Thu Dec 1 12:25:12 2022 +1100) * 7e5add7e - bump version to 1.0.2 (Ronald Holshausen, Mon Nov 28 13:27:43 2022 +1100) -# 1.0.1 - Maintenance Release +## 1.0.1 - Maintenance Release * 43a8cae1 - chore: clean up deprecation warnings (Ronald Holshausen, Mon Nov 28 13:19:31 2022 +1100) * 19cc4ca3 - chore: Update dependencies (Ronald Holshausen, Mon Nov 28 12:12:18 2022 +1100) * e21d3454 - feat: add FFI function to parse JSON to a Pact model (Ronald Holshausen, Fri Nov 11 17:00:36 2022 +1100) * 66e84e9d - bump version to 1.0.1 (Ronald Holshausen, Mon Nov 7 10:27:49 2022 +1100) -# 1.0.0 - Maintenance Release +## 1.0.0 - Maintenance Release * f91dc00d - fix: try loosen dependencies to fix dependency cycle issue (Ronald Holshausen, Mon Nov 7 10:15:19 2022 +1100) * 87430af9 - chore: set onig to the crate version (Ronald Holshausen, Fri Nov 4 16:41:32 2022 +1100) * 0bd3f51b - bump version to 0.4.7 (Ronald Holshausen, Fri Nov 4 15:50:52 2022 +1100) -# 0.4.6 - Maintenance Release +## 0.4.6 - Maintenance Release * 6ad00a5d - fix: Update onig to latest master to fix Regex Matcher Fails On Valid Inputs #214 (Ronald Holshausen, Fri Nov 4 15:23:50 2022 +1100) * ac4fe73f - chore: fix to release scripts (Ronald Holshausen, Wed Sep 7 10:51:01 2022 +1000) * bcdc6443 - bump version to 0.4.6 (Ronald Holshausen, Fri Aug 26 11:39:48 2022 +1000) -# 0.4.5 - Bugfix Release +## 0.4.5 - Bugfix Release * b6bba540 - fix(FFI): FFI passes matching rules and generators for paths etc. with a path of $ (Ronald Holshausen, Fri Aug 26 11:22:19 2022 +1000) * a37d621e - chore: update the doc comments on matchingrules! macro (Ronald Holshausen, Wed Aug 24 17:25:04 2022 +1000) * 46b7c1a2 - bump version to 0.4.5 (Ronald Holshausen, Thu Aug 18 13:35:04 2022 +1000) -# 0.4.4 - Updated dependencies +## 0.4.4 - Updated dependencies * bd53ad0d - chore: Upgrade dependencies (uuid, tracing) (Ronald Holshausen, Thu Aug 18 13:32:28 2022 +1000) * 3e5acc2c - bump version to 0.4.4 (Ronald Holshausen, Thu Aug 18 13:05:45 2022 +1000) -# 0.4.3 - Bugfix Release +## 0.4.3 - Bugfix Release * 74a36a1b - fix: Matching rule parser was not handling decimal values correctly (Ronald Holshausen, Wed Aug 17 13:19:58 2022 +1000) * cf4b52eb - chore: fix failing time expression tests after a dependency update (Ronald Holshausen, Mon Aug 15 17:09:04 2022 +1000) * 9e0dbc26 - chore: clean up some deprecation warnings in Pact models (Ronald Holshausen, Wed Aug 10 11:38:45 2022 +1000) * 91cb99a9 - bump version to 0.4.3 (Ronald Holshausen, Mon Aug 8 12:59:10 2022 +1000) -# 0.4.2 - Maintenance Release +## 0.4.2 - Maintenance Release * 13dc3b52 - Merge branch 'master' into feat/verifier-multiple-transports (Ronald Holshausen, Wed Aug 3 11:55:05 2022 +1000) * 3d73e3c2 - Removed dependency on time v0.1 (Daan Oosterveld, Wed Jul 6 15:56:29 2022 +0200) @@ -429,19 +429,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 4da79d75 - chore: lock the tracing crate version (Ronald Holshausen, Mon May 9 17:04:29 2022 +1000) * 137e3503 - bump version to 0.4.2 (Ronald Holshausen, Mon May 9 14:18:35 2022 +1000) -# 0.4.1 - switch pact_models to use tracing crate +## 0.4.1 - switch pact_models to use tracing crate * 9d30a441 - chore: switch pact_models to use tracing crate (Ronald Holshausen, Mon May 9 13:24:37 2022 +1000) * 0dd9a176 - bump version to 0.4.1 (Ronald Holshausen, Fri Apr 22 12:07:23 2022 +1000) -# 0.4.0 - Updated V4 model interfaces +## 0.4.0 - Updated V4 model interfaces * 6de6c229 - feat: Add functions to calc unique key to V4 interaction trait (Ronald Holshausen, Fri Apr 22 12:00:57 2022 +1000) * 7e3e2e18 - feat: add method to V4Pact to find an interaction by ID (Ronald Holshausen, Thu Apr 21 12:25:09 2022 +1000) * 49640c5f - chore: minor update to release scripts (Ronald Holshausen, Wed Apr 13 15:32:46 2022 +1000) * 97b49229 - bump version to 0.3.4 (Ronald Holshausen, Wed Apr 13 13:47:10 2022 +1000) -# 0.3.3 - Bugfix Release +## 0.3.3 - Bugfix Release * 73ae0ef0 - fix: Upgrade reqwest to 0.11.10 to resolve #156 (Ronald Holshausen, Wed Apr 13 13:31:55 2022 +1000) * 42b1a461 - Merge branch 'master' into feat/plugin-mock-server (Ronald Holshausen, Mon Mar 21 16:01:33 2022 +1100) @@ -455,17 +455,17 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7fd87eb9 - feat: store the transport with V4 interactions to support mockservers from plugins (Ronald Holshausen, Fri Mar 18 14:30:20 2022 +1100) * 27e41386 - bump version to 0.3.1 (Ronald Holshausen, Fri Mar 4 11:32:56 2022 +1100) -# 0.3.2 - Maintenance Release +## 0.3.2 - Maintenance Release * 01ac989b - fix: was missing setter to set the transport with V4 interactions (Ronald Holshausen, Fri Mar 18 16:04:00 2022 +1100) * a075f679 - bump version to 0.3.2 (Ronald Holshausen, Fri Mar 18 14:39:20 2022 +1100) -# 0.3.1 - Plugin Support +## 0.3.1 - Plugin Support * 7fd87eb9 - feat: store the transport with V4 interactions to support mockservers from plugins (Ronald Holshausen, Fri Mar 18 14:30:20 2022 +1100) * 27e41386 - bump version to 0.3.1 (Ronald Holshausen, Fri Mar 4 11:32:56 2022 +1100) -# 0.3.0 - Ported the date-time expressions from Pact-JVM +## 0.3.0 - Ported the date-time expressions from Pact-JVM * 0aa55cfe - feat: wired the date-time expression parsers into the generators (Ronald Holshausen, Thu Mar 3 18:01:46 2022 +1100) * 98b887f0 - feat: Implemented date-time expression parser (from Pact-JVM) (Ronald Holshausen, Thu Mar 3 16:34:42 2022 +1100) @@ -476,14 +476,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 12a7b78c - chore: bump minor version (Ronald Holshausen, Wed Feb 16 15:06:35 2022 +1100) * c7d39ca6 - bump version to 0.2.8 (Ronald Holshausen, Mon Jan 17 10:47:48 2022 +1100) -# 0.2.7 - Bugfix Release +## 0.2.7 - Bugfix Release * c2089645 - fix: log crate version must be fixed across all crates (including plugin driver) (Ronald Holshausen, Fri Jan 14 16:10:50 2022 +1100) * ff49f33a - chore: update docs on matching rule definitions (Ronald Holshausen, Wed Jan 5 15:07:26 2022 +1100) * 7b23378f - feat: some matching rules should not cascade (Ronald Holshausen, Thu Dec 30 13:32:04 2021 +1100) * 83c36db7 - bump version to 0.2.7 (Ronald Holshausen, Wed Dec 29 13:33:06 2021 +1100) -# 0.2.6 - Bugfix Release +## 0.2.6 - Bugfix Release * 7b2e8538 - fix: DocPath join needs to detect numeric values (Ronald Holshausen, Wed Dec 29 13:23:47 2021 +1100) * e5fd165d - refactor: Move is_values_matcher logic to MatchingRule (Ronald Holshausen, Wed Dec 29 10:05:03 2021 +1100) @@ -492,25 +492,25 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 39338c46 - fix: Some matching rules do not have associated configuration (Ronald Holshausen, Thu Dec 23 14:02:50 2021 +1100) * deb30e92 - bump version to 0.2.6 (Ronald Holshausen, Thu Dec 23 11:57:34 2021 +1100) -# 0.2.5 - Bugfix Release +## 0.2.5 - Bugfix Release * e1e0b43e - fix: matching definition parser was incorrectly merging multiple definitions (Ronald Holshausen, Thu Dec 23 11:48:09 2021 +1100) * 85bffe40 - bump version to 0.2.5 (Ronald Holshausen, Thu Dec 23 09:23:57 2021 +1100) -# 0.2.4 - Maintenance Release +## 0.2.4 - Maintenance Release * b5fd82e5 - feat: add method to DocPath to return the parent path (Ronald Holshausen, Wed Dec 22 18:06:43 2021 +1100) * a3f74711 - fix: Docpath join was escaping * (Ronald Holshausen, Wed Dec 22 17:23:12 2021 +1100) * cc0775e2 - bump version to 0.2.4 (Ronald Holshausen, Tue Dec 21 13:16:32 2021 +1100) -# 0.2.3 - Maintenance Release +## 0.2.3 - Maintenance Release * 481762f0 - feat: add function to detect if a string is a matching definition (Ronald Holshausen, Tue Dec 21 13:06:31 2021 +1100) * 98e364b2 - chore: add docpath method to return a vector of strings (Ronald Holshausen, Thu Dec 16 17:16:36 2021 +1100) * c707a8c0 - feat: add a method to join a value onto a doc path (Ronald Holshausen, Thu Dec 16 16:03:27 2021 +1100) * 77892ab1 - bump version to 0.2.3 (Ronald Holshausen, Mon Nov 29 11:57:36 2021 +1100) -# 0.2.2 - Fixes to the matching rule parser +## 0.2.2 - Fixes to the matching rule parser * 58039496 - chore: fix imports on expression parser (Ronald Holshausen, Mon Nov 29 11:49:49 2021 +1100) * cb0f7df8 - Revert "update changelog for release 0.2.2" (Ronald Holshausen, Mon Nov 29 11:42:37 2021 +1100) @@ -523,7 +523,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a859d0e1 - fix: make sure metadata entries are correctly encoded when downgrading a pact (Ronald Holshausen, Wed Nov 17 16:54:15 2021 +1100) * d32ae2b1 - bump version to 0.2.2 (Ronald Holshausen, Tue Nov 16 10:38:04 2021 +1100) -# 0.2.1 - Update V4 models to support FFI + plugins +## 0.2.1 - Update V4 models to support FFI + plugins * 15b8f08f - feat: add functions to return mutable references to the V4 model trait (Ronald Holshausen, Tue Nov 16 10:03:03 2021 +1100) * 7c150c8b - feat(plugins): Support message tests via FFI that use plugins (Ronald Holshausen, Wed Nov 10 17:03:49 2021 +1100) @@ -533,22 +533,22 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 296b4370 - chore: update project to Rust 2021 edition (Ronald Holshausen, Fri Oct 22 10:44:48 2021 +1100) * dac05481 - bump version to 0.2.1 (Ronald Holshausen, Thu Oct 21 17:52:39 2021 +1100) -# 0.2.0 - Pact V4 + Plugins release +## 0.2.0 - Pact V4 + Plugins release * e72d602a - chore: bump pact models to non-beta version (Ronald Holshausen, Thu Oct 21 17:47:17 2021 +1100) * 3fb9258a - bump version to 0.2.0-beta.7 (Ronald Holshausen, Tue Oct 19 16:41:08 2021 +1100) -# 0.2.0-beta.6 - Bugfix Release +## 0.2.0-beta.6 - Bugfix Release * 48a6be5f - fix: EachValue was outputting the wrong JSON (Ronald Holshausen, Tue Oct 19 16:35:17 2021 +1100) * 021a65e6 - bump version to 0.2.0-beta.6 (Ronald Holshausen, Mon Oct 18 13:00:22 2021 +1100) -# 0.2.0-beta.5 - matching synchronous request/response messages +## 0.2.0-beta.5 - matching synchronous request/response messages * 2b4b7cc3 - feat(plugins): Support matching synchronous request/response messages (Ronald Holshausen, Fri Oct 15 16:01:50 2021 +1100) * de3e8296 - bump version to 0.2.0-beta.5 (Ronald Holshausen, Tue Oct 12 15:09:59 2021 +1100) -# 0.2.0-beta.4 - Enhancements for plugins +## 0.2.0-beta.4 - Enhancements for plugins * a52db737 - feat: record the version of the lib that created the pact in the metadata (Ronald Holshausen, Tue Oct 12 14:55:42 2021 +1100) * 35ff0993 - feat: record the version of the lib that created the pact in the metadata (Ronald Holshausen, Tue Oct 12 14:52:43 2021 +1100) @@ -558,7 +558,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 48d662a8 - chore: add docs about the matching rule definition language (Ronald Holshausen, Thu Oct 7 13:29:16 2021 +1100) * 780a0c97 - bump version to 0.2.0-beta.4 (Ronald Holshausen, Tue Oct 5 15:12:12 2021 +1100) -# 0.2.0-beta.3 - Fixes from master + Updated matching rule definitions +## 0.2.0-beta.3 - Fixes from master + Updated matching rule definitions * d608a028 - chore: re-enable matching definition tests (Ronald Holshausen, Tue Oct 5 15:06:11 2021 +1100) * 57ba661a - chore: fix tests after removing Deserialize, Serialize from Message (Ronald Holshausen, Tue Oct 5 14:55:58 2021 +1100) @@ -578,7 +578,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7cfe2883 - chore: fix clippy violation (Ronald Holshausen, Fri Sep 10 15:34:03 2021 +1000) * 24d4b39a - bump version to 0.2.0-beta.3 (Ronald Holshausen, Fri Sep 10 14:16:03 2021 +1000) -# 0.1.4 - WASM support + native TLS certs +## 0.1.4 - WASM support + native TLS certs * df715cd5 - feat: support native TLS. Fixes #144 (Matt Fellows, Mon Sep 20 13:00:33 2021 +1000) * 62db0e44 - chore: fix clippy warnings (Ronald Holshausen, Fri Sep 10 17:41:43 2021 +1000) @@ -587,7 +587,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7c12b03b - bump version to 0.1.4 (Ronald Holshausen, Sat Sep 4 15:30:35 2021 +1000) * 8fe00acd - chore: correct release script (Ronald Holshausen, Sat Sep 4 15:26:17 2021 +1000) -# 0.2.0-beta.2 - Support for getting interaction markup from plugins +## 0.2.0-beta.2 - Support for getting interaction markup from plugins * 997c063f - chore: update release script (Ronald Holshausen, Fri Sep 10 14:08:52 2021 +1000) * dc41e498 - chore: correct links in rust docs (Ronald Holshausen, Fri Sep 10 14:07:01 2021 +1000) @@ -604,12 +604,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 689a35f4 - chore: fix release script (Ronald Holshausen, Fri Sep 3 17:16:45 2021 +1000) * 46135a16 - chore: add verifier FFI functions for directory, URL and Pact broker sources (Ronald Holshausen, Tue Aug 24 10:14:46 2021 +1000) -# 0.1.3 - Bugfix Release +## 0.1.3 - Bugfix Release * 46135a16 - chore: add verifier FFI functions for directory, URL and Pact broker sources (Ronald Holshausen, Tue Aug 24 10:14:46 2021 +1000) * c2a9c5cc - bump version to 0.1.3 (Ronald Holshausen, Sun Aug 22 15:15:16 2021 +1000) -# 0.2.0-beta.1 - Support for plugins +## 0.2.0-beta.1 - Support for plugins * b77498c8 - chore: fix tests after updating plugin API (Ronald Holshausen, Fri Sep 3 16:48:18 2021 +1000) * c0bdd359 - fix: PluginData configuration is optional (Ronald Holshausen, Thu Sep 2 15:37:01 2021 +1000) @@ -621,7 +621,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * b40dab60 - feat(plugins): moved the matching rule definition parser into the models crate (Ronald Holshausen, Wed Aug 25 17:27:02 2021 +1000) * c53dbd79 - bump version to 0.2.0-beta.1 (Ronald Holshausen, Mon Aug 23 13:04:02 2021 +1000) -# 0.2.0-beta.0 - Beta version supporting Pact plugins +## 0.2.0-beta.0 - Beta version supporting Pact plugins * 72b9baaa - chore: update release script for beta versions (Ronald Holshausen, Mon Aug 23 12:57:49 2021 +1000) * 0c5cede2 - chore: bump models crate to 0.2 (Ronald Holshausen, Mon Aug 23 12:56:14 2021 +1000) @@ -634,12 +634,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 2662241e - feat(plugins): Call out to plugins when comparing content owned by the plugin during verification (Ronald Holshausen, Fri Aug 13 14:29:30 2021 +1000) * bdfc6f02 - feat(plugins): Load required plugins when verifying a V4 pact (Ronald Holshausen, Wed Aug 11 14:23:54 2021 +1000) -# 0.1.2 - upgrade nom to 7.0 +## 0.1.2 - upgrade nom to 7.0 * 21be6bce - chore: upgrade nom to 7.0 #128 (Ronald Holshausen, Sun Aug 22 11:56:33 2021 +1000) * c274ca1a - fix: use the pacts for verification endpoint if the conusmer selectors are specified #133 (Ronald Holshausen, Sun Aug 22 11:51:22 2021 +1000) -# 0.1.1 - Bugfix Release +## 0.1.1 - Bugfix Release * 8bcd1c7e - fix: min/max type matchers must not apply the limits when cascading (Ronald Holshausen, Sun Aug 8 15:50:40 2021 +1000) * cb1beb99 - feat(plugins): make NoopVariantMatcher public (Ronald Holshausen, Sat Aug 7 14:18:29 2021 +1000) @@ -648,7 +648,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 41e66b30 - feat(plugins): updated matching rules + generators to support working with plugins (Ronald Holshausen, Thu Aug 5 11:58:56 2021 +1000) * 6124ed0b - refactor: Introduce DocPath struct for path expressions (Caleb Stepanian, Thu Jul 29 12:27:32 2021 -0400) -# 0.1.0 - Final Version +## 0.1.0 - Final Version * 533c9e1f - chore: bump minor version of the Pact models crate (Ronald Holshausen, Fri Jul 23 13:15:32 2021 +1000) * b37a4d02 - chore: add a prelude module to the models crate (Ronald Holshausen, Fri Jul 23 13:10:48 2021 +1000) @@ -658,7 +658,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * e8046d84 - refactor: moved interaction structs to the models crate (Ronald Holshausen, Sun Jul 18 14:36:03 2021 +1000) * 31873ee3 - feat: added validation of provider state JSON (Ronald Holshausen, Wed Jul 14 15:44:20 2021 +1000) -# 0.0.5 - Moved structs to models crate + bugfixes and enhancements +## 0.0.5 - Moved structs to models crate + bugfixes and enhancements * e2151800 - feat: support generating UUIDs with different formats #121 (Ronald Holshausen, Sun Jul 11 12:36:23 2021 +1000) * e2e10241 - refactor: moved Request and Response structs to the models crate (Ronald Holshausen, Wed Jul 7 18:09:36 2021 +1000) @@ -678,7 +678,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 193da2b9 - chore: fix compiler warnings (Ronald Holshausen, Tue Jun 22 16:06:16 2021 +1000) * 4db98181 - refactor: move file_utils to the models crate (Ronald Holshausen, Tue Jun 22 16:06:02 2021 +1000) -# 0.0.4 - Refactor + Bugfixes +## 0.0.4 - Refactor + Bugfixes * 225fd3d8 - chore: upgrade nom to 6.2.0 to resolve lexical-core compiler error (Ronald Holshausen, Tue Jun 22 15:10:31 2021 +1000) * c392caae - Revert "update changelog for release 0.0.4" (Ronald Holshausen, Tue Jun 22 15:08:36 2021 +1000) @@ -695,7 +695,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 4e328d93 - feat: implement verification for RequestResponsePact, Consumer, Provider (Ronald Holshausen, Thu Jun 3 16:59:23 2021 +1000) * 2f678213 - feat: initial prototype of a pact file verifier (Ronald Holshausen, Thu Jun 3 14:56:16 2021 +1000) -# 0.0.3 - Moved provider state models +## 0.0.3 - Moved provider state models * a7b81af - chore: fix clippy violation (Ronald Holshausen, Sat May 29 17:29:06 2021 +1000) * 7022625 - refactor: move provider state models to the pact models crate (Ronald Holshausen, Sat May 29 17:18:48 2021 +1000) @@ -704,12 +704,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 73a53b8 - feat(V4): add an HTTP status code matcher (Ronald Holshausen, Fri May 28 18:40:11 2021 +1000) * 8e8075b - refactor: move some more structs to the models crate (Ronald Holshausen, Thu May 27 14:34:03 2021 +1000) -# 0.0.2 - FFI support +## 0.0.2 - FFI support * 82711d6 - chore: use a feature to enable FFI representation in the core crates (Ronald Holshausen, Mon May 3 12:14:02 2021 +1000) * 6af4d3f - feat: allow ffi bindings to set spec version (Matt Fellows, Sun May 2 22:41:41 2021 +1000) -# 0.0.1 - Refactor: moved content type and body code from pact_matching +## 0.0.1 - Refactor: moved content type and body code from pact_matching * 5ea36db - refactor: move content handling functions to pact_models crate (Ronald Holshausen, Sun Apr 25 13:12:22 2021 +1000) * d010630 - chore: cleanup deprecation and compiler warnings (Ronald Holshausen, Sun Apr 25 12:23:30 2021 +1000) @@ -722,4 +722,4 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 9962e0e - chore: add required metadata fields to Cargo manifest (Ronald Holshausen, Thu Apr 22 10:45:14 2021 +1000) * 34e7dcd - chore: add a pact models crate (Ronald Holshausen, Thu Apr 22 10:04:40 2021 +1000) -# 0.0.0 - First Release +## 0.0.0 - First Release diff --git a/rust/pact_models/Cargo.toml b/rust/pact_models/Cargo.toml index 61389d810..1fb246f46 100644 --- a/rust/pact_models/Cargo.toml +++ b/rust/pact_models/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pact_models" -version = "1.3.17" +version = "1.3.16" authors = ["Ronald Holshausen <ronald.holshausen@gmail.com>"] edition = "2024" description = "Pact-Rust support library that provides the core models for dealing with Pact files" diff --git a/rust/pact_models/release.groovy b/rust/pact_models/release.groovy deleted file mode 100755 index d2d7f773a..000000000 --- a/rust/pact_models/release.groovy +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/env groovy -@Grab(group = 'com.github.zafarkhaja', module = 'java-semver', version = '0.9.0') -import com.github.zafarkhaja.semver.Version - -def executeOnShell(String command, Closure closure = null) { - executeOnShell(command, new File(System.properties.'user.dir'), closure) -} - -def executeOnShell(String command, File workingDir, Closure closure = null) { - println command - def processBuilder = new ProcessBuilder(['sh', '-c', command]) - .directory(workingDir) - if (closure) { - processBuilder.redirectErrorStream(true) - } else { - processBuilder.inheritIO() - } - def process = processBuilder.start() - if (closure) { - process.inputStream.eachLine closure - } - process.waitFor() - if (process.exitValue() > 0) { - System.exit(process.exitValue()) - } -} - -void ask(String prompt, String defaultValue = 'Y', Closure cl) { - def promptValue = System.console().readLine(prompt + ' ').trim() - if (promptValue.empty) { - promptValue = defaultValue - } - if (promptValue.toUpperCase() == 'Y') { - cl.call() - } -} - -executeOnShell 'git pull' - -ask('Execute Build?: [Y]') { - executeOnShell 'cargo clean' - executeOnShell 'cargo build' - executeOnShell 'cargo test' -} - -def projectProps = new File('Cargo.toml').text -def versionMatch = projectProps =~ /(?m)version\s*=\s*"(.*)"/ -def version = versionMatch[0][1] - -def prevTag = 'git describe --abbrev=0 --tags --match=libpact_models-* --first-parent'.execute().text.trim() -def changelog = [] -executeOnShell("git log --pretty='* %h - %s (%an, %ad)' ${prevTag}..HEAD .".toString()) { - println it - changelog << it -} - -def releaseDesc = System.console().readLine('Describe this release: [Bugfix Release]').trim() -if (releaseDesc.empty) { - releaseDesc = 'Bugfix Release' -} - -def releaseVer = System.console().readLine("What is the version for this release?: [$version]").trim() -if (releaseVer.empty) { - releaseVer = version -} - -ask('Update Changelog?: [Y]') { - def changeLogFile = new File('CHANGELOG.md') - def changeLogFileLines = changeLogFile.readLines() - changeLogFile.withPrintWriter() { p -> - p.println(changeLogFileLines[0]) - - p.println() - p.println("# $releaseVer - $releaseDesc") - p.println() - changelog.each { - p.println(it) - } - - changeLogFileLines[1..-1].each { - p.println(it) - } - } - - executeOnShell("git add CHANGELOG.md") - executeOnShell("git commit -m 'chore(pact_models): update changelog for release $releaseVer [skip ci]'") - executeOnShell("git status") - executeOnShell("git diff HEAD^..HEAD") -} - -ask('Tag and Push commits?: [Y]') { - executeOnShell 'git push' - executeOnShell("git tag libpact_models-v${releaseVer}") - executeOnShell 'git push --tags' -} - -ask('Publish library to crates.io?: [Y]') { - executeOnShell 'cargo package' - executeOnShell 'cargo publish' -} - -def nextVer = Version.valueOf(releaseVer).incrementPatchVersion() -ask("Bump version to $nextVer?: [Y]") { - executeOnShell "sed -i -e 's/^version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml" - executeOnShell "sed -i -e 's/documentation = \"https:\\/\\/docs\\.rs\\/pact_models\\/${releaseVer}\\/pact_models\\/\"/documentation = \"https:\\/\\/docs\\.rs\\/pact_models\\/${nextVer}\\/pact_models\\/\"/' Cargo.toml" - executeOnShell("cargo update") - executeOnShell("git add Cargo.toml") - executeOnShell("git add ../Cargo.lock") - executeOnShell("git diff --cached") - ask("Commit and push this change?: [Y]") { - executeOnShell("git commit -m 'chore(pact_models): bump version to $nextVer [skip ci]'") - executeOnShell("git push") - } -} diff --git a/rust/pact_verifier/CHANGELOG.md b/rust/pact_verifier/CHANGELOG.md index 6f19cd26f..951d78023 100644 --- a/rust/pact_verifier/CHANGELOG.md +++ b/rust/pact_verifier/CHANGELOG.md @@ -1,6 +1,6 @@ -To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD .` replacing TAGNAME and HEAD as appropriate. +# Changelog -# 1.4.7 - Support matching rules and generators from plugins +## 1.4.7 - Support matching rules and generators from plugins * 7486b0d0 - chore: Update pact_consumer to 1.4.10 (Ronald Holshausen, Fri Aug 7 10:20:39 2026 +1000) * a09d96cd - chore: Update pact_matching to 2.0.10 (Ronald Holshausen, Fri Aug 7 09:16:58 2026 +1000) @@ -10,7 +10,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 149b3e81 - chore: Update pact-plugin-driver to 1.2.0 (Ronald Holshausen, Wed Aug 5 15:43:01 2026 +1000) * 0546aa9a - chore(pact_verifier): bump version to 1.4.7 [skip ci] (Ronald Holshausen, Wed Aug 5 11:15:54 2026 +1000) -# 1.4.6 - Maintenance Release +## 1.4.6 - Maintenance Release * f7dbd608 - chore(pact-verifier): Cleanup crypto configure code in test (Ronald Holshausen, Wed Aug 5 10:46:15 2026 +1000) * 73863149 - chore(pact-verifier): Set the crypto provider in the HAL client (Ronald Holshausen, Wed Aug 5 10:16:44 2026 +1000) @@ -18,7 +18,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * b0dd00b8 - fix: when using rustls-no-provider with reqwest we need to set a crypto provider (Ronald Holshausen, Tue Aug 4 17:27:17 2026 +1000) * d46ff922 - chore(pact_verifier): bump version to 1.4.6 [skip ci] (Ronald Holshausen, Tue Aug 4 15:58:40 2026 +1000) -# 1.4.5 - Maintenance Release +## 1.4.5 - Maintenance Release * 96f5c649 - chore(pact-verifier): Update pact-consumer to 1.4.9 (Ronald Holshausen, Tue Aug 4 15:55:30 2026 +1000) * 921fd399 - Revert "chore(pact_verifier): update changelog for release 1.4.5 [skip ci]" (Ronald Holshausen, Tue Aug 4 15:49:31 2026 +1000) @@ -30,7 +30,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0904b3d3 - chore: Update pact_models to 1.3.13 (Ronald Holshausen, Mon Aug 3 17:16:00 2026 +1000) * 00fa02aa - chore(pact_verifier): bump version to 1.4.5 [skip ci] (Ronald Holshausen, Fri Jul 31 09:34:10 2026 +1000) -# 1.4.4 - Bugfix Release +## 1.4.4 - Bugfix Release * bada2558 - chore: Update pact_consumer to 1.4.6 (Ronald Holshausen, Fri Jul 31 09:29:47 2026 +1000) * b194fd45 - Revert "chore(pact_verifier): update changelog for release 1.4.4 [skip ci]" (Ronald Holshausen, Thu Jul 30 16:54:21 2026 +1000) @@ -45,28 +45,28 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 51d9f5fb - chore: Update pact-plugin-driver to 1.0.0-beta.6 (Ronald Holshausen, Thu Jul 2 17:08:12 2026 +1000) * 89822e2c - chore(pact_verifier): bump version to 1.4.4 [skip ci] (Ronald Holshausen, Wed Jun 24 15:14:39 2026 +1000) -# 1.4.3 - V2 plugin logging improvements +## 1.4.3 - V2 plugin logging improvements * 8a70209b - chore: Update pact_consumer to 1.4.5 (Ronald Holshausen, Wed Jun 24 15:10:51 2026 +1000) * fb8a0a95 - chore: Update pact_matching to 2.0.7 (Ronald Holshausen, Wed Jun 24 15:01:51 2026 +1000) * 40318b16 - feat(008): Plugin observability โ€” test run ID correlation and FFI log sink (#537) (Ronald Holshausen, Wed Jun 24 10:08:42 2026 +1000) * c85c020a - chore(pact_verifier): bump version to 1.4.3 [skip ci] (Ronald Holshausen, Fri Jun 19 09:51:52 2026 +1000) -# 1.4.2 - Maintenance Release +## 1.4.2 - Maintenance Release * 4fa2a6f5 - chore: Update pact_matching to 2.0.6 (Ronald Holshausen, Fri Jun 19 09:31:54 2026 +1000) * 46a285ae - chore: Update pact_models to 1.3.11 (Ronald Holshausen, Thu Jun 18 16:00:45 2026 +1000) * b0554f31 - chore: add crate name and version to all http clients (JP-Ellis, Thu Jun 18 09:26:08 2026 +1000) * ca18d2db - bump version to 1.4.2 (Ronald Holshausen, Tue Jun 9 16:52:05 2026 +1000) -# 1.4.1 - Support V2 plugins +## 1.4.1 - Support V2 plugins * 50fb5a6f - chore: Update pact_matching to 2.0.5 and pact_mock_server to 2.2.2 (Ronald Holshausen, Tue Jun 9 15:20:14 2026 +1000) * 8ec724bb - chore: Update pact-plugin-driver to 1.0.0-beta.2 to support V2 plugins (Ronald Holshausen, Tue Jun 9 14:49:40 2026 +1000) * a579270d - chore: update Pact plugin driver to version supporting initial V2 plugins (Ronald Holshausen, Fri May 29 13:41:41 2026 +1000) * 9df6c7f5 - bump version to 1.4.1 (Ronald Holshausen, Wed May 27 16:30:08 2026 +1000) -# 1.4.0 - Add retry logic when interacting with a Pact broker +## 1.4.0 - Add retry logic when interacting with a Pact broker * 3a6e45ef - chore: Update pact_matching to 2.0.4 (Ronald Holshausen, Wed May 27 16:26:53 2026 +1000) * 27a68723 - test: fix error from upstream error format change (JP-Ellis, Wed May 27 15:19:55 2026 +1000) @@ -75,14 +75,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8f86cd92 - fix: verifier retry logic (JP-Ellis, Tue May 26 10:43:08 2026 +1000) * 2e9a89f8 - bump version to 1.3.6 (Ronald Holshausen, Thu Apr 30 09:22:26 2026 +1000) -# 1.3.5 - Maintenance Release +## 1.3.5 - Maintenance Release * 620632a2 - feat(pact_verifier): Display any references in the verifier output (#528) (Ronald Holshausen, Thu Apr 30 09:12:59 2026 +1000) * 22d7c32d - chore: Update pact_consumer to 1.4.3 (Ronald Holshausen, Wed Apr 29 17:22:31 2026 +1000) * 27c4aa20 - chore: Update pact_models to 1.3.10 (Ronald Holshausen, Wed Apr 29 17:20:36 2026 +1000) * 3a587b09 - bump version to 1.3.5 (Ronald Holshausen, Thu Feb 19 11:01:06 2026 +1100) -# 1.3.4 - Maintenance Release +## 1.3.4 - Maintenance Release * ea571fbe - chore(pact_verifier): Update dependencies (Ronald Holshausen, Thu Feb 19 10:44:44 2026 +1100) * 0c9a0b27 - chore: Update pact_matching to 2.0.3 (Ronald Holshausen, Thu Feb 19 10:16:12 2026 +1100) @@ -93,7 +93,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * eaaee9de - chore: Upgrade pact_models to 1.3.7 (Ronald Holshausen, Tue Sep 16 13:57:37 2025 +1000) * 4d7f186c - bump version to 1.3.4 (Ronald Holshausen, Wed Aug 20 09:38:11 2025 +1000) -# 1.3.3 - Maintenance Release +## 1.3.3 - Maintenance Release * a77b53c8 - chore: Update pact_matching to 2.0.1 (Ronald Holshausen, Fri Aug 1 09:16:28 2025 +1000) * c480357e - Chore: Update pact_matching to 2.0.0 (Ronald Holshausen, Thu Jul 31 15:40:59 2025 +1000) @@ -103,7 +103,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * cfc5e44d - chore(v2-matching-engine): Fix after refactor of match_response function (Ronald Holshausen, Fri Jul 25 10:29:09 2025 +1000) * 24bc59a7 - bump version to 1.3.3 (Ronald Holshausen, Fri Jun 20 11:21:42 2025 +1000) -# 1.3.2 - Support exit-on-first-error and last-failed options +## 1.3.2 - Support exit-on-first-error and last-failed options * 31113440 - feat(pact_verifier_cli): Implement the --last-failed CLI flag #494 (Ronald Holshausen, Fri Jun 20 11:03:44 2025 +1000) * a8c50d56 - feat(pact_verifier): Adds details of the verified interactions to the JSON output #494 (Ronald Holshausen, Thu Jun 19 14:51:50 2025 +1000) @@ -114,7 +114,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 68d55bf9 - chore(pact_verifier): Update dependencies (Ronald Holshausen, Wed Jun 18 14:44:43 2025 +1000) * 1f0f1c4f - bump version to 1.3.2 (Ronald Holshausen, Thu Jun 12 09:25:22 2025 +1000) -# 1.3.1 - Maintenance Release +## 1.3.1 - Maintenance Release * 5371ee6f - chore(pact_verifier): Update pact_consumer to 1.4.1 (Ronald Holshausen, Wed Jun 11 16:29:07 2025 +1000) * 3f883a8d - fix(Alpine): Update pact_matching to 2.0.0-beta.3 (Ronald Holshausen, Wed Jun 11 13:46:00 2025 +1000) @@ -123,7 +123,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 18e53fbd - chore: Update pact_models to 1.3.2 (Ronald Holshausen, Wed Jun 11 10:16:03 2025 +1000) * e2027e97 - bump version to 1.3.1 (Ronald Holshausen, Wed May 21 15:07:33 2025 +1000) -# 1.3.0 - Update to Rust 2024 and pact_matching 2.0.0-beta +## 1.3.0 - Update to Rust 2024 and pact_matching 2.0.0-beta * 71b1b7ed - chore(pact_consumer): Update pact_mock_server to 2.1.0 (Ronald Holshausen, Wed May 21 14:44:21 2025 +1000) * 0649f61f - chore: Update pact_matching to 2.0.0-beta.1 (Ronald Holshausen, Wed May 21 12:04:10 2025 +1000) @@ -146,7 +146,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 11cd9dc0 - Merge branch 'master' into feat/matching-engine-v2 (Ronald Holshausen, Fri Oct 25 10:01:15 2024 +1100) * 02e2ae13 - chore: Bump pact_matching to 2.0.0-beta.0 (Ronald Holshausen, Tue Jul 30 11:40:20 2024 +1000) -# 1.2.5 - Bugfix Release +## 1.2.5 - Bugfix Release * 5ad52f84 - chore(pact_verifier): Update dependencies (Ronald Holshausen, Wed Mar 19 13:47:29 2025 +1100) * e32f0dbd - fix: Upgrade pact-plugin-driver to 0.7.3 (Ronald Holshausen, Wed Mar 19 11:20:39 2025 +1100) @@ -165,7 +165,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * dc441709 - chore: Upgrade pact_matching to 1.2.7 (Ronald Holshausen, Tue Aug 27 14:57:12 2024 +1000) * b33fa126 - bump version to 1.2.5 (Ronald Holshausen, Tue Aug 13 15:39:33 2024 +1000) -# 1.2.4 - Bugfix Release +## 1.2.4 - Bugfix Release * 978677cc - chore: Upgrade pact_matching to 1.2.6 (Ronald Holshausen, Tue Aug 13 15:27:49 2024 +1000) * 9a7eef75 - chore: Upgrade pact_models to 1.2.4 (Ronald Holshausen, Tue Aug 13 11:51:06 2024 +1000) @@ -177,7 +177,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 25fd9c56 - chore: Update release script (Ronald Holshausen, Wed Jul 17 15:12:37 2024 +1000) * c8d297f2 - bump version to 1.2.4 (Ronald Holshausen, Wed Jul 17 15:12:16 2024 +1000) -# 1.2.3 - Bugfix Release +## 1.2.3 - Bugfix Release * bb9fc1be - chore: Upgrade pact_matching to 1.2.5 (Ronald Holshausen, Wed Jul 17 14:34:04 2024 +1000) * fd9ff70a - chore: Upgrade pact_models to 1.2.2 (Ronald Holshausen, Wed Jul 17 11:15:34 2024 +1000) @@ -189,7 +189,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0e2e1b8a - chore: Cleanup compiler deprecation warnings (Ronald Holshausen, Fri Jun 14 11:25:56 2024 +1000) * 570b1425 - bump version to 1.2.3 (Ronald Holshausen, Fri Jun 14 11:17:36 2024 +1000) -# 1.2.2 - Feature Release +## 1.2.2 - Feature Release * 7f741c7e - chore(pact_verifier): Update dependencies (Ronald Holshausen, Fri Jun 14 10:50:11 2024 +1000) * c32e07c8 - chore: Upgrade pact_consumer to 1.2.2 (Ronald Holshausen, Fri Jun 14 10:41:31 2024 +1000) @@ -200,7 +200,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * e44458a8 - chore(pact_verifier): Exclude parameters from the span which are included in the previous span (Ronald Holshausen, Mon May 13 14:15:18 2024 +1000) * fe92d88e - bump version to 1.2.2 (Ronald Holshausen, Wed May 8 15:13:26 2024 +1000) -# 1.2.1 - Maintenance Release +## 1.2.1 - Maintenance Release * c3cae83e - chore: Upgrade pact_consumer to 1.2.2 (Ronald Holshausen, Wed May 8 14:46:19 2024 +1000) * fa2b1d09 - chore: Upgrade pact_matching to 1.2.2 (Ronald Holshausen, Tue May 7 10:50:08 2024 +1000) @@ -210,7 +210,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 758f4c03 - chore: Update pact_matching to 1.2.1 (Ronald Holshausen, Tue Apr 16 16:29:38 2024 +1000) * 05c8d536 - bump version to 1.2.1 (Ronald Holshausen, Tue Apr 16 15:37:53 2024 +1000) -# 1.2.0 - Maintenance Release +## 1.2.0 - Maintenance Release * dffbc8e7 - chore(pact_consumer): Bump minor version (Ronald Holshausen, Tue Apr 16 11:49:14 2024 +1000) * d625bded - Revert "update changelog for release 1.2.0" (Ronald Holshausen, Tue Apr 16 11:31:14 2024 +1000) @@ -221,7 +221,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * d6125b75 - chore(pact_matching): Bump minor version (Ronald Holshausen, Tue Apr 16 10:16:44 2024 +1000) * 1664bcbc - bump version to 1.1.1 (Ronald Holshausen, Mon Feb 19 11:34:09 2024 +1100) -# 1.1.0 - Maintenance Release +## 1.1.0 - Maintenance Release * 04959d7d - feat(verifier): Include interaction description in verification results #292 (Ronald Holshausen, Mon Feb 19 07:39:21 2024 +1100) * 2b5148b9 - feat(verifier): Add the client language to the verification results if set #307 (Ronald Holshausen, Mon Feb 19 06:44:24 2024 +1100) @@ -238,7 +238,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1c3208e4 - chore: Upgrade pact_consumer to 1.1.1 (Ronald Holshausen, Sat Jan 20 22:04:39 2024 +1100) * 86cb58dc - bump version to 1.0.6 (Ronald Holshausen, Sat Jan 20 20:37:10 2024 +1100) -# 1.0.5 - Bugfix Release +## 1.0.5 - Bugfix Release * bff1d573 - chore: Upgrade dependencies (Ronald Holshausen, Sat Jan 20 20:23:10 2024 +1100) * e552bdce - chore: Upgrade pact_matching to 1.1.9 (Ronald Holshausen, Sat Jan 20 15:13:13 2024 +1100) @@ -251,7 +251,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ab3f9a56 - fix(verifier): default error formatter does not display the inner error #351 (Ronald Holshausen, Thu Dec 21 15:18:31 2023 +1100) * aa07cdd5 - bump version to 1.0.5 (Ronald Holshausen, Wed Dec 20 14:39:08 2023 +1100) -# 1.0.4 - Maintenance Release +## 1.0.4 - Maintenance Release * f8c09785 - Revert "update changelog for release 1.0.4" (Ronald Holshausen, Wed Dec 20 14:26:46 2023 +1100) * 71cfff46 - update changelog for release 1.0.4 (Ronald Holshausen, Wed Dec 20 14:25:12 2023 +1100) @@ -264,7 +264,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 04bad264 - chore: Upgrade pact_matching to 1.1.6 (Ronald Holshausen, Fri Sep 22 11:03:38 2023 +1000) * 2bac8b7a - bump version to 1.0.4 (Ronald Holshausen, Tue Aug 29 10:00:03 2023 +1000) -# 1.0.3 - Bugfix Release +## 1.0.3 - Bugfix Release * 3ec99c41 - chore: Upgrade pact_matching to 1.1.5 (Ronald Holshausen, Fri Aug 18 15:40:02 2023 +1000) * 40009089 - Merge pull request #308 from tienvx/fix-wrong-plugin-version (Ronald Holshausen, Fri Aug 18 14:01:37 2023 +1000) @@ -275,13 +275,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 24ed7835 - chore: Upgrade pact-models to 1.1.10 (Ronald Holshausen, Fri Aug 4 16:11:24 2023 +1000) * e191e072 - bump version to 1.0.3 (Ronald Holshausen, Thu Jul 27 15:03:17 2023 +1000) -# 1.0.2 - Bugfix Release +## 1.0.2 - Bugfix Release * 8f88192e - chore: Upgrade pact_matching to 1.1.4 (Ronald Holshausen, Thu Jul 27 14:35:27 2023 +1000) * 4a01919a - chore: Upgrade pact_models to 1.1.9 (Ronald Holshausen, Thu Jul 27 10:24:00 2023 +1000) * 7e1a102e - bump version to 1.0.2 (Ronald Holshausen, Wed Jul 12 11:20:41 2023 +1000) -# 1.0.1 - Bugfix Release +## 1.0.1 - Bugfix Release * c2aad1ac - chore: Add support for datetime, xml, multipart and plugins crate features (Ronald Holshausen, Wed Jul 12 11:15:37 2023 +1000) * 348eb3f3 - chore: Upgrade pact_matcing to 1.1.3 (Ronald Holshausen, Tue Jul 11 11:38:26 2023 +1000) @@ -301,7 +301,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c2d925e9 - chore: Upgrade pact_consumer to 1.0.0 (Ronald Holshausen, Tue May 23 16:05:12 2023 +1000) * c3a88262 - bump version to 1.0.1 (Ronald Holshausen, Tue May 23 15:23:22 2023 +1000) -# 1.0.0 - Bugfixes + Update Pact models to 1.1 (breaking change) +## 1.0.0 - Bugfixes + Update Pact models to 1.1 (breaking change) * ca1e37fb - chore: Upgrade pact_verifier to 1.0.0 (Ronald Holshausen, Tue May 23 15:16:08 2023 +1000) * 71b38a87 - fix: Add Custom Header option not replacing already existing headers #275 (Ronald Holshausen, Tue May 23 15:05:20 2023 +1000) @@ -315,7 +315,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 59946c3f - fix: hanlde validation errors from Pactbroker correctly #273 (Ronald Holshausen, Mon May 8 15:40:11 2023 +1000) * 00301196 - bump version to 0.15.4 (Ronald Holshausen, Tue Apr 18 15:18:36 2023 +1000) -# 0.15.3 - Bugfix Release +## 0.15.3 - Bugfix Release * 0bcba082 - chore: Upgrade pact_matching to 1.0.8 (Ronald Holshausen, Tue Apr 18 13:14:38 2023 +1000) * 6c14abfd - chore: Upgrade pact_models to 1.0.13 (Ronald Holshausen, Tue Apr 18 13:00:01 2023 +1000) @@ -326,7 +326,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 779a59f0 - fix: Upgrade pact-plugin-driver to 0.4.1 (fixes an issue introduced in 0.4.0 with shared channels to plugins) (Ronald Holshausen, Wed Apr 5 17:01:18 2023 +1000) * b4c09bee - bump version to 0.15.3 (Ronald Holshausen, Wed Apr 5 10:02:37 2023 +1000) -# 0.15.2 - Maintenance Release +## 0.15.2 - Maintenance Release * 126cf462 - chore: Upgrade pact_matching to 1.0.7 (Ronald Holshausen, Tue Apr 4 15:12:28 2023 +1000) * 6f0c4b2f - feat: Upgrade pact-plugin-driver to 0.4.0 which uses a shared gRPC channel to each plugin (Ronald Holshausen, Tue Apr 4 14:32:36 2023 +1000) @@ -334,7 +334,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c6b66a28 - chore: Test was failing with dates where day of the month has one digit (Ronald Holshausen, Mon Apr 3 11:55:45 2023 +1000) * 2e3feacd - bump version to 0.15.2 (Ronald Holshausen, Wed Mar 15 15:16:42 2023 +1100) -# 0.15.1 - Bugfix Release +## 0.15.1 - Bugfix Release * 11c701b4 - fix: Upgrade pact_matching to 1.0.6 (fixes some issues with matching HTTP headers) (Ronald Holshausen, Wed Mar 15 14:54:54 2023 +1100) * 7e72df6e - chore: add a verification test with a Last-Modified header #259 (Ronald Holshausen, Wed Mar 15 14:33:59 2023 +1100) @@ -344,7 +344,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 57728a01 - chore: update pact-plugin-driver to 0.3.3 (Ronald Holshausen, Tue Mar 14 17:19:20 2023 +1100) * b87ea333 - bump version to 0.15.1 (Ronald Holshausen, Thu Mar 2 12:50:29 2023 +1100) -# 0.15.0 - Supports JUnit XML report files +## 0.15.0 - Supports JUnit XML report files * 9629c351 - chore: dump minor version of pact_verifier as some signatures have changed (Ronald Holshausen, Thu Mar 2 12:10:35 2023 +1100) * c9333f94 - feat: add option to generate JUnit XML report format for consumption by CI servers #257 (Ronald Holshausen, Thu Mar 2 10:48:56 2023 +1100) @@ -352,13 +352,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1355837e - refactor: add timeing to load pact operations (Ronald Holshausen, Mon Feb 27 14:10:29 2023 +1100) * 50ecb585 - bump version to 0.14.1 (Ronald Holshausen, Thu Feb 16 14:14:18 2023 +1100) -# 0.14.0 - Bugfix Release +## 0.14.0 - Bugfix Release * c368c651 - fix: Pass any custom header values on to the plugin verification call (Ronald Holshausen, Thu Feb 16 13:52:03 2023 +1100) * 0676047e - chore: Upgrade pact-plugin-driver to 0.3.2 (Ronald Holshausen, Thu Feb 16 12:09:46 2023 +1100) * 8ad10cc2 - bump version to 0.13.22 (Ronald Holshausen, Fri Feb 10 13:27:34 2023 +1100) -# 0.13.21 - Bugfix Release +## 0.13.21 - Bugfix Release * 0a248af1 - fix: Verification output comes from the plugin, so do not display any when a plugin is used (Ronald Holshausen, Fri Feb 10 12:46:13 2023 +1100) * 1e7331f1 - fix: Upgrade plugin driver to 0.3.1 (Ronald Holshausen, Wed Feb 8 13:28:07 2023 +1100) @@ -366,7 +366,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0b70060f - chore: Upgrade pact-plugin-driver and base64 crates (supports message metadata) (Ronald Holshausen, Mon Feb 6 14:56:29 2023 +1100) * 6e41c5ee - bump version to 0.13.21 (Ronald Holshausen, Wed Jan 11 15:42:41 2023 +1100) -# 0.13.20 - Bugfix Release +## 0.13.20 - Bugfix Release * ee69e75c - chore: Upgrade base64 crate (Ronald Holshausen, Wed Jan 11 15:38:21 2023 +1100) * c1b22f1c - chore: Upgrade pact_matching to 1.0.3 (Ronald Holshausen, Wed Jan 11 15:19:29 2023 +1100) @@ -380,7 +380,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 3aecb702 - chore: require tracing-subscriber for tests for crates that use pact_models #239 (Ronald Holshausen, Thu Dec 22 14:37:01 2022 +1100) * 24429923 - bump version to 0.13.20 (Ronald Holshausen, Mon Dec 19 16:16:05 2022 +1100) -# 0.13.19 - Add user-agent header + Support generators in plugins +## 0.13.19 - Add user-agent header + Support generators in plugins * e827f591 - chore: Upgrade pact_matching to 1.0.2 (Ronald Holshausen, Mon Dec 19 15:30:14 2022 +1100) * 8bb2534d - feat: add user-agent header to the HALClient (andrisak, Sat Dec 17 12:42:05 2022 +0100) @@ -388,20 +388,20 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1ab47c6f - chore: Upgrade Tokio to latest (Ronald Holshausen, Fri Dec 16 16:31:31 2022 +1100) * 46868427 - bump version to 0.13.19 (Ronald Holshausen, Wed Dec 14 17:12:51 2022 +1100) -# 0.13.18 - Maintenance Release +## 0.13.18 - Maintenance Release * fb2f4204 - chore: Upgrade pact_matching to 1.0.1 (Ronald Holshausen, Wed Dec 14 17:03:31 2022 +1100) * 8be00f0c - chore: Upgrade pact-plugin-driver to 0.2.1 (Ronald Holshausen, Wed Dec 14 14:55:32 2022 +1100) * c5e3431c - bump version to 0.13.18 (Ronald Holshausen, Mon Dec 12 11:13:47 2022 +1100) -# 0.13.17 - Bugfix + Support plugins generating interaction content +## 0.13.17 - Bugfix + Support plugins generating interaction content * e7a1b9f2 - chore: Upgrade pact_matching to 1.0 and plugin driver to 0.2 (Ronald Holshausen, Fri Dec 9 17:29:33 2022 +1100) * 9fc56580 - fix: add tests for PUT and POST requests #220 (Ronald Holshausen, Thu Dec 1 11:42:31 2022 +1100) * 77a7c8ba - fix: make HAL client fetch and fetch link functions support brokers hosted with context paths #220 (Ronald Holshausen, Wed Nov 30 18:20:23 2022 +1100) * 3d85ba0b - bump version to 0.13.17 (Ronald Holshausen, Mon Nov 28 15:02:29 2022 +1100) -# 0.13.16 - Bugfix Release +## 0.13.16 - Bugfix Release * 2802fffd - chore: Upgrade pact_matching to 0.12.15 (Ronald Holshausen, Mon Nov 28 14:29:43 2022 +1100) * c9721fd5 - chore: Upgrade pact_models to 1.0.1 and pact-plugin-driver to 0.1.16 (Ronald Holshausen, Mon Nov 28 14:10:53 2022 +1100) @@ -409,7 +409,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 33a784a0 - fix: add test for publish verification result issue #231 (Ronald Holshausen, Mon Nov 28 11:04:38 2022 +1100) * 35202f6b - bump version to 0.13.16 (Ronald Holshausen, Mon Nov 7 14:05:55 2022 +1100) -# 0.13.15 - Maintenance Release +## 0.13.15 - Maintenance Release * 5d88913a - chore: Upgrade all dependencies (Ronald Holshausen, Mon Nov 7 14:01:55 2022 +1100) * 8ec8fe9b - chore: Upgrade pact_consumer to 0.10.0 (Ronald Holshausen, Mon Nov 7 13:15:23 2022 +1100) @@ -419,7 +419,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 965a1c41 - fix: Upgrade plugin driver to 0.1.13 (fixes issue loading plugin when there are multiple versions for the same plugin) (Ronald Holshausen, Wed Oct 5 17:29:37 2022 +1100) * 4298db15 - bump version to 0.13.15 (Ronald Holshausen, Wed Sep 28 10:32:17 2022 +1000) -# 0.13.14 - Maintenance Release +## 0.13.14 - Maintenance Release * 02d9e2cb - chore: Upgrade pact matching crate to 0.12.12 (Ronald Holshausen, Wed Sep 28 10:11:11 2022 +1000) * b8d263f7 - fix(verifier): fix typos in the implementation of Display on the PactSource enum (Jerry Wang, Wed Sep 21 22:32:56 2022 -0700) @@ -427,12 +427,12 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ac4fe73f - chore: fix to release scripts (Ronald Holshausen, Wed Sep 7 10:51:01 2022 +1000) * c13c3f42 - bump version to 0.13.14 (Ronald Holshausen, Wed Sep 7 09:50:47 2022 +1000) -# 0.13.13 - Bugfix Release +## 0.13.13 - Bugfix Release * 7f51bdc6 - fix: publishing provider branch was broken when invoked via a webhook call (Ronald Holshausen, Tue Sep 6 18:15:16 2022 +1000) * da163c42 - bump version to 0.13.13 (Ronald Holshausen, Wed Aug 31 16:06:30 2022 +1000) -# 0.13.12 - Bugfix Release +## 0.13.12 - Bugfix Release * 8663cd3f - feat: add ignore-no-pacts-error to the verifier CLI #213 (Ronald Holshausen, Wed Aug 31 15:19:31 2022 +1000) * f8db90d2 - fix: Upgrade pact_models to 0.4.5 - fixes FFI bug with generators for request paths (Ronald Holshausen, Fri Aug 26 11:44:08 2022 +1000) @@ -440,7 +440,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 43be2e83 - feat: do not output an error if no_pacts_is_error is false and no pacts were found to verify #213 (Ronald Holshausen, Fri Aug 19 16:49:19 2022 +1000) * 786f002d - bump version to 0.13.12 (Ronald Holshausen, Thu Aug 18 16:31:02 2022 +1000) -# 0.13.11 - Maintenance Release +## 0.13.11 - Maintenance Release * d6eaf9cf - chore: Upgrade pact_consumer to 0.9.6 (Ronald Holshausen, Thu Aug 18 16:14:44 2022 +1000) * 1b1c77e6 - chore: cleanup some compiler warnings (Ronald Holshausen, Thu Aug 18 16:06:43 2022 +1000) @@ -449,7 +449,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8056d7e9 - fix: get verify_provider_async to wait on the metric call (Ronald Holshausen, Thu Aug 11 16:16:18 2022 +1000) * 6c932b32 - bump version to 0.13.11 (Ronald Holshausen, Wed Aug 10 12:54:55 2022 +1000) -# 0.13.10 - Support multiple protocol transports with the verifier +## 0.13.10 - Support multiple protocol transports with the verifier * 4c8ee7f9 - chore: cleanup some deprecation warnings (Ronald Holshausen, Wed Aug 10 12:49:55 2022 +1000) * 7b6a919b - chore: Upgrade pact_matching crate to 0.12.10 (Ronald Holshausen, Wed Aug 10 12:37:11 2022 +1000) @@ -463,13 +463,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8cc29482 - feat: add CLI options to provide different ports when there are different transports (Ronald Holshausen, Wed Aug 3 11:53:31 2022 +1000) * 7673269a - bump version to 0.13.10 (Ronald Holshausen, Wed Jul 20 12:39:25 2022 +1000) -# 0.13.9 - Add option to disable color output +## 0.13.9 - Add option to disable color output * 40f7bdc4 - feat: add verification option to disable ANSI escape codes in output #203 (Ronald Holshausen, Wed Jul 20 12:18:12 2022 +1000) * 9a6c846f - chore: Upgrade pact_matching to 0.12.9 (Ronald Holshausen, Fri Jun 10 15:46:07 2022 +1000) * a73c75ec - bump version to 0.13.9 (Ronald Holshausen, Tue Jun 7 10:58:54 2022 +1000) -# 0.13.8 - Support publishing results from webhook calls +## 0.13.8 - Support publishing results from webhook calls * 18118e82 - feat: add retries to the provider state change calls #197 (Ronald Holshausen, Tue Jun 7 09:10:23 2022 +1000) * 6cae9b09 - fix: State change descriptions were not being displayed along with the interaction description (Ronald Holshausen, Mon Jun 6 17:09:44 2022 +1000) @@ -478,7 +478,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * e671e3dd - chore: Upgrade pact_consumer to 0.9.5 (Ronald Holshausen, Mon May 30 12:30:00 2022 +1000) * 3088d117 - bump version to 0.13.8 (Ronald Holshausen, Mon May 30 12:16:57 2022 +1000) -# 0.13.7 - Maintenance Release +## 0.13.7 - Maintenance Release * bcddbcfb - chore: Upgrade pact_matching to 0.12.8 (Ronald Holshausen, Mon May 30 11:52:26 2022 +1000) * 80256458 - chore: Upgrade pact-plugin-driver to 0.1.8 (Ronald Holshausen, Mon May 30 11:36:54 2022 +1000) @@ -489,7 +489,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1d06f19f - chore: Upgrade pact_consumer to 0.9.3 (Ronald Holshausen, Wed May 11 18:03:10 2022 +1000) * b7c5cbec - bump version to 0.13.7 (Ronald Holshausen, Wed May 11 17:38:48 2022 +1000) -# 0.13.6 - Maintenance Release +## 0.13.6 - Maintenance Release * db94b1aa - chore: update readme (Ronald Holshausen, Wed May 11 17:30:50 2022 +1000) * 072996b4 - chore: switch from logging crate to tracing crate (Ronald Holshausen, Wed May 11 17:22:14 2022 +1000) @@ -499,7 +499,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 020b5715 - chore: upgrade pact_models to 0.4.1 (Ronald Holshausen, Wed May 11 11:36:57 2022 +1000) * 79005d0e - bump version to 0.13.6 (Ronald Holshausen, Wed Apr 27 15:17:32 2022 +1000) -# 0.13.5 - Supports verification via plugins +## 0.13.5 - Supports verification via plugins * bcae77b4 - chore: upgrade pact_matching to 0.12.6 (Ronald Holshausen, Wed Apr 27 14:29:26 2022 +1000) * bc4f04df - feat: deal with verification output from plugins (Ronald Holshausen, Wed Apr 27 11:17:25 2022 +1000) @@ -512,7 +512,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 96a9985a - chore: Upgrade pact_consumer to 0.9.1 (Ronald Holshausen, Wed Apr 13 16:20:14 2022 +1000) * 36dcfcbc - bump version to 0.13.5 (Ronald Holshausen, Wed Apr 13 16:02:02 2022 +1000) -# 0.13.4 - Bugfix Release +## 0.13.4 - Bugfix Release * 0df06dd2 - chore: Upgrade pact_matching to 0.12.5 (Ronald Holshausen, Wed Apr 13 15:38:49 2022 +1000) * 49640c5f - chore: minor update to release scripts (Ronald Holshausen, Wed Apr 13 15:32:46 2022 +1000) @@ -525,7 +525,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8f1e9506 - chore: cleanup (Ronald Holshausen, Thu Mar 24 14:49:33 2022 +1100) * fd515bda - bump version to 0.13.4 (Ronald Holshausen, Thu Mar 24 14:48:13 2022 +1100) -# 0.13.3 - Maintenance Release +## 0.13.3 - Maintenance Release * f1f6c980 - chore: disable Pact tests to resolve cyclic dependency issue (Ronald Holshausen, Thu Mar 24 14:26:10 2022 +1100) * d06faac5 - update changelog for release 0.13.3 (Ronald Holshausen, Thu Mar 24 14:16:41 2022 +1100) @@ -537,7 +537,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 31c0c368 - chore: update pact_consumer (Ronald Holshausen, Fri Mar 4 15:08:41 2022 +1100) * 3eed67e8 - bump version to 0.13.3 (Ronald Holshausen, Fri Mar 4 14:39:55 2022 +1100) -# 0.13.2 - Maintenance Release +## 0.13.2 - Maintenance Release * 8894fdfd - chore: update pact_matching to 0.12.3 (Ronald Holshausen, Fri Mar 4 14:09:17 2022 +1100) * 8e864502 - chore: update all dependencies (Ronald Holshausen, Fri Mar 4 13:29:59 2022 +1100) @@ -545,14 +545,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 74bd4531 - feat: add support for custom headers with the verifier FFI calls #182 (Ronald Holshausen, Mon Feb 28 13:58:46 2022 +1100) * 6634953f - bump version to 0.13.2 (Ronald Holshausen, Thu Feb 3 13:39:59 2022 +1100) -# 0.13.1 - Updated req/res logging for FFI calls +## 0.13.1 - Updated req/res logging for FFI calls * 4f47ff65 - feat: log request/response bodies at debug level (Ronald Holshausen, Thu Feb 3 13:14:35 2022 +1100) * 3423354a - chore: update schema for verification results JSON (Ronald Holshausen, Tue Feb 1 12:21:21 2022 +1100) * 4a407202 - chore: add draft schema for verification results JSON (Ronald Holshausen, Tue Feb 1 11:17:43 2022 +1100) * d093f7d7 - bump version to 0.13.1 (Ronald Holshausen, Mon Jan 31 11:52:34 2022 +1100) -# 0.13.0 - Capture output/results from the verification process +## 0.13.0 - Capture output/results from the verification process * d0fa29dc - feat: add json output to the verifier CLI (Ronald Holshausen, Fri Jan 28 15:21:17 2022 +1100) * bf152233 - feat: Capture all the results from the verification process (Ronald Holshausen, Fri Jan 28 11:28:38 2022 +1100) @@ -561,7 +561,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 042d580e - chore: Upgrade pact consumer to 0.8.5 (Ronald Holshausen, Mon Jan 17 17:13:55 2022 +1100) * 9e2388de - bump version to 0.12.5 (Ronald Holshausen, Mon Jan 17 17:05:04 2022 +1100) -# 0.12.4 - Bugfix Release +## 0.12.4 - Bugfix Release * 5e4c68ef - chore: update pact matching to 0.12.2 (Ronald Holshausen, Mon Jan 17 16:29:21 2022 +1100) * 80b241c5 - chore: Upgrade plugin driver crate to 0.0.17 (Ronald Holshausen, Mon Jan 17 11:22:48 2022 +1100) @@ -569,18 +569,18 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c2089645 - fix: log crate version must be fixed across all crates (including plugin driver) (Ronald Holshausen, Fri Jan 14 16:10:50 2022 +1100) * 924ddb60 - bump version to 0.12.4 (Ronald Holshausen, Tue Jan 4 13:08:32 2022 +1100) -# 0.12.3 - Maintenance Release +## 0.12.3 - Maintenance Release * e5961b33 - chore: Update pact_matching 0.12.1, pact_models 0.2.6 (Ronald Holshausen, Tue Jan 4 12:59:44 2022 +1100) * d670585a - chore: Update plugin driver to 0.0.16 (Ronald Holshausen, Tue Jan 4 09:37:21 2022 +1100) * 549788cd - bump version to 0.12.3 (Ronald Holshausen, Fri Dec 31 15:35:25 2021 +1100) -# 0.12.2 - Maintenance Release +## 0.12.2 - Maintenance Release * 9c2810ad - chore: Upgrade pact-plugin-driver to 0.0.15 (Ronald Holshausen, Fri Dec 31 15:12:56 2021 +1100) * 2bd44009 - bump version to 0.12.2 (Ronald Holshausen, Thu Dec 30 15:29:33 2021 +1100) -# 0.12.1 - Maintenance Release +## 0.12.1 - Maintenance Release * 0a6e7d9d - refactor: Convert MatchingContext to a trait and use DocPath instead of string slices (Ronald Holshausen, Wed Dec 29 14:24:39 2021 +1100) * 52bc1735 - chore: update pact_matching crate to 0.11.5 (Ronald Holshausen, Thu Dec 23 13:12:08 2021 +1100) @@ -589,7 +589,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 8911d5b0 - chore: update to latest plugin driver crate (metrics fixes) (Ronald Holshausen, Mon Dec 20 12:11:35 2021 +1100) * 9d4cc4ef - bump version to 0.12.1 (Ronald Holshausen, Wed Dec 15 13:34:36 2021 +1100) -# 0.12.0 - Bugfix + add metrics for validation +## 0.12.0 - Bugfix + add metrics for validation * f8042d6b - feat: add metrics event for provider verification (Ronald Holshausen, Tue Dec 14 17:29:44 2021 +1100) * 4f1ba7d9 - chore: update to the latest plugin driver (Ronald Holshausen, Tue Dec 14 13:55:02 2021 +1100) @@ -598,7 +598,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 5f782d67 - fix(verifier): the state_change_teardown option didn't appear to actually be used (Mike Geeves, Mon Dec 6 11:46:58 2021 +0000) * 04dd9ab2 - bump version to 0.11.3 (Ronald Holshausen, Thu Dec 2 12:15:29 2021 +1100) -# 0.11.2 - Bugfix Release +## 0.11.2 - Bugfix Release * 9f7e22dc - Revert "update changelog for release 0.11.2" (Ronald Holshausen, Thu Dec 2 11:46:17 2021 +1100) * 707f8f98 - update changelog for release 0.11.2 (Ronald Holshausen, Thu Dec 2 11:45:02 2021 +1100) @@ -610,13 +610,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * fc5be202 - fix: update to latest driver crate (Ronald Holshausen, Tue Nov 16 16:19:02 2021 +1100) * 1be76c50 - bump version to 0.11.2 (Ronald Holshausen, Tue Nov 16 12:26:51 2021 +1100) -# 0.11.1 - Update to latest models and plugin driver crates +## 0.11.1 - Update to latest models and plugin driver crates * 5d974c4a - chore: update to latest models and plugin driver crates (Ronald Holshausen, Tue Nov 16 11:56:53 2021 +1100) * 6dfec56a - chore: drop beta from pact_consumer version (Ronald Holshausen, Thu Nov 4 16:08:47 2021 +1100) * 41fc4380 - bump version to 0.11.1 (Ronald Holshausen, Thu Nov 4 16:06:08 2021 +1100) -# 0.11.0 - Pact V4 release +## 0.11.0 - Pact V4 release * 400a1231 - chore: drop beta from pact_verifier version (Ronald Holshausen, Thu Nov 4 15:56:22 2021 +1100) * bd2bd0ec - chore: drop beta from pact_matching version (Ronald Holshausen, Wed Nov 3 13:28:35 2021 +1100) @@ -626,13 +626,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 630e8f9c - bump version to 0.11.0-beta.3 (Ronald Holshausen, Tue Oct 19 17:40:52 2021 +1100) * d171edfd - feat: support provider branches (Matt Fellows, Wed Sep 29 22:47:21 2021 +1000) -# 0.11.0-beta.2 - Bugfix Release +## 0.11.0-beta.2 - Bugfix Release * 1677501d - refactor: moved consumer version selector functions from pact_ffi crate (Ronald Holshausen, Tue Oct 19 17:31:13 2021 +1100) * 918e5beb - fix: update to latest models and plugin driver crates (Ronald Holshausen, Tue Oct 19 17:09:48 2021 +1100) * 1539050c - bump version to 0.11.0-beta.2 (Ronald Holshausen, Tue Oct 19 11:44:42 2021 +1100) -# 0.11.0-beta.1 - Plugin support with verifying pacts +## 0.11.0-beta.1 - Plugin support with verifying pacts * 3819522d - chore: update to the latest matching and mock server crates (Ronald Holshausen, Tue Oct 19 11:34:18 2021 +1100) * aa434ba3 - chore: update to latest driver crate (Ronald Holshausen, Tue Oct 19 11:09:46 2021 +1100) @@ -653,14 +653,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * b71dcabf - refactor(plugins): rename ContentTypeOverride -> ContentTypeHint (Ronald Holshausen, Tue Sep 14 15:08:52 2021 +1000) * 9c7af69a - bump version to 0.11.0-beta.1 (Ronald Holshausen, Mon Sep 13 12:14:46 2021 +1000) -# 0.10.13 - support native TLS certs +## 0.10.13 - support native TLS certs * 42be9eb8 - feat: add FFI functions to extract logs from a verifcation run (Ronald Holshausen, Tue Sep 28 12:48:40 2021 +1000) * df715cd5 - feat: support native TLS. Fixes #144 (Matt Fellows, Mon Sep 20 13:00:33 2021 +1000) * 05f4c3de - feat: add verifier ffi function set verification options (tienvx, Wed Sep 8 23:48:13 2021 +0700) * 5ac0d219 - bump version to 0.10.13 (Ronald Holshausen, Wed Sep 8 10:32:49 2021 +1000) -# 0.11.0-beta.0 - Support for plugins when verifying pacts +## 0.11.0-beta.0 - Support for plugins when verifying pacts * f55440c6 - chore: Bump verifier lib version to 0.11.0-beta.0 (Ronald Holshausen, Mon Sep 13 12:04:19 2021 +1000) * 03ebe632 - Merge branch 'master' into feat/plugins (Ronald Holshausen, Mon Sep 13 12:01:13 2021 +1000) @@ -683,19 +683,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * bdfc6f02 - feat(plugins): Load required plugins when verifying a V4 pact (Ronald Holshausen, Wed Aug 11 14:23:54 2021 +1000) * dfe3cd42 - chore: bump minor version of Pact verifier libs (Ronald Holshausen, Mon Aug 9 15:10:47 2021 +1000) -# 0.10.12 - Maintenance Release +## 0.10.12 - Maintenance Release * 9e582360 - chore: add verifier ffi function update provider state (tienvx, Sun Aug 29 22:20:28 2021 +0700) * 46135a16 - chore: add verifier FFI functions for directory, URL and Pact broker sources (Ronald Holshausen, Tue Aug 24 10:14:46 2021 +1000) * e340d2f1 - bump version to 0.10.12 (Ronald Holshausen, Sun Aug 22 15:37:43 2021 +1000) -# 0.10.11 - Bugfix Release +## 0.10.11 - Bugfix Release * 0e62fe40 - chore: set regex version to 1 (Ronald Holshausen, Sun Aug 22 15:30:12 2021 +1000) * c274ca1a - fix: use the pacts for verification endpoint if the conusmer selectors are specified #133 (Ronald Holshausen, Sun Aug 22 11:51:22 2021 +1000) * f56b52b2 - bump version to 0.10.11 (Ronald Holshausen, Tue Aug 17 10:48:38 2021 +1000) -# 0.10.10 - Bugfix Release +## 0.10.10 - Bugfix Release * b5a7b779 - feat: support new selectors (Matt Fellows, Mon Aug 9 13:27:33 2021 +1000) * 8bcd1c7e - fix: min/max type matchers must not apply the limits when cascading (Ronald Holshausen, Sun Aug 8 15:50:40 2021 +1000) @@ -707,7 +707,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * b3a6f193 - chore: rename header PACT_MESSAGE_METADATA -> Pact-Message-Metadata (Matt Fellows, Tue Jul 13 11:32:25 2021 +1000) * 0591fc47 - bump version to 0.10.10 (Ronald Holshausen, Sun Jul 11 17:31:00 2021 +1000) -# 0.10.9 - Moved structs to models crate + bugfixes and enhancements +## 0.10.9 - Moved structs to models crate + bugfixes and enhancements * e2e10241 - refactor: moved Request and Response structs to the models crate (Ronald Holshausen, Wed Jul 7 18:09:36 2021 +1000) * 9e8b01d7 - refactor: move HttpPart struct to models crate (Ronald Holshausen, Wed Jul 7 15:59:34 2021 +1000) @@ -721,7 +721,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7d69ec97 - bump version to 0.10.9 (Ronald Holshausen, Wed Jun 23 13:19:38 2021 +1000) * d3406650 - refactor: moved matching rules and generators to models crate (part 1) (Ronald Holshausen, Wed Jun 23 12:58:30 2021 +1000) -# 0.10.8 - Refactor + Bugfixes +## 0.10.8 - Refactor + Bugfixes * 84f01d31 - chore: cleanup pedning output (Ronald Holshausen, Fri Jun 11 16:28:28 2021 +1000) * e4927337 - chore: cleanup unused vars (Ronald Holshausen, Fri Jun 11 16:20:36 2021 +1000) @@ -737,7 +737,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 205b6621 - update changelog for release 0.10.8 (Ronald Holshausen, Sun May 30 18:44:14 2021 +1000) * 4a079c64 - bump version to 0.10.8 (Ronald Holshausen, Sun May 30 18:25:27 2021 +1000) -# 0.10.7 - V4 featues + bugfixes +## 0.10.7 - V4 featues + bugfixes * 905118e - Merge pull request #109 from tonynguyenit18/fix/unmatched-expected-and-response-headers-with-multiple-value (Ronald Holshausen, Sun May 30 10:19:51 2021 +1000) * eef6b08 - fix: correct headers attribute with multiple values might not be matched (Tony Nguyen, Sat May 29 20:55:35 2021 +0700) @@ -765,11 +765,11 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a0f6a1d - refactor: Use Anyhow instead of `io::Result` (Caleb Stepanian, Wed Apr 7 16:17:35 2021 -0400) * dcd6bed - bump version to 0.8.16 (Matt Fellows, Wed Apr 7 14:09:37 2021 +1000) -# 0.10.6 - Bugfix Release +## 0.10.6 - Bugfix Release * 63fcf49 - feat: enable consumer code to use the new Value matcher (Matt Fellows, Wed Apr 7 14:01:00 +1000) -# 0.10.5 - Bugfix Release +## 0.10.5 - Bugfix Release * 32ba4b1 - chore: update pact_matching to latest (Matt Fellows, Wed Apr 7 13:12:36 2021 +1000) * fdae684 - update changelog for release 0.10.5 (Matt Fellows, Wed Apr 7 12:29:58 2021 +1000) @@ -783,7 +783,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 4fe65fb - feat(V4): Update matching code to use matchingRules.content for V4 messages (Ronald Holshausen, Mon Mar 8 12:10:31 2021 +1100) * 4dc5373 - bump version to 0.10.5 (Ronald Holshausen, Wed Feb 10 15:54:50 2021 +1100) -# 0.10.5 - pw +## 0.10.5 - pw * 31e5c9c - chore: update pact_matching dependency for pact_verifier (Matt Fellows, Wed Apr 7 12:21:27 2021 +1000) * 7cded70 - update changelog for release 0.10.5 (Matt Fellows, Wed Apr 7 12:10:43 2021 +1000) @@ -795,7 +795,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 4fe65fb - feat(V4): Update matching code to use matchingRules.content for V4 messages (Ronald Holshausen, Mon Mar 8 12:10:31 2021 +1100) * 4dc5373 - bump version to 0.10.5 (Ronald Holshausen, Wed Feb 10 15:54:50 2021 +1100) -# 0.10.5 - Bugfix Release +## 0.10.5 - Bugfix Release * 89240d8 - Merge pull request #95 from pact-foundation/fix/params-missing-on-provider-state-change (Ronald Holshausen, Sun Mar 14 17:20:01 2021 +1100) * 17682dc - fix: add missing params to provider state change executor (Matt Fellows, Sat Mar 13 08:37:46 2021 +1100) @@ -805,13 +805,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 4fe65fb - feat(V4): Update matching code to use matchingRules.content for V4 messages (Ronald Holshausen, Mon Mar 8 12:10:31 2021 +1100) * 4dc5373 - bump version to 0.10.5 (Ronald Holshausen, Wed Feb 10 15:54:50 2021 +1100) -# 0.10.4 - add final newline to verifier output +## 0.10.4 - add final newline to verifier output * 8c2152e - fix: add final newline to verifier output (Jest will overwrite it with the test name) (Ronald Holshausen, Tue Feb 9 14:15:19 2021 +1100) * 0a2aad9 - chore: correct release script (Ronald Holshausen, Mon Feb 8 16:14:20 2021 +1100) * f952467 - bump version to 0.10.4 (Ronald Holshausen, Mon Feb 8 16:04:33 2021 +1100) -# 0.10.3 - Fixes + add callback timeout option for verifcation callbacks +## 0.10.3 - Fixes + add callback timeout option for verifcation callbacks * 49a3cf2 - refactor: use bytes crate instead of vector of bytes for body content (Ronald Holshausen, Sun Feb 7 14:43:40 2021 +1100) * 4afa86a - fix: add callback timeout option for verifcation callbacks (Ronald Holshausen, Sat Feb 6 12:27:32 2021 +1100) @@ -821,19 +821,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * e5b1f93 - fix: clippy error (Ronald Holshausen, Mon Jan 25 10:26:58 2021 +1100) * e10047a - bump version to 0.10.3 (Ronald Holshausen, Mon Jan 25 10:20:40 2021 +1100) -# 0.10.2 - made pact broker module public so it can be used by other crates +## 0.10.2 - made pact broker module public so it can be used by other crates * c8f7091 - feat: made pact broker module public so it can be used by other crates (Ronald Holshausen, Sun Jan 24 18:24:30 2021 +1100) * fb4e996 - bump version to 0.10.2 (Ronald Holshausen, Mon Jan 11 10:28:35 2021 +1100) -# 0.10.1 - Updated dependencies +## 0.10.1 - Updated dependencies * 1ac3548 - chore: upgrade env_logger to 0.8 (Audun Halland, Sat Jan 9 09:50:27 2021 +0100) * 9a8a63f - chore: upgrade quickcheck (Audun Halland, Sat Jan 9 08:46:51 2021 +0100) * 3a6945e - chore: Upgrade reqwest to 0.11 and hence tokio to 1.0 (Ronald Holshausen, Wed Jan 6 15:34:47 2021 +1100) * b79e3a1 - bump version to 0.10.1 (Ronald Holshausen, Tue Jan 5 14:24:47 2021 +1100) -# 0.10.0 - TLS support via FFI + non-blocking verify interaction +## 0.10.0 - TLS support via FFI + non-blocking verify interaction * 39c3816 - fix: using `clone` on a double-reference (Ronald Holshausen, Mon Jan 4 17:32:50 2021 +1100) * 484b747 - fix: verify interaction was blocking the thread (Ronald Holshausen, Mon Jan 4 17:12:38 2021 +1100) @@ -842,26 +842,26 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 6cec6c7 - feat: allow https scheme and ability to disable ssl verification (Matt Fellows, Thu Dec 31 12:10:57 2020 +1100) * ed410bd - bump version to 0.9.6 (Ronald Holshausen, Thu Dec 31 15:14:30 2020 +1100) -# 0.9.5 - Supports generators associated with array contains matcher variants +## 0.9.5 - Supports generators associated with array contains matcher variants * 144b6aa - chore: upgrade dependencies to latest (Ronald Holshausen, Thu Dec 31 14:58:09 2020 +1100) * 09513de - feat: add verifiedBy to the verified results (Ronald Holshausen, Tue Dec 29 12:05:07 2020 +1100) * 12c42c3 - bump version to 0.9.5 (Matt Fellows, Mon Nov 23 07:44:42 2020 +1100) * 71a5847 - chore: update rust deps (Matt Fellows, Sun Nov 22 23:59:29 2020 +1100) -# 0.9.4 - Bugfix Release +## 0.9.4 - Bugfix Release * 52aa549 - chore: improve mismatch output + notices for pacts for verification (Matt Fellows, Sun Nov 22 23:23:15 2020 +1100) * d481bc1 - fix: pacts for verification unmarshal fails if 'pending' attr is not returned in response (Matt Fellows, Sun Nov 22 22:31:31 2020 +1100) * 5058a2d - feat: include the mockserver URL and port in the verification context (Ronald Holshausen, Fri Nov 20 16:43:10 2020 +1100) * a752d6c - bump version to 0.9.4 (Ronald Holshausen, Tue Nov 17 16:58:25 2020 +1100) -# 0.9.3 - Support provider state injected values +## 0.9.3 - Support provider state injected values * 850282d - fix: times with millisecond precision less 3 caused chronos to panic (Ronald Holshausen, Tue Nov 17 16:29:47 2020 +1100) * 13ce2f2 - fix: introduce GeneratorTestMode and restrict provider state generator to the provider side (Ronald Holshausen, Mon Nov 16 15:00:01 2020 +1100) -# 0.9.2 - Support Pacts for Verification API +## 0.9.2 - Support Pacts for Verification API * bbd5364 - test: add negative test case for pacts for verification api (Matt Fellows, Wed Nov 11 08:42:47 2020 +1100) * b3cca0d - test: add basic pact test for pacts for verification feature (Matt Fellows, Wed Nov 11 00:30:45 2020 +1100) @@ -876,7 +876,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 5e0e470 - chore: bump minor version of pact_consumer crate (Ronald Holshausen, Fri Oct 16 13:22:12 2020 +1100) * 3a93fd8 - bump version to 0.9.2 (Ronald Holshausen, Fri Oct 16 12:18:50 2020 +1100) -# 0.9.1 - arrayContains matcher + text/xml content type +## 0.9.1 - arrayContains matcher + text/xml content type * 4ef2db6 - Merge branch 'feat/v4-spec' (Ronald Holshausen, Thu Oct 15 17:02:44 2020 +1100) * 2fb0c6e - fix: fix the build after refactoring the pact write function (Ronald Holshausen, Wed Oct 14 11:07:57 2020 +1100) @@ -885,7 +885,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 29ba743 - feat: add a mock server config struct (Ronald Holshausen, Thu Sep 24 10:30:59 2020 +1000) * 0b03551 - bump version to 0.9.1 (Ronald Holshausen, Mon Sep 14 17:21:57 2020 +1000) -# 0.9.0 - Verifying Message Pacts +## 0.9.0 - Verifying Message Pacts * ef5f88c - chore: bump minor version of the pact_verifier crate (Ronald Holshausen, Mon Sep 14 17:13:45 2020 +1000) * 865327d - feat: handle comparing content types correctly (Ronald Holshausen, Mon Sep 14 16:37:11 2020 +1000) @@ -899,7 +899,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a05bcbb - refactor: renamed Pact to RequestResponsePact (Ronald Holshausen, Sun Sep 13 12:45:34 2020 +1000) * 19290e8 - bump version to 0.8.4 (Ronald Holshausen, Sun Aug 23 16:58:25 2020 +1000) -# 0.8.3 - implemented provider state generator +## 0.8.3 - implemented provider state generator * b186ce9 - chore: update all dependent crates (Ronald Holshausen, Sun Aug 23 16:49:00 2020 +1000) * 61ca3d7 - chore: update matching crate to latest (Ronald Holshausen, Sun Aug 23 16:37:58 2020 +1000) @@ -909,14 +909,14 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * ed207a7 - chore: updated readmes for docs site (Ronald Holshausen, Sun Jun 28 10:04:09 2020 +1000) * 8cdcad0 - bump version to 0.8.3 (Ronald Holshausen, Wed Jun 24 11:46:03 2020 +1000) -# 0.8.2 - Updated XML Matching +## 0.8.2 - Updated XML Matching * 8cf70cc - chore: update to latest matching crate (Ronald Holshausen, Wed Jun 24 11:37:49 2020 +1000) * a15edea - chore: try set the content type on the body if known (Ronald Holshausen, Tue Jun 23 16:53:32 2020 +1000) * 875d426 - chore: switch to Rust TLS so we dont have to link to openssl libs (Ronald Holshausen, Sun May 31 09:57:41 2020 +1000) * df5796f - bump version to 0.8.2 (Ronald Holshausen, Sun May 24 14:02:11 2020 +1000) -# 0.8.1 - Bugfixes + update matching crate to 0.6.0 +## 0.8.1 - Bugfixes + update matching crate to 0.6.0 * bea787c - chore: bump matching crate version to 0.6.0 (Ronald Holshausen, Sat May 23 17:56:04 2020 +1000) * 61ab50f - fix: date/time matchers fallback to the old key (Ronald Holshausen, Fri May 15 11:27:27 2020 +1000) @@ -928,7 +928,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * bd10d00 - Avoid deprecated Error::description in favor of Display trait (Caleb Stepanian, Mon Mar 30 16:49:13 2020 -0400) * c04c0af - bump version to 0.8.1 (Ronald Holshausen, Fri Mar 13 10:06:29 2020 +1100) -# 0.8.0 - Added callback handlers + Bugfixes +## 0.8.0 - Added callback handlers + Bugfixes * 2920364 - fix: date and time matchers with JSON (Ronald Holshausen, Thu Mar 12 16:07:05 2020 +1100) * 126b463 - fix: provider state handlers must be synchronous so they are executed for the actual request (Ronald Holshausen, Thu Mar 12 14:16:03 2020 +1100) @@ -943,7 +943,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * d944a60 - chore: added callback executors so test code can called during verification (Ronald Holshausen, Sun Feb 23 18:43:49 2020 +1100) * 639c1fd - bump version to 0.7.1 (Ronald Holshausen, Sun Jan 19 12:03:44 2020 +1100) -# 0.7.0 - Convert to async/await +## 0.7.0 - Convert to async/await * 70a33dd - chore: bump minor version of pact_verifier (Ronald Holshausen, Sun Jan 19 11:51:36 2020 +1100) * 9d3ad57 - chore: bump minor version of pact consumer crate (Ronald Holshausen, Sun Jan 19 11:40:27 2020 +1100) @@ -965,7 +965,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 924452f - 2018 edition autofix "cargo fix --edition" (Audun Halland, Sat Nov 16 22:27:42 2019 +0100) * d566d23 - bump version to 0.6.2 (Ronald Holshausen, Fri Sep 27 15:17:24 2019 +1000) -# 0.6.1 - Bugfix + Oniguruma crate for regex matching +## 0.6.1 - Bugfix + Oniguruma crate for regex matching * 173bf22 - chore: use the matching lib with the Oniguruma crate #46 (Ronald Holshausen, Fri Sep 27 15:02:03 2019 +1000) * defe890 - fix: switch to the Oniguruma crate for regex matching #46 (Ronald Holshausen, Fri Sep 27 14:35:16 2019 +1000) @@ -973,7 +973,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 48f998d - bump version to 0.6.1 (Ronald Holshausen, Sun Sep 22 17:56:20 2019 +1000) * 0c5d6c2 - fix: pact_consumer should be a dev dependency (Ronald Holshausen, Sun Sep 22 17:48:35 2019 +1000) -# 0.6.0 - Publishing verification results +## 0.6.0 - Publishing verification results * 2e07d77 - chore: set the version of the pact matching crate (Ronald Holshausen, Sun Sep 22 17:24:02 2019 +1000) * eef3d97 - feat: added some tests for publishing verification results to the pact broker #44 (Ronald Holshausen, Sun Sep 22 16:44:52 2019 +1000) @@ -981,7 +981,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * cb30a2f - feat: added the ProviderStateGenerator as a generator type (Ronald Holshausen, Sun Sep 8 16:29:46 2019 +1000) * 1e17ca8 - bump version to 0.5.2 (Ronald Holshausen, Sat Aug 24 12:39:55 2019 +1000) -# 0.5.1 - Use reqwest for better HTTP/S support, support headers with multiple values +## 0.5.1 - Use reqwest for better HTTP/S support, support headers with multiple values * f79b033 - chore: update terminal support in release scripts (Ronald Holshausen, Sat Aug 24 12:25:28 2019 +1000) * b8019ba - chore: bump the version of the matching lib (Ronald Holshausen, Sat Aug 24 12:22:35 2019 +1000) @@ -998,7 +998,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * aa1b714 - Switch pact_broker/HAL client to use reqwest instead of hyper directly (Audun Halland, Sun Jul 28 15:48:31 2019 +0200) * 8b9648c - bump version to 0.5.1 (Ronald Holshausen, Sat Jul 27 17:29:57 2019 +1000) -# 0.5.0 - Upgrade to non-blocking Hyper 0.12 +## 0.5.0 - Upgrade to non-blocking Hyper 0.12 * 89e58cc - chore: update release script (Ronald Holshausen, Sat Jul 27 17:10:06 2019 +1000) * d842100 - chore: bump component versions to 0.5.0 (Ronald Holshausen, Sat Jul 27 15:44:51 2019 +1000) @@ -1028,7 +1028,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 386ab52 - fix: corrected the release scripts to check for a version parameter (Ronald Holshausen, Sun Apr 8 13:44:57 2018 +1000) * b5e0666 - bump version to 0.4.1 (Ronald Holshausen, Sat Apr 7 15:02:43 2018 +1000) -# 0.4.0 - First V3 specification release +## 0.4.0 - First V3 specification release * f63f339 - replaced use of try macro with ? (Ronald Holshausen, Tue Nov 7 16:31:39 2017 +1100) * c4d424b - Wired in the generated request/response into the mock server and verifier (Ronald Holshausen, Tue Nov 7 16:27:01 2017 +1100) @@ -1050,7 +1050,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 5a7a65e - Merge branch 'master' into v3-spec (Ronald Holshausen, Wed Aug 24 21:02:23 2016 +1000) * 539eb48 - updated all the readmes and cargo manefests for v3 (Ronald Holshausen, Tue Jul 19 15:46:18 2016 +1000) -# 0.3.0 - Backported matching rules from V3 branch +## 0.3.0 - Backported matching rules from V3 branch * 3c09f5b - Update the dependent modules for the verifier (Ronald Holshausen, Fri Nov 3 14:42:09 2017 +1100) * 8c50392 - update changelog for release 0.3.0 (Ronald Holshausen, Fri Nov 3 14:27:40 2017 +1100) @@ -1064,7 +1064,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 17d6e98 - bump version to 0.2.2 (Ronald Holshausen, Wed May 17 10:23:34 2017 +1000) -# 0.2.1 - Replace rustc_serialize with serde_json +## 0.2.1 - Replace rustc_serialize with serde_json * a1f78f9 - Move linux specific bits out of the release script (Ronald Holshausen, Wed May 17 10:18:37 2017 +1000) * efe4ca7 - Cleanup unused imports and unreachable pattern warning messages (Anthony Damtsis, Tue May 16 10:31:29 2017 +1000) @@ -1072,7 +1072,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a59fb98 - Migrate remaining pact modules over to serde (Anthony Damtsis, Mon May 15 16:59:04 2017 +1000) * 3ca29d6 - bump version to 0.2.1 (Ronald Holshausen, Sun Oct 9 17:06:35 2016 +1100) -# 0.2.0 - V2 specification implementation +## 0.2.0 - V2 specification implementation * 91f5315 - update the references to the spec in the verifier library to V2 (Ronald Holshausen, Sun Oct 9 16:59:45 2016 +1100) * e2f88b8 - update the verifier library to use the published consumer library (Ronald Holshausen, Sun Oct 9 16:57:34 2016 +1100) @@ -1080,7 +1080,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 574e072 - upadte versions for V2 branch and fix an issue with loading JSON bodies encoded as a string (Ronald Holshausen, Sun Oct 9 15:31:57 2016 +1100) * dabe425 - bump version to 0.1.1 (Ronald Holshausen, Sun Oct 9 10:40:39 2016 +1100) -# 0.1.0 - V1.1 specification implementation +## 0.1.0 - V1.1 specification implementation * 7b66941 - Update the deps for pact verifier library (Ronald Holshausen, Sun Oct 9 10:32:47 2016 +1100) * 1f3f3f1 - correct the versions of the inter-dependent projects as they were causing the build to fail (Ronald Holshausen, Sat Oct 8 17:41:57 2016 +1100) @@ -1088,4 +1088,4 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1246784 - correct the verifier library release script (Ronald Holshausen, Tue Sep 27 20:57:13 2016 +1000) * f0ce08a - bump version to 0.0.1 (Ronald Holshausen, Tue Sep 27 20:43:34 2016 +1000) -# 0.0.0 - First Release +## 0.0.0 - First Release diff --git a/rust/pact_verifier/Cargo.toml b/rust/pact_verifier/Cargo.toml index 2b9bb8488..cf89d1fac 100644 --- a/rust/pact_verifier/Cargo.toml +++ b/rust/pact_verifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pact_verifier" -version = "1.4.8" +version = "1.4.7" authors = ["Ronald Holshausen <ronald.holshausen@gmail.com>"] edition = "2024" description = "Pact-Rust support library that implements provider verification functions" diff --git a/rust/pact_verifier/release-linux.sh b/rust/pact_verifier/release-linux.sh deleted file mode 100755 index da3699898..000000000 --- a/rust/pact_verifier/release-linux.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -x - -if [ "" = "$1" ]; then - echo "Usage: " - echo " ./release-linux.sh version" - exit 1 -fi - -cargo clean -cargo build --release -gzip -c ../target/release/libpact_verifier.so > ../target/release/libpact_verifier-linux-x86_64-$1.so.gz -openssl dgst -sha256 -r ../target/release/libpact_verifier-linux-x86_64-$1.so.gz > ../target/release/libpact_verifier-linux-x86_64-$1.so.gz.sha256 diff --git a/rust/pact_verifier/release-osx.sh b/rust/pact_verifier/release-osx.sh deleted file mode 100755 index 45b658cc2..000000000 --- a/rust/pact_verifier/release-osx.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -x - -if [ "" = "$1" ]; then - echo "Usage: " - echo " ./release-osx.sh version" - exit 1 -fi - -cargo clean -cargo build --release -cargo build --release --target x86_64-apple-ios -gzip -c target/release/pact_verifier.dylib > target/release/pact_verifier-osx-x86_64-$1.dylib.gz -openssl dgst -sha256 -r target/release/pact_verifier-osx-x86_64-$1.dylib.gz > target/release/pact_verifier-osx-x86_64-$1.dylib.gz.sha256 -gzip -c target/release/pact_verifier.a > target/release/pact_verifier-osx-x86_64-$1.a.gz -openssl dgst -sha256 -r target/release/pact_verifier-osx-x86_64-$1.a.gz > target/release/pact_verifier-osx-x86_64-$1.a.gz.sha256 -cargo build --release --target x86_64-apple-ios -gzip -c target/x86_64-apple-ios/release/pact_verifier.a > target/x86_64-apple-ios/release/pact_verifier-ios-x86_64-$1.a.gz -openssl dgst -sha256 -r target/x86_64-apple-ios/release/pact_verifier-ios-x86_64-$1.a.gz > target/x86_64-apple-ios/release/pact_verifier-ios-x86_64-$1.a.gz.sha256 \ No newline at end of file diff --git a/rust/pact_verifier/release-win.sh b/rust/pact_verifier/release-win.sh deleted file mode 100755 index 09bd76d97..000000000 --- a/rust/pact_verifier/release-win.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash - -if [ "" = "$1" ]; then - echo "Usage: " - echo " ./release-win.sh version" - exit 1 -fi - -cargo clean -cargo build --release -gzip -c target/release/pact_verifier.dll > target/release/pact_verifier-windows-x86_64-$1.dll.gz -openssl dgst -sha256 -r target/release/pact_verifier-windows-x86_64-$1.dll.gz > target/release/pact_verifier-windows-x86_64-$1.dll.gz.sha256 -gzip -c target/release/pact_verifier.lib > target/release/pact_verifier-windows-x86_64-$1.lib.gz -openssl dgst -sha256 -r target/release/pact_verifier-windows-x86_64-$1.lib.gz > target/release/pact_verifier-windows-x86_64-$1.lib.gz.sha256 \ No newline at end of file diff --git a/rust/pact_verifier/release.groovy b/rust/pact_verifier/release.groovy deleted file mode 100755 index 1a1ad3ade..000000000 --- a/rust/pact_verifier/release.groovy +++ /dev/null @@ -1,112 +0,0 @@ -#!/usr/bin/env groovy -@Grab(group = 'com.github.zafarkhaja', module = 'java-semver', version = '0.9.0') -import com.github.zafarkhaja.semver.Version - -def executeOnShell(String command, Closure closure = null) { - executeOnShell(command, new File(System.properties.'user.dir'), closure) -} - -def executeOnShell(String command, File workingDir, Closure closure = null) { - println command - def processBuilder = new ProcessBuilder(['sh', '-c', command]) - .directory(workingDir) - if (closure) { - processBuilder.redirectErrorStream(true) - } else { - processBuilder.inheritIO() - } - def process = processBuilder.start() - if (closure) { - process.inputStream.eachLine closure - } - process.waitFor() - if (process.exitValue() > 0) { - System.exit(process.exitValue()) - } -} - -void ask(String prompt, String defaultValue = 'Y', Closure cl) { - def promptValue = System.console().readLine(prompt + ' ').trim() - if (promptValue.empty) { - promptValue = defaultValue - } - if (promptValue.toUpperCase() == 'Y') { - cl.call() - } -} - -executeOnShell 'git pull' - -ask('Execute Build?: [Y]') { - executeOnShell 'cargo clean' - executeOnShell 'cargo build' - executeOnShell 'cargo test' -} - -def projectProps = new File('Cargo.toml').text -def versionMatch = projectProps =~ /(?m)version\s*=\s*"(.*)"/ -def version = versionMatch[0][1] - -def prevTag = 'git describe --abbrev=0 --tags --match=pact_verifier-*'.execute().text.trim() -def changelog = [] -executeOnShell("git log --pretty='* %h - %s (%an, %ad)' ${prevTag}..HEAD .".toString()) { - println it - changelog << it -} - -def releaseDesc = System.console().readLine('Describe this release: [Bugfix Release]').trim() -if (releaseDesc.empty) { - releaseDesc = 'Bugfix Release' -} - -def releaseVer = System.console().readLine("What is the version for this release?: [$version]").trim() -if (releaseVer.empty) { - releaseVer = version -} - -ask('Update Changelog?: [Y]') { - def changeLogFile = new File('CHANGELOG.md') - def changeLogFileLines = changeLogFile.readLines() - changeLogFile.withPrintWriter() { p -> - p.println(changeLogFileLines[0]) - - p.println() - p.println("# $releaseVer - $releaseDesc") - p.println() - changelog.each { - p.println(it) - } - - changeLogFileLines[1..-1].each { - p.println(it) - } - } - - executeOnShell("git add CHANGELOG.md") - executeOnShell("git commit -m 'chore(pact_verifier): update changelog for release $releaseVer [skip ci]'") - executeOnShell("git status") - executeOnShell("git diff HEAD^..HEAD") -} - -ask('Tag and Push commits?: [Y]') { - executeOnShell 'git push' - executeOnShell("git tag pact_verifier-v${releaseVer}") - executeOnShell 'git push --tags' -} - -ask('Publish library to crates.io?: [Y]') { - executeOnShell 'cargo package' - executeOnShell 'cargo publish' -} - -def nextVer = Version.valueOf(releaseVer).incrementPatchVersion() -ask("Bump version to $nextVer?: [Y]") { - executeOnShell "sed -i -e 's/^version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml" - executeOnShell("git add Cargo.toml") - executeOnShell("git add ../Cargo.lock") - executeOnShell("git diff --cached") - ask("Commit and push this change?: [Y]") { - executeOnShell("git commit -m 'chore(pact_verifier): bump version to $nextVer [skip ci]'") - executeOnShell("git push") - } -} diff --git a/rust/pact_verifier_cli/CHANGELOG.md b/rust/pact_verifier_cli/CHANGELOG.md index bdece97ef..4761efbd2 100644 --- a/rust/pact_verifier_cli/CHANGELOG.md +++ b/rust/pact_verifier_cli/CHANGELOG.md @@ -1,6 +1,6 @@ -To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD .` replacing TAGNAME and HEAD as appropriate. +# Changelog -# 1.3.5 - Support matching rules and generators from plugins +## 1.3.5 - Support matching rules and generators from plugins * 58814d2e - chore: Update pact_verifier to 1.4.7 (Ronald Holshausen, Fri Aug 7 10:41:49 2026 +1000) * a09d96cd - chore: Update pact_matching to 2.0.10 (Ronald Holshausen, Fri Aug 7 09:16:58 2026 +1000) @@ -11,7 +11,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0904b3d3 - chore: Update pact_models to 1.3.13 (Ronald Holshausen, Mon Aug 3 17:16:00 2026 +1000) * 99e15515 - bump version to 1.3.5 (Ronald Holshausen, Fri Jul 31 10:13:25 2026 +1000) -# 1.3.4 - Bugfix Release +## 1.3.4 - Bugfix Release * 7551fe54 - chore: Update pact_verifier to 1.4.4 (Ronald Holshausen, Fri Jul 31 09:45:27 2026 +1000) * 59535d64 - chore: Update pact_models to 1.3.12 (Ronald Holshausen, Thu Jul 30 16:41:12 2026 +1000) @@ -24,19 +24,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 46a285ae - chore: Update pact_models to 1.3.11 (Ronald Holshausen, Thu Jun 18 16:00:45 2026 +1000) * d77096ad - bump version to 1.3.4 (Ronald Holshausen, Tue Jun 9 17:10:36 2026 +1000) -# 1.3.3 - Support V2 plugins +## 1.3.3 - Support V2 plugins * e26db512 - chore: Update pact_verifier to 1.4.1 (Ronald Holshausen, Tue Jun 9 16:56:25 2026 +1000) * 50fb5a6f - chore: Update pact_matching to 2.0.5 and pact_mock_server to 2.2.2 (Ronald Holshausen, Tue Jun 9 15:20:14 2026 +1000) * 123cf49b - bump version to 1.3.3 (Ronald Holshausen, Wed May 27 16:59:20 2026 +1000) -# 1.3.2 - Maintenance release +## 1.3.2 - Maintenance release * 3a6e45ef - chore: Update pact_matching to 2.0.4 (Ronald Holshausen, Wed May 27 16:26:53 2026 +1000) * c98502f6 - feat: add --retries / PACT_BROKER_HTTP_RETRIES to pact_verifier_cli (JP-Ellis, Tue May 26 15:39:28 2026 +1000) * 8af79332 - bump version to 1.3.2 (Ronald Holshausen, Fri May 1 10:22:32 2026 +1000) -# 1.3.1 - Feature Release +## 1.3.1 - Feature Release * 75243a7e - chore(pact_verifier_cli): Correct the version of pact_matching in Cargo.toml (Ronald Holshausen, Fri May 1 10:12:07 2026 +1000) * ed565c70 - Revert "update changelog for release 1.3.1" (Ronald Holshausen, Fri May 1 10:10:09 2026 +1000) @@ -60,7 +60,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 780063fc - chore(pact_verifier): bump time to 0.3.47 to resolve RUSTSEC-2026-0009 (Andrew Tecey, Mon Feb 9 15:04:09 2026 +0000) * 9952456c - chore(docker): ghcr publish [ci skip] (Yousaf Nabi, Fri Oct 31 18:51:24 2025 +0000) -# 1.3.0 - [Feature Release] +## 1.3.0 - [Feature Release] * 63b8ce48 - chore: rename docker image to pact-verifier (Yousaf Nabi, Fri Oct 31 16:27:29 2025 +0000) * 4c8358ee - chore(pact_verifier_cli): rename bin.rs to bin/pact-verifier (Yousaf Nabi, Wed Oct 29 19:59:27 2025 +0000) @@ -72,7 +72,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1cb9a5ac - chore: Update pact_models to 1.3.5 (Ronald Holshausen, Mon Jul 28 10:44:30 2025 +1000) * df1afe32 - bump version to 1.2.1 (Ronald Holshausen, Fri Jun 20 14:47:51 2025 +1000) -# 1.2.0 - Add Exit on first error and Only run previously failed interactions CLI options +## 1.2.0 - Add Exit on first error and Only run previously failed interactions CLI options * ce3c5d9e - feat(pact_verifier_cli): Update the docs on the new options flag #494 (Ronald Holshausen, Fri Jun 20 11:56:43 2025 +1000) * 4fc0136c - chore: Upgrade pact_verifier to 1.3.2 (Ronald Holshausen, Fri Jun 20 11:33:58 2025 +1000) @@ -92,7 +92,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * d76d7e2d - chore(pact_verifier_cli): Update docker base to Alpine 3.21 (Ronald Holshausen, Wed Mar 19 15:30:16 2025 +1100) * eab8d1ab - bump version to 1.1.6 (Ronald Holshausen, Wed Mar 19 15:22:15 2025 +1100) -# 1.1.5 - Bugfix Release +## 1.1.5 - Bugfix Release * e1a7c0f0 - chore(pact_verifier_cli): Update dependencies (Ronald Holshausen, Wed Mar 19 15:11:20 2025 +1100) * df9beec3 - chore: Upgrade pact_verifier to 1.2.5 (Ronald Holshausen, Wed Mar 19 14:08:12 2025 +1100) @@ -104,7 +104,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 420c654d - chore: Upgrade pact_models to 1.2.5 (Ronald Holshausen, Wed Nov 13 11:01:39 2024 +1100) * 791db1fc - bump version to 1.1.5 (Ronald Holshausen, Tue Aug 13 15:48:54 2024 +1000) -# 1.1.4 - Bugfix Release +## 1.1.4 - Bugfix Release * fa02c30b - chore: Upgrade pact_verifier to 1.2.4 (Ronald Holshausen, Tue Aug 13 15:42:48 2024 +1000) * f50454ff - chore: Upgrade test dependencies (Ronald Holshausen, Tue Aug 13 11:54:59 2024 +1000) @@ -123,7 +123,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 4775fdfd - doc(pact_verifier_cli): Update the CLI docs to explain the provider state calls #418 (Ronald Holshausen, Mon Jul 8 15:25:23 2024 +1000) * 37bc38f1 - bump version to 1.1.4 (Ronald Holshausen, Fri Jun 14 11:51:24 2024 +1000) -# 1.1.3 - Feature + Bugfix release +## 1.1.3 - Feature + Bugfix release * dad482f5 - chore: Upgrade pact_verifier to 1.2.2 (Ronald Holshausen, Fri Jun 14 11:21:54 2024 +1000) * 30998a95 - chore: Upgrade pact_models to 1.2.1 (Ronald Holshausen, Wed Jun 12 15:26:49 2024 +1000) @@ -133,7 +133,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c68a0eea - feat: Add environment variables for most options (Martijn Pieters, Thu May 16 17:09:43 2024 +0100) * 955bcbdc - bump version to 1.1.3 (Ronald Holshausen, Wed May 8 15:58:06 2024 +1000) -# 1.1.2 - Maintenance Release +## 1.1.2 - Maintenance Release * 5a6b004a - chore: Upgrade reqwest to 0.12.4 (Ronald Holshausen, Wed May 8 15:42:28 2024 +1000) * 2f17632d - chore: Upgrade clap crate to 4.5.4 (Ronald Holshausen, Wed May 8 15:38:21 2024 +1000) @@ -143,7 +143,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 7688469a - chore(pact_verifier): Bump minor version (Ronald Holshausen, Tue Apr 16 10:41:18 2024 +1000) * add35c94 - bump version to 1.1.2 (Ronald Holshausen, Mon Mar 18 11:34:42 2024 +1100) -# 1.1.1 - Maintenance Release +## 1.1.1 - Maintenance Release * e08dc260 - chore(pact_verifier_cli): Create multi-arch docker images (Ronald Holshausen, Mon Mar 18 11:27:24 2024 +1100) * b674c051 - chore(pact_verifier_cli): Create macos named binary files (Ronald Holshausen, Mon Mar 18 11:21:46 2024 +1100) @@ -155,7 +155,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * b697c1fa - fix(pact_verifier_cli): Correct docker file not that pact_models is a relative path (Ronald Holshausen, Mon Feb 19 13:03:24 2024 +1100) * d5cd18dd - bump version to 1.1.1 (Ronald Holshausen, Mon Feb 19 12:21:48 2024 +1100) -# 1.1.0 - Feature + Bugfix release +## 1.1.0 - Feature + Bugfix release * 40391cb0 - chore(pact_verifier_cli): Bump minor version (Ronald Holshausen, Mon Feb 19 12:03:43 2024 +1100) * ba9eae1e - chore(pact_verifier_cli): Upgrade dependencies (Ronald Holshausen, Mon Feb 19 11:48:13 2024 +1100) @@ -169,7 +169,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 73578350 - chore: use local pact_models (JP-Ellis, Tue Feb 6 10:51:09 2024 +1100) * f49e5d5a - bump version to 1.0.4 (Ronald Holshausen, Sat Jan 20 21:40:34 2024 +1100) -# 1.0.3 - Bugfix Release +## 1.0.3 - Bugfix Release * 8f1ea28d - chore: Upgrade dependencies (Ronald Holshausen, Sat Jan 20 21:35:41 2024 +1100) * 8d3f146a - chore: Upgrade pact_verifier to 1.0.5 (Ronald Holshausen, Sat Jan 20 21:31:51 2024 +1100) @@ -186,7 +186,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * dfd13760 - chore: Upgrade pact_models to 1.1.13 #355 (Ronald Holshausen, Tue Jan 16 07:42:33 2024 +1100) * 2e7cbf6a - bump version to 1.0.3 (Ronald Holshausen, Wed Dec 20 15:14:24 2023 +1100) -# 1.0.2 - Maintenance Release +## 1.0.2 - Maintenance Release * 75a5d1ab - chore: Upgrade all dependencies (Ronald Holshausen, Wed Dec 20 15:05:43 2023 +1100) * 2ff2d873 - chore: Update readme with --webhook-callback-url option #350 (Ronald Holshausen, Wed Dec 20 15:01:14 2023 +1100) @@ -205,7 +205,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 64a862ee - chore:(pact_verifier_cli): correct linux release script (Ronald Holshausen, Wed Jul 12 13:49:34 2023 +1000) * 87017434 - bump version to 1.0.1 (Ronald Holshausen, Wed Jul 12 12:07:52 2023 +1000) -# 1.0.1 - Maintenance Release +## 1.0.1 - Maintenance Release * c924b9ce - chore: Upgrade pact_verifier to 1.0.3 (Ronald Holshausen, Tue Aug 29 10:04:18 2023 +1000) * e4da3e42 - chore: Upgrade pact_models to 1.1.11 (Ronald Holshausen, Mon Aug 7 13:59:34 2023 +1000) @@ -215,7 +215,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 64a862ee - chore:(pact_verifier_cli): correct linux release script (Ronald Holshausen, Wed Jul 12 13:49:34 2023 +1000) * 87017434 - bump version to 1.0.1 (Ronald Holshausen, Wed Jul 12 12:07:52 2023 +1000) -# 1.0.0 - 1.0.0 Release +## 1.0.0 - 1.0.0 Release * b9e034b2 - feat: Add crate feature for JUnit report output (Ronald Holshausen, Wed Jul 12 11:50:08 2023 +1000) * 7a25a819 - chore: Bump pact_verifier_cli version to 1.0.0 (Ronald Holshausen, Wed Jul 12 11:36:21 2023 +1000) @@ -230,7 +230,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 261ecf47 - fix: Add RefUnwindSafe trait bound to all Pact and Interaction uses (Ronald Holshausen, Mon May 15 13:59:31 2023 +1000) * 91cceabf - bump version to 0.10.7 (Ronald Holshausen, Tue Apr 18 15:26:13 2023 +1000) -# 0.10.6 - Bugfix Release +## 0.10.6 - Bugfix Release * 8cfc3d79 - chore: Upgrade pact_verifier to 0.15.3 (Ronald Holshausen, Tue Apr 18 15:22:26 2023 +1000) * 6c14abfd - chore: Upgrade pact_models to 1.0.13 (Ronald Holshausen, Tue Apr 18 13:00:01 2023 +1000) @@ -239,39 +239,39 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 669f7812 - chore: Upgrade pact_models to 1.0.10 (Ronald Holshausen, Thu Apr 13 15:32:34 2023 +1000) * f35fff9a - bump version to 0.10.6 (Ronald Holshausen, Wed Apr 5 10:44:52 2023 +1000) -# 0.10.5 - Maintenance Release +## 0.10.5 - Maintenance Release * 6c9351d3 - chore: Update dependencies (Ronald Holshausen, Wed Apr 5 10:30:10 2023 +1000) * 5981539a - chore: Add trycmd tests (Ronald Holshausen, Wed Apr 5 10:24:28 2023 +1000) * 4f62ee5d - chore: Upgrade pact_verifier to 0.15.2 (Ronald Holshausen, Wed Apr 5 10:16:07 2023 +1000) * 40329d43 - bump version to 0.10.5 (Ronald Holshausen, Wed Mar 15 15:29:58 2023 +1100) -# 0.10.4 - Bugfix Release +## 0.10.4 - Bugfix Release * 8310b09c - chore: Upgrade pact_verifier to 0.15.1 (Ronald Holshausen, Wed Mar 15 15:25:31 2023 +1100) * e96bc54e - fix: Upgrade pact_models to 1.0.9 (fixes issues with headers) (Ronald Holshausen, Wed Mar 15 14:31:00 2023 +1100) * f7e0b669 - chore: Upgrade pact_models to 1.0.8 (Ronald Holshausen, Wed Mar 15 12:19:22 2023 +1100) * f63b7b66 - bump version to 0.10.4 (Ronald Holshausen, Thu Mar 2 13:03:18 2023 +1100) -# 0.10.3 - Add option to generate a JUnit XML report file for the verification #257 +## 0.10.3 - Add option to generate a JUnit XML report file for the verification #257 * 9629c351 - chore: dump minor version of pact_verifier as some signatures have changed (Ronald Holshausen, Thu Mar 2 12:10:35 2023 +1100) * c9333f94 - feat: add option to generate JUnit XML report format for consumption by CI servers #257 (Ronald Holshausen, Thu Mar 2 10:48:56 2023 +1100) * 46297622 - feat: add verification timing to the verifier output (Ronald Holshausen, Mon Feb 27 16:11:18 2023 +1100) * cad9208a - bump version to 0.10.3 (Ronald Holshausen, Thu Feb 16 14:20:45 2023 +1100) -# 0.10.2 - Bugfix Release +## 0.10.2 - Bugfix Release * c368c651 - fix: Pass any custom header values on to the plugin verification call (Ronald Holshausen, Thu Feb 16 13:52:03 2023 +1100) * a62bb14f - chore: correct changelog (Ronald Holshausen, Fri Feb 10 14:16:35 2023 +1100) * 88f263d0 - bump version to 0.10.2 (Ronald Holshausen, Fri Feb 10 14:11:17 2023 +1100) -# 0.10.1 - Maintenance Release (supports message metadata) +## 0.10.1 - Maintenance Release (supports message metadata) * fa45296c - chore: Update pact_verifier to 0.13.21 (Ronald Holshausen, Fri Feb 10 13:37:48 2023 +1100) * e6bf4aad - bump version to 0.10.1 (Ronald Holshausen, Wed Jan 11 16:12:48 2023 +1100) -# 0.10.0 - Bugfix Release +## 0.10.0 - Bugfix Release * fbc4dbe1 - chore: Upgrade pact_verifier to 0.13.20 (Ronald Holshausen, Wed Jan 11 16:06:21 2023 +1100) * 7d84d941 - chore: Upgrade pact_models to 1.0.4 (Ronald Holshausen, Wed Jan 11 14:33:13 2023 +1100) @@ -284,21 +284,21 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 1bdb1054 - chore: Upgrade pact_models to 1.0.3 #239 (Ronald Holshausen, Thu Dec 22 15:37:53 2022 +1100) * 2d7367fc - bump version to 0.9.21 (Ronald Holshausen, Mon Dec 19 16:44:00 2022 +1100) -# 0.9.20 - Add user-agent header + Support generators in plugins +## 0.9.20 - Add user-agent header + Support generators in plugins * c55a7758 - chore: Upgrade pact_verifier to 0.13.19 (Ronald Holshausen, Mon Dec 19 16:20:24 2022 +1100) * 46254545 - chore: Upgrade pact_verifier to 0.13.18 (Ronald Holshausen, Wed Dec 14 17:15:22 2022 +1100) * e7a1b9f2 - chore: Upgrade pact_matching to 1.0 and plugin driver to 0.2 (Ronald Holshausen, Fri Dec 9 17:29:33 2022 +1100) * f410fe35 - bump version to 0.9.20 (Ronald Holshausen, Mon Nov 28 15:18:13 2022 +1100) -# 0.9.19 - Bugfix Release +## 0.9.19 - Bugfix Release * 2f0ada6b - chore: Upgrade pact_verifier to 0.13.16 (Ronald Holshausen, Mon Nov 28 15:08:47 2022 +1100) * c9721fd5 - chore: Upgrade pact_models to 1.0.1 and pact-plugin-driver to 0.1.16 (Ronald Holshausen, Mon Nov 28 14:10:53 2022 +1100) * 4411d487 - chore: Upgrade docker container to latest Alpine (Ronald Holshausen, Mon Nov 7 14:47:36 2022 +1100) * e2fa8a27 - bump version to 0.9.19 (Ronald Holshausen, Mon Nov 7 14:37:28 2022 +1100) -# 0.9.18 - Maintenance Release +## 0.9.18 - Maintenance Release * 6c58858e - chore: Upgrade dependencies (Ronald Holshausen, Mon Nov 7 14:33:24 2022 +1100) * f43e7851 - chore: Upgrade pact_verifier to 0.13.15 (Ronald Holshausen, Mon Nov 7 14:13:26 2022 +1100) @@ -306,19 +306,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * e1f985ad - chore: Upgrade pact_models to 0.4.6 and pact-plugin-driver to 0.1.14 (Ronald Holshausen, Fri Nov 4 16:38:36 2022 +1100) * cb984375 - bump version to 0.9.18 (Ronald Holshausen, Wed Sep 28 11:02:59 2022 +1000) -# 0.9.17 - Bugfix Release +## 0.9.17 - Bugfix Release * b7bb9cd1 - chore: Upgrade pact_verifier crate to 0.13.14 (Ronald Holshausen, Wed Sep 28 10:34:48 2022 +1000) * b626002c - fix(pact_verifier_cli): stop using deprecated clap::parser::matches::arg_matches::ArgMatches::values_of_lossy (Jerry Wang, Sat Sep 24 01:36:05 2022 -0700) * ac4fe73f - chore: fix to release scripts (Ronald Holshausen, Wed Sep 7 10:51:01 2022 +1000) * 83b5ee79 - bump version to 0.9.17 (Ronald Holshausen, Wed Sep 7 09:56:33 2022 +1000) -# 0.9.16 - Bugfix Release +## 0.9.16 - Bugfix Release * cdb555f8 - fix: Upgrade pact_verifier to 0.13.13 (Ronald Holshausen, Wed Sep 7 09:53:05 2022 +1000) * 2e7563d1 - bump version to 0.9.16 (Ronald Holshausen, Wed Aug 31 16:19:21 2022 +1000) -# 0.9.15 - Maintenance Release +## 0.9.15 - Maintenance Release * 5c1d4293 - chore: Upgrade pact_verifier crate to 0.13.12 (Ronald Holshausen, Wed Aug 31 16:09:16 2022 +1000) * 8663cd3f - feat: add ignore-no-pacts-error to the verifier CLI #213 (Ronald Holshausen, Wed Aug 31 15:19:31 2022 +1000) @@ -329,13 +329,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 25f396ae - chore: add missing SHA files and OSX aarch64 binary to the Verifier release build #160 (Ronald Holshausen, Mon Aug 15 16:54:03 2022 +1000) * b462bd2e - bump version to 0.9.15 (Ronald Holshausen, Mon Aug 15 16:23:45 2022 +1000) -# 0.9.14 - Support aarch64 Linux binary +## 0.9.14 - Support aarch64 Linux binary * e3bef155 - feat: Add ARM64 (aarch64) linux targets to the release build #160 (Ronald Holshausen, Mon Aug 15 16:13:22 2022 +1000) * bcea9444 - chore: docker build requires protobuf dev files (Ronald Holshausen, Wed Aug 10 13:44:41 2022 +1000) * 6105b7a5 - bump version to 0.9.14 (Ronald Holshausen, Wed Aug 10 13:22:20 2022 +1000) -# 0.9.13 - add CLI options to provide different ports when there are different transports +## 0.9.13 - add CLI options to provide different ports when there are different transports * ac58f50f - chore: update readme (Ronald Holshausen, Wed Aug 10 13:18:15 2022 +1000) * 78ff94e2 - chore: cleanup some deprecation warnings (Ronald Holshausen, Wed Aug 10 13:07:51 2022 +1000) @@ -346,7 +346,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 6117aa50 - chore: upgrade clap crate to 3.x (Ronald Holshausen, Mon Aug 1 14:46:56 2022 +1000) * 5f487571 - bump version to 0.9.13 (Ronald Holshausen, Wed Jul 20 13:21:27 2022 +1000) -# 0.9.12 - add --no-color option to verfier CLI +## 0.9.12 - add --no-color option to verfier CLI * 701c93a6 - Merge pull request #204 from pact-foundation/snyk-fix-e3dc7fb516c9ab76c1050c65ab20c6fb (Ronald Holshausen, Tue Jul 19 22:47:31 2022 -0400) * 4530dbde - feat: add --no-color option to verfier CLI #203 (Ronald Holshausen, Wed Jul 20 12:45:20 2022 +1000) @@ -355,7 +355,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c7f68871 - fix: rust/pact_verifier_cli/Dockerfile to reduce vulnerabilities (snyk-bot, Wed Jul 6 23:50:14 2022 +0000) * 6d5d830f - bump version to 0.9.12 (Ronald Holshausen, Tue Jun 7 12:17:10 2022 +1000) -# 0.9.11 - Bug fixes + Support publishing results from webhook calls +## 0.9.11 - Bug fixes + Support publishing results from webhook calls * 731477f8 - chore: prep for release (Ronald Holshausen, Tue Jun 7 11:19:13 2022 +1000) * b3f98a2c - chore: Upgrade pact_verifier to 0.13.8 (Ronald Holshausen, Tue Jun 7 11:07:24 2022 +1000) @@ -367,7 +367,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 020b5715 - chore: upgrade pact_models to 0.4.1 (Ronald Holshausen, Wed May 11 11:36:57 2022 +1000) * e1f4d4d9 - bump version to 0.9.11 (Ronald Holshausen, Wed Apr 27 16:09:01 2022 +1000) -# 0.9.10 - Supports verification via plugins +## 0.9.10 - Supports verification via plugins * 8d58ea34 - fix: lock the pact crate versions so that updates do not break CLI install #189 (Ronald Holshausen, Wed Apr 27 16:01:54 2022 +1000) * 14a010a9 - chore: Upgrade pact_verifier to 0.13.5 (Ronald Holshausen, Wed Apr 27 15:21:15 2022 +1000) @@ -378,7 +378,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 763488c4 - refactor: rename scheme parameter to transport (Ronald Holshausen, Tue Apr 19 17:03:30 2022 +1000) * 8815ec0e - bump version to 0.9.10 (Ronald Holshausen, Wed Apr 13 16:12:36 2022 +1000) -# 0.9.9 - Bugfix Release +## 0.9.9 - Bugfix Release * 136c8a82 - chore: Upgrade pact_verifier to 0.13.4 (Ronald Holshausen, Wed Apr 13 16:06:02 2022 +1000) * 49640c5f - chore: minor update to release scripts (Ronald Holshausen, Wed Apr 13 15:32:46 2022 +1000) @@ -389,7 +389,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * f709528d - fix: rust/pact_verifier_cli/Dockerfile to reduce vulnerabilities (snyk-bot, Thu Mar 17 22:19:46 2022 +0000) * a09fade9 - bump version to 0.9.9 (Ronald Holshausen, Fri Mar 4 15:22:53 2022 +1100) -# 0.9.8 - Custom headers + Date-Time expression parser +## 0.9.8 - Custom headers + Date-Time expression parser * b6433500 - chore: upgrade pact_verifier to 0.13.2 (Ronald Holshausen, Fri Mar 4 14:49:18 2022 +1100) * 8e864502 - chore: update all dependencies (Ronald Holshausen, Fri Mar 4 13:29:59 2022 +1100) @@ -398,7 +398,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * eda9fc19 - chore: build verifier docker image using Rust base image (Ronald Holshausen, Mon Jan 31 13:46:58 2022 +1100) * 4a17ea36 - bump version to 0.9.8 (Ronald Holshausen, Mon Jan 31 13:05:31 2022 +1100) -# 0.9.7 - Bugfixes + added JSON report option +## 0.9.7 - Bugfixes + added JSON report option * 4b2556fa - chore: update readme/docs with new json option (Ronald Holshausen, Mon Jan 31 11:32:02 2022 +1100) * 5ecf70a7 - feat: enable ANSI console output on Windows (Ronald Holshausen, Mon Jan 31 11:02:03 2022 +1100) @@ -411,7 +411,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * d1bdd132 - chore: use docker builder image that supports Rust 2021 (Ronald Holshausen, Tue Jan 25 11:46:54 2022 +1100) * 60afcc60 - bump version to 0.9.7 (Ronald Holshausen, Tue Jan 25 10:59:29 2022 +1100) -# 0.9.6 - Maintenance Release +## 0.9.6 - Maintenance Release * 0c200ea5 - chore: Upgrade pact verifier crate to 0.12.4 (Ronald Holshausen, Mon Jan 17 17:07:18 2022 +1100) * 4f1ecff2 - chore: Upgrade pact-models to 0.2.7 (Ronald Holshausen, Mon Jan 17 10:53:26 2022 +1100) @@ -420,38 +420,38 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c4ff44a2 - bump version to 0.9.6 (Matt Fellows, Fri Dec 17 16:22:36 2021 +1100) * 0110fac3 - update changelog for release 0.9.5 (Matt Fellows, Fri Dec 17 16:16:53 2021 +1100) -# 0.9.5 - Bugfix Release +## 0.9.5 - Bugfix Release -# 0.9.5 - Bugfix Release +## 0.9.5 - Bugfix Release * c97f5d1a - fix: shutdown the tokio reactor correctly when there is an error (Ronald Holshausen, Wed Dec 15 16:28:37 2021 +1100) * 7c31d981 - bump version to 0.9.5 (Ronald Holshausen, Wed Dec 15 15:59:05 2021 +1100) -# 0.9.4 - Bugfix Release +## 0.9.4 - Bugfix Release * 00a00461 - fix: add a small delay at the end of validation to allow async tasks to finish (Ronald Holshausen, Wed Dec 15 15:37:30 2021 +1100) * d26fa4c5 - bump version to 0.9.4 (Ronald Holshausen, Wed Dec 15 13:56:30 2021 +1100) -# 0.9.3 - Add metrics for provider verification +## 0.9.3 - Add metrics for provider verification * f8042d6b - feat: add metrics event for provider verification (Ronald Holshausen, Tue Dec 14 17:29:44 2021 +1100) * 01171ccb - bump version to 0.9.3 (Ronald Holshausen, Thu Dec 2 12:32:36 2021 +1100) -# 0.9.2 - Bugfix Release +## 0.9.2 - Bugfix Release * 491e9259 - chore(pact_verifier_cli): upgrade to latest models crate (Ronald Holshausen, Thu Dec 2 12:22:11 2021 +1100) * 51a147df - chore: fix docker file (Ronald Holshausen, Tue Nov 16 13:56:24 2021 +1100) * 2780c93b - bump version to 0.9.2 (Ronald Holshausen, Tue Nov 16 13:18:59 2021 +1100) -# 0.9.1 - Fix for branches and consumer version selectors +## 0.9.1 - Fix for branches and consumer version selectors * 5d974c4a - chore: update to latest models and plugin driver crates (Ronald Holshausen, Tue Nov 16 11:56:53 2021 +1100) * df23ba3d - fix: allow multiple consumer version selectors (Matt Fellows, Mon Nov 15 14:28:04 2021 +1100) * 0af18303 - fix: add missing provider-branch to verifier CLI (Ronald Holshausen, Mon Nov 8 11:40:05 2021 +1100) * 2db1e1bb - bump version to 0.9.1 (Ronald Holshausen, Thu Nov 4 16:44:12 2021 +1100) -# 0.9.0 - Pact V4 release +## 0.9.0 - Pact V4 release * 8d05ddcc - chore: remove beta version from verifier cli (Ronald Holshausen, Thu Nov 4 16:25:02 2021 +1100) * 400a1231 - chore: drop beta from pact_verifier version (Ronald Holshausen, Thu Nov 4 15:56:22 2021 +1100) @@ -462,7 +462,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 87944c79 - bump version to 0.9.0-beta.1 (Ronald Holshausen, Tue Oct 19 18:25:48 2021 +1100) * 1ce39437 - docs: update verifier CLI docs with consumer version selectors (Matt Fellows, Tue Oct 12 13:26:20 2021 +1100) -# 0.9.0-beta.0 - Pact Plugins Support +## 0.9.0-beta.0 - Pact Plugins Support * 1aa21870 - chore: update readme with details on plugins (Ronald Holshausen, Tue Oct 19 18:12:51 2021 +1100) * 5bbdbcfa - refactor: move the CLI functions back from the FFI crate (Ronald Holshausen, Tue Oct 19 18:03:29 2021 +1100) @@ -473,16 +473,16 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 75e13fd8 - Merge branch 'master' into feat/plugins (Ronald Holshausen, Mon Aug 23 10:33:45 2021 +1000) * dfe3cd42 - chore: bump minor version of Pact verifier libs (Ronald Holshausen, Mon Aug 9 15:10:47 2021 +1000) -# 0.8.8 - support native TLS certs +## 0.8.8 - support native TLS certs * df715cd5 - feat: support native TLS. Fixes #144 (Matt Fellows, Mon Sep 20 13:00:33 2021 +1000) * 4458a677 - bump version to 0.8.8 (Ronald Holshausen, Sun Aug 22 16:03:00 2021 +1000) -# 0.8.7 - Bugfix Release +## 0.8.7 - Bugfix Release * 38ccd5f6 - bump version to 0.8.7 (Ronald Holshausen, Wed Jul 21 13:38:53 2021 +1000) -# 0.8.6 - Bugfix Release +## 0.8.6 - Bugfix Release * b3a6f193 - chore: rename header PACT_MESSAGE_METADATA -> Pact-Message-Metadata (Matt Fellows, Tue Jul 13 11:32:25 2021 +1000) * 0d5ec68a - feat: copied verfier_ffi crate to pact_ffi (Ronald Holshausen, Sat Jul 10 16:54:28 2021 +1000) @@ -493,7 +493,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 913b7b17 - chore: correct CLI docker release files (Ronald Holshausen, Tue Jun 1 11:25:28 2021 +1000) * 47046ef5 - bump version to 0.8.6 (Ronald Holshausen, Sun May 30 18:52:34 2021 +1000) -# 0.8.5 - V4 features + updated Tokio to 1.0 +## 0.8.5 - V4 features + updated Tokio to 1.0 * 3a6945e - chore: Upgrade reqwest to 0.11 and hence tokio to 1.0 (Ronald Holshausen, Wed Jan 6 15:34:47 2021 +1100) * 9eb107a - Revert "Revert "chore: bump version to 0.0.1"" (Ronald Holshausen, Tue Jan 5 17:25:37 2021 +1100) @@ -504,7 +504,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c9e0694 - Revert "Revert "bump version to 0.8.5"" (Ronald Holshausen, Tue Jan 5 15:37:25 2021 +1100) * 1a4b9a5 - chore: correct the pact_verifier_cli windows release script (Ronald Holshausen, Tue Jan 5 15:36:58 2021 +1100) -# 0.8.4 - TLS support + FFI support +## 0.8.4 - TLS support + FFI support * 41096dc - chore: update release scripts for pact_verifier_cli DLLs (Ronald Holshausen, Tue Jan 5 14:34:55 2021 +1100) * ef76f38 - chore: cleanup compiler warnings (Ronald Holshausen, Tue Jan 5 10:10:39 2021 +1100) @@ -517,11 +517,11 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * c71c78d - wip: add verifier FFI bindings (Matt Fellows, Tue Dec 1 07:04:48 2020 +1100) * a480e76 - bump version to 0.8.4 (Matt Fellows, Tue Nov 24 11:06:22 2020 +1100) -# 0.8.3 - Bugfix Release +## 0.8.3 - Bugfix Release * 280c066 - bump version to 0.8.3 (Matt Fellows, Wed Nov 11 13:30:12 2020 +1100) -# 0.8.2 - Support Pacts for Verification API +## 0.8.2 - Support Pacts for Verification API * 087fee2 - docs: update verifier docs with new pacts for verification properties (Matt Fellows, Wed Nov 11 10:16:57 2020 +1100) * e7f729d - wip: further cleanup, and obfuscate auth details (Matt Fellows, Tue Nov 10 13:56:02 2020 +1100) @@ -532,13 +532,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 6612a3a - wip: basic wiring in of the pacts for verification endpoint (Matt Fellows, Sat Nov 7 21:39:25 2020 +1100) * 33864a5 - bump version to 0.8.2 (Ronald Holshausen, Fri Oct 16 12:40:37 2020 +1100) -# 0.8.1 - arrayContains matcher + text/xml content type +## 0.8.1 - arrayContains matcher + text/xml content type * 7fbc731 - chore: bump minor version of matching lib (Ronald Holshausen, Fri Oct 9 10:42:33 2020 +1100) * c2fda15 - chore: update readme on verifying message pacts (Ronald Holshausen, Tue Sep 15 11:13:16 2020 +1000) * 0dbcda9 - bump version to 0.8.1 (Ronald Holshausen, Mon Sep 14 17:34:25 2020 +1000) -# 0.8.0 - Supports verifying Message Pacts +## 0.8.0 - Supports verifying Message Pacts * ef5f88c - chore: bump minor version of the pact_verifier crate (Ronald Holshausen, Mon Sep 14 17:13:45 2020 +1000) * 2d44ffd - chore: bump minor version of the matching crate (Ronald Holshausen, Mon Sep 14 12:06:37 2020 +1000) @@ -546,13 +546,13 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 814c416 - refactor: added a trait for interactions, renamed Interaction to RequestResponseInteraction (Ronald Holshausen, Sun Sep 13 17:09:41 2020 +1000) * 77c8c8d - bump version to 0.7.2 (Ronald Holshausen, Sun Aug 23 17:19:24 2020 +1000) -# 0.7.1 - implemented provider state generator +## 0.7.1 - implemented provider state generator * b186ce9 - chore: update all dependent crates (Ronald Holshausen, Sun Aug 23 16:49:00 2020 +1000) * 61ca3d7 - chore: update matching crate to latest (Ronald Holshausen, Sun Aug 23 16:37:58 2020 +1000) * ed207a7 - chore: updated readmes for docs site (Ronald Holshausen, Sun Jun 28 10:04:09 2020 +1000) -# 0.7.0 - Updated XML Matching +## 0.7.0 - Updated XML Matching * 62b0bda - chore: update to latest matching library (Ronald Holshausen, Wed Jun 24 12:17:04 2020 +1000) * bea787c - chore: bump matching crate version to 0.6.0 (Ronald Holshausen, Sat May 23 17:56:04 2020 +1000) @@ -574,19 +574,19 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 9f3ad74 - fix: docker build now requires libclang system library (Ronald Holshausen, Fri Sep 27 17:14:05 2019 +1000) * 834a60b - bump version to 0.6.2 (Ronald Holshausen, Fri Sep 27 15:37:03 2019 +1000) -# 0.6.1 - Bugfix + Oniguruma crate for regex matching +## 0.6.1 - Bugfix + Oniguruma crate for regex matching * e32350e - chore: use the latest matching lib (Ronald Holshausen, Fri Sep 27 15:22:12 2019 +1000) * 0cc03db - bump version to 0.6.1 (Ronald Holshausen, Sun Sep 22 18:13:48 2019 +1000) -# 0.6.0 - Publishing verification results +## 0.6.0 - Publishing verification results * 0e1da1b - chore: bump minor version (Ronald Holshausen, Sun Sep 22 17:59:51 2019 +1000) * 2e07d77 - chore: set the version of the pact matching crate (Ronald Holshausen, Sun Sep 22 17:24:02 2019 +1000) * 1110b47 - feat: implemented publishing verification results to the pact broker #44 (Ronald Holshausen, Sun Sep 22 13:53:27 2019 +1000) * 7b5a404 - bump version to 0.5.2 (Ronald Holshausen, Sat Aug 24 13:00:10 2019 +1000) -# 0.5.1 - Use reqwest for better HTTP/S support, support headers with multiple values +## 0.5.1 - Use reqwest for better HTTP/S support, support headers with multiple values * f79b033 - chore: update terminal support in release scripts (Ronald Holshausen, Sat Aug 24 12:25:28 2019 +1000) * b8019ba - chore: bump the version of the matching lib (Ronald Holshausen, Sat Aug 24 12:22:35 2019 +1000) @@ -596,7 +596,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 0dd10e6 - fix: docker release script (Ronald Holshausen, Sat Jul 27 18:02:11 2019 +1000) * aa336e6 - bump version to 0.5.1 (Ronald Holshausen, Sat Jul 27 17:48:41 2019 +1000) -# 0.5.0 - Upgrade to non-blocking Hyper 0.12 +## 0.5.0 - Upgrade to non-blocking Hyper 0.12 * d842100 - chore: bump component versions to 0.5.0 (Ronald Holshausen, Sat Jul 27 15:44:51 2019 +1000) * 47ab6d0 - Upgrade tokio to 0.1.22 everywhere (Audun Halland, Mon Jul 22 23:47:09 2019 +0200) @@ -609,7 +609,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 4b8fb64 - fix: verification CLI was reporting incorrect pact specification version (Ronald Holshausen, Sun Apr 8 13:12:45 2018 +1000) * fb8ecf5 - bump version to 0.4.1 (Ronald Holshausen, Sat Apr 7 15:23:33 2018 +1000) -# 0.4.0 - First V3 specification release +## 0.4.0 - First V3 specification release * 6597141 - WIP - start of implementation of applying generators to the bodies (Ronald Holshausen, Sun Mar 4 17:01:11 2018 +1100) * f63f339 - replaced use of try macro with ? (Ronald Holshausen, Tue Nov 7 16:31:39 2017 +1100) @@ -627,7 +627,7 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * 49e45f7 - Merge branch 'master' into v3-spec (Ronald Holshausen, Sun Oct 23 10:10:40 2016 +1100) * 539eb48 - updated all the readmes and cargo manefests for v3 (Ronald Holshausen, Tue Jul 19 15:46:18 2016 +1000) -# 0.3.0 - Backported matching rules from V3 branch +## 0.3.0 - Backported matching rules from V3 branch * b2ad496 - Updated the verifier cli dep modules (Ronald Holshausen, Fri Nov 3 15:14:57 2017 +1100) * ac94388 - Tests are now all passing #20 (Ronald Holshausen, Thu Oct 19 15:14:25 2017 +1100) @@ -638,18 +638,18 @@ To generate the log, run `git log --pretty='* %h - %s (%an, %ad)' TAGNAME..HEAD * a59fb98 - Migrate remaining pact modules over to serde (Anthony Damtsis, Mon May 15 16:59:04 2017 +1000) * d5e6ce0 - bump version to 0.2.1 (Ronald Holshausen, Sun Oct 9 17:20:25 2016 +1100) -# 0.2.0 - V2 specification implementation +## 0.2.0 - V2 specification implementation * 38027f8 - updated the pact_verifier_cli to V2 (Ronald Holshausen, Sun Oct 9 17:12:35 2016 +1100) * 770010a - update projects to use the published pact matching lib (Ronald Holshausen, Sun Oct 9 16:25:15 2016 +1100) * 574e072 - upadte versions for V2 branch and fix an issue with loading JSON bodies encoded as a string (Ronald Holshausen, Sun Oct 9 15:31:57 2016 +1100) * b0bebb7 - bump version to 0.1.1 (Ronald Holshausen, Sun Oct 9 11:27:41 2016 +1100) -# 0.1.0 - V1.1 specification implementation +## 0.1.0 - V1.1 specification implementation * ea1ef54 - Updated dependencies and version for release of pact_verifier_cli (Ronald Holshausen, Sun Oct 9 10:56:34 2016 +1100) * 1f3f3f1 - correct the versions of the inter-dependent projects as they were causing the build to fail (Ronald Holshausen, Sat Oct 8 17:41:57 2016 +1100) * a46dabb - update all references to V1 spec after merge (Ronald Holshausen, Sat Oct 8 16:20:51 2016 +1100) * b6df52f - bump version to 0.0.1 (Ronald Holshausen, Tue Sep 27 22:27:26 2016 +1000) -# 0.0.0 - First Release +## 0.0.0 - First Release diff --git a/rust/pact_verifier_cli/Cargo.toml b/rust/pact_verifier_cli/Cargo.toml index 524ad8d35..98a34b640 100644 --- a/rust/pact_verifier_cli/Cargo.toml +++ b/rust/pact_verifier_cli/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "pact_verifier_cli" -version = "1.3.6" +version = "1.3.5" authors = ["Ronald Holshausen <ronald.holshausen@gmail.com>"] edition = "2024" description = "Standalone pact verifier for provider pact verification" homepage = "https://www.pact.io" -repository = "https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_verifier_cli" +repository = "https://github.com/pact-foundation/pact-reference" readme = "README.md" keywords = ["testing", "pact", "cdc"] license = "MIT" @@ -53,3 +53,6 @@ insta = "1.43.1" rstest = "0.24.0" tempfile = "3.20.0" trycmd = "0.15.9" + +[package.metadata.dist] +dist = true diff --git a/rust/pact_verifier_cli/Dockerfile b/rust/pact_verifier_cli/Dockerfile index 35fe4aee4..3625ab5f2 100644 --- a/rust/pact_verifier_cli/Dockerfile +++ b/rust/pact_verifier_cli/Dockerfile @@ -1,17 +1,19 @@ -ARG ARCH= -FROM rust:1-alpine3.21 AS builder -ARG BIN_ARCH=x86_64 -ARG VERSION=1.1.1 - -RUN wget -O pact-verifier.gz https://github.com/pact-foundation/pact-reference/releases/download/pact_verifier_cli-v${VERSION}/pact-verifier-linux-${BIN_ARCH}.gz -RUN gunzip pact-verifier.gz -RUN chmod +x pact-verifier - -# Now, we need to build our _real_ Docker container, copying in the executable. -FROM alpine:3.21 -RUN apk --no-cache add ca-certificates -COPY --from=builder \ - /pact-verifier \ - /usr/local/bin/ +# Packages the static musl pact-verifier from a dist release. No step runs +# on the target platform, so a multi-platform build needs no emulation. +FROM --platform=$BUILDPLATFORM alpine:3.22 AS fetch +ARG VERSION +ARG TARGETARCH +RUN apk add --no-cache ca-certificates curl xz +RUN case "$TARGETARCH" in \ + amd64) target=x86_64-unknown-linux-musl ;; \ + arm64) target=aarch64-unknown-linux-musl ;; \ + *) echo "unsupported architecture: $TARGETARCH" >&2; exit 1 ;; \ + esac \ + && curl -fsSL "https://github.com/pact-foundation/pact-reference/releases/download/pact_verifier_cli-v${VERSION}/pact_verifier_cli-${target}.tar.xz" \ + | tar xJ --strip-components=1 \ + && install -m 0755 pact-verifier /pact-verifier +FROM alpine:3.22 +COPY --from=fetch /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt +COPY --from=fetch /pact-verifier /usr/local/bin/pact-verifier ENTRYPOINT ["/usr/local/bin/pact-verifier"] diff --git a/rust/pact_verifier_cli/release-docker.sh b/rust/pact_verifier_cli/release-docker.sh deleted file mode 100755 index 3983ccaa0..000000000 --- a/rust/pact_verifier_cli/release-docker.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -set -e - -if [ "" = "$1" ]; then - echo "Usage: " - echo " ./release-docker.sh version" - exit 1 -fi - -# AMD64 -docker build . -t pactfoundation/pact-verifier:$1-amd64 --platform linux/amd64 \ - --build-arg ARCH=amd64/ --build-arg BIN_ARCH=x86_64 --build-arg VERSION=$1 -docker push pactfoundation/pact-verifier:$1-amd64 - -# ARM64V8 -docker build . -t pactfoundation/pact-verifier:$1-arm64v8 --platform linux/arm64 \ - --build-arg ARCH=arm64v8/ --build-arg BIN_ARCH=aarch64 --build-arg VERSION=$1 -docker push pactfoundation/pact-verifier:$1-arm64v8 - -# Create Manifest -docker manifest create pactfoundation/pact-verifier:$1 \ - --amend pactfoundation/pact-verifier:$1-amd64 \ - --amend pactfoundation/pact-verifier:$1-arm64v8 -docker manifest push pactfoundation/pact-verifier:$1 -docker manifest create pactfoundation/pact-verifier:latest \ - --amend pactfoundation/pact-verifier:$1-amd64 \ - --amend pactfoundation/pact-verifier:$1-arm64v8 -docker manifest push pactfoundation/pact-verifier:latest - -# publish to ghcr, pactfoundation must be renamed to pact-foundation -docker tag pactfoundation/pact-verifier:$1-amd64 ghcr.io/pact-foundation/pact-verifier:$1-amd64 -docker push ghcr.io/pact-foundation/pact-verifier:$1-amd64 -docker tag pactfoundation/pact-verifier:$1-arm64v8 ghcr.io/pact-foundation/pact-verifier:$1-arm64v8 -docker push ghcr.io/pact-foundation/pact-verifier:$1-arm64v8 -docker manifest create ghcr.io/pact-foundation/pact-verifier:$1 \ - --amend ghcr.io/pact-foundation/pact-verifier:$1-amd64 \ - --amend ghcr.io/pact-foundation/pact-verifier:$1-arm64v8 -docker manifest push ghcr.io/pact-foundation/pact-verifier:$1 -docker manifest create ghcr.io/pact-foundation/pact-verifier:latest \ - --amend ghcr.io/pact-foundation/pact-verifier:$1-amd64 \ - --amend ghcr.io/pact-foundation/pact-verifier:$1-arm64v8 -docker manifest push ghcr.io/pact-foundation/pact-verifier:latest \ No newline at end of file diff --git a/rust/pact_verifier_cli/release-linux.sh b/rust/pact_verifier_cli/release-linux.sh deleted file mode 100755 index 4972e50fb..000000000 --- a/rust/pact_verifier_cli/release-linux.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/bin/bash - -set -e -set -x - -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -APP_NAME=pact-verifier - -source "$RUST_DIR/scripts/gzip-and-sum.sh" -ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"} -mkdir -p "$ARTIFACTS_DIR" - -CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"} - -# All flags passed to this script are passed to cargo. -case $1 in -x86_64-unknown-linux-musl) - TARGET=$1 - shift - ;; -aarch64-unknown-linux-musl) - TARGET=$1 - shift - ;; -x86_64-unknown-linux-gnu) - echo build x86_64-unknown-linux-musl target for musl/glibc compat bins - exit 0 - ;; -aarch64-unknown-linux-gnu) - echo build aarch64-unknown-linux-musl target for musl/glibc compat bins - exit 0 - ;; -*) ;; -esac -cargo_flags=("$@") - -clean_cargo_release_build() { - rm -rf $CARGO_TARGET_DIR/release/build -} - -build_target() { - TARGET=$1 - cross build --target $TARGET "${cargo_flags[@]}" - - case $TARGET in - x86_64-unknown-linux-musl) - FILE_SUFFIX=linux-x86_64 - ;; - aarch64-unknown-linux-musl) - FILE_SUFFIX=linux-aarch64 - ;; - *) - echo unknown target $TARGET - exit 1 - ;; - esac - - if [[ "${cargo_flags[*]}" =~ "--release" ]]; then - file "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME" - du -sh "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME" - gzip_and_sum "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME" \ - "$ARTIFACTS_DIR/$APP_NAME-$FILE_SUFFIX.gz" - fi -} - -install_cross() { - cargo install cross@0.2.5 --force -} -install_cross_latest() { - cargo install cross --git https://github.com/cross-rs/cross --force -} - -install_cross -if [ "$(uname -s)" == "Darwin" ]; then - install_cross_latest -fi - -if [ ! -z "$TARGET" ]; then - echo building for target $TARGET - build_target $TARGET -else - echo building for all targets - clean_cargo_release_build - build_target x86_64-unknown-linux-musl - clean_cargo_release_build - build_target aarch64-unknown-linux-musl -fi diff --git a/rust/pact_verifier_cli/release-macos.sh b/rust/pact_verifier_cli/release-macos.sh deleted file mode 100755 index 268ab0017..000000000 --- a/rust/pact_verifier_cli/release-macos.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash - -set -e -set -x - -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -APP_NAME=pact-verifier - -source "$RUST_DIR/scripts/gzip-and-sum.sh" -ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"} -mkdir -p "$ARTIFACTS_DIR" -export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"} - -# We target the oldest supported version of macOS. -export MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET:-12} - -# All flags passed to this script are passed to cargo. -case $1 in -x86_64-apple-darwin) - TARGET=$1 - shift - ;; -aarch64-apple-darwin) - TARGET=$1 - shift - ;; -*) ;; -esac -cargo_flags=("$@") - -build_target() { - TARGET=$1 - cargo build --target $TARGET "${cargo_flags[@]}" - - case $TARGET in - x86_64-apple-darwin) - ARCH_SUFFIX=x86_64 - ;; - aarch64-apple-darwin) - ARCH_SUFFIX=aarch64 - ;; - *) - echo unknown target $TARGET - exit 1 - ;; - esac - - if [[ "${cargo_flags[*]}" =~ "--release" ]]; then - file "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME" - du -sh "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME" - gzip_and_sum "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME" \ - "$ARTIFACTS_DIR/$APP_NAME-macos-$ARCH_SUFFIX.gz" - fi -} - -if [ ! -z "$TARGET" ]; then - echo building for target $TARGET - build_target $TARGET -else - echo building for all targets - build_target x86_64-apple-darwin - build_target aarch64-apple-darwin -fi diff --git a/rust/pact_verifier_cli/release-win.sh b/rust/pact_verifier_cli/release-win.sh deleted file mode 100755 index 8010e8ed2..000000000 --- a/rust/pact_verifier_cli/release-win.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash - -set -e -set -x - -RUST_DIR="$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -APP_NAME=pact-verifier - -source "$RUST_DIR/scripts/gzip-and-sum.sh" -ARTIFACTS_DIR=${ARTIFACTS_DIR:-"$RUST_DIR/release_artifacts"} -mkdir -p "$ARTIFACTS_DIR" -export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$RUST_DIR/target"} - -# All flags passed to this script are passed to cargo. -case $1 in -x86_64-pc-windows-msvc) - TARGET=$1 - shift - ;; -aarch64-pc-windows-msvc) - TARGET=$1 - shift - ;; -*) ;; -esac -cargo_flags=("$@") - -build_target() { - TARGET=$1 - - case $TARGET in - x86_64-pc-windows-msvc) - FILE_SUFFIX=windows-x86_64 - ;; - aarch64-pc-windows-msvc) - FILE_SUFFIX=windows-aarch64 - ;; - *) - echo unknown target $TARGET - exit 1 - ;; - esac - cargo build --target $TARGET "${cargo_flags[@]}" - - if [[ "${cargo_flags[*]}" =~ "--release" ]]; then - gzip_and_sum \ - "$CARGO_TARGET_DIR/$TARGET/release/$APP_NAME.exe" \ - "$ARTIFACTS_DIR/$APP_NAME-$FILE_SUFFIX.exe.gz" - fi -} - -if [ ! -z "$TARGET" ]; then - echo building for target $TARGET - build_target $TARGET -else - echo building for all targets - build_target x86_64-pc-windows-msvc - build_target aarch64-pc-windows-msvc -fi diff --git a/rust/pact_verifier_cli/release.groovy b/rust/pact_verifier_cli/release.groovy deleted file mode 100755 index 87cc00bea..000000000 --- a/rust/pact_verifier_cli/release.groovy +++ /dev/null @@ -1,113 +0,0 @@ -#!/usr/bin/env groovy -@Grab(group = 'com.github.zafarkhaja', module = 'java-semver', version = '0.9.0') -import com.github.zafarkhaja.semver.Version - -def executeOnShell(String command, Closure closure = null) { - executeOnShell(command, new File(System.properties.'user.dir'), closure) -} - -def executeOnShell(String command, File workingDir, Closure closure = null) { - println command - def processBuilder = new ProcessBuilder(['sh', '-c', command]) - .directory(workingDir) - if (closure) { - processBuilder.redirectErrorStream(true) - } else { - processBuilder.inheritIO() - } - def process = processBuilder.start() - if (closure) { - process.inputStream.eachLine closure - } - process.waitFor() - if (process.exitValue() > 0) { - System.exit(process.exitValue()) - } -} - -void ask(String prompt, String defaultValue = 'Y', Closure cl) { - def promptValue = System.console().readLine(prompt + ' ').trim() - if (promptValue.empty) { - promptValue = defaultValue - } - if (promptValue.toUpperCase() == 'Y') { - cl.call() - } -} - -executeOnShell 'git pull' - -ask('Execute Build?: [Y]') { - executeOnShell 'cargo clean' - executeOnShell 'cargo build' - executeOnShell 'cargo test' -} - -def projectProps = new File('Cargo.toml').text -def versionMatch = projectProps =~ /(?m)version\s*=\s*"(.*)"/ -def version = versionMatch[0][1] - -def prevTag = 'git describe --abbrev=0 --tags --match=pact_verifier_cli-*'.execute().text.trim() -def changelog = [] -executeOnShell("git log --pretty='* %h - %s (%an, %ad)' ${prevTag}..HEAD .".toString()) { - println it - changelog << it -} - -def releaseDesc = System.console().readLine('Describe this release: [Bugfix Release]').trim() -if (releaseDesc.empty) { - releaseDesc = 'Bugfix Release' -} - -def releaseVer = System.console().readLine("What is the version for this release?: [$version]").trim() -if (releaseVer.empty) { - releaseVer = version -} - -ask('Update Changelog?: [Y]') { - def changeLogFile = new File('CHANGELOG.md') - def changeLogFileLines = changeLogFile.readLines() - changeLogFile.withPrintWriter() { p -> - p.println(changeLogFileLines[0]) - - p.println() - p.println("# $releaseVer - $releaseDesc") - p.println() - changelog.each { - p.println(it) - } - - changeLogFileLines[1..-1].each { - p.println(it) - } - } - - executeOnShell("git add CHANGELOG.md") - executeOnShell("git commit -m 'update changelog for release $releaseVer'") - executeOnShell("git status") - executeOnShell("git diff HEAD^..HEAD") -} - -ask('Tag and Push commits?: [Y]') { - executeOnShell 'git push' - executeOnShell("git tag pact_verifier_cli-v${releaseVer}") - executeOnShell 'git push --tags' -} - -ask('Publish library to crates.io?: [Y]') { - executeOnShell 'cargo package' - executeOnShell 'cargo publish' -} - -def nextVer = Version.valueOf(releaseVer).incrementPatchVersion() -ask("Bump version to $nextVer?: [Y]") { - executeOnShell "sed -i -e 's/^version = \"${releaseVer}\"/version = \"${nextVer}\"/' Cargo.toml" - executeOnShell("cargo update") - executeOnShell("git add Cargo.toml") - executeOnShell("git add ../Cargo.lock") - executeOnShell("git diff --cached") - ask("Commit and push this change?: [Y]") { - executeOnShell("git commit -m 'bump version to $nextVer'") - executeOnShell("git push") - } -} diff --git a/rust/release-plz.toml b/rust/release-plz.toml new file mode 100644 index 000000000..87a6e7e38 --- /dev/null +++ b/rust/release-plz.toml @@ -0,0 +1,75 @@ +# Release PRs are maintained per crate by .github/workflows/release-pr.yml. +# release-plz computes versions and changelogs against crates.io releases. +# .github/scripts/tag-releases.sh tags merged releases; dist and +# publish-crate.yml own building, publishing and GitHub releases. + +[workspace] +# Tags name the changelog compare links; tag-releases.sh creates them. +git_tag_enable = false +git_tag_name = "{{ package }}-v{{ version }}" +git_release_enable = false +publish = false +semver_check = true +changelog_update = true + +[changelog] +protect_breaking_commits = true +sort_commits = "oldest" +commit_preprocessors = [ + # Link PR numbers appended by GitHub's merge button. + { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/pact-foundation/pact-reference/pull/${2}))" }, +] +commit_parsers = [ + { message = '^(chore|fix)\(deps.*\)', skip = true }, + { message = '^chore(\([^)]*\))?: release', skip = true }, + { group = "<!-- 00 -->๐Ÿš€ Features", message = "^feat" }, + { group = "<!-- 01 -->๐Ÿ› Bug Fixes", message = "^fix" }, + { group = "<!-- 50 -->๐Ÿšœ Refactor", message = "^refactor" }, + { group = "<!-- 51 -->โšก๏ธ Performance", message = "^perf" }, + { group = "<!-- 60 -->๐Ÿ“š Documentation", message = "^docs" }, + { group = "<!-- 70 -->๐Ÿ—๏ธ Build and CI", message = "^(build|ci)" }, + { group = "<!-- 80 -->๐Ÿงช Testing", message = "^test" }, + { group = "<!-- 98 -->โ†ฉ๏ธ Revert", message = "^revert" }, + { group = "<!-- 99 -->๐Ÿ› ๏ธ Miscellaneous Tasks", message = "^chore" }, + { group = "<!-- 99 -->๐Ÿ“ฆ Other", message = ".*" }, +] +trim = true +header = """ +# Changelog + +""" +body = """ +## [{{ version | trim_start_matches(pat="v") }}]{% if release_link %}({{ release_link }}){% endif %} - _{{ timestamp | date(format="%Y-%m-%d") }}_ +{% for group, commits in commits | group_by(attribute="group") %} +### {{ group | striptags | trim | upper_first }} +{% for commit in commits %} +- {% if commit.scope -%}_({{ commit.scope }})_ {% endif -%} + {% if commit.breaking %}[**breaking**] {% endif -%} + {{ commit.message | upper_first }} +{% endfor -%} +{% endfor %} +""" + +[[package]] +name = "pact_models" +changelog_path = "pact_models/CHANGELOG.md" + +[[package]] +name = "pact_matching" +changelog_path = "pact_matching/CHANGELOG.md" + +[[package]] +name = "pact_consumer" +changelog_path = "pact_consumer/CHANGELOG.md" + +[[package]] +name = "pact_verifier" +changelog_path = "pact_verifier/CHANGELOG.md" + +[[package]] +name = "pact_verifier_cli" +changelog_path = "pact_verifier_cli/CHANGELOG.md" + +[[package]] +name = "pact_ffi" +changelog_path = "pact_ffi/CHANGELOG.md" diff --git a/rust/scripts/ci-musl-build.sh b/rust/scripts/ci-musl-build.sh deleted file mode 100755 index d1f015754..000000000 --- a/rust/scripts/ci-musl-build.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -set -ex - -rustc --print cfg -cargo build -cargo test diff --git a/rust/scripts/gzip-and-sum.sh b/rust/scripts/gzip-and-sum.sh deleted file mode 100644 index f7d34172a..000000000 --- a/rust/scripts/gzip-and-sum.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -# Gzip and sum a file. -# -# Usage: gzip_and_sum <orig_file> <target_file> [<digest_file>] -# -# - orig_file: the file to gzip and sum -# - target_file: the file to write the gzipped file to -# - digest_file: the file to write the digest to. If not provided, defaults to -# <target_file>.sha256 -gzip_and_sum() { - orig_file=$1 - target_file=$2 - digest_file=${3:-$target_file.sha256} - - gzip --stdout --best "$orig_file" > "$target_file" - openssl dgst -sha256 -r "$target_file" > "$digest_file" - basenamedir=$(basename $target_file) - if [[ "$(uname -s)" == "Darwin" ]]; then - # OSX requires an empty arg passed to -i, but this doesn't work on Lin/Win - sed -Ei '' "s|\*(.*)$|\*$basenamedir|" "$digest_file" - else - sed -Ei "s|\*(.*)$|\*$basenamedir|" "$digest_file" - fi -}