# Changelog

All notable changes to `@mano8/astro-ui-m8` are documented here.

This project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
This package registers no routes and fronts no backend service, so its major
version tracks its own registry surface (breaking prop/export/markup changes
to a shipped block or recipe), not any service-version line.

Backfilled retroactively on 2026-09-20 (`B9-changelog-parity`): this file did
not exist through the first twelve published releases. Entries below are
reconstructed from `git log`/`git tag` history rather than written at release
time; content is accurate to the commits each tag contains, but wording may
differ from how the change would have been described on the day it shipped.

## [Unreleased]

## [1.5.3] - 2026-09-27

A patch. It fixes a peer range that locked every consumer to one exact
`lucide-react` release, and it adds the dependency compatibility gate that
lets Dependabot pull requests stay unblocked without npm's own peer checks.
There is no registry, block, recipe or export surface change.
`registry/r/*.json` changes only in its `astro-ui-m8-skin-version` stamps,
which `build:registry` rewrites for every version.

### Fixed

- **`lucide-react` peer `1.28.0` → `^1.28.0`.** The exact pin accepted no
  other release, so `fa-ui-m8` (on `lucide-react` `^1.45.0`) could only
  install this package with `legacy-peer-deps`, and its `.npmrc` said so.
  All 16 icons the registry blocks import are exported by `1.28.0`,
  `1.45.0` and `1.48.0` (the newest release on 2026-09-27).

### Added

- **A tree that breaks a declared range fails the build.**
  `scripts/verify-dependency-compat.mjs` (`npm run verify:dependency-compat`)
  reads `npm ls --all --json --long` with peer edges forced on. It names every
  installed package outside a range declared on it, whether by a dependency,
  an optional dependency, a dev dependency or a peer (optional peers
  included). It also names every required dependency or peer that is not
  installed, skipping those whose requirer is only an optional platform
  binary. A third-party optional peer can be excused only by a written entry
  in `dependency-compat.waivers.json`, and a stale entry fails. An edge
  declared by an `@mano8/*` package can never be waived. CI runs the gate
  after `npm ci`. `tests/dependency-compat.test.ts` proves each rule against
  fixture trees shaped after the cases the fleet hit, and asserts that this
  repository's own tree passes. The script and its test are dependency-free
  and byte-identical across the fleet's six npm repositories.
- **`.npmrc` with `legacy-peer-deps=true`**, byte-identical fleet-wide. npm
  and Dependabot never refuse to resolve on a peer conflict, so an update
  that breaks a peer range arrives as a red pull request instead of being
  dropped. The gate above now enforces those ranges instead.

### Changed

- Dev dependencies aligned with `fa-ui-m8`: `react` / `react-dom` /
  `@types/react` / `@types/react-dom` `^19.3.0`, `@typescript-eslint/*`
  `^8.70.1`, `globals` `^17.12.0`. The lock moves exactly those packages
  (and `scheduler`, which `react-dom` 19.3 requires), with no entry added
  or removed.

## [1.5.2] - 2026-09-26

The first tarball to ship this changelog (`B39-astro-ui-changelog-release`,
finding `G38`): `1.5.1` went to npm without it, so the `files` fix below
reached no consumer until a release carried it. No registry, block, recipe
or export surface changes; `registry/r/*.json` changes only in its
`astro-ui-m8-skin-version` stamps, which `build:registry` rewrites for every
version.

### Added

- **A lock that does not pin every package fails the build**
  (`B34-npm-lock-integrity-guard`, finding `G34`(b)).
  `scripts/verify-lock-integrity.mjs` (`npm run verify:lock-integrity`)
  refuses a `package-lock.json` below `lockfileVersion` 3, or one with any
  entry that lacks `integrity` or `resolved`, carries a non-`sha512` hash,
  resolves outside `https://registry.npmjs.org/`, or is a link or `file:`
  source, and names every offending key. `npm ci` installs an entry with no
  `integrity` without checking a hash and says nothing, which is how `G33`
  went unseen. CI runs it before `npm ci` in every job that installs.
  `tests/lock-integrity.test.ts` proves each refusal against a fixture lock
  and asserts this repository's own lock passes. The script is
  dependency-free and byte-identical in the fleet's six npm repositories.
  It read red on this lock's 31 dev entries until `B33` (below) restored
  them. Only `package.json`'s `scripts` gains an entry, so no release is
  owed.

### Security

- **npm is reached only from a published release**
  (`B30-pre-publish-hardening` leg 5, finding `G25`). `npm-publish.yml` ran
  `npm publish` on any `workflow_dispatch`, from any branch, into an `npm`
  environment with no protection. A dispatch now
  runs `npm publish --dry-run`; a release fails unless its tag, with the `v`
  stripped, is `package.json`'s `version`; and the tarball ships
  `CHANGELOG.md` from the next release, as `G31`(b) asks of the business
  plugins.
  `tests/publish-workflow.test.ts` locks each rule. The operator's `v*` tag
  policy on the `npm` environment is the platform half of the same rule.
