@wasm-fmt/mago_fmt 0.6.4 → 0.6.6

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.6.4",
4
+ "version": "0.6.6",
5
5
  "exports": {
6
6
  ".": "./mago_fmt.js",
7
7
  "./esm": "./mago_fmt_esm.js",
package/mago_fmt_bg.wasm CHANGED
Binary file
@@ -491,6 +491,32 @@ export interface Settings {
491
491
  */
492
492
  "break-promoted-properties-list"?: boolean;
493
493
 
494
+ /**
495
+ * Whether to place parameter attributes on their own line when the parameter list breaks.
496
+ * @default true
497
+ *
498
+ * When enabled, attributes are placed on a separate line
499
+ * from the parameter when the parameter list spans multiple lines:
500
+ *
501
+ * @example true
502
+ * ```php
503
+ * function foo(
504
+ * #[SensitiveParameter]
505
+ * string $password,
506
+ * ) {}
507
+ * ```
508
+ *
509
+ * @example false
510
+ * ```php
511
+ * function foo(
512
+ * #[SensitiveParameter] string $password,
513
+ * ) {}
514
+ * ```
515
+ *
516
+ * @remarks PER-CS 12.2 compliant
517
+ */
518
+ "parameter-attribute-on-new-line"?: boolean;
519
+
494
520
  /**
495
521
  * Whether to add a line before binary operators or after when breaking.
496
522
  * @default true
@@ -1017,6 +1043,26 @@ export interface Settings {
1017
1043
  */
1018
1044
  "empty-line-after-control-structure"?: boolean;
1019
1045
 
1046
+ /**
1047
+ * Whether the opening `<?php` tag must be on its own line with no other statements.
1048
+ * @default true
1049
+ *
1050
+ * When enabled, a newline is always inserted after the opening tag, even if
1051
+ * the original source has statements on the same line (PER-CS compliant).
1052
+ *
1053
+ * @example true
1054
+ * ```php
1055
+ * <?php
1056
+ * echo "Hello";
1057
+ * ```
1058
+ *
1059
+ * @example false
1060
+ * ```php
1061
+ * <?php echo "Hello";
1062
+ * ```
1063
+ */
1064
+ "opening-tag-on-own-line"?: boolean;
1065
+
1020
1066
  /**
1021
1067
  * Whether to add an empty line after opening tag.
1022
1068
  * @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.6.4",
8
+ "version": "0.6.6",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",