@wasm-fmt/mago_fmt 0.7.0 → 0.9.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/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.7.0",
4
+ "version": "0.9.0",
5
5
  "exports": {
6
6
  ".": "./mago_fmt.js",
7
7
  "./esm": "./mago_fmt_esm.js",
package/mago_fmt_bg.wasm CHANGED
Binary file
@@ -468,6 +468,15 @@ export interface Settings {
468
468
  */
469
469
  "preserve-breaking-conditional-expression"?: boolean;
470
470
 
471
+ /**
472
+ * Whether to preserve line breaks in condition expressions (if, elseif, while, do-while, switch, match).
473
+ *
474
+ * When enabled, if the original source has conditions broken across multiple lines,
475
+ * the formatter maintains that layout using PER Coding Style 3.0 rules.
476
+ * @default false
477
+ */
478
+ "preserve-breaking-condition-expression"?: boolean;
479
+
471
480
  /**
472
481
  * Whether to break a parameter list with one or more promoted properties into multiple lines.
473
482
  * @default true
@@ -537,6 +546,27 @@ export interface Settings {
537
546
  */
538
547
  "line-before-binary-operator"?: boolean;
539
548
 
549
+ /**
550
+ * Whether to indent continuation lines of binary expressions.
551
+ *
552
+ * When enabled, if a binary expression breaks across lines, the continuation
553
+ * is indented relative to the start of the expression:
554
+ * @default false
555
+ *
556
+ * @example true
557
+ * ```php
558
+ * $emailNotifications = $this->stringUtils->splitStringToArray($jobPosting->getVacancyEmailNotification())
559
+ * ?? [];
560
+ * ```
561
+ *
562
+ * @example false
563
+ * ```php
564
+ * $emailNotifications = $this->stringUtils->splitStringToArray($jobPosting->getVacancyEmailNotification())
565
+ * ?? [];
566
+ * ```
567
+ */
568
+ "indent-binary-expression-continuation"?: boolean;
569
+
540
570
  /**
541
571
  * Whether to always break named argument lists into multiple lines.
542
572
  * @default false
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.7.0",
8
+ "version": "0.9.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",