# Changelog

All notable changes to this project will be documented in this file.

The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/)**, and this project adheres to **[Semantic Versioning](https://semver.org/spec/v2.0.0.html)**.

---

## [Unreleased]

- **Added**
  - (placeholder)

- **Changed**
  - (placeholder)

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)

## [1.1.26] - 2026-11-22

- Refresh supported npm dependency and security tooling baselines; preserve runtime API contracts (weekly maintenance, 2026-11-22).

- **Added**
  - (placeholder)

- **Changed**
  - (placeholder)

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)

## [1.1.25] - 2026-10-23

- **Added**
  - (placeholder)

- **Changed**
  - Typecheck runtime source and all tests using explicit Node 24 and React DOM 19 development declarations.

- **Fixed**
  - Fail builds on compiler or required CSS copy errors, copy module CSS with Node.js into both output formats, and reject packages missing either runtime stylesheet in CI/CD.

- **Security**
  - (placeholder)

## [1.1.24] - 2026-10-18

- Refresh npm dependency lockfile to current supported stable versions (weekly maintenance, 2026-10-18). Refresh published Plasius package baselines after upstream releases.

- **Added**
  - (placeholder)

- **Changed**
  - (placeholder)

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)

## [1.1.23] - 2026-10-11

- Refresh npm dependency lockfile to current supported stable versions (weekly maintenance, 2026-10-11). Refresh published Plasius package baselines after upstream releases.

- **Added**
  - (placeholder)

- **Changed**
  - (placeholder)

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)

## [1.1.22] - 2026-10-04

- Refresh npm dependency lockfile to current supported stable versions (weekly maintenance, 2026-10-04). Refresh published Plasius package baselines after upstream releases.

- **Added**
  - (placeholder)

- **Changed**
  - (placeholder)

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)

## [1.1.21] - 2026-09-28

- Refresh npm dependencies and published Plasius package baselines after upstream releases (2026-09-28).

- **Added**
  - (placeholder)

