Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 0.13.0 — 2026-09-08

New `src/certifications.ts` (CEL-1702): one certification vocabulary and one
i18n key contract for every dashboard. `CERTIFICATION_TYPES` (frozen:
`organic`, `fairtrade`, `sustainable`), `isCertification(value: unknown)`,
`normalizeAndCheckCertification(value)` (trim + lower-case, canonical id or
`null`), and `certificationLabelKey(id)` returning
`{ key: "certification.<id>", fallback }`. Canonical ids always yield the
canonical key segment and the shared English fallback; unknown ids keep a
stable key with `.` and `:` replaced by `-` (i18next separators) and echo
the trimmed raw id as fallback. The key carries no namespace: producer
resolves it in `offers`, importer in `opportunities`, each owning the
`certification.*` block in its English locale file. Guarantee is key-path
parity and one English source string, not translation parity (ADR
`2026-09-08-one-certification-i18n-key-contract-for-every-dashboard`).

Additive; no breaking change. Consumers: producer-dashboard replaces its
local `certificationLabelKey` in `src/lib/offer-form-i18n-labels.ts`,
importer-dashboard replaces the inline `certifications.*` keys in
`opportunity-detail.tsx`.

## 0.12.0 — 2026-09-04

**Breaking:** removed the React adapter's `useBeverageLabelMap` /
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cellarnode/beverage-utils",
"version": "0.12.1",
"version": "0.13.0",
"description": "Beverage classification utilities — label mapping, formatting, and display helpers for the CellarNode industry-standard beverage classification system.",
"license": "MIT",
"type": "module",
Expand Down
Loading