oxfmt 0.55.0 → 0.56.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.
Files changed (30) hide show
  1. package/dist/{acorn-Cvoi4PWR.js → acorn-LGWopQvF.js} +1 -1
  2. package/dist/{angular-DPcoLhcH.js → angular-BbAuvH72.js} +15 -205
  3. package/dist/{apis-DkdEeIjV.js → apis-C2fbFQF2.js} +5 -5
  4. package/dist/{babel-CVxlCcDg.js → babel-DLjwvkt5.js} +8 -8
  5. package/dist/{bindings-NuElWCOb.js → bindings-Ab6hoO7p.js} +27 -27
  6. package/dist/{chunk-DSjvVL_1-Q4hfmPG1.js → chunk-DSjvVL_1-DaTvESxp.js} +1 -1
  7. package/dist/cli-worker.js +1 -1
  8. package/dist/cli.js +3 -3
  9. package/dist/{dist-DivOnw62.js → dist-BMp5jzRv.js} +15 -15
  10. package/dist/{estree-CkMEq_Zb.js → estree-DbmUPhmV.js} +7 -7
  11. package/dist/{flow-BXs7AWV-.js → flow-CJbpv7JL.js} +5 -5
  12. package/dist/{glimmer-BN5XmZ27.js → glimmer-Ba_8Z2bG.js} +5 -5
  13. package/dist/{graphql-BgY-saF-.js → graphql-CZ7EPWgo.js} +2 -2
  14. package/dist/{html-vBUPNHC4.js → html-DblM11Xw.js} +98 -98
  15. package/dist/index.js +3 -3
  16. package/dist/{jiti-Bb1dT6Cw-BAogql5V.js → jiti-Bb1dT6Cw-DWQc1k7j.js} +28 -28
  17. package/dist/{markdown-Bowe09rB.js → markdown-B5hFVJKQ.js} +7 -7
  18. package/dist/{meriyah-CLIO9qWy.js → meriyah-DafjRZfO.js} +2 -2
  19. package/dist/{migrate-prettier-qkEMts2A.js → migrate-prettier-DrYAkU3F.js} +1 -1
  20. package/dist/{plugin-Beq25NZF.js → plugin-CYEM2898.js} +10 -10
  21. package/dist/{postcss-nPoy2yt-.js → postcss-CkhtwsAS.js} +7 -7
  22. package/dist/{prettier-D67P9sCF.js → prettier-DKAx5A83.js} +25 -25
  23. package/dist/{rolldown-runtime-CNf5ZN-e.js → rolldown-runtime-CE-6LUnI.js} +9 -2
  24. package/dist/{sorter-BZkvDMjt-COt95VpI.js → sorter-BZkvDMjt-c-GMCzH3.js} +10 -9
  25. package/dist/{sorter-BPzPgLsP.js → sorter-DK1aMCjs.js} +1 -1
  26. package/dist/{typescript-DgGTZjEC.js → typescript-DaxiA0nr.js} +15 -15
  27. package/dist/{v3-D-mr2VVh-sE8Y1ugu.js → v3-D-mr2VVh-7G9Y2N0Q.js} +22 -22
  28. package/dist/{v4-C-HWEQJm-9cSRecG6.js → v4-C-HWEQJm-DKnDZXAs.js} +12 -12
  29. package/dist/{yaml-BStl3JdL.js → yaml-BC7gw7un.js} +5 -5
  30. package/package.json +20 -20
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as toNullable, t as toFormatFileResult } from "./napi-callbacks-Sb-usWTs.js";
2
- import { n as runCli } from "./bindings-NuElWCOb.js";
2
+ import { n as runCli } from "./bindings-Ab6hoO7p.js";
3
3
  import Tinypool from "tinypool";
4
4
  import { fileURLToPath, pathToFileURL } from "node:url";
5
5
  import { extname } from "node:path";
@@ -48,7 +48,7 @@ const isObject = (v) => typeof v === "object" && v !== null && !Array.isArray(v)
48
48
  //#endregion
49
49
  //#region ../shared/src-js/js_config/node_version.ts
