From ea489f77f390de2935523f725808624ae267fa76 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 28 Aug 2026 00:18:31 +0000 Subject: [PATCH] fix(spec): correct the repository name in the changesets config and the spec README badge (#12488) Two places still named `objectstack-ai/spec`, which is not the repository this monorepo lives in: - `.changeset/config.json` -> `changelog[1].repo` - `packages/spec/README.md` -> the "Try Online" StackBlitz badge target `README.md` is in `@objectstack/spec`'s published `files`, so the badge ships to npm readers. The `repo` option currently has no reader: `@changesets/cli/changelog` re-exports `@changesets/changelog-git`, which never reads the options object that `@changesets/apply-release-plan` passes as `config.changelog[1]`. It acquires one the moment anyone swaps in `@changesets/changelog-github`. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01PfaSTikked61BkcsB5Rn69 --- .../changesets-repo-name-and-spec-badge.md | 32 +++++++++++++++++++ .changeset/config.json | 2 +- packages/spec/README.md | 2 +- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .changeset/changesets-repo-name-and-spec-badge.md diff --git a/.changeset/changesets-repo-name-and-spec-badge.md b/.changeset/changesets-repo-name-and-spec-badge.md new file mode 100644 index 0000000000..309e094839 --- /dev/null +++ b/.changeset/changesets-repo-name-and-spec-badge.md @@ -0,0 +1,32 @@ +--- +"@objectstack/spec": patch +--- + +fix(spec,repo): address the changesets `repo` option and the spec README's StackBlitz badge to `objectstack-ai/objectstack` (#12488) + +Two places still name `objectstack-ai/spec`, which is not the repository this +monorepo lives in: + +- `.changeset/config.json` — `changelog[1].repo` +- `packages/spec/README.md` — the "Try Online" StackBlitz badge target + +The README badge is the user-visible half. `README.md` is listed in this +package's `files`, so it ships in the npm tarball and every reader of +`@objectstack/spec` on npm gets a "Try Online" button addressed to a repository +that is not this one. The path the badge names — +`examples/app-todo/objectstack.config.ts` — exists here, so correcting the +owner/repo segment is the whole fix. + +The `.changeset/config.json` half is hygiene with a measured expiry date rather +than a bug that is firing. The configured generator `@changesets/cli/changelog` +re-exports `@changesets/changelog-git`, whose `getReleaseLine(changeset)` and +`getDependencyReleaseLine(changesets, dependenciesUpdated)` do not read the +third argument — the options object that `@changesets/apply-release-plan` +passes as `config.changelog[1]`. So `repo` has **no reader today**, and the +wrong value has never produced a wrong link in any CHANGELOG this repo has +generated. It acquires a reader the moment anyone swaps in +`@changesets/changelog-github` — which is the usual reason to touch that block +— and from then on every generated release line would link into the wrong +repository, with nothing in the diff looking wrong. + +No runtime behaviour changes. diff --git a/.changeset/config.json b/.changeset/config.json index 4d50b85b00..e88c868b77 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -3,7 +3,7 @@ "changelog": [ "@changesets/cli/changelog", { - "repo": "objectstack-ai/spec" + "repo": "objectstack-ai/objectstack" } ], "commit": false, diff --git a/packages/spec/README.md b/packages/spec/README.md index f149ad339e..0fe1f7d04a 100644 --- a/packages/spec/README.md +++ b/packages/spec/README.md @@ -1,6 +1,6 @@ # @objectstack/spec -[![Try Online](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/objectstack-ai/spec/tree/main/examples/app-todo?file=objectstack.config.ts) +[![Try Online](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/objectstack-ai/objectstack/tree/main/examples/app-todo?file=objectstack.config.ts) The **Source of Truth** for the ObjectStack Protocol. Contains strictly typed Zod schemas that define every aspect of the system.