---
title: "culori 4.0.0 Breaking Changes on npm | Since.dev"
description: "What each culori release removed, renamed or changed: 30 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/culori
last_updated: 2026-12-04
---

# culori breaking changes

culori 4.0.0 (January 19, 2024) is its newest release with breaking changes, 6 of them. The first: Missing color components serialize differently in culori 4.0.0. Every breaking API change we have recorded in culori on npm: 30 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.2`, released June 27, 2025. 

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 6 breaking changes in 1 version.
- From [2.0.0](#v-2-0-0) to [4.0.0](#v-4-0-0): 13 breaking changes in 2 versions.

## culori 4.0.0 breaking changes

culori 4.0.0, released January 19, 2024: 6 breaking changes.

- **Behavior changed**  

Missing components are serialized as 0 in legacy syntaxes and as none in modern syntaxes. Code that compares or parses serialized output must expect these values. [github.com](https://github.com/danburzo/culori/releases/tag/v4.0.0)
- **Behavior changed**  

Alpha values outside 0 to 1 are now clamped when a color string is parsed. Code that relied on out-of-range alpha values must be updated. [github.com](https://github.com/danburzo/culori/releases/tag/v4.0.0)
- **Behavior changed**  

All color space conversions and gamut mapping functions now use 0 for missing components. Results for colors with missing components may change. [github.com](https://github.com/danburzo/culori/releases/tag/v4.0.0)
- **Behavior changed**  

The numeric ranges of hsl() and hwb() syntaxes changed from 0 to 1 to 0 to 100. Code that passes values in the old range will get different colors. [github.com](https://github.com/danburzo/culori/releases/tag/v4.0.0)
- **Behavior changed**  

The L component of lab() and lch() strings is clamped to 0 to 100, and that of oklab() and oklch() to 0 to 1, when parsed. Out-of-range values now produce different colors. [github.com](https://github.com/danburzo/culori/releases/tag/v4.0.0)
- **Behavior changed** `averageAngle`  

averageAngle() now always returns its result in the 0 to 360 range. Code that expected negative or other out-of-range results must be updated. [github.com](https://github.com/danburzo/culori/releases/tag/v4.0.0)

## culori 3.0.0 breaking changes

culori 3.0.0, released February 23, 2023: 7 breaking changes.

- **Removed** `color`  

Use oklab() instead; the custom identifier can be re-registered with useParser('--oklab', 'oklab'). [culorijs.org](https://culorijs.org/guides/migration/)
- **Behavior changed**  

oklab, oklch and lrgb now serialize to oklab(), oklch() and color(srgb-linear) respectively. [github.com](https://github.com/danburzo/culori/releases/tag/v3.0.0)
- **Behavior changed**  

Serialized lab and lch strings now write the L component as a number, not a percentage. [github.com](https://github.com/danburzo/culori/releases/tag/v3.0.0)
- **Behavior changed**  

Percentage component values are now mapped to a reference range for each component, so the same percentage can yield a different value than before. [github.com](https://github.com/danburzo/culori/releases/tag/v3.0.0)
- **Behavior changed** `color`  

The color() syntax no longer accepts omitted components that default to 0; code must pass all three components. [github.com](https://github.com/danburzo/culori/releases/tag/v3.0.0)
- **Behavior changed** `parseHsl`  

parseHsl no longer parses the legacy comma-separated hsl() syntax; use parseHslLegacy for that. [github.com](https://github.com/danburzo/culori/releases/tag/v3.0.0)
- **Behavior changed** `parseRgb`  

parseRgb no longer parses the legacy comma-separated rgb() syntax; use parseRgbLegacy for that. [github.com](https://github.com/danburzo/culori/releases/tag/v3.0.0)

## culori 2.0.0 breaking changes

culori 2.0.0, released October 13, 2021: 17 breaking changes.

- **Removed** `color`  

Use oklab() instead. The identifier can be re-registered with useParser if needed. [culorijs.org](https://culorijs.org/guides/migration/)
- **Renamed** `convertLabToXyz`  

Use convertLabToXyz50 in place of convertLabToXyz. [culorijs.org](https://culorijs.org/guides/migration/)
- **Renamed** `convertLuvToXyz`  

Use convertLuvToXyz50 in place of convertLuvToXyz. [culorijs.org](https://culorijs.org/guides/migration/)
- **Renamed** `convertProphotoToXyz`  

Use convertProphotoToXyz50 in place of convertProphotoToXyz. [culorijs.org](https://culorijs.org/guides/migration/)
- **Renamed** `convertRgbToXyz`  

Use convertRgbToXyz50 in place of convertRgbToXyz. [culorijs.org](https://culorijs.org/guides/migration/)
- **Renamed** `convertXyz65ToXyz`  

Use convertXyz65ToXyz50 in place of convertXyz65ToXyz. [culorijs.org](https://culorijs.org/guides/migration/)
- **Renamed** `convertXyzToLab`  

Use convertXyz50ToLab in place of convertXyzToLab. [culorijs.org](https://culorijs.org/guides/migration/)
- **Renamed** `convertXyzToLuv`  

Use convertXyz50ToLuv in place of convertXyzToLuv. [culorijs.org](https://culorijs.org/guides/migration/)
- **Renamed** `convertXyzToProphoto`  

Use convertXyz50ToProphoto in place of convertXyzToProphoto. [culorijs.org](https://culorijs.org/guides/migration/)
- **Renamed** `convertXyzToRgb`  

Use convertXyz50ToRgb in place of convertXyzToRgb. [culorijs.org](https://culorijs.org/guides/migration/)

And 7 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
