@prettier/plugin-oxc 0.1.3 → 0.1.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/index.d.ts CHANGED
@@ -1,6 +1,10 @@
1
- import { Parser } from "prettier";
1
+ import { Parser, Printer } from "prettier";
2
2
 
3
3
  export declare const parsers: {
4
4
  oxc: Parser;
5
5
  "oxc-ts": Parser;
6
6
  };
7
+
8
+ export declare const printers: {
9
+ "estree-oxc": Printer;
10
+ };
package/index.mjs CHANGED
@@ -5916,7 +5916,8 @@ function printFunctionParameters(path, options2, print3, shouldExpandArgument, s
5916
5916
  "(",
5917
5917
  indent([softline, ...printed]),
5918
5918
  ifBreak(
5919
- !hasRestParameter(functionNode) && shouldPrintComma(options2, "all") ? "," : ""
5919
+ !hasRestParameter(functionNode) && shouldPrintComma(options2, "all") && // Angular does not allow trailing comma
5920
+ path.root.type !== "NGRoot" ? "," : ""
5920
5921
  ),
5921
5922
  softline,
5922
5923
  ")"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prettier/plugin-oxc",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Prettier Oxc plugin.",
5
5
  "exports": {
6
6
  ".": {
@@ -34,7 +34,7 @@
34
34
  "package.json"
35
35
  ],
36
36
  "dependencies": {
37
- "oxc-parser": "0.99.0"
37
+ "oxc-parser": "0.125.0"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public",