- **Changed**
  - Refreshed compatible @plasius/* lockfile resolutions to the latest published releases.
 - Routed reviewed CI through the organisation's quarantined public runner group while retaining explicit platform labels.
  - Refreshed transitive dependency resolutions to clear the current npm audit findings.
  - Bound npm publication to the exact prepared `main` commit after successful push-triggered CI.
  - Enabled exact-head manual CI dispatch for reviewed release validation.

- **Fixed**
  - Kept React and React DOM out of production dependencies so consumers use
    the host React instance required by the package's peer contract.
  - Disabled package-manager caching on self-hosted CI to prevent cache-save
    cleanup stalls from blocking the validation queue.
  - (placeholder)

- **Security**
  - Added fail-closed source and npm-package admission for the administrative contributor registry and pinned the CI/CD runtime to Node.js 24.18.0 LTS.
  - Removed the npm write-token path, added a fail-closed npm 11.5.1-or-newer OIDC guard, and denied fork PR code access to self-hosted CI.
  - (placeholder)

## [1.1.20] - 2026-07-13

- **Added**
  - (placeholder)

- **Changed**
  - Updated direct RFC-compliance dependencies to their newly published releases (@plasius/entity-manager 1.0.23, @plasius/error 1.0.22, @plasius/profile 1.0.40, @plasius/schema 1.2.18, and @plasius/translations 1.0.23) for task #26.

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)

## [1.1.19] - 2026-07-12

- **Added**
  - (placeholder)

- **Changed**
  - Refreshed the lockfile to consume `@plasius/profile@1.0.39`, `@plasius/schema@1.2.18`, `@plasius/translations@1.0.23`, and the latest stable compatible ESLint and Vitest releases.

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)

## [1.1.18] - 2026-06-29

- **Added**
  - (placeholder)

- **Changed**
  - Refreshed direct runtime and development dependency baselines to the latest stable published `@plasius/*`, React, OpenAI, Vitest, ESLint, and TypeScript-compatible releases.

- **Fixed**
  - Fixed `npm run reset:clean` so it cleans build artifacts before removing local dependencies, allowing clean lockfile regeneration to complete reliably.
  - Removed the unused `react-router-dom` runtime dependency to reduce lockfile churn and unnecessary consumer install surface.

- **Security**
  - Reduced dependency exposure by dropping an unused direct runtime package.

## [1.1.17] - 2026-06-22

- **Added**
  - (placeholder)

- **Changed**
  - (placeholder)

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)

## [1.1.16] - 2026-06-22

- **Added**
  - Added package-owned `en-GB` chatbot UI/client-error translations and helper exports backed by `@plasius/translations`.

- **Changed**
  - Chatbot status text, accessibility labels, fallback errors, and client fallback errors now resolve through stable translation keys while preserving `title` and `placeholder` overrides.
  - Raised the minimum `@plasius/schema` dependency to `^1.2.6` to align with field exposure and safe serialization support across shared packages.
  - Hardened GitHub CD publish flow to publish only after successful install, test, and build, then push tags/releases post-publish.
  - Standardized npm publish path on workflow-dispatched `.github/workflows/cd.yml` using provenance and production environment secrets.
  - Replaced `audit:deps` from `depcheck` to `npm ls --all --omit=optional --omit=peer > /dev/null 2>&1 || true` to avoid deprecated dependency-chain risk.

- **Fixed**
  - Restored the package CD workflow so protected `main` releases are prepared by PR and published without direct branch pushes.
  - Removed the deprecated direct `@types/uuid` dev dependency because `uuid` now ships its own type definitions.
  - Enforced CommonJS runtime compatibility for dual-build output by generating and validating `dist-cjs/package.json` (`type: commonjs`) during build and package verification.
  - (placeholder)

- **Security**
  - Removed `depcheck` (and its `multimatch`/`minimatch` chain) from devDependencies to resolve reported high-severity audit findings.

## [1.0.1] - 2026-02-21

- **Added**
  - Added `npm run demo:run` for one-command local package/demo verification.

- **Changed**
  - Aligned OpenAI requirement to `^5.23.2` to match current `plasius-ltd-site` resolved baseline.
  - Updated React Router and toolchain dependency minimums to current `plasius-ltd-site` requirements.

- **Fixed**
  - Updated demo docs to run via the package script instead of manual multi-step commands.
  - Updated demo script to use a Node-safe build export so demo execution no longer fails on CSS module imports.

- **Security**
  - (placeholder)

## [1.0.1] - 2026-02-21

- **Added**
  - Add chatbot API client helpers (`getChatbotUsage`, `sendChatbotMessage`) and typed `ChatbotClientError`.
  - Add signed-in gating UX and demo usage-limit messaging in the `ChatBot` component.
  - Add usage/auth/client tests for chatbot API integration behavior.

- **Changed**
  - Refactor `ChatBot` to call backend `/ai/chatbot` instead of browser-side OpenAI keys.
  - Simplify package peer requirements by removing direct `openai` dependency from `@plasius/chatbot`.

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)

## [1.0.0] - 2026-02-12

- **Added**
  - Standalone public package scaffold at repository root with independent CI/CD, ADRs, and legal governance assets.

- **Changed**
  - Add dual ESM + CJS build outputs with `exports` entries and CJS artifacts in `dist-cjs/`.

- **Fixed**
  - Removed monorepo-relative TypeScript configuration coupling for standalone builds.

- **Security**
  - Added baseline public package governance and CLA documentation.

---

## Release process (maintainers)

1. Update `CHANGELOG.md` under **Unreleased** with user-visible changes.
2. Bump version in `package.json` following SemVer (major/minor/patch).
3. Move entries from **Unreleased** to a new version section with the current date.
4. Tag the release in Git (`vX.Y.Z`) and push tags.
5. Publish to npm (via CI/CD or `npm publish`).

> Tip: Use Conventional Commits in PR titles/bodies to make changelog updates easier.

---

[Unreleased]: https://github.com/Plasius-LTD/chatbot/compare/v1.1.26...HEAD
[1.0.1]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.0.1
[1.1.9]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.9

## [1.0.0] - 2026-02-11

- **Added**
  - Initial release.

- **Changed**
  - (placeholder)

- **Fixed**
  - (placeholder)

- **Security**
  - (placeholder)
[1.0.0]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.0.0
[1.0.1]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.0.1
[1.1.16]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.16
[1.1.17]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.17
[1.1.18]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.18
[1.1.19]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.19
[1.1.20]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.20
[1.1.21]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.21
[1.1.22]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.22
[1.1.23]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.23
[1.1.24]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.24
[1.1.25]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.25
[1.1.26]: https://github.com/Plasius-LTD/chatbot/releases/tag/v1.1.26
