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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Run tests
run: pnpm test
- name: Publish
run: pnpm stage publish --tag next
run: pnpm stage publish
34 changes: 31 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,38 @@

All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.

## Unreleased

### Breaking changes
- remove preserve option
## 11.0.0

### Breaking changes

- Require Node.js ^22.22.3, ^24.15, or >=26.0.
- Publish an ESM package with an explicit exports entry point. CommonJS require('postcss-calc') remains
supported on the supported Node.js versions.

- Remove the preserve option. Transformations now always update declarations, enabled media-query
parameters, and enabled selectors in place.

### Features

- Rewrite the calculation engine around a CSS-aware tokenizer, Pratt parser, canonical AST, simplifier,
and serializer.

- Add simplification support for modern CSS math functions, including abs(), sign(), mod(), rem(),
round(), trigonometric functions, pow(), sqrt(), hypot(), log(), and exp().

- Improve public TypeScript declarations, including the exported PostCssCalcOptions type.

### Bug fixes

- Preserve correct grouping when simplifying subtractions involving custom properties and other opaque
expressions.

- Improve numerical precision and rounding, including signed-zero and exact-multiple mod()/rem()
behavior.

- Fix handling of identifier-like negative tokens and selector calculations.
- Maintain left-to-right evaluation order when folding product terms.

## 11.0.0-rc.3 (2026-08-14)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-calc",
"version": "11.0.0-rc.3",
"version": "11.0.0",
"type": "module",
"description": "PostCSS plugin to reduce calc()",
"keywords": [
Expand Down