<#1166 Deps/pact core 14.1.0> Pull request opened ...
# pact-js-development
g
#1166 Deps/pact core 14.1.0 Pull request opened by YOU54F • Updates to pact-js-core 14.1.0 • Updates to pact-js examples (audit fix, plus paths to run against local package) Issue found Unrelated to this upgrade but I've noted the following, demonstrated in this commit which passes CI. V4 Plugin provider verification test fails between pact-js 11.x (11.0.2) and 12.x (12.0.0) The difference being 11.x has
interactions[0].request.contents.encoded
as false The difference being 12.x has
interactions[0].request.contents.encoded
as base64 with
interactions[0].request.contents.content
being base64 encoded in 12.x 11.0.2
Copy code
{
  "consumer": {
    "name": "myconsumer"
  },
  "interactions": [
    {
      "description": "a MATT message",
      "key": "daf974126abe44c0",
      "pending": false,
      "request": {
        "contents": {
          "content": "MATThellotcpMATT",
          "contentType": "application/matt",
          "contentTypeHint": "DEFAULT",
          "encoded": false
        }
      },
      "response": [
        {
          "contents": {
            "content": "MATTtcpworldMATT",
            "contentType": "application/matt",
            "contentTypeHint": "DEFAULT",
            "encoded": false
          }
        }
      ],
      "transport": "matt",
      "type": "Synchronous/Messages"
    },
    {
      "description": "an HTTP request to /matt",
      "key": "b6c5b973534175ec",
      "pending": false,
      "providerStates": [
        {
          "name": "the Matt protocol exists"
        }
      ],
      "request": {
        "body": {
          "content": "MATThelloMATT",
          "contentType": "application/matt",
          "contentTypeHint": "DEFAULT",
          "encoded": false
        },
        "headers": {
          "content-type": [
            "application/matt"
          ]
        },
        "method": "POST",
        "path": "/matt"
      },
      "response": {
        "body": {
          "content": "MATTworldMATT",
          "contentType": "application/matt",
          "contentTypeHint": "DEFAULT",
          "encoded": false
        },
        "headers": {
          "content-type": [
            "application/matt"
          ]
        },
        "status": 200
      },
      "type": "Synchronous/HTTP"
    }
  ],
  "metadata": {
    "pact-js": {
      "version": "11.0.2"
    },
    "pactRust": {
      "ffi": "0.4.0",
      "mockserver": "0.9.8",
      "models": "1.0.4"
    },
    "pactSpecification": {
      "version": "4.0"
    },
    "plugins": [
      {
        "configuration": {},
        "name": "matt",
        "version": "0.0.7"
      }
    ]
  },
  "provider": {
    "name": "myprovider"
  }
}
Copy code
{
  "consumer": {
    "name": "myconsumer"
  },
  "interactions": [
    {
      "description": "a MATT message",
      "pending": false,
      "request": {
        "contents": {
          "content": "TUFUVGhlbGxvdGNwTUFUVA==",
          "contentType": "application/matt",
          "contentTypeHint": "DEFAULT",
          "encoded": "base64"
        }
      },
      "response": [
        {
          "contents": {
            "content": "TUFUVHRjcHdvcmxkTUFUVA==",
            "contentType": "application/matt",
            "contentTypeHint": "DEFAULT",
            "encoded": "base64"
          }
        }
      ],
      "transport": "matt",
      "type": "Synchronous/Messages"
    },
    {
      "description": "an HTTP request to /matt",
      "pending": false,
      "providerStates": [
        {
          "name": "the Matt protocol exists"
        }
      ],
      "request": {
        "body": {
          "content": "TUFUVGhlbGxvTUFUVA==",
          "contentType": "application/matt",
          "contentTypeHint": "DEFAULT",
          "encoded": "base64"
        },
        "headers": {
          "content-type": [
            "application/matt"
          ]
        },
        "method": "POST",
        "path": "/matt"
      },
      "response": {
        "body": {
          "content": "TUFUVHdvcmxkTUFUVA==",
          "contentType": "application/matt",
          "contentTypeHint": "DEFAULT",
          "encoded": "base64"
        },
        "headers": {
          "content-type": [
            "application/matt"
          ]
        },
        "status": 200
      },
      "type": "Synchronous/HTTP"
    }
  ],
  "metadata": {
    "pact-js": {
      "version": "12.0.0"
    },
    "pactRust": {
      "ffi": "0.4.12",
      "mockserver": "1.2.4",
      "models": "1.1.14"
    },
    "pactSpecification": {
      "version": "4.0"
    },
    "plugins": [
      {
        "configuration": {},
        "name": "matt",
        "version": "0.0.7"
      }
    ]
  },
  "provider": {
    "name": "myprovider"
  }
}
pact-foundation/pact-js GitHub Actions: build-and-test (20.x, ubuntu-latest) GitHub Actions: build-and-test (20.x, macos-latest) GitHub Actions: build-and-test (18.x, ubuntu-latest) GitHub Actions: build-and-test (18.x, macos-latest) GitHub Actions: build-and-test (16.x, ubuntu-latest) GitHub Actions: build-and-test (20.x, ubuntu-latest) GitHub Actions: build-and-test (16.x, macos-latest) GitHub Actions: build-and-test (20.x, macos-latest) GitHub Actions: build-and-test (18.x, ubuntu-latest) Cirrus CI: Task Summary Cirrus CI: Task Summary Cirrus CI: Task Summary Cirrus CI: Task Summary Cirrus CI: Task Summary GitHub Actions: build-and-test (18.x, macos-latest) Cirrus CI: Task Summary GitHub Actions: build-and-test (16.x, ubuntu-latest) GitHub Actions: build-and-test (16.x, macos-latest) ✅ 7 other checks have passed 7/25 successful checks