50
50
  const NODE_TYPESCRIPT_SUPPORT_RANGE = "^20.19.0 || >=22.18.0";
51
- const TS_MODULE_EXTENSIONS = new Set([
51
+ const TS_MODULE_EXTENSIONS = /* @__PURE__ */ new Set([
52
52
  ".ts",
53
53
  ".mts",
54
54
  ".cts"
@@ -171,7 +171,7 @@ async function loadVitePlusConfig(path) {
171
171
  return;
172
172
  }
173
173
  if (mode === "migrate:prettier") {
174
- await import("./migrate-prettier-qkEMts2A.js").then((m) => m.runMigratePrettier());
174
+ await import("./migrate-prettier-DrYAkU3F.js").then((m) => m.runMigratePrettier());
175
175
  return;
176
176
  }
177
177
  if (mode === "migrate:biome") {
@@ -1,13 +1,13 @@
1
- import { o as __toESM } from "./rolldown-runtime-CNf5ZN-e.js";
2
- import { n as init_babel, parsers as ra, t as babel_exports } from "./babel-CVxlCcDg.js";
3
- import index_exports, { t as init_prettier } from "./prettier-D67P9sCF.js";
4
- import { a as __toESM$1, t as __commonJSMin } from "./chunk-DSjvVL_1-Q4hfmPG1.js";
5
- import { a as sortClasses, c as cacheForDirs, d as expiringMap, f as loadIfExists, i as sortClassList, l as spliceChangesIntoString, n as error, o as warn, p as maybeResolve, r as getTailwindConfig$1, u as visit } from "./sorter-BZkvDMjt-COt95VpI.js";
6
- import { parsers as fn, t as init_angular } from "./angular-DPcoLhcH.js";
7
- import { n as postcss_exports, parsers as en, t as init_postcss } from "./postcss-nPoy2yt-.js";
1
+ import { o as __toESM } from "./rolldown-runtime-CE-6LUnI.js";
2
+ import { n as init_babel, parsers as ra, t as babel_exports } from "./babel-DLjwvkt5.js";
3
+ import index_exports, { t as init_prettier } from "./prettier-DKAx5A83.js";
4
+ import { a as __toESM$1, t as __commonJSMin } from "./chunk-DSjvVL_1-DaTvESxp.js";
5
+ import { a as sortClasses, c as cacheForDirs, d as expiringMap, f as loadIfExists, i as sortClassList, l as spliceChangesIntoString, n as error, o as warn, p as maybeResolve, r as getTailwindConfig$1, u as visit } from "./sorter-BZkvDMjt-c-GMCzH3.js";
6
+ import { parsers as fn, t as init_angular } from "./angular-BbAuvH72.js";
7
+ import { n as postcss_exports, parsers as en, t as init_postcss } from "./postcss-CkhtwsAS.js";
8
8
  import * as path from "node:path";
9
9
  import { isAbsolute } from "path";
10
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.0_prettie_661f6aa3144bd2f260306254bad2432f/node_modules/prettier-plugin-tailwindcss/dist/index.mjs
10
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.1_prettie_38bf7b19300712455a0a76d31dd7693b/node_modules/prettier-plugin-tailwindcss/dist/index.mjs
11
11
  init_angular();
12
12
  init_babel();
13
13
  init_postcss();
@@ -1070,7 +1070,7 @@ const { parsers, printers } = createPlugin([
1070
1070
  staticAttrs: ["class"],
1071
1071
  load: [{
1072
1072
  name: "prettier/plugins/html",
1073
- importer: () => import("./html-vBUPNHC4.js")
1073
+ importer: () => import("./html-DblM11Xw.js")
1074
1074
  }],
1075
1075
  compatible: ["prettier-plugin-organize-attributes"],
1076
1076
  parsers: {
@@ -1085,7 +1085,7 @@ const { parsers, printers } = createPlugin([
1085
1085
  staticAttrs: ["class"],
1086
1086
  load: [{
1087
1087
  name: "prettier/plugins/glimmer",
1088
- importer: () => import("./glimmer-BN5XmZ27.js")
1088
+ importer: () => import("./glimmer-Ba_8Z2bG.js")
1089
1089
  }],
1090
1090
  parsers: { glimmer: {} },
1091
1091
  transform: transformGlimmer
@@ -1117,19 +1117,19 @@ const { parsers, printers } = createPlugin([
1117
1117
  __js_expression: { load: [babel_exports] },
1118
1118
  typescript: { load: [{
1119
1119
  name: "prettier/plugins/typescript",
1120
- importer: () => import("./typescript-DgGTZjEC.js")
1120
+ importer: () => import("./typescript-DaxiA0nr.js")
1121
1121
  }] },
1122
1122
  meriyah: { load: [{
1123
1123
  name: "prettier/plugins/meriyah",
1124
- importer: () => import("./meriyah-CLIO9qWy.js")
1124
+ importer: () => import("./meriyah-DafjRZfO.js")
1125
1125
  }] },
1126
1126
  acorn: { load: [{
1127
1127
  name: "prettier/plugins/acorn",
1128
- importer: () => import("./acorn-Cvoi4PWR.js")
1128
+ importer: () => import("./acorn-LGWopQvF.js")
1129
1129
  }] },
1130
1130
  flow: { load: [{
1131
1131
  name: "prettier/plugins/flow",
1132
- importer: () => import("./flow-BXs7AWV-.js")
1132
+ importer: () => import("./flow-CJbpv7JL.js")
1133
1133
  }] },
1134
1134
  oxc: { load: [{
1135
1135
  name: "@prettier/plugin-oxc",
@@ -1160,7 +1160,7 @@ const { parsers, printers } = createPlugin([
1160
1160
  staticAttrs: ["class"],
1161
1161
  load: [{
1162
1162
  name: "prettier-plugin-svelte",
1163
- importer: () => import("./plugin-Beq25NZF.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))
1163
+ importer: () => import("./plugin-CYEM2898.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))
1164
1164
  }],
1165
1165
  parsers: { svelte: {} },
1166
1166
  printers: { "svelte-ast": {} },
@@ -1,4 +1,4 @@
1
- import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
1
+ import { n as __esmMin } from "./rolldown-runtime-CE-6LUnI.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/estree.mjs
3
3
  function ka(e) {
4
4
  return this[e < 0 ? this.length + e : e];
@@ -6336,7 +6336,7 @@ __esmMin((() => {
6336
6336
  ];
6337
6337
  Fi = (e) => (t) => (t?.type === "ChainExpression" && (t = t.expression), e(t)), M = Fi(k(["CallExpression", "OptionalCallExpression"])), J = Fi(k(["MemberExpression", "OptionalMemberExpression"]));
6338
6338
  yp = .25;
6339
- Ep = new Set([
6339
+ Ep = /* @__PURE__ */ new Set([
6340
6340
  "!",
6341
6341
  "-",
6342
6342
  "+",
@@ -6413,7 +6413,7 @@ __esmMin((() => {
6413
6413
  "AsConstExpression",
6414
6414
  "SatisfiesExpression"
6415
6415
  ]), Se = k(["TSUnionType", "UnionTypeAnnotation"]), xt = k(["TSIntersectionType", "IntersectionTypeAnnotation"]), Ue = k(["TSConditionalType", "ConditionalTypeAnnotation"]), hi = (e) => e?.type === "TSAsExpression" && e.typeAnnotation.type === "TSTypeReference" && e.typeAnnotation.typeName.type === "Identifier" && e.typeAnnotation.typeName.name === "const", Cr = k(["TSTypeAliasDeclaration", "TypeAlias"]);
6416
- dp = new Set([
6416
+ dp = /* @__PURE__ */ new Set([
6417
6417
  "range",
6418
6418
  "raw",
6419
6419
  "comments",
@@ -6514,7 +6514,7 @@ __esmMin((() => {
6514
6514
  "TSInterfaceDeclaration"
6515
6515
  ]);
6516
6516
  Wi = oc;
6517
- Ye = "string", Be = "array", tt = "cursor", He = "indent", Xe = "align", rt = "trim", Fe = "group", Me = "fill", be = "if-break", Ve = "indent-if-break", $e = "line-suffix", Ge = "line-suffix-boundary", me = "line", Pe = "label", Ne = "break-parent", Xr = new Set([
6517
+ Ye = "string", Be = "array", tt = "cursor", He = "indent", Xe = "align", rt = "trim", Fe = "group", Me = "fill", be = "if-break", Ve = "indent-if-break", $e = "line-suffix", Ge = "line-suffix-boundary", me = "line", Pe = "label", Ne = "break-parent", Xr = /* @__PURE__ */ new Set([
6518
6518
  tt,
6519
6519
  He,
6520
6520
  Xe,
@@ -6894,7 +6894,7 @@ __esmMin((() => {
6894
6894
  let [r] = t, { type: n, key: s, value: i } = r;
6895
6895
  return n === "ImportAttribute" && (s.type === "Identifier" && s.name === "type" || V(s) && s.value === "type") && V(i) && !T(r) && !T(s) && !T(i);
6896
6896
  };
6897
- Xm = new Map([
6897
+ Xm = /* @__PURE__ */ new Map([
6898
6898
  ["AssignmentExpression", "right"],
6899
6899
  ["VariableDeclarator", "init"],
6900
6900
  ["ReturnStatement", "argument"],
@@ -6903,7 +6903,7 @@ __esmMin((() => {
6903
6903
  ["YieldExpression", "argument"],
6904
6904
  ["AwaitExpression", "argument"]
6905
6905
  ]);
6906
- Qm = new Map([
6906
+ Qm = /* @__PURE__ */ new Map([
6907
6907
  ["AssignmentExpression", "right"],
6908
6908
  ["VariableDeclarator", "init"],
6909
6909
  ["ReturnStatement", "argument"],
@@ -7088,7 +7088,7 @@ __esmMin((() => {
7088
7088
  TemplateLiteral: ["quasis"],
7089
7089
  TemplateElement: ar[0]
7090
7090
  });
7091
- ED = new Set([
7091
+ ED = /* @__PURE__ */ new Set([
7092
7092
  "start",
7093
7093
  "end",
7094
7094
  "extra",
@@ -1,4 +1,4 @@
1
- import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
1
+ import { n as __esmMin } from "./rolldown-runtime-CE-6LUnI.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/flow.mjs
3
3
  function iI0(a0, ox) {
4
4
  let Yx = /* @__PURE__ */ new SyntaxError(a0 + " (" + ox.loc.start.line + ":" + ox.loc.start.column + ")");
@@ -806,7 +806,7 @@ __esmMin((() => {
806
806
  return r;
807
807
  }
808
808
  function vN(x) {
809
- var r = new Float32Array(1);
809
+ var r = /* @__PURE__ */ new Float32Array(1);
810
810
  r[0] = x;
811
811
  return new Int32Array(r.buffer)[0] | 0;
812
812
  }
@@ -875,7 +875,7 @@ __esmMin((() => {
875
875
  e[0] = (4 + r.dims.length) * 4, e[1] = (4 + r.dims.length) * 8;
876
876
  }
877
877
  function lN(x) {
878
- var r = new Int32Array(1);
878
+ var r = /* @__PURE__ */ new Int32Array(1);
879
879
  r[0] = x;
880
880
  return new Float32Array(r.buffer)[0];
881
881
  }
@@ -1744,7 +1744,7 @@ __esmMin((() => {
1744
1744
  for (var e = 0; e < 56; e++) x.b8[e] = 0;
1745
1745
  } else for (var e = r; e < 56; e++) x.b8[e] = 0;
1746
1746
  x.b32[14] = x.len << 3, x.b32[15] = x.len >> 29 & 536870911, Xh(x.w, x.b32);
1747
- for (var t = new Uint8Array(16), u = 0; u < 4; u++) for (var e = 0; e < 4; e++) t[u * 4 + e] = x.w[u] >> 8 * e & 255;
1747
+ for (var t = /* @__PURE__ */ new Uint8Array(16), u = 0; u < 4; u++) for (var e = 0; e < 4; e++) t[u * 4 + e] = x.w[u] >> 8 * e & 255;
1748
1748
  return t;
1749
1749
  }
1750
1750
  function EN(x) {
@@ -2387,7 +2387,7 @@ __esmMin((() => {
2387
2387
  function MJ() {
2388
2388
  if (a0.crypto) {
2389
2389
  if (a0.crypto.getRandomValues) {
2390
- var x = a0.crypto.getRandomValues(new Int32Array(4));
2390
+ var x = a0.crypto.getRandomValues(/* @__PURE__ */ new Int32Array(4));
2391
2391
  return [
2392
2392
  0,
2393
2393
  x[0],
@@ -1,4 +1,4 @@
1
- import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
1
+ import { n as __esmMin } from "./rolldown-runtime-CE-6LUnI.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/glimmer.mjs
3
3
  function Yn(e) {
4
4
  return this[e < 0 ? this.length + e : e];
@@ -1211,7 +1211,7 @@ __esmMin((() => {
1211
1211
  if (Array.isArray(this) || typeof this == "string") return Yn;
1212
1212
  });
1213
1213
  Kn = () => {}, Dt = Kn;
1214
- Ot = "string", It = "array", $t = "cursor", kt = "indent", Et = "align", Xt = "trim", vt = "group", wt = "fill", Tt = "if-break", Zt = "indent-if-break", te = "line-suffix", ee = "line-suffix-boundary", Q = "line", re = "label", xt = "break-parent", ne = new Set([
1214
+ Ot = "string", It = "array", $t = "cursor", kt = "indent", Et = "align", Xt = "trim", vt = "group", wt = "fill", Tt = "if-break", Zt = "indent-if-break", te = "line-suffix", ee = "line-suffix-boundary", Q = "line", re = "label", xt = "break-parent", ne = /* @__PURE__ */ new Set([
1215
1215
  $t,
1216
1216
  kt,
1217
1217
  Et,
@@ -1350,7 +1350,7 @@ __esmMin((() => {
1350
1350
  super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`), this.node = t;
1351
1351
  }
1352
1352
  }, qr = Ue;
1353
- Vr.ignoredProperties = new Set(["loc", "selfClosing"]);
1353
+ Vr.ignoredProperties = /* @__PURE__ */ new Set(["loc", "selfClosing"]);
1354
1354
  Fr = Vr;
1355
1355
  Hr = as;
1356
1356
  Rt = null;
@@ -5816,7 +5816,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
5816
5816
  _s = !1;
5817
5817
  new RegExp(/["\x26\xa0]/u.source, "gu");
5818
5818
  new RegExp(/[&<>\xa0]/u.source, "gu");
5819
- de = new Set([
5819
+ de = /* @__PURE__ */ new Set([
5820
5820
  "area",
5821
5821
  "base",
5822
5822
  "br",
@@ -7475,7 +7475,7 @@ Expecting ` + Qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : De =
7475
7475
  Gs = new Set(on());
7476
7476
  xn = 2;
7477
7477
  ri = ({ path: e }, { path: t }) => [e, t].every((r) => r.type === "PathExpression" && r.head.type === "VarHead") && e.head.name === t.head.name;
7478
- hi = /* @__PURE__ */ new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"), pi = new Set([
7478
+ hi = /* @__PURE__ */ new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"), pi = /* @__PURE__ */ new Set([
7479
7479
  "true",
7480
7480
  "false",
7481
7481
  "null",
@@ -1,4 +1,4 @@
1
- import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
1
+ import { n as __esmMin } from "./rolldown-runtime-CE-6LUnI.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/graphql.mjs
3
3
  function x(e) {
4
4
  return S(e), {
@@ -1074,7 +1074,7 @@ __esmMin((() => {
1074
1074
 
1075
1075
  ${e}`;
1076
1076
  A = It;
1077
- Ue.ignoredProperties = new Set(["loc", "comments"]);
1077
+ Ue.ignoredProperties = /* @__PURE__ */ new Set(["loc", "comments"]);
1078
1078
  Ge = {
1079
1079
  print: Dt,
1080
1080
  massageAstNode: Ue,