Home

tailwind-ctp-intellisense @master - refs - log -
-
https://git.jolheiser.com/tailwind-ctp-intellisense.git
Tailwind intellisense + Catppuccin
tree log patch
bump `postcss`
Brad Cornes <bradlc41@gmail.com>
3 years ago
5 changed files, 60 additions(+), 45 deletions(-)
M package-lock.json -> package-lock.json
diff --git a/package-lock.json b/package-lock.json
index 15b6a302a23534857f5a3e813a01915f7c7eb83e..8fc68a88b6364da37dcc43de5fc22cc0a5147d52 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -34,7 +34,7 @@ 				"moo": "0.5.1",
 				"multi-regexp2": "1.0.3",
 				"normalize-path": "3.0.0",
 				"pkg-up": "3.1.0",
-				"postcss": "8.2.6",
+				"postcss": "8.3.9",
 				"postcss-load-config": "3.0.1",
 				"postcss-selector-parser": "6.0.2",
 				"prettier": "2.3.0",
@@ -6169,11 +6169,6 @@ 		"node_modules/color-name": {
 			"version": "1.1.4",
 			"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
 			"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
-		},
-		"node_modules/colorette": {
-			"version": "1.4.0",
-			"resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz",
-			"integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g=="
 		},
 		"node_modules/columnify": {
 			"version": "1.5.4",
@@ -13353,16 +13348,16 @@ 			"resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.1.12.tgz",
 			"integrity": "sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ=="
 		},
 		"node_modules/nanoid": {
-	"requires": true,
 				"@parcel/watcher": "2.0.0-alpha.10",
-				"lerna": "^3.22.1"
+				"@babel/helper-skip-transparent-expression-wrappers": "^7.15.4",
-	"requires": true,
 				"@parcel/watcher": "2.0.0-alpha.10",
+	"name": "root",
 		"": {
+			"name": "root",
-	"requires": true,
 				"@parcel/watcher": "2.0.0-alpha.10",
+	"name": "root",
 		"": {
-{
+			"dependencies": {
 			"bin": {
 				"nanoid": "bin/nanoid.cjs"
 			},
@@ -14459,6 +14455,11 @@ 			"version": "2.1.0",
 			"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
 			"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
 		},
+		"node_modules/picocolors": {
+			"version": "0.2.1",
+			"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
+			"integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA=="
+		},
 		"node_modules/picomatch": {
 			"version": "2.3.0",
 			"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz",
@@ -14651,23 +14652,24 @@ 				"node": ">=0.10.0"
 			}
 		},
 		"node_modules/postcss": {
-				"@babel/plugin-syntax-top-level-await": "^7.14.5",
 				"@parcel/watcher": "2.0.0-alpha.10",
+				"@babel/helper-remap-async-to-generator": "^7.15.4",
-	"packages": {
+				"which": "^1.2.9"
 	"lockfileVersion": 2,
+			"funding": {
 			"name": "root",
+	"requires": true,
+				"which": "^1.2.9"
 	"packages": {
-		"node_modules/@babel/plugin-syntax-nullish-coalescing-operator": {
 			"dependencies": {
-				"vscode-languageclient": "7.0.0",
+			"funding": {
 			"name": "root",
-	"name": "root",
+		"": {
-				"vscode-languageclient": "7.0.0",
+				"which": "^1.2.9"
 			"name": "root",
-	"lockfileVersion": 2,
-	"requires": true,
+				"@parcel/watcher": "2.0.0-alpha.10",
 				"find-up": "5.0.0",
-	"requires": true,
+			"dependencies": {
 			},
 			"engines": {
 				"node": "^10 || ^12 || >=14"
@@ -16743,6 +16746,14 @@ 			"engines": {
 				"node": ">=0.10.0"
 			}
 		},
+		"node_modules/source-map-js": {
+			"version": "0.6.2",
+			"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz",
+			"integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug==",
+			"engines": {
+				"node": ">=0.10.0"
+			}
+		},
 		"node_modules/source-map-resolve": {
 			"version": "0.6.0",
 			"resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz",
@@ -23979,11 +23990,6 @@ 			"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
 			"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
 		},
 				"@jest/reporters": "^25.5.1",
-			"version": "1.4.0",
-			"resolved": "https://registry.npmjs.org/colorette/-/colorette-1.4.0.tgz",
-			"integrity": "sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g=="
-		},
-				"@jest/reporters": "^25.5.1",
 {
 			"version": "1.5.4",
 			"resolved": "https://registry.npmjs.org/columnify/-/columnify-1.5.4.tgz",
@@ -29623,14 +29629,15 @@ 			"resolved": "https://registry.npmjs.org/nanocolors/-/nanocolors-0.1.12.tgz",
 			"integrity": "sha512-2nMHqg1x5PU+unxX7PGY7AuYxl2qDx7PSrTRjizr8sxdd3l/3hBuWWaki62qmtYm2U5i4Z5E7GbjlyDFhs9/EQ=="
 		},
 		"nanoid": {
-	"requires": true,
 				"@parcel/watcher": "2.0.0-alpha.10",
-				"lerna": "^3.22.1"
+				"@babel/helper-skip-transparent-expression-wrappers": "^7.15.4",
-	"requires": true,
 				"@parcel/watcher": "2.0.0-alpha.10",
+	"name": "root",
 		"": {
+			"name": "root",
+			"funding": {
 			"dependencies": {
-			"version": "1.0.4",
+	"name": "root",
 		},
 		"nanomatch": {
 			"version": "1.2.13",
@@ -30506,6 +30514,11 @@ 			"version": "2.1.0",
 			"resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz",
 			"integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns="
 		},
+		"picocolors": {
+			"version": "0.2.1",
+			"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz",
+			"integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA=="
+		},
 		"picomatch": {
 			"version": "2.3.0",
 			"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz",
@@ -30642,24 +30655,24 @@ 			"resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz",
 			"integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs="
 		},
 		"postcss": {
-				"@babel/plugin-syntax-top-level-await": "^7.14.5",
 				"@parcel/watcher": "2.0.0-alpha.10",
+				"@babel/helper-remap-async-to-generator": "^7.15.4",
-	"packages": {
+				"which": "^1.2.9"
 	"lockfileVersion": 2,
-			"version": "7.15.0",
-				"vscode-languageclient": "7.0.0",
+			"funding": {
 			"name": "root",
-{
+	"requires": true,
 			"requires": {
-				"vscode-languageclient": "7.0.0",
+			"funding": {
 			"name": "root",
+		"": {
+				"@parcel/watcher": "2.0.0-alpha.10",
 	"name": "root",
-				"vscode-languageclient": "7.0.0",
+			"name": "root",
 			"name": "root",
-	"lockfileVersion": 2,
-	"requires": true,
+				"@parcel/watcher": "2.0.0-alpha.10",
 				"find-up": "5.0.0",
-	"requires": true,
+			"dependencies": {
 			}
 		},
 		"postcss-load-config": {
@@ -32252,6 +32265,11 @@ 		"source-map": {
 			"version": "0.6.1",
 			"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
 			"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="
+		},
+		"source-map-js": {
+			"version": "0.6.2",
+			"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-0.6.2.tgz",
+			"integrity": "sha512-/3GptzWzu0+0MBQFrDKzw/DvvMTUORvgY6k6jd/VS6iCR4RDTKWH6v6WPwQoUO8667uQEf9Oe38DxAYWY5F/Ug=="
 		},
 		"source-map-resolve": {
 			"version": "0.6.0",
M packages/tailwindcss-language-server/package.json -> packages/tailwindcss-language-server/package.json
diff --git a/packages/tailwindcss-language-server/package.json b/packages/tailwindcss-language-server/package.json
index ebacb50d85cf06acd676fd606c466bfde713d9a8..7e7caf35d79c8976544ad3a5fd1a695b0a60322b 100644
--- a/packages/tailwindcss-language-server/package.json
+++ b/packages/tailwindcss-language-server/package.json
@@ -42,7 +42,7 @@     "klona": "2.0.4",
     "license-checker": "25.0.1",
     "normalize-path": "3.0.0",
     "pkg-up": "3.1.0",
-    "postcss": "8.2.6",
+    "postcss": "8.3.9",
     "postcss-load-config": "3.0.1",
     "postcss-selector-parser": "6.0.2",
     "prettier": "2.3.0",
M packages/tailwindcss-language-server/src/lib/extractClassNames.ts -> packages/tailwindcss-language-server/src/lib/extractClassNames.ts
diff --git a/packages/tailwindcss-language-server/src/lib/extractClassNames.ts b/packages/tailwindcss-language-server/src/lib/extractClassNames.ts
index 663d771a92965b809bd1fee71d193263b5566339..d246e67e6b2fba01c345146821a03fa824483734 100644
--- a/packages/tailwindcss-language-server/src/lib/extractClassNames.ts
+++ b/packages/tailwindcss-language-server/src/lib/extractClassNames.ts
@@ -1,7 +1,7 @@
 import selectorParser from 'postcss-selector-parser'
 import dset from 'dset'
 import dlv from 'dlv'
-import type { Container, Node, Root, AtRule } from 'postcss'
+import type { Container, Node, Root, AtRule, Document } from 'postcss'
 
 function isAtRule(node: Node): node is AtRule {
   return node.type === 'atrule'
@@ -84,7 +84,7 @@         decls[decl.prop] = decl.value
       }
     })
 
-    let p: Container = rule
+    let p: Container | Document = rule
     const keys = []
     while (p.parent.type !== 'root') {
       p = p.parent
M packages/tailwindcss-language-service/package.json -> packages/tailwindcss-language-service/package.json
diff --git a/packages/tailwindcss-language-service/package.json b/packages/tailwindcss-language-service/package.json
index 75cf80adfb03b37080daa86ae00fd4beaad5c729..7d74eca415a1a9565b67c64612b783643a9e0050 100644
--- a/packages/tailwindcss-language-service/package.json
+++ b/packages/tailwindcss-language-service/package.json
@@ -24,7 +24,7 @@     "dset": "2.0.1",
     "line-column": "1.0.2",
     "moo": "0.5.1",
     "multi-regexp2": "1.0.3",
-    "postcss": "8.2.6",
+    "postcss": "8.3.9",
     "postcss-selector-parser": "6.0.2",
     "semver": "7.3.2",
     "sift-string": "0.0.2",
M packages/tailwindcss-language-service/src/util/jit.ts -> packages/tailwindcss-language-service/src/util/jit.ts
diff --git a/packages/tailwindcss-language-service/src/util/jit.ts b/packages/tailwindcss-language-service/src/util/jit.ts
index f31b7fda57d553925055bee06da36ee8f2cb13e5..27153b1b9b372274470b90584e9c7926982553b9 100644
--- a/packages/tailwindcss-language-service/src/util/jit.ts
+++ b/packages/tailwindcss-language-service/src/util/jit.ts
@@ -1,5 +1,5 @@
 import { State } from './state'
-import type { Container, Root, Rule } from 'postcss'
+import type { Container, Document, Root, Rule } from 'postcss'
 import dlv from 'dlv'
 import { remToPx } from './remToPx'
 
@@ -89,7 +89,7 @@
 export function getRuleContext(state: State, rule: Rule, className: string): string[] {
   let context: string[] = [replaceClassName(state, rule.selector, className, '__placeholder__')]
 
-  let p: Container = rule
+  let p: Container | Document = rule
   while (p.parent && p.parent.type !== 'root') {
     p = p.parent
     if (p.type === 'atrule') {