contractdiff

Changelog

Every release of contractdiff, newest first, from its CHANGELOG.md — what changed and the pull request it came from.

1.0.0

Major Changes

  • #1798 78d014b Thanks @ofri-peretz! - contractdiff is 1.0. Its entries ., ./core, ./openapi, ./openapi-typescript and ./testing, the contractdiff bin and its commands, the contractdiff.config.json and contractdiff.map.json formats, the ac-* finding codes diff reports and its exit codes are now a semver contract: a change diff calls breaking today stays breaking on every 1.x. Nothing changed in the code; the evidence is D-20261124-verification-family-1-0, which also states what the ./openapi-typescript entry does not do, measured on openapi-typescript's own suite.

Patch Changes

  • Updated dependencies [78d014b]:
    • truefit@1.0.0

0.4.2

Patch Changes

  • #1768 4120b28 Thanks @ofri-peretz! - bin paths are written the way npm pkg fix writes them (dist/bin.js, not ./dist/bin.js), so npm publish no longer warns that it auto-corrected the manifest. burgee init scaffolds "bin": { "<name>": "cli.mjs" } for the same reason. Every family package's manifest follows, and a lock keeps the leading ./ out.

  • #1770 1a431f5 Thanks @ofri-peretz! - props reads a payload on its own when one of its $refs points inside it (such as #/properties/b), as it did before definitions were shared; only references to the contract's definitions go through the shared reader.

  • Updated dependencies [4120b28]:

    • burgee@2.2.1

0.4.1

Patch Changes

  • #1767 dc457f8 Thanks @ofri-peretz! - props reads a contract's definitions once for every payload, not once for each, and no longer copies the run's reported keywords on every draw: on the Stripe description, the start-up before the first value fell from 36 s to 1.5 s, with the same report.
  • Updated dependencies [dc457f8]:
    • loadline@0.2.0

0.4.0

Minor Changes

  • #1765 d718668 Thanks @ofri-peretz! - diff reads an HTTP operation's security requirement: asking for credentials it did not, or other ones, is ac-security-narrowed (breaking for a caller), and asking for less is ac-security-widened. A renamed path parameter is now reported as ac-path-parameter-renamed, dangerous: the URL is the same, but a client generated from the old contract passes it by name.

0.3.0

Minor Changes

  • #1751 d218e73 Thanks @ofri-peretz! - First publish. apicontract is now contractdiff (the package, the contractdiff command, the contractdiff/testing import, and the contractdiff.config.json and contractdiff.map.json files), and the validator is now loadline (import { check } from 'loadline'). Both are public, with a README, a mark and their place in the family.

Patch Changes

  • Updated dependencies [d218e73]:
    • loadline@0.1.0

0.2.0

Minor Changes

  • #1732 094be08 Thanks @ofri-peretz! - apicontract props <contract>: property tests drawn from the contract, with no server. Values are made from each payload's JSON Schema by a generator written apart from the validator, and four properties are checked: the validator accepts every value made and refuses each with one constraint broken, at the place broken; values survive JSON and back; normalise is idempotent and accepts what the schema accepts; and, with --against <old>, every payload the classifier calls compatible passes the receiver for any value the sender may send. Runs replay from the printed --seed, counterexamples are shrunk, keywords the generator does not hold to are reported, and --emit <file> writes fast-check arbitraries for a consumer's own tests.

Patch Changes

0.1.0

Minor Changes

  • #1707 2144c80 Thanks @ofri-peretz! - apicontract diff holds a change to the decision written in the contract. A breaking change needs an x-change on the member (or an ancestor, or the operation) naming the decision; an x-change that matches no change is stale; a member still present after its x-sunset is overdue; a decided breaking change must move the major version (a new /v4/ path segment, info.version, or --changeset); and x-replaced-by must name a member of the new contract. Misspelled (x-chnage), misplaced and invalid markers are reported too. The markers are read, never diffed, so no existing verdict changes.

    New flags: --decisions warn|error|off and --today YYYY-MM-DD. The setting is also read from diff.decisions in apicontract.config.json, and when the old side is git:<ref>:<path> the config at that ref wins over the working tree's, so a change cannot turn off the check it is judged by. --decisions wins over both.

    --decisions defaults to warn in this release: findings print and appear in SARIF at warning, and the exit code does not change. From the next minor the default is error; set --decisions off (or "diff": { "decisions": "off" }) to opt out.

0.0.2

Patch Changes

  • Updated dependencies [7167140]:
    • validator@0.0.1

0.0.1

Patch Changes

  • Updated dependencies [5054fb7]:
    • burgee@2.0.0

On this page