@wasm-fmt/mago_fmt 0.10.3 → 0.10.5

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/jsr.jsonc CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://jsr.io/schema/config-file.v1.json",
3
3
  "name": "@fmt/mago-fmt",
4
- "version": "0.10.3",
4
+ "version": "0.10.5",
5
5
  "exports": {
6
6
  ".": "./mago_fmt.js",
7
7
  "./esm": "./mago_fmt_esm.js",
package/mago_fmt_bg.wasm CHANGED
Binary file
@@ -1318,6 +1318,36 @@ export interface Settings {
1318
1318
  */
1319
1319
  "separate-class-like-members"?: boolean;
1320
1320
 
1321
+ /**
1322
+ * How to order `#[Attribute]` annotations on a declaration.
1323
+ * @default "preserve"
1324
+ */
1325
+ "attributes-order"?:
1326
+ | "preserve"
1327
+ | "alphanumeric-ascending"
1328
+ | "alphanumeric-descending"
1329
+ | "length-ascending"
1330
+ | "length-descending";
1331
+
1332
+ /**
1333
+ * Whether to split a single `#[Attr1, Attr2]` group into separate
1334
+ * `#[Attr1]` `#[Attr2]` lines.
1335
+ * @default false
1336
+ */
1337
+ "separate-attributes"?: boolean;
1338
+
1339
+ /**
1340
+ * Whether to split a single `use` trait statement that imports multiple traits
1341
+ * (`use FirstTrait, SecondTrait;`) into one `use` statement per trait, as required
1342
+ * by PSR-12 / PER-CS-3 section 4.2.
1343
+ *
1344
+ * Only abstract trait-use forms (those terminated with `;`, with no `{ ... }`
1345
+ * adaptation block) are split. Compound declarations with adaptations are left
1346
+ * untouched because the adaptations may reference any of the imported traits.
1347
+ * @default true
1348
+ */
1349
+ "separate-trait-use"?: boolean;
1350
+
1321
1351
  /**
1322
1352
  * Whether to indent heredoc/nowdoc content.
1323
1353
  * @default true
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "magic-akari <akari.ccino@gmail.com>"
6
6
  ],
7
7
  "description": "A WASM based PHP Formatter",
8
- "version": "0.10.3",
8
+ "version": "0.10.5",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",