From a0f589df8b36e83c96bf89f7002084378de6d79b Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Fri, 14 Feb 2025 12:57:46 -0500 Subject: [PATCH 1/5] Bump embedded Tailwind CSS version --- packages/tailwindcss-language-server/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tailwindcss-language-server/package.json b/packages/tailwindcss-language-server/package.json index 2824c883..dd41332d 100644 --- a/packages/tailwindcss-language-server/package.json +++ b/packages/tailwindcss-language-server/package.json @@ -82,7 +82,7 @@ "rimraf": "3.0.2", "stack-trace": "0.0.10", "tailwindcss": "3.4.17", - "tailwindcss-v4": "npm:tailwindcss@4.0.0", + "tailwindcss-v4": "npm:tailwindcss@4.0.6", "tsconfck": "^3.1.4", "tsconfig-paths": "^4.2.0", "typescript": "5.3.3", From f168a813d2667c2258ed66f7cc88912db05869a9 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Fri, 14 Feb 2025 12:58:21 -0500 Subject: [PATCH 2/5] Update lockfile --- pnpm-lock.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4014f6c3..f1048aaa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -180,8 +180,8 @@ importers: specifier: 3.4.17 version: 3.4.17 tailwindcss-v4: - specifier: npm:tailwindcss@4.0.0 - version: tailwindcss@4.0.0 + specifier: npm:tailwindcss@4.0.6 + version: tailwindcss@4.0.6 tsconfck: specifier: ^3.1.4 version: 3.1.4(typescript@5.3.3) @@ -2494,8 +2494,8 @@ packages: engines: {node: '>=14.0.0'} hasBin: true - tailwindcss@4.0.0: - resolution: {integrity: sha512-ULRPI3A+e39T7pSaf1xoi58AqqJxVCLg8F/uM5A3FadUbnyDTgltVnXJvdkTjwCOGA6NazqHVcwPJC5h2vRYVQ==} + tailwindcss@4.0.6: + resolution: {integrity: sha512-mysewHYJKaXgNOW6pp5xon/emCsfAMnO8WMaGKZZ35fomnR/T5gYnRg2/yRTTrtXiEl1tiVkeRt0eMO6HxEZqw==} tapable@2.2.1: resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} @@ -4844,7 +4844,7 @@ snapshots: transitivePeerDependencies: - ts-node - tailwindcss@4.0.0: {} + tailwindcss@4.0.6: {} tapable@2.2.1: {} From f30ca3572b46442e04268a3e8882d0a94ecc04b6 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Fri, 14 Feb 2025 12:51:30 -0500 Subject: [PATCH 3/5] Update tests --- .../tests/colors/colors.test.js | 4 ++-- packages/tailwindcss-language-server/tests/env/v4.test.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/tailwindcss-language-server/tests/colors/colors.test.js b/packages/tailwindcss-language-server/tests/colors/colors.test.js index f39ee1d9..5016bacc 100644 --- a/packages/tailwindcss-language-server/tests/colors/colors.test.js +++ b/packages/tailwindcss-language-server/tests/colors/colors.test.js @@ -334,7 +334,7 @@ defineTest({ expect(c.project).toMatchObject({ tailwind: { - version: '4.0.0', + version: '4.0.6', isDefaultVersion: true, }, }) @@ -373,7 +373,7 @@ defineTest({ expect(c.project).toMatchObject({ tailwind: { - version: '4.0.0', + version: '4.0.6', isDefaultVersion: true, }, }) diff --git a/packages/tailwindcss-language-server/tests/env/v4.test.js b/packages/tailwindcss-language-server/tests/env/v4.test.js index 37d83cd1..65fc25c7 100644 --- a/packages/tailwindcss-language-server/tests/env/v4.test.js +++ b/packages/tailwindcss-language-server/tests/env/v4.test.js @@ -21,7 +21,7 @@ defineTest({ expect(c.project).toMatchObject({ tailwind: { - version: '4.0.0', + version: '4.0.6', isDefaultVersion: true, }, }) @@ -58,7 +58,7 @@ defineTest({ }, }) - expect(completion.items.length).toBe(12286) + expect(completion.items.length).toBe(12288) }, }) @@ -109,7 +109,7 @@ defineTest({ expect(c.project).toMatchObject({ tailwind: { - version: '4.0.0', + version: '4.0.6', isDefaultVersion: true, }, }) @@ -315,7 +315,7 @@ defineTest({ expect(c.project).toMatchObject({ tailwind: { - version: '4.0.0', + version: '4.0.6', isDefaultVersion: true, }, }) From 00b2133e78924960fa291828ec163e912aa4fcc8 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Fri, 14 Feb 2025 12:47:39 -0500 Subject: [PATCH 4/5] Update changelog --- packages/vscode-tailwindcss/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vscode-tailwindcss/CHANGELOG.md b/packages/vscode-tailwindcss/CHANGELOG.md index 3a513c0a..8896fc88 100644 --- a/packages/vscode-tailwindcss/CHANGELOG.md +++ b/packages/vscode-tailwindcss/CHANGELOG.md @@ -6,6 +6,7 @@ - Ignore comments when matching class attributes ([#1202](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1202)) - Show source diagnostics when imports contain a layer ([#1204](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1204)) - Only detect project roots in v4 when using certain CSS features ([#1205](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1205)) +- Update Tailwind CSS v4 version to v4.0.6 ([#1207](https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1207)) ## 0.14.4 From 3c276a26ffb5b0606006d9aa4c965a5565dc5506 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Fri, 14 Feb 2025 12:56:17 -0500 Subject: [PATCH 5/5] Remove unused import --- packages/tailwindcss-language-server/src/project-locator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tailwindcss-language-server/src/project-locator.ts b/packages/tailwindcss-language-server/src/project-locator.ts index f3884fe1..64f7329b 100644 --- a/packages/tailwindcss-language-server/src/project-locator.ts +++ b/packages/tailwindcss-language-server/src/project-locator.ts @@ -16,7 +16,7 @@ import { extractSourceDirectives, resolveCssImports } from './css' import { normalizeDriveLetter, normalizePath, pathToFileURL } from './utils' import postcss from 'postcss' import * as oxide from './oxide' -import { analyzeStylesheet, TailwindStylesheet, TailwindVersion } from './version-guesser' +import { analyzeStylesheet, TailwindStylesheet } from './version-guesser' export interface ProjectConfig { /** The folder that contains the project */