From 467f9fc976149a9552fee78ceb36fcab05cc2f2f Mon Sep 17 00:00:00 2001 From: Huzaifa Iftikhar Date: Fri, 28 Aug 2026 05:20:48 +0500 Subject: [PATCH] let a condition contain an object literal review found two more, both an object literal inside the condition. a vue binding calling isActive({ x: 1 }) and a jsx expression starting with an inline object an object group is now allowed as a unit the same way a parenthesised group already was, so the braces inside it do not read as the end of the value --- .../src/codemods/template/is-safe-migration.test.ts | 2 ++ .../src/codemods/template/is-safe-migration.ts | 13 ++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) 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 8c9b630d2..5ab859b4f 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 @@ -128,6 +128,8 @@ describe('is-safe-migration', async () => { [`
`, 'outline'], [`Button({ variant: (value ?? "outline") })`, 'outline'], [`Button({ variant: theme === "dark" ? "outline" : "ghost" })`, 'outline'], + [`
`, 'outline'], + [`