@stillwind/cli 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/dist/main.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @stillwind/cli
|
|
2
2
|
|
|
3
|
+
## 0.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- CSS `@variant` rules now accept `or(...)` variant alternatives, such as `@variant md:or(hover,focus) { ... }`.
|
|
8
|
+
|
|
9
|
+
- `stillwind lint`, `fmt`, and `check` now analyze the projects of a configuration in parallel worker processes, so a configuration that lists several projects, such as a monorepo root, finishes sooner. Projects that share a target file are still analyzed together in one process. `lint`, `format`, and `check` in `@stillwind/analysis` accept a `concurrency` option that sets the maximum number of worker processes. By default, the maximum is half of the available parallelism.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- `prefer-canonical-utilities` no longer suggests a replacement that matches only for the current theme values. For example, it no longer suggests `rounded-md` for `rounded-[min(var(--radius-md),10px)]`, because the two differ when `--radius-md` is larger than `10px`.
|
|
14
|
+
|
|
15
|
+
It also no longer uses the built-in value of `--radius` for a theme value that refers to `var(--radius)`, because the generated CSS does not declare that value. For example, with `--radius-lg: var(--radius)` in `@theme inline` and `--radius` declared in `:root`, it no longer suggests `rounded-lg` for `rounded-[4px]`.
|
|
16
|
+
|
|
17
|
+
- Hover previews now annotate conditional utilities and recipe variants/slots with rule-leading comments, show scoped previews when hovering recipe slots, variant axes, variant options, compound entries, and style sub-expressions, and filter `recipe({ ... })` call previews by static arguments and `defaultVariants`.
|
|
18
|
+
|
|
19
|
+
- Hover previews now annotate `color-mix()` and `light-dark()` color equivalents, evaluate `calc()` with `rem` dimensions when `themeValues` is disabled and inside `@media` / `@container` preludes, display registered `@property` definitions on `@stillwind-require-properties` arguments, preview `style.when()`, `style.ref()`, and `style.recipe()` calls and their variable references, and display the resolved JavaScript string literal for `style.media()` calls and references.
|
|
20
|
+
|
|
21
|
+
- Hover previews in the language server now omit redundant empty `& {}` rules inside selector variants, trim trailing blank lines from CSS code blocks, annotate active theme declarations hovered in stylesheets, omit redundant hexadecimal comments on shorthand hex theme tokens, omit marker-class notes under enclosing variants, and avoid treating unrelated `.at()` and `.in()` calls as ref variants.
|
|
22
|
+
|
|
23
|
+
- Analysis no longer prepares the TypeScript checker again each time CSS ordering reads a module that the analyzed files do not import for type information. `stillwind lint`, `fmt`, and `check` and the editor finish sooner in projects whose components are imported through other modules.
|
|
24
|
+
|
|
25
|
+
- Show marker documentation instead of a variant CSS block when hovering `style.ref()` declarations and ref marker references.
|
|
26
|
+
|
|
27
|
+
- Fix hover and completion previews for `if(...)`, `or(...)`, and `@scope` variants, and remove trailing spaces in `@starting-style` completion details.
|
|
28
|
+
|
|
29
|
+
- Variant hover and completion previews now mark where utility declarations or nested rules are inserted with `/* … */`.
|
|
30
|
+
|
|
31
|
+
- Updated dependencies:
|
|
32
|
+
- @stillwind/analysis@0.13.0
|
|
33
|
+
- @stillwind/language-server@0.13.0
|
|
34
|
+
- @stillwind/native@0.13.0
|
|
35
|
+
|
|
3
36
|
## 0.12.0
|
|
4
37
|
|
|
5
38
|
### Minor Changes
|
package/dist/main.js
CHANGED
|
@@ -8,7 +8,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
8
8
|
import { documentationSection, documentationUrl, lintReports } from "@stillwind/analysis";
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
10
10
|
// package.json
|
|
11
|
-
var version = "0.
|
|
11
|
+
var version = "0.13.0";
|
|
12
12
|
// src/arguments.ts
|
|
13
13
|
const configArgs = { config: {
|
|
14
14
|
type: "string",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stillwind/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Stillwind CLI to sort, lint, and fix utilities, inspect generated CSS, and query the design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@babel/code-frame": "^8.0.6",
|
|
49
|
-
"@stillwind/analysis": "0.
|
|
50
|
-
"@stillwind/language-server": "0.
|
|
51
|
-
"@stillwind/native": "0.
|
|
49
|
+
"@stillwind/analysis": "0.13.0",
|
|
50
|
+
"@stillwind/language-server": "0.13.0",
|
|
51
|
+
"@stillwind/native": "0.13.0",
|
|
52
52
|
"citty": "^0.2.2",
|
|
53
53
|
"string-width": "^8.3.0"
|
|
54
54
|
},
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"@types/babel__code-frame": "^7.27.0",
|
|
58
58
|
"@types/node": "^26.6.6",
|
|
59
59
|
"typescript": "^6.0.3",
|
|
60
|
-
"vite-plus": "1.
|
|
60
|
+
"vite-plus": "1.8.0"
|
|
61
61
|
}
|
|
62
62
|
}
|