@wasm-fmt/mago_fmt 0.6.3 → 0.6.4

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.3",
4
+ "version": "0.6.4",
5
5
  "exports": {
6
6
  ".": "./mago_fmt.js",
7
7
  "./esm": "./mago_fmt_esm.js",
package/mago_fmt_bg.wasm CHANGED
Binary file
@@ -12,12 +12,24 @@ export interface Settings {
12
12
  * @remarks Available presets:
13
13
  * - `default` - Default preset (PER-CS compatible)
14
14
  * - `psr-12` - PSR-12 preset
15
- * - `pint` - Laravel Pint's preset (alias: `laravel`)
16
- * - `drupal` - Drupal's coding standard
17
- * - `tempest` - Tempest framework compatible
15
+ * - `pint` - Pint preset (Laravel Pint compatible)
16
+ * - `tempest` - Tempest preset (Tempest framework compatible)
18
17
  * - `hack` - Hack preset (`hackfmt` compatible)
19
- */
20
- preset?: "default" | "psr-12" | "pint" | "laravel" | "drupal" | "tempest" | "hack";
18
+ * - `drupal` - Drupal preset
19
+ */
20
+ preset?:
21
+ | "default"
22
+ | "per-cs"
23
+ | "psr-12"
24
+ | "pint"
25
+ | "laravel-pint"
26
+ | "laravel"
27
+ | "tempest"
28
+ | "tempest-php"
29
+ | "hack"
30
+ | "hackfmt"
31
+ | "hhvm"
32
+ | "drupal";
21
33
 
22
34
  /**
23
35
  * Maximum line length that the printer will wrap on.
@@ -659,21 +671,21 @@ export interface Settings {
659
671
  * }
660
672
  * ```
661
673
  *
662
- * @example "null-pipe"
674
+ * @example "null_pipe"
663
675
  * ```php
664
676
  * function foo(null|string $bar) {
665
677
  * return $bar;
666
678
  * }
667
679
  * ```
668
680
  *
669
- * @example "null-pipe-last"
681
+ * @example "null_pipe_last"
670
682
  * ```php
671
683
  * function foo(string|null $bar) {
672
684
  * return $bar;
673
685
  * }
674
686
  * ```
675
687
  */
676
- "null-type-hint"?: "null-pipe" | "null-pipe-last" | "question";
688
+ "null-type-hint"?: "null_pipe" | "null_pipe_last" | "question";
677
689
 
678
690
  /**
679
691
  * Whether to include parentheses around `new` when followed by a member access.
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.3",
8
+ "version": "0.6.4",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",