worsier 3.2.0 → 3.3.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.
@@ -41,6 +41,10 @@
41
41
  "imports": "separate",
42
42
  "multilineCallStatements": "separate",
43
43
  "returnStatements": "separate",
44
+ "singleLineCallStatements": {
45
+ "betweenCalls": "compact",
46
+ "withOtherStatements": "separate"
47
+ },
44
48
  "typeAliases": "separate",
45
49
  "variableDeclarations": "separate"
46
50
  },
@@ -106,6 +110,10 @@
106
110
  "imports": "separate",
107
111
  "multilineCallStatements": "separate",
108
112
  "returnStatements": "separate",
113
+ "singleLineCallStatements": {
114
+ "betweenCalls": "compact",
115
+ "withOtherStatements": "separate"
116
+ },
109
117
  "typeAliases": "separate",
110
118
  "variableDeclarations": "separate"
111
119
  }
@@ -146,6 +154,30 @@
146
154
  "off"
147
155
  ]
148
156
  },
157
+ "SingleLineCallStatementSpacingConfig": {
158
+ "type": "object",
159
+ "properties": {
160
+ "betweenCalls": {
161
+ "$ref": "#/$defs/StatementSpacingMode",
162
+ "default": "compact"
163
+ },
164
+ "withOtherStatements": {
165
+ "$ref": "#/$defs/StatementSpacingMode",
166
+ "default": "separate"
167
+ }
168
+ },
169
+ "additionalProperties": false
170
+ },
171
+ "SingleLineCallStatementSpacingRule": {
172
+ "anyOf": [
173
+ {
174
+ "$ref": "#/$defs/StatementSpacingMode"
175
+ },
176
+ {
177
+ "$ref": "#/$defs/SingleLineCallStatementSpacingConfig"
178
+ }
179
+ ]
180
+ },
149
181
  "StatementSpacingConfig": {
150
182
  "type": "object",
151
183
  "properties": {
@@ -165,6 +197,13 @@
165
197
  "$ref": "#/$defs/StatementSpacingMode",
166
198
  "default": "separate"
167
199
  },
200
+ "singleLineCallStatements": {
201
+ "$ref": "#/$defs/SingleLineCallStatementSpacingRule",
202
+ "default": {
203
+ "betweenCalls": "compact",
204
+ "withOtherStatements": "separate"
205
+ }
206
+ },
168
207
  "typeAliases": {
169
208
  "$ref": "#/$defs/StatementSpacingMode",
170
209
  "default": "separate"
package/dist/types.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export type InterfaceLayoutMode = 'off';
2
2
  export type SemicolonMode = 'always' | 'asNeeded' | 'off';
3
+ export type StatementSpacingMode = 'separate' | 'compact' | 'off';
3
4
  export interface FormatConfig {
4
5
  $schema?: string | null;
5
6
  ignorePatterns?: string[];
@@ -29,6 +30,11 @@ export interface StatementSpacingConfig {
29
30
  imports?: 'separate' | 'compact' | 'off';
30
31
  multilineCallStatements?: 'separate' | 'compact' | 'off';
31
32
  returnStatements?: 'separate' | 'compact' | 'off';
33
+ singleLineCallStatements?: StatementSpacingMode | SingleLineCallStatementSpacingConfig;
32
34
  typeAliases?: 'separate' | 'compact' | 'off';
33
35
  variableDeclarations?: 'separate' | 'compact' | 'off';
34
36
  }
37
+ export interface SingleLineCallStatementSpacingConfig {
38
+ betweenCalls?: 'separate' | 'compact' | 'off';
39
+ withOtherStatements?: 'separate' | 'compact' | 'off';
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "worsier",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "A focused JavaScript, TypeScript, and Vue SFC script formatter powered by Rust",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -49,14 +49,14 @@
49
49
  ]
50
50
  },
51
51
  "optionalDependencies": {
52
- "worsier-darwin-arm64": "3.2.0",
53
- "worsier-win32-arm64-msvc": "3.2.0",
54
- "worsier-linux-arm64-gnu": "3.2.0",
55
- "worsier-linux-arm64-musl": "3.2.0",
56
- "worsier-darwin-x64": "3.2.0",
57
- "worsier-win32-x64-msvc": "3.2.0",
58
- "worsier-linux-x64-gnu": "3.2.0",
59
- "worsier-linux-x64-musl": "3.2.0"
52
+ "worsier-darwin-arm64": "3.3.0",
53
+ "worsier-win32-arm64-msvc": "3.3.0",
54
+ "worsier-linux-arm64-gnu": "3.3.0",
55
+ "worsier-linux-arm64-musl": "3.3.0",
56
+ "worsier-darwin-x64": "3.3.0",
57
+ "worsier-win32-x64-msvc": "3.3.0",
58
+ "worsier-linux-x64-gnu": "3.3.0",
59
+ "worsier-linux-x64-musl": "3.3.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/node": "26.4.0",