- **The publish job verifies the lock before it installs**
  (`B37-publish-lock-guard`, finding `G36`). `B34` guarded every `CI.yaml`
  job but not the one that holds `id-token: write` and builds the tarball,
  and the environment's `tag:v*` rule matches a tag by name, not by where it
  points. `npm-publish.yml` now runs `npm run verify:lock-integrity` before
  `npm ci`, and `tests/publish-workflow.test.ts` holds the order.
- **Every lock entry pins its source and bytes again**
  (`B33-npm-lock-integrity-repair`, finding `G34`(a)). 31 dev entries of
  `package-lock.json` (the `@babel/*` / `istanbul-*` coverage chain,
  `typescript`, `semver` and others) had no `integrity` and no `resolved`,
  so CI's `npm ci` installed them unverified. Each is filled from the npm
  registry's record of its exact version: no version moves, a clean `npm ci`
  verifies every hash, and a following `npm install` leaves the lock
  byte-identical. The lock does not ship in the tarball, so no release is
  owed.

## [1.5.1] - 2026-08-30

### Changed

- Shared dev tooling (lint/test/build toolchain deps) aligned to latest and
  the package bumped `1.5.0` → `1.5.1`. No registry, block or recipe surface
  changes.

## [1.5.0] - 2026-08-25

### Added

- **Generic controlled tree-view block**, with the ARIA tree keyboard contract
  (arrow-key navigation, expansion, selection) and a documented hook/a11y
  contract. Added to `registry.json` and the build output, and documented in
  `registry/README.md` and the frozen-name list.
- **Command-palette block** (`A-C4`) and **error-boundary block** (`A-C3`)
  added to the canonical registry.
- **Axe accessibility baseline** and a typed label-map contract added to the
  kit (`A-C5`).
- **Skin/logic version-lock guard** (`A-C6`), so a registry skin can assert
  the runtime block version it was written against.

### Fixed

- The dev preview gallery resolves copied-sibling imports correctly and is
  gated out of CI-consumer builds.
- The npm CLI resolution in the tarball smoke test now works on POSIX CI
  runners, not only locally.

### Changed

- Fleet alignment gates (registry-drift, colour-literal, no-cross-plugin-import)
  now run in CI instead of by hand, and the drift gate refuses an untracked
  path (`C12`).
- Deprecated `baseUrl` dropped from fixture `tsconfig`s.
- `package-lock.json` synced with the skin-lock bin and the `jest-axe` peer.
- Tarball packaging tests now require the tree-view, command-palette and
  error-boundary blocks to be present in the published package.

## [1.4.2] - 2026-08-16

### Changed

- `undici` (dev dependency) bumped `7.28.0` → `7.29.0` via Dependabot.

## [1.4.1] - 2026-08-02

### Fixed

- Registry source-inlining normalizes CRLF to LF, so a block authored or
  edited on Windows no longer ships mixed line endings in its inlined source.

### Changed

- `lucide-react` dependency refined and `zod` dependency updated as part of
  the same release.

## [1.4.0] - 2026-07-29

### Changed

- Migrated lint tooling to the ESLint 9 flat-config format.
- Registry state-synchronization effects reworked to avoid redundant renders.
- Resolved a Codacy toolbar-complexity finding in a registry component.

## [1.3.2] - 2026-07-29

### Changed

- Documentation restructured for agent use, with `CLAUDE.md` agent
  instructions added.
- `.gitignore` reorganized for readability; `REPOSITORY_CONTEXT.md` excluded
  from Codacy checks.
- CI quality tooling and release metadata aligned.

## [1.3.1] - 2026-07-16

### Added

- Codacy quality gates and lcov coverage report generation.

### Changed

- Linting rules aligned with Codacy's configuration.

## [1.3.0] - 2026-07-13

### Added

- Theme detection and handling for `ToastNotificationHost`, so a toast
  respects the host page's light/dark theme rather than a fixed palette.

### Changed

- `data-table` layout switched to flexbox for improved internal spacing.

## [1.2.0] - 2026-07-13

### Added

- `position` prop on `ToastNotificationHost`, so a host can place toast
  notifications at any of the standard screen corners/edges instead of one
  fixed position.

### Fixed

- Vertical spacing between the `data-table` toolbar, pagination and table
  itself.

## [1.1.0] - 2026-07-13

### Added

- Row-selection support in the `data-table` registry block.
- Canonical toast-notification host (`ToastNotificationHost`).

### Changed

- README updated with the CI/CD badge.

## [1.0.0] - 2026-07-12

First stable release.

### Added

- Canonical `data-table` registry block and its parts.
- Shared state recipes (loading/empty/error/unauthorized) and the
  `dialog-form` / `table-page` recipes.
- Shared helpers and the plugin fleet's test harness.
- Registry naming and host-contract documentation, plus the registry
  consumer/tarball-install verification fixtures.
- Dev preview fixture for the registry.

## [0.1.0-alpha.1] - 2026-07-05

Initial pre-release, published to npm ahead of the `v1.0.0` git tag (no `git
tag` exists for this version — its date is npm's own publish timestamp).
Scaffold for the canonical shared UI package: the initial registry shape
that `1.0.0` built on.
