Skip to content

Commit ae63833

Browse files
authored
Keep the Changed changelog section for changes that users may have to act on (#20728)
This PR keeps `### Changed` in the changelog for changes that users may have to act on, and documents which section to use. `[Unreleased]` had a `### Changed` section with two performance entries (#20680 and #20688). A performance improvement is not a change that users have to act on, and the repo already lists them under `### Fixed` (e.g. #20694, #20678 and #20663). ## Changes - `CHANGELOG.md`: remove the `### Changed` section of `[Unreleased]`. Combine the two entries into one entry in `### Fixed`, because #20688 only extends #20680 to the other integrations. The entry goes in the merge order of #20680. - `CHANGELOG.md`: move the canonicalization entry of #20697 from `### Added` to `### Fixed`, in merge order, and drop the empty `### Added` heading. A canonicalization improvement is not a new feature for users, and the canonicalization entries of 4.3.4 and 4.3.5 are in `### Fixed` too. - `.github/CONTRIBUTING.md`: add a guide on which section to pick. The examples for `### Changed` come from earlier releases: changes to the CSS of existing utilities, renamed or replaced utilities (also when the upgrade tool migrates them), theme defaults, APIs, stricter parsing, source detection defaults, and supported versions. - `.changelog/README.md`: link to that guide. This PR edits `CHANGELOG.md` directly instead of adding a fragment, because it fixes entries that the "Compile changelog" workflow already compiled. Released sections stay as they are. The PR changes only docs, so it needs no changelog entry of its own. ## Test plan - `pnpm changelog check` passes. - `pnpm --silent changelog` shows `[Unreleased]` with only `### Fixed`. - `pnpm prettier --check` passes for the three files.
1 parent ff0bd97 commit ae63833

3 files changed

Lines changed: 21 additions & 10 deletions

File tree

‎.changelog/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Add a Markdown file with a unique name, for example `.changelog/vite-full-reload
1212
- Prevent `@tailwindcss/vite` from doing a full page reload for external files (e.g. `.php` files)
1313
```
1414

15-
- Use one or more of these sections: `### Added`, `### Fixed`, `### Changed`, `### Deprecated`, `### Removed` and `### Security`.
15+
- Use one or more of these sections: `### Added`, `### Fixed`, `### Changed`, `### Deprecated`, `### Removed` and `### Security`. The "Changelog" section of [`.github/CONTRIBUTING.md`](../.github/CONTRIBUTING.md#changelog) says which section fits your change.
1616
- Start each entry with `- `, and write it on one line.
1717
- Do not add a link to the pull request. The script adds the link of the pull request that added the file.
1818
- To link to an issue, or to more than one pull request, add the links at the end of the entry, for example `([#12345](https://github.com/tailwindlabs/tailwindcss/issues/12345))`. The script then adds no link.

‎.github/CONTRIBUTING.md‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,24 @@ If your change fixes a bug, adds a feature, or changes something that users can
9898

9999
Use the sections `### Added`, `### Fixed`, `### Changed`, `### Deprecated`, `### Removed` and `### Security`. Do not add a link to your pull request: a workflow adds it when it moves your entry into `CHANGELOG.md` after the merge. See [.changelog/README.md](https://github.com/tailwindlabs/tailwindcss/blob/main/.changelog/README.md) for all details, and run `pnpm changelog check` to check your file.
100100

101+
Pick the section from what a user has to know:
102+
103+
- `### Added`: a new feature, like a utility, a variant, a directive, an option or an integration.
104+
- `### Fixed`: a bug fix, also when it changes the generated CSS. A performance improvement goes here too, and so does a canonicalization improvement (e.g. `max-[64rem]:flex` → `max-lg:flex`).
105+
- `### Changed`: a change to behavior that worked as intended, and that users can rely on. Users may have to update their project, or they see a different result. For example:
106+
- The CSS of an existing utility, variant or Preflight (e.g. `m-0` generates `0` instead of `calc(var(--spacing) * 0)`), or the order in which utilities and variants are sorted.
107+
- A renamed or replaced utility, variant, theme variable or directive, also when the upgrade tool migrates it (e.g. `outline-none` → `outline-hidden`).
108+
- The values of the default theme.
109+
- The API of a package, a function or a directive (e.g. `--theme(…)` returns a CSS variable instead of a value).
110+
- Input that was valid and now throws an error or generates no CSS.
111+
- The defaults of automatic source detection (e.g. folders that are ignored by default).
112+
- The supported versions of Node.js, browsers or dependencies, and how a package installs or loads (e.g. no `postinstall` script).
113+
- `### Deprecated`: a feature that still works, but will be removed later. Name its replacement.
114+
- `### Removed`: a feature that is gone without a replacement. A feature with a replacement goes in `### Changed`.
115+
- `### Security`: a fix for a security problem.
116+
117+
Do not use `### Changed` for a performance improvement, a refactor or another internal change.
118+
101119
Write the entry in the same style as the existing entries in [CHANGELOG.md](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md). In short:
102120

103121
- Write one line that describes the change for a user, not how you fixed it.

‎CHANGELOG.md‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
### Added
11-
12-
- Canonicalization: replace CSS escapes that are not needed in arbitrary values, properties, modifiers and variants (e.g. `bg-[u\72l('a.png')]` → `bg-[url('a.png')]`) ([#20697](https://github.com/tailwindlabs/tailwindcss/pull/20697))
13-
1410
### Fixed
1511

1612
- Ignore candidates with more than 16 nested compound variants (e.g. `in-in-…-in-hover:flex`) or more than 64 stacked variants (e.g. `hover:hover:…:hover:flex`) instead of slowing down or crashing the build ([#20693](https://github.com/tailwindlabs/tailwindcss/pull/20693))
1713
- Improve performance of parsing long candidates with many dashes (e.g. `data-a-a-…-a:flex`) ([#20693](https://github.com/tailwindlabs/tailwindcss/pull/20693))
1814
- Discard candidates whose selectors grow exponentially when variants are stacked, instead of running out of memory (e.g. `[&_&]:[&_&]:[&_&]:…:flex`) ([#20692](https://github.com/tailwindlabs/tailwindcss/pull/20692))
1915
- Improve performance when scanning long lines with many `[` characters (e.g. minified JSON) ([#20694](https://github.com/tailwindlabs/tailwindcss/pull/20694))
2016
- Keep the absolute path of `url(…)`s in stylesheets imported from another drive on Windows, instead of a relative path that climbs out of the drive ([#20683](https://github.com/tailwindlabs/tailwindcss/pull/20683))
17+
- Improve the performance of rebuilds that add new utilities by only optimizing and printing the new utilities ([#20680](https://github.com/tailwindlabs/tailwindcss/pull/20680), [#20688](https://github.com/tailwindlabs/tailwindcss/pull/20688))
18+
- Canonicalization: replace CSS escapes that are not needed in arbitrary values, properties, modifiers and variants (e.g. `bg-[u\72l('a.png')]` → `bg-[url('a.png')]`) ([#20697](https://github.com/tailwindlabs/tailwindcss/pull/20697))
2119
- Improve `@tailwindcss/vite` build performance by scanning the same sources only once per build, and by not looking for files to watch outside of watch mode ([#20678](https://github.com/tailwindlabs/tailwindcss/pull/20678))
2220
- Ensure `@tailwindcss/vite` generates the same CSS for the client and SSR environments when they share the plugin, even when the build output is not ignored (e.g. React Router with the Vite Environment API) ([#20678](https://github.com/tailwindlabs/tailwindcss/pull/20678))
2321
- Ignore arbitrary values, properties, modifiers and variants with a `/*` outside of a string or an unquoted `url(…)` (e.g. `bg-[red/*]`) instead of commenting out the CSS that comes after them ([#20690](https://github.com/tailwindlabs/tailwindcss/pull/20690))
@@ -30,11 +28,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3028
- Allow `@apply` with a CSS mixin that has spaces in its arguments (e.g. `@apply --card(red, 2rem)`) instead of throwing an error about mixins and utilities ([#20725](https://github.com/tailwindlabs/tailwindcss/pull/20725))
3129
- Prevent a crash on Windows when a worker thread that used `@tailwindcss/oxide` exits ([#20471](https://github.com/tailwindlabs/tailwindcss/pull/20471))
3230

33-
### Changed
34-
35-
- Improve the performance of rebuilds that add new utilities by only optimizing and printing the new utilities ([#20680](https://github.com/tailwindlabs/tailwindcss/pull/20680))
36-
- Improve the performance of rebuilds that add new utilities in the CLI with `--output`, `@tailwindcss/postcss`, `@tailwindcss/webpack`, `@tailwindcss/turbopack` and `@tailwindcss/vite` with CSS source maps ([#20688](https://github.com/tailwindlabs/tailwindcss/pull/20688))
37-
3831
## [4.3.5] - 2026-11-06
3932

4033
### Fixed

0 commit comments

Comments
 (0)