# Changelog (https://eulabel.eu/docs/documentation/changelog)

> Fetch the complete documentation index at: https://eulabel.eu/docs/llms.txt
> Use this file to discover all available pages before exploring further.
> Full content: https://eulabel.eu/docs/llms-full.txt
> Append .md to any page URL for markdown, or send Accept: text/markdown.



All notable changes to the EUlabel platform and API. For what is not built yet, see the [roadmap](https://eulabel.eu/docs/documentation/roadmap).

## Releases
### November 5, 2026: Faster passport pages

* **Passport pages** are cached until you change them, so a repeat scan is answered by the CDN without waiting on a server
    * **Publishing, editing and withdrawing** show on the next scan, within seconds instead of two minutes, from the dashboard and the API alike
    * **Scans after a quiet spell** get the cached Digital Link redirect at once while it refreshes in the background. A changed link shows from the second scan made a minute or more after the change

  
### November 4, 2026: Choose the sector first when creating a project

* **New project** asks what you'll label first, with sectors grouped by whether their rules are set in EU law or still expected under ESPR, and each card's status and dates. You name the project next, with an example for your sector
    * Onboarding's last step offers wine, batteries, textiles and construction products, plus all 11 sectors, instead of a wine project only

  
### November 3, 2026: Passports for seven more sectors

**Sector profiles**

    * Construction products (`construction/2026.11`, Regulation (EU) 2024/3110), toys (`toy/2026.11`, Regulation (EU) 2025/2509) and detergents (`detergent/2026.11`, Regulation (EU) 2026/405), all from adopted law
    * Iron and steel (`steel/2026.11-provisional`, JRC study of March 2026) and tyres (`tyre/2026.11-provisional`, the ESPR tyre study draft plus the Tyre Labelling Regulation)
    * Mattresses (`mattress/2026.11-preview`) and aluminium (`aluminium/2026.11-preview`), with no sector study behind them yet
    * New project types and `category` values: `construction`, `toy`, `detergent`, `steel`, `tyre`, `mattress`, `aluminium`
    * Items for steel, tyre, mattress and aluminium. Construction (model and batch) and toy and detergent (model only) have no item level, so `POST .../items` returns `422`. Access grants work per product for every sector with restricted fields, including these three

    **Profiles API**

    * New profile `status` value `preview`, for profiles built without a sector study
    * New `appliesFrom` with `date`, `indicative` and `note`. `GET /v1/profiles` returns `null` where a profile doesn't set it
    * New source status `industry_proposal`, for trade-body and voluntary-scheme material

    **Dashboard and public passports**

    * The project page says when a profile is an early preview, and gives the date passports become mandatory for adopted profiles
    * Passport pages show sector facts, colours and a notice for preview and future-dated profiles. Group titles are translated into six languages
    * Scan counting, when turned on, covers the seven new sectors

    **Docs**

    * A guide per sector: [construction](https://eulabel.eu/docs/knowledge-base/guides/construction-passport), [toy](https://eulabel.eu/docs/knowledge-base/guides/toy-passport), [detergent](https://eulabel.eu/docs/knowledge-base/guides/detergent-passport), [steel](https://eulabel.eu/docs/knowledge-base/guides/steel-passport), [tyre](https://eulabel.eu/docs/knowledge-base/guides/tyre-passport), [mattress](https://eulabel.eu/docs/knowledge-base/guides/mattress-passport) and [aluminium](https://eulabel.eu/docs/knowledge-base/guides/aluminium-passport)
    * [Sector timelines](https://eulabel.eu/docs/knowledge-base/concepts/sector-timelines) and the [cross-sector comparison](https://eulabel.eu/docs/knowledge-base/examples/cross-sector-comparison) cover all eleven sectors

  
### November 2, 2026: Battery profile follows the Commission's guide

* **`battery/2026.11`** follows data-point guide v3.2 for EV, LMT and industrial batteries, point by point
    * **Now required**: renewable content, power limits, the storage reference test, and item fade values. EV and LMT only: lifetime and efficiency values stay required; for industrial batteries they depend on the battery
    * **No longer required**: the discharge C-rate and marking symbols, which now hold only the cadmium and lead symbols of Art. 13(5)
    * **Not to be filled**: a value in such a field now keeps a passport as a draft, and readers never see older ones

  
### November 1, 2026: Terms acceptance and scan counts

* **Terms acceptance**: organizations accept the Terms and Data Processing Agreement before using the dashboard or API. Until then, the API returns `403 terms_not_accepted`
    * **Scan counts**: now opt-in, counted at the gateway by product, country and day. Wine is never counted

  
### November 1, 2026: API corrections

**Passports**

    * `POST /v1/passports` responses now include `productId`, the UUID that every other path uses
    * Send `publish: false` to keep a compliant passport as a draft
    * Creating a product through `POST /v1/passports` now needs a sector. Without `projectId`, `category` or `data.productType` it returns `422` with `param: category`, instead of defaulting to wine
    * Withdrawn passports keep their data. Publishing again restores it, and the dashboard wizard reopens filled in

    **Products**

    * `GET /v1/products` accepts `gtin` and `projectId` filters

    * A malformed product id returns `404`

    * `POST /v1/products/import` now requires `projectId`, reads quoted CSV values, and returns `422` when no line was created

    * Duplicate products, supplier links and domains return `409 duplicate_error` instead of `500`

    * `GET /v1/products/{productId}/qr` clamps `width` between 64 and 2048 instead of failing on a negative value

    * `POST /v1/passports` returns `422` for `data` that isn't an object, a `projectId` that isn't a UUID, and a blank or non-string `name` or `brand`

    * `POST /v1/products` trims `name` and `brand`

    * `POST /v1/products/{productId}/passport/withdraw` returns `version` as an integer, plus `schemaVersion`

    * `GET /v1/products` returns `422` for a `projectId` that isn't a UUID

    * `PATCH /v1/products/{productId}` rejects an empty `name`, `brand` or `category`, and `sku: null` clears the SKU

    * `DELETE /v1/access-grants/{grantId}` returns `404` for a malformed id

    * `GET /v1/analytics/product/{productId}` counts the last 90 days when `start` is missing, matching `period`

    **API keys**

    * Keys can be created with the `domains:read` and `domains:write` scopes
    * Over 600 requests per minute, a key gets `429 rate_limited` with a `Retry-After` header

  
### October 31, 2026: GS1 resolver engine

**Resolver**

    * URIs are validated by the GS1 Syntax Engine, so unknown qualifiers, bad lengths and wrong qualifier order return `400`
    * An unavailable `linkType` returns `404` instead of the default link
    * The query string is forwarded on redirect
    * Links are inherited from the GTIN level on lot and serial URIs
    * Only `gs1:defaultLink` and `gs1:dpp` are served
    * Linksets use full `https://gs1.org/voc/` link types, carry one anchor per identifier level, and are also served as JSON, JSON-LD and HTML
    * The hosted passport answers `linkType=gs1:dpp`, and `/.well-known/gs1resolver` follows the GS1 schema
    * EPC binary strings (`/eh…`, `/ex…`) for SGTIN-96 and SGTIN-198 resolve like the uncompressed URI

  
### October 30, 2026: Battery, textile and furniture passports, serial-level items

**Sector profiles**

    * Versioned data profiles for battery (`battery/2026.10`, Regulation 2023/1542 and the Commission data-point guide), textile (`textile/2026.10-provisional`) and furniture (`furniture/2026.10-provisional`, new `furniture` project type), plus `wine/2026.10` for the existing e-label rules
    * Every field declares type, requirement (mandatory, conditional, optional, voluntary, not yet applicable), granularity (model, batch, component, item) and access class (public, legitimate interest, authorities, internal)
    * `GET /v1/profiles` and `GET /v1/profiles/{sector}` expose the catalogues
    * `POST /v1/passports` validates against the profile, reports completeness per field, and decides publication on the merged document

    **Items and lifecycle events**

    * `POST /v1/products/{productId}/items` registers serial-level items (GS1 AI 21, optional AI 10) with item-level data merged key by key
    * `POST .../items/{serial}/events` records auditable events; status moves follow per-sector flows
    * Resolver and passport carry `/10/{lot}/21/{serial}` qualifiers; `Link` headers and linksets include them

    **Audiences**

    * `GET /v1/products/{productId}/passport?audience=` previews public, legitimate-interest and authority views
    * Public passport pages and the public JSON API show only public fields and report how many were withheld

    **Dashboard**

    * Profile-driven passport wizard for battery, textile and furniture, with conditional fields, list editors and a review step showing live versions
    * Items section on the product page with registration form and per-item passport links

    **Public passports**

    * Sector hero with key facts, grouped sections, composition bars, document lists, item panel with status and registration date, provisional-profile notice, in six languages

    **Demo and marketing**

    * Demo organisation with wine, battery, textile and furniture products, packshots and items (`pnpm --filter @workspace/db db:seed:demo`)
    * Homepage sample switcher with one public passport per sector; sectors section with regulatory status

  
### October 27, 2026: Wine e-label compliance, packshots, and migration docs

**Analytics**

    * Scan events are not logged for `category: wine`
    * Dashboard hides scan metrics for wine projects (EU wine labeling alignment)

    **Wine e-label**

    * `nutrition.alcoholG` is optional (PIM-only storage)
    * Public nutrition table no longer shows alcohol grams: declare alcohol by volume with `abvPercent` on the label

    **Passport**

    * Governed product packshots with approval-aware UI and JSON-LD (approved images only)
    * Kill switch `EULABEL_PASSPORT_PACKSHOTS=0` disables rendering without changing stored data
    * Packshot metadata is stored on the product; not yet exposed as a public REST field

    **Platform URLs**

    * Digital Link / QR examples use the public host `https://eulabel.eu/01/{gtin}`

    **Knowledge Base**

    * New **Switch from** section with migration guides, including CSV
    * Footer deep links on docs and marketing site

    **Marketing**

    * Homepage demo QR and packshot band
    * DPP timeline and platform copy updates

  
### October 26, 2026: Better Auth, platform API, and resolver

**Authentication**

    * Dashboard authentication migrated from WorkOS to **Better Auth** (email/password, magic link, Google/Microsoft OAuth, passkeys, optional 2FA, org invitations)
    * Session cookie prefix `eulabel` (`eulabel.session_token`), scoped across `.eulabel.eu`

    **API keys**

    * Keys are Better Auth–managed with the **`eul_`** prefix
    * Organization-scoped permissions including `projects:read` / `projects:write` and `domains:read` / `domains:write`

    **Security**

    * CSRF checks on cookie-authenticated mutating API requests (`403 csrf_origin_mismatch`)

    **API**

    * `POST /v1/products/import`: CSV bulk create (`name,brand,gtin[,sku]`) in the sector of the project given by `?projectId=`, or wine without one. Requires `products:write`

    **Database**

    * Fresh migration baseline aligned with Better Auth tables
    * GTIN uniqueness is per organization `(tenantId, gtin)`

    **Resolver**

    * Tenant-aware GTIN lookup on verified custom domains
    * Hosted EUlabel passport injected as `gs1:defaultLink` when the product has no default link

    **Dashboard / marketing**

    * Shared `@workspace/ui` design kit
    * Redesigned onboarding and passport wizard
    * Marketing site refresh and newsletter signup

  
### March 25, 2026: Progressive single-call DPP creation

**API contract**

    * `POST /v1/passports` is now the primary entry point: send GTIN, product identity, and passport data in one call
    * Products are created implicitly when the GTIN is new; no separate `POST /v1/products` required
    * Partial data is accepted: passports start as `draft` and auto-promote to `published` when all required fields are present
    * Subsequent calls to the same GTIN deep-merge new fields into the existing passport instead of replacing
    * Every passport response includes a `compliance` object with `status` (`"compliant"` / `"incomplete"`), `regulation`, `completeness` percentage, and `missingFields[]` (each with `field`, `message`, `hint`, `documentationUrl`)
    * Every passport response now includes `updatedAt` alongside `createdAt`; database schema updated with `passports.updated_at` column

    **Guided developer experience**

    * Error responses now include `suggestion` and `documentationUrl` fields for actionable guidance
    * Passport IDs use the `ps_` prefix in API responses (Stripe-style short prefix)
    * Root API overview and `llms.txt` updated: `POST /v1/passports` as primary endpoint, `PATCH` for product updates, corrected analytics path

    **Dashboard**

    * Product detail page shows both draft and published passports
    * Compliance progress bar with percentage and color-coded status indicator
    * Missing fields listed for incomplete passports

    **OpenAPI specification**

    * New schemas: `PassportResponse`, `PassportDetail`, `Compliance`, `MissingField`
    * Updated `CreatePassportRequest` with product identity fields (`gtin`, `name`, `brand`, `category`, `sku`)
    * `PassportData` fields (except `productType`) are now optional for progressive enrichment
    * `Error` schema extended with `suggestion` and `documentationUrl`
    * Request/response examples for both complete and partial submissions

  
### March 20, 2026: Documentation audit and OpenAPI update

* Corrected the API error shape to `{ error: { type, message, code, param } }` and pagination to `limit` and `offset`
    * Added 6 endpoints to `openapi.yaml`: suppliers list, product-supplier link, domains and API keys
    * Added concept, guide and best-practice pages to the Knowledge Base

  
### March 20, 2026: Project-scoped dashboard

* **Projects**: Group products by sector under organizations
    * **Project routing**: Dashboard now uses `/{orgSlug}/{projectSlug}/products` URL structure
    * **Product scoping**: Products belong to projects; category is inferred from project type
    * **Project overview**: Per-project dashboard with product count and compliance type

  
### March 19, 2026: Multi-tenant dashboard and documentation redesign

* **Organization routing**: Dashboard URLs are now `/{orgSlug}/...` with organization-scoped navigation
    * **Onboarding flow**: New organizations choose a name and URL slug after first sign-up
    * **Organization switcher**: WorkOS-powered widget for switching between organizations
    * **Session management**: Cross-app session cookies scoped to `.eulabel.eu`
    * New Guides section: Wine E-Label, GTIN Validation, Error Handling, Custom Domains
    * AI/LLM-friendly: `Accept: text/markdown` content negotiation, `llms.txt`, per-page `.mdx` endpoints

  
### March 18, 2026: Custom domains, i18n passport, and domain features

* **Custom Domains API**: Register, verify, and manage brand custom domains for passport pages (`POST /v1/domains`, `GET /v1/domains`, `DELETE /v1/domains/:id`). Correction: custom domains apply to Digital Link resolution, on request. Passport pages stay on eulabel.eu.
    * **Passport i18n**: Product label pages now available in 6 EU languages (EN, DE, FR, IT, ES, PT) via next-intl
    * **JSON-LD structured data**: Passport pages include schema.org + GS1 Web Vocabulary structured data for machine readability
    * **Domain configuration**: Centralized `buildPassportUrl`, `buildResolverUrl`, `buildQrCodeUrl` helpers driven by environment variables
    * **Product-supplier linking**: `POST /v1/products/:id/suppliers` endpoint to associate operators with products

  
### March 17, 2026: API hardening and OpenAPI docs

* **OpenAPI specification**: Full `openapi.yaml` with auto-generated interactive API reference pages
    * **Product categories**: enum with validation on create and update. The API accepts `wine`, `battery`, `textile`, `furniture`, `food` and `electronics`. `food` and `electronics` have no data profile, and the dashboard doesn't offer them
    * **Dual passport identifiers**: `POST /v1/passports` accepts `productId` or `gtin`. If you send both, `productId` wins
    * **API key ownership validation**: Revoking a key now validates it belongs to the authenticated organization
    * **Simplified scopes**: Default scope set applied when no scopes are specified at key creation

  
### March 16, 2026: Auth migration, passport app, and DB workflow

* **WorkOS API key migration**: API key authentication now fully managed by WorkOS (local `api_keys` table deprecated)
    * **Product PATCH API**: Partial updates to products via `PATCH /v1/products/:id`
    * **Passport app**: Initial consumer-facing passport pages with wine e-label rendering
    * **Passport deduplication**: Data hash prevents duplicate passport versions when submitting identical data
    * **Database migrations**: Committed migration workflow with `pnpm db:generate` and `pnpm db:migrate`
    * **FumaDocs**: Documentation site launched with auto-generated OpenAPI reference

  
### March 14, 2026: API v1 and resolver launch

* **GS1-conformant resolver**: Resolver at `/01/{gtin}` with HTTP 307 redirects, linkset (RFC 9264) and `.well-known/gs1resolver`
    * **Products API**: Create and manage products with GS1 Digital Link identifiers
    * **Passports API**: Attach and retrieve Digital Product Passports with full wine e-label support
    * **QR Code generation**: SVG QR codes encoding GS1 Digital Link URIs
    * **Suppliers API**: Register and manage economic operators
    * **Analytics API**: Scan totals by country

    **Supported product categories**

    * Wine (EU Regulation 2021/2117 e-label compliance)


