Skip to content
8 changes: 5 additions & 3 deletions cmd/new-plugin/formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ var {{.Ident}} = catalog.Commands{
"{{.File}}-new.json": "[{\"name\": \"kept.json\", \"type\": \"file\"}]\n",
"{{.File}}-placeholder.json": "{\"PLACEHOLDER\": {\"summary\": \"a placeholder\"}}\n",
},
dropFile: "[{\"name\": \"placeholder.json\", \"type\": \"file\"}, {\"name\": \"kept.json\", \"type\": \"file\"}, {\"name\": \"added.json\", \"type\": \"file\"}]\n",
// A release with the same catalog (an added file would be an added event).
dropFile: "[{\"name\": \"placeholder.json\", \"type\": \"file\"}, {\"name\": \"kept.json\", \"type\": \"file\"}]\n",
source: "{{.File}}-new.json",
ingest: `// The two releases the saved listings are at.
// ` + todo + `: the real tags, oldest first.
Expand Down Expand Up @@ -676,8 +677,9 @@ var {{.Ident}} = apisurface.NPMPackage("{{.ID}}", "{{.NPM}}")
"{{.File}}-old.d.ts": "// ` + todo + `: a placeholder for the older release's declarations. Save the real release's tarball instead (see kinds/apisurface/apisurfacetest).\nexport declare function placeholder(a: string, b?: number): void;\n",
"{{.File}}-new.d.ts": "// ` + todo + `: a placeholder for the newer release's declarations: b is no longer optional, one event.\nexport declare function placeholder(a: string, b: number): void;\n",
},
// The drop test's newer release: the older one again, a name added.
dropFile: "// ` + todo + `: a placeholder: a release that only adds.\nexport declare function placeholder(a: string, b?: number): void;\nexport declare function added(): void;\n",
// The drop test's newer release: the older one again, only its
// comments changed (an added name would be an added event).
dropFile: "// ` + todo + `: a placeholder: a release that only changes its comments.\n/** Does the placeholder thing. */\nexport declare function placeholder(a: string, b?: number): void;\n",
source: "{{.File}}-new.d.ts",
ingest: `// {{.Lower}}Ingest compares two releases: 1.0.0, a tarball holding
// testdata/{{.File}}-old.d.ts as index.d.ts, and 1.1.0, one holding file.
Expand Down
9 changes: 3 additions & 6 deletions contract/fixtures/change-events-anthropic-sdk-1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"api": "anthropic/python-sdk",
"version": "1.0.0",
"previous_version": "0.125.0",
"change_type": "breaking",
"breaking": true,
"change": "breaking",
"subject": {
"type": "package_release",
"ecosystem": "pypi",
Expand All @@ -34,8 +33,7 @@
"api": "anthropic/python-sdk",
"version": "1.0.0",
"previous_version": "0.125.0",
"change_type": "breaking",
"breaking": true,
"change": "breaking",
"subject": {
"type": "package_release",
"ecosystem": "pypi",
Expand All @@ -61,8 +59,7 @@
"api": "anthropic/python-sdk",
"version": "1.0.0",
"previous_version": "0.125.0",
"change_type": "breaking",
"breaking": true,
"change": "breaking",
"subject": {
"type": "package_release",
"ecosystem": "pypi",
Expand Down
5 changes: 2 additions & 3 deletions contract/fixtures/change-events-kill-switch-on.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
"changes": [
{
"id": 1,
"fingerprint": "sha256:b80b422dc153e762589cd233758c2d20abe7cc27778fe447916588f8eb144c82",
"fingerprint": "sha256:4c9f5f426d3615498ca05668f0a05225ba562d3c2771b4946bf9afecbe2d9b31",
"api": "stripe/api",
"version": "2026-08-26.dahlia",
"previous_version": "2026-07-29.dahlia",
"change_type": "new_feature",
"breaking": false,
"change": "added",
"subject": {
"type": "api_operation",
"kind": "operation",
Expand Down
Loading
Loading