From 905a220b9e0bde213f336de6612f2fe1b5faa104 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 3 Jun 2025 20:15:33 +0200 Subject: [PATCH 1/3] add failing test Co-authored-by: Jordan Pittman --- .../src/codemods/template/is-safe-migration.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/@tailwindcss-upgrade/src/codemods/template/is-safe-migration.test.ts b/packages/@tailwindcss-upgrade/src/codemods/template/is-safe-migration.test.ts index 455b686604e8..b4c9c01246fc 100644 --- a/packages/@tailwindcss-upgrade/src/codemods/template/is-safe-migration.test.ts +++ b/packages/@tailwindcss-upgrade/src/codemods/template/is-safe-migration.test.ts @@ -58,4 +58,7 @@ test('does not replace classes in invalid positions', async () => { await shouldNotReplace('
', '!duration') await shouldNotReplace('
', '!duration') await shouldNotReplace('
', '!visible') + + // Alpine/Livewire wire:… + await shouldNotReplace('', 'blur') }) From 043b59eb6ee729025193ce7b5fe61d6b77bae6f7 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 3 Jun 2025 20:15:44 +0200 Subject: [PATCH 2/3] =?UTF-8?q?do=20not=20migrate=20`blur`=20in=20`wire:mo?= =?UTF-8?q?del.blur=3D"=E2=80=A6"`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/codemods/template/is-safe-migration.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/@tailwindcss-upgrade/src/codemods/template/is-safe-migration.ts b/packages/@tailwindcss-upgrade/src/codemods/template/is-safe-migration.ts index 047424e11291..27c2e23216ea 100644 --- a/packages/@tailwindcss-upgrade/src/codemods/template/is-safe-migration.ts +++ b/packages/@tailwindcss-upgrade/src/codemods/template/is-safe-migration.ts @@ -15,6 +15,7 @@ const CONDITIONAL_TEMPLATE_SYNTAX = [ // Alpine /x-if=['"]$/, /x-show=['"]$/, + /wire:[^\s]*?$/, ] const NEXT_PLACEHOLDER_PROP = /placeholder=\{?['"]$/ From 0ab96b71dbc279cefdde45b2c86b74e767ec10a4 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 3 Jun 2025 20:19:36 +0200 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d293fd5c130a..ef1694dfe4da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgrade: migrate arbitrary modifiers with values without percentage sign to bare values `/[0.16]` -> `/16` ([#18184](https://github.com/tailwindlabs/tailwindcss/pull/18184)) - Upgrade: migrate CSS variable shorthand if fallback value contains function call ([#18184](https://github.com/tailwindlabs/tailwindcss/pull/18184)) - Upgrade: Migrate negative arbitrary values to negative bare values, e.g.: `mb-[-32rem]` → `-mb-128` ([#18212](https://github.com/tailwindlabs/tailwindcss/pull/18212)) +- Upgrade: Do not migrate `blur` in `wire:model.blur` ([#18216](https://github.com/tailwindlabs/tailwindcss/pull/18216)) ## [4.1.8] - 2025-05-27