From 928c34c4ddeada0a9a0f4816a5420b725403124f Mon Sep 17 00:00:00 2001 From: Ludovico Fischer Date: Thu, 20 Aug 2026 23:49:29 +0200 Subject: [PATCH] Prepare release 11.0.0 --- .github/workflows/publish.yml | 2 +- CHANGELOG.md | 34 +++++++++++++++++++++++++++++++--- package.json | 2 +- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b99fa8a..4d8a286 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,4 +29,4 @@ jobs: - name: Run tests run: pnpm test - name: Publish - run: pnpm stage publish --tag next + run: pnpm stage publish diff --git a/CHANGELOG.md b/CHANGELOG.md index ebf1ebf..738d244 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index c9414f8..bd78d6d 100644 --- a/package.json +++ b/package.json @@ -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": [