diff --git a/.agents/skills/writing-changesets/SKILL.md b/.agents/skills/writing-changesets/SKILL.md index bcc9f8d5..b804ee00 100644 --- a/.agents/skills/writing-changesets/SKILL.md +++ b/.agents/skills/writing-changesets/SKILL.md @@ -32,6 +32,8 @@ Choose the bump using this repo's release guidance: - `patch` for compatible fixes. - `minor` for new, additive API capabilities. - `major` for incompatible API changes. +- Apply the pre-1.0 rule to each package on its own: if that package is below 1.0.0, mark its breaking changes `minor`, not `major` (`major` would release 1.0.0). Describe the breaking change in the entry. +- When `@hypercerts-org/happyview-modules` reaches 1.0.0, release `@hypercerts-org/api` as 1.0.0 too. Do not target the endpoint-explorer package or invent additional package entries. Use a descriptive kebab-case filename in `.changeset/`. diff --git a/.changeset/README.md b/.changeset/README.md index 2d83b0ab..29d3727d 100644 --- a/.changeset/README.md +++ b/.changeset/README.md @@ -11,7 +11,7 @@ Add a Changeset when a pull request changes what either package ships. Run: pnpm changeset ``` -and select each package the pull request changes. Use `patch` for compatible fixes, `minor` for additive capabilities, and `major` for incompatible changes. +and select each package the pull request changes. Use `patch` for compatible fixes, `minor` for additive capabilities, and `major` for incompatible changes. Apply the pre-1.0 rule to each package on its own: if that package is below 1.0.0, mark its breaking changes `minor`, not `major` (`major` would release 1.0.0), and describe the breaking change in the entry. When `@hypercerts-org/happyview-modules` reaches 1.0.0, release `@hypercerts-org/api` as 1.0.0 too. - For `@hypercerts-org/happyview-modules`, write release notes for endpoint or schema additions, compatible behavior changes, fixes, breaking changes, and installer or configuration changes that operators need to know about. - For `@hypercerts-org/api`, write release notes for client-visible changes: new or changed queries, parameters and types, and the `@hypercerts-org/lexicon` version it builds on. An API change that touches both the modules and the generated client gets an entry for each package. diff --git a/.changeset/undo-accidental-1-0.md b/.changeset/undo-accidental-1-0.md new file mode 100644 index 00000000..8293d090 --- /dev/null +++ b/.changeset/undo-accidental-1-0.md @@ -0,0 +1,10 @@ +--- +"@hypercerts-org/api": minor +--- + +Version 1.0.0 was published by mistake. This release replaces it and continues from 0.5.0. Use 0.6.0 and do not use 1.0.0. It includes everything 1.0.0 contained: + +- [#103](https://github.com/hypercerts-org/api/pull/103): Added DID-only `app.certified.actor.getActor` and `getActors` queries. **Breaking:** replace `app.certified.actor.getOrganization.OrganizationActorView` with `org.hypercerts.api.defs.ActorView`, and import `LocationRecordView` from the same shared namespace. Narrow `actor.organization` before accessing it: the shared TypeScript type allows null even though existing organization queries keep their response shapes. +- [#98](https://github.com/hypercerts-org/api/pull/98): Activity and collection lists can optionally return an exact total for records matching the supplied filters. Set `includeTotal=true` to receive `totalCount`, counted before cursor and page limit, including on empty pages. +- [#101](https://github.com/hypercerts-org/api/pull/101): Set `includeTotal=true` on `org.hypercerts.funding.listReceipts` to get `totalCount`: the number of matching indexed receipts before pagination, even on an empty page. Omit the flag or set it to `false` to skip counting. +- [#106](https://github.com/hypercerts-org/api/pull/106): `app.certified.actor.getProfile` now resolves handles through `https://slingshot.microcosm.blue` when the HappyView script variable `HYPERCERTS_HANDLE_RESOLVER_URL` is unset. A valid value still overrides it; an invalid value still fails with `HandleResolverConfigError`. `pnpm install:api` no longer prompts for, reads or creates that variable, so it does not need `script-variables:*` permissions; existing values are kept. Operators who relied on the installer to set it must set it in HappyView directly. diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index 6f797755..904c7405 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/CHANGELOG.md @@ -1,8 +1,8 @@ # @hypercerts-org/api -## 1.0.0 +## 1.0.0 (published by mistake; superseded by 0.6.0) -### Major Changes +### Major Changes (breaking, but released as part of 0.6.0) - [#103](https://github.com/hypercerts-org/api/pull/103) [`f1cf4ab`](https://github.com/hypercerts-org/api/commit/f1cf4abf4853d3a12862c3c1cfaf05fded7df375) Thanks [@Kzoeps](https://github.com/Kzoeps)! - Added DID-only `app.certified.actor.getActor` and `getActors` queries. diff --git a/packages/api/package.json b/packages/api/package.json index 5996c2f1..13844dde 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@hypercerts-org/api", - "version": "1.0.0", + "version": "0.5.0", "description": "TypeScript query definitions and types for the Hypercerts API, for use with @atproto/lex", "license": "MIT OR Apache-2.0", "repository": {