# Changelog

Changes to Hatch's public API, release by release: the `@hatchmd/*` npm packages, the vault format, the server's HTTP API and the plugin API ([stability.md](https://hatch-docs.pages.dev/building-on-hatch/versions-and-stability/) says what each covers). Each release lists, where it has any: Breaking, Deprecated, Added, Fixed.

Add to "Unreleased" in the same pull request as the change. On release, it becomes the new version's heading (see [npm.md](https://hatch-docs.pages.dev/building-on-hatch/publishing-to-npm/)).

## Unreleased

### Added

- Docs sites: Publish warns about links to a section a page doesn't have (`[[Guide#Setup]]`).
- `@hatch/openapi`: reads an OpenAPI 3 or Swagger 2 spec (JSON or YAML) and writes API reference pages as Markdown, with code samples in seven languages.
- Site setting `openapi`: docs sites build an API reference from a spec in the vault on every build ([docs-sites.md](https://hatch-docs.pages.dev/publishing/docs-sites/#api-reference-from-an-openapi-spec)).
- `packages/<name>/api.md`: each published package's public API, written by `scripts/api-report.ts` and checked before every push.
- Docs sites: a page asked for with `Accept: text/markdown` on a Hatch server answers with its Markdown, each top-level folder gets its own `llms-full.txt`, `llms.txt` lists pages by folder in sidebar order, and each page's head links its `.md` copy.
- `scripts/registry-install.ts`: installs every shadcn item into a new app with the pinned shadcn CLI and type-checks it against the published packages.
- `@hatchmd/blocks`: components can say `part: toc`, `posts` or `pager` (`SITE_PARTS`, `isSitePart`, `partProblem`), and `DrawContext.pageAnchors` keeps a component's `#heading` links pointing at the page.
- `@hatchmd/publish`: site building blocks. `style.toc` (`side`, `inline`, `float`, `rail`), post lists `columns` and `grid`, site.json `parts` for blogs and portfolios, and `blockChoices`, `BLOCK_PARTS`, `tocBlock`, `tocHeadings` for listing and drawing them.
- Plugin API: manifests can name the plugin API they were written for (`"api": 1`); a plugin that needs a newer one doesn't load. `LocalVaultReader` and `localVault()` give built-in plugins the vault's synchronous queries.

### Fixed

- `@hatchmd/text`: inline HTML in a note can't break out of an attribute; character references (`&nbsp;`, `&#8212;`) show as their characters; line diffs and three-way merges use a Myers diff, so big notes merge instead of conflicting.
- `@hatchmd/markdown`: parsing stays fast on text full of unclosed openers, nesting is capped at 64 levels without losing text, bold around a link writes back as written, and property names that YAML would read differently are quoted.
- `@hatchmd/highlight`: stays fast on code written to be slow.
- `@hatchmd/publish`: tag pages work for tags in any script, nested tags and tags with `#`, and tags that differ only in such letters get pages of their own.
- Plugin API: `vault:write` never writes to dot folders or creates dot files, and an unknown permission in a manifest is an error.
- Server: every API request body is limited; `HATCH_MAIL=log` sends nothing in production; live editing ends a socket when its session is signed out or runs out, and bounds the memory rooms hold.

## 0.1.0 (2026-12-05)

The first npm release: 35 packages under `@hatchmd`, from the vault and Markdown engine to the React hooks, the AI SDK tools, the MCP server and the site builder. See [npm.md](https://hatch-docs.pages.dev/building-on-hatch/publishing-to-npm/) for the list.
