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
78d014bThanks @ofri-peretz! - contractdiff is 1.0. Its entries.,./core,./openapi,./openapi-typescriptand./testing, thecontractdiffbin and its commands, thecontractdiff.config.jsonandcontractdiff.map.jsonformats, theac-*finding codesdiffreports and its exit codes are now a semver contract: a changediffcalls 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-typescriptentry 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
4120b28Thanks @ofri-peretz! -binpaths are written the waynpm pkg fixwrites them (dist/bin.js, not./dist/bin.js), sonpm publishno longer warns that it auto-corrected the manifest.burgee initscaffolds"bin": { "<name>": "cli.mjs" }for the same reason. Every family package's manifest follows, and a lock keeps the leading./out. -
#1770
1a431f5Thanks @ofri-peretz! -propsreads 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
dc457f8Thanks @ofri-peretz! -propsreads 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
d718668Thanks @ofri-peretz! -diffreads an HTTP operation's security requirement: asking for credentials it did not, or other ones, isac-security-narrowed(breaking for a caller), and asking for less isac-security-widened. A renamed path parameter is now reported asac-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
d218e73Thanks @ofri-peretz! - First publish. apicontract is now contractdiff (the package, thecontractdiffcommand, thecontractdiff/testingimport, and thecontractdiff.config.jsonandcontractdiff.map.jsonfiles), 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
094be08Thanks @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;normaliseis 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
2144c80Thanks @ofri-peretz! -apicontract diffholds a change to the decision written in the contract. A breaking change needs anx-changeon the member (or an ancestor, or the operation) naming the decision; anx-changethat matches no change is stale; a member still present after itsx-sunsetis overdue; a decided breaking change must move the major version (a new/v4/path segment,info.version, or--changeset); andx-replaced-bymust 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|offand--today YYYY-MM-DD. The setting is also read fromdiff.decisionsinapicontract.config.json, and when the old side isgit:<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.--decisionswins over both.--decisionsdefaults towarnin this release: findings print and appear in SARIF atwarning, and the exit code does not change. From the next minor the default iserror; 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