worsier 2.7.1 → 2.8.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/README.md +3 -1
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Worsier
|
|
2
2
|
|
|
3
|
-
Worsier is a focused JavaScript, TypeScript, JSX, and
|
|
3
|
+
Worsier is a focused JavaScript, TypeScript, JSX, TSX, and Vue SFC script formatter powered by Rust. Each rule is independently configurable, and source outside enabled rules is preserved instead of being reprinted.
|
|
4
4
|
|
|
5
5
|
Node.js 24.0.0 or newer is required.
|
|
6
6
|
|
|
@@ -16,6 +16,8 @@ pnpm exec worsier --write .
|
|
|
16
16
|
|
|
17
17
|
The CLI uses its defaults when no configuration file is present. Run `pnpm exec worsier --init` to create a complete typed `worsier.jsonc`.
|
|
18
18
|
|
|
19
|
+
For `.vue` files, Worsier formats inline `<script>` and `<script setup>` blocks using JavaScript, JSX, TypeScript, or TSX. Templates, styles, custom blocks, external `src` scripts, and unknown languages remain byte-for-byte unchanged.
|
|
20
|
+
|
|
19
21
|
## Programmatic API
|
|
20
22
|
|
|
21
23
|
```js
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "worsier",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "A focused JavaScript
|
|
3
|
+
"version": "2.8.0",
|
|
4
|
+
"description": "A focused JavaScript, TypeScript, and Vue SFC script formatter powered by Rust",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
|
-
"worsier-darwin-arm64": "2.
|
|
53
|
-
"worsier-win32-arm64-msvc": "2.
|
|
54
|
-
"worsier-linux-arm64-gnu": "2.
|
|
55
|
-
"worsier-linux-arm64-musl": "2.
|
|
56
|
-
"worsier-darwin-x64": "2.
|
|
57
|
-
"worsier-win32-x64-msvc": "2.
|
|
58
|
-
"worsier-linux-x64-gnu": "2.
|
|
59
|
-
"worsier-linux-x64-musl": "2.
|
|
52
|
+
"worsier-darwin-arm64": "2.8.0",
|
|
53
|
+
"worsier-win32-arm64-msvc": "2.8.0",
|
|
54
|
+
"worsier-linux-arm64-gnu": "2.8.0",
|
|
55
|
+
"worsier-linux-arm64-musl": "2.8.0",
|
|
56
|
+
"worsier-darwin-x64": "2.8.0",
|
|
57
|
+
"worsier-win32-x64-msvc": "2.8.0",
|
|
58
|
+
"worsier-linux-x64-gnu": "2.8.0",
|
|
59
|
+
"worsier-linux-x64-musl": "2.8.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@types/node": "26.2.0",
|