From 272c6dfa98cae96552c4f1fab2bc6bc33782b42d Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Mon, 10 Feb 2025 23:01:26 +0100 Subject: [PATCH] Add `tailwindcss/lib/util/flattenColorPalette.js` export (#16411) Closes #16401 This adds a `tailwindcss/lib/util/flattenColorPalette.js` (notice the `.js` suffix) inline with our other exports. --- CHANGELOG.md | 4 +++- packages/tailwindcss/package.json | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ab17ec9f..d4177c13e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -- Nothing yet! +### Fixed + +- Export `tailwindcss/lib/util/flattenColorPalette.js` for backward compatibility ([#16411](https://github.com/tailwindlabs/tailwindcss/pull/16411)) ## [4.0.6] - 2025-02-10 diff --git a/packages/tailwindcss/package.json b/packages/tailwindcss/package.json index 71066aca8..99b86f927 100644 --- a/packages/tailwindcss/package.json +++ b/packages/tailwindcss/package.json @@ -35,6 +35,10 @@ "require": "./src/compat/flatten-color-palette.cts", "import": "./src/compat/flatten-color-palette.ts" }, + "./lib/util/flattenColorPalette.js": { + "require": "./src/compat/flatten-color-palette.cts", + "import": "./src/compat/flatten-color-palette.ts" + }, "./defaultTheme": { "require": "./src/compat/default-theme.cts", "import": "./src/compat/default-theme.ts" @@ -99,6 +103,10 @@ "require": "./dist/flatten-color-palette.js", "import": "./dist/flatten-color-palette.mjs" }, + "./lib/util/flattenColorPalette.js": { + "require": "./dist/flatten-color-palette.js", + "import": "./dist/flatten-color-palette.mjs" + }, "./package.json": "./package.json", "./index.css": "./index.css", "./index": "./index.css",