oxfmt 0.53.0 → 0.55.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 (35) hide show
  1. package/README.md +2 -0
  2. package/configuration_schema.json +97 -97
  3. package/dist/{acorn-C-l7ouWN.js → acorn-Cvoi4PWR.js} +2 -2
  4. package/dist/{angular-4Mc0TmPv.js → angular-DPcoLhcH.js} +2 -2
  5. package/dist/{apis-DOCQy_NG.js → apis-DkdEeIjV.js} +5 -5
  6. package/dist/{babel-DjR61Wf3.js → babel-CVxlCcDg.js} +2 -2
  7. package/dist/{bindings-ChKdN0o7.js → bindings-NuElWCOb.js} +46 -35
  8. package/dist/{chunk-DSjvVL_1-CrjveNIv.js → chunk-DSjvVL_1-Q4hfmPG1.js} +1 -1
  9. package/dist/cli-worker.d.ts +2 -2
  10. package/dist/cli-worker.js +1 -1
  11. package/dist/cli.js +15 -23
  12. package/dist/{dist-Cb-CB0nt.js → dist-DivOnw62.js} +15 -15
  13. package/dist/{estree-DHQPBKqf.js → estree-CkMEq_Zb.js} +2 -2
  14. package/dist/{flow-Cz3mJAtC.js → flow-BXs7AWV-.js} +2 -2
  15. package/dist/{glimmer-ubhL-0tG.js → glimmer-BN5XmZ27.js} +2 -2
  16. package/dist/{graphql-Cl0TIiHU.js → graphql-BgY-saF-.js} +2 -2
  17. package/dist/{html-Cqnv8X__.js → html-vBUPNHC4.js} +2 -2
  18. package/dist/index.d.ts +48 -4
  19. package/dist/index.js +14 -11
  20. package/dist/{jiti-Bb1dT6Cw-bfahw2Ut.js → jiti-Bb1dT6Cw-BAogql5V.js} +2 -2
  21. package/dist/{markdown-Eujfu-fQ.js → markdown-Bowe09rB.js} +3 -3
  22. package/dist/{meriyah-DESRG6oe.js → meriyah-CLIO9qWy.js} +2 -2
  23. package/dist/{migrate-prettier-DWPaoKDl.js → migrate-prettier-qkEMts2A.js} +1 -1
  24. package/dist/napi-callbacks-Sb-usWTs.js +30 -0
  25. package/dist/{plugin-DOvWpprN.js → plugin-Beq25NZF.js} +24 -6
  26. package/dist/{postcss-BFLfznNY.js → postcss-nPoy2yt-.js} +2 -2
  27. package/dist/{prettier-CttUn4xj.js → prettier-D67P9sCF.js} +18 -18
  28. package/dist/{sorter-o4mwRTof.js → sorter-BPzPgLsP.js} +1 -1
  29. package/dist/{sorter-BZkvDMjt-X7PZZf-k.js → sorter-BZkvDMjt-COt95VpI.js} +7 -7
  30. package/dist/{typescript-lqJOqGcK.js → typescript-DgGTZjEC.js} +2 -2
  31. package/dist/{v3-D-mr2VVh-BYLPgMY0.js → v3-D-mr2VVh-sE8Y1ugu.js} +4 -4
  32. package/dist/{v4-C-HWEQJm-DbK_mluY.js → v4-C-HWEQJm-9cSRecG6.js} +4 -4
  33. package/dist/{yaml-BT3ntp8h.js → yaml-BStl3JdL.js} +2 -2
  34. package/package.json +20 -20
  35. /package/dist/{chunk-CNf5ZN-e.js → rolldown-runtime-CNf5ZN-e.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { n as __esmMin, r as __exportAll } from "./chunk-CNf5ZN-e.js";
1
+ import { n as __esmMin, r as __exportAll } from "./rolldown-runtime-CNf5ZN-e.js";
2
2
  import { builtinModules, createRequire } from "module";
3
3
  import * as url from "url";
4
4
  import url2, { fileURLToPath, pathToFileURL } from "url";
@@ -11,7 +11,7 @@ import assert3, { ok, strictEqual } from "assert";
11
11
  import fs3, { realpathSync, statSync } from "fs";
12
12
  import v8 from "v8";
13
13
  import { format, inspect } from "util";
14
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/doc.mjs
14
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/doc.mjs
15
15
  var doc_exports = /* @__PURE__ */ __exportAll({
16
16
  builders: () => builders,
17
17
  default: () => public_exports$1,
@@ -1051,7 +1051,7 @@ var init_doc = __esmMin((() => {
1051
1051
  };
1052
1052
  }));
1053
1053
  //#endregion
1054
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/index.mjs
1054
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/index.mjs
1055
1055
  var prettier_exports = /* @__PURE__ */ __exportAll({
1056
1056
  __debug: () => debugApis,
1057
1057
  __internal: () => sharedWithCli,
@@ -2402,7 +2402,7 @@ async function loadConfigFromPackageYaml(file) {
2402
2402
  }
2403
2403
  async function loadYaml(file) {
2404
2404
  const content = await read_file_default(file);
2405
- if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-BT3ntp8h.js"));
2405
+ if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-BStl3JdL.js"));
2406
2406
  try {
2407
2407
  return parseYaml(content);
2408
2408
  } catch (error) {
@@ -15380,7 +15380,7 @@ ${codeblock}`, options8);
15380
15380
  proseWrap: common_options_evaluate_default.proseWrap
15381
15381
  };
15382
15382
  estreePlugin = createParsersAndPrinters([{
15383
- importPlugin: () => import("./estree-DHQPBKqf.js"),
15383
+ importPlugin: () => import("./estree-CkMEq_Zb.js"),
15384
15384
  printers: ["estree", "estree-json"]
15385
15385
  }]);
15386
15386
  options7 = {
@@ -15403,11 +15403,11 @@ ${codeblock}`, options8);
15403
15403
  ];
15404
15404
  ({parsers, printers} = createParsersAndPrinters([
15405
15405
  {
15406
- importPlugin: () => import("./acorn-C-l7ouWN.js"),
15406
+ importPlugin: () => import("./acorn-Cvoi4PWR.js"),
15407
15407
  parsers: ["acorn", "espree"]
15408
15408
  },
15409
15409
  {
15410
- importPlugin: () => import("./angular-4Mc0TmPv.js"),
15410
+ importPlugin: () => import("./angular-DPcoLhcH.js"),
15411
15411
  parsers: [
15412
15412
  "__ng_action",
15413
15413
  "__ng_binding",
@@ -15416,7 +15416,7 @@ ${codeblock}`, options8);
15416
15416
  ]
15417
15417
  },
15418
15418
  {
15419
- importPlugin: () => import("./babel-DjR61Wf3.js"),
15419
+ importPlugin: () => import("./babel-CVxlCcDg.js"),
15420
15420
  parsers: [
15421
15421
  "babel",
15422
15422
  "babel-flow",
@@ -15435,21 +15435,21 @@ ${codeblock}`, options8);
15435
15435
  ]
15436
15436
  },
15437
15437
  {
15438
- importPlugin: () => import("./flow-Cz3mJAtC.js"),
15438
+ importPlugin: () => import("./flow-BXs7AWV-.js"),
15439
15439
  parsers: ["flow"]
15440
15440
  },
15441
15441
  {
15442
- importPlugin: () => import("./glimmer-ubhL-0tG.js"),
15442
+ importPlugin: () => import("./glimmer-BN5XmZ27.js"),
15443
15443
  parsers: ["glimmer"],
15444
15444
  printers: ["glimmer"]
15445
15445
  },
15446
15446
  {
15447
- importPlugin: () => import("./graphql-Cl0TIiHU.js"),
15447
+ importPlugin: () => import("./graphql-BgY-saF-.js"),
15448
15448
  parsers: ["graphql"],
15449
15449
  printers: ["graphql"]
15450
15450
  },
15451
15451
  {
15452
- importPlugin: () => import("./html-Cqnv8X__.js"),
15452
+ importPlugin: () => import("./html-vBUPNHC4.js"),
15453
15453
  parsers: [
15454
15454
  "html",
15455
15455
  "angular",
@@ -15460,7 +15460,7 @@ ${codeblock}`, options8);
15460
15460
  printers: ["html"]
15461
15461
  },
15462
15462
  {
15463
- importPlugin: () => import("./markdown-Eujfu-fQ.js"),
15463
+ importPlugin: () => import("./markdown-Bowe09rB.js"),
15464
15464
  parsers: [
15465
15465
  "markdown",
15466
15466
  "mdx",
@@ -15469,11 +15469,11 @@ ${codeblock}`, options8);
15469
15469
  printers: ["mdast"]
15470
15470
  },
15471
15471
  {
15472
- importPlugin: () => import("./meriyah-DESRG6oe.js"),
15472
+ importPlugin: () => import("./meriyah-CLIO9qWy.js"),
15473
15473
  parsers: ["meriyah"]
15474
15474
  },
15475
15475
  {
15476
- importPlugin: () => import("./postcss-BFLfznNY.js"),
15476
+ importPlugin: () => import("./postcss-nPoy2yt-.js"),
15477
15477
  parsers: [
15478
15478
  "css",
15479
15479
  "less",
@@ -15482,11 +15482,11 @@ ${codeblock}`, options8);
15482
15482
  printers: ["postcss"]
15483
15483
  },
15484
15484
  {
15485
- importPlugin: () => import("./typescript-lqJOqGcK.js"),
15485
+ importPlugin: () => import("./typescript-DgGTZjEC.js"),
15486
15486
  parsers: ["typescript"]
15487
15487
  },
15488
15488
  {
15489
- importPlugin: () => import("./yaml-BT3ntp8h.js"),
15489
+ importPlugin: () => import("./yaml-BStl3JdL.js"),
15490
15490
  parsers: ["yaml"],
15491
15491
  printers: ["yaml"]
15492
15492
  }
@@ -15505,7 +15505,7 @@ ${codeblock}`, options8);
15505
15505
  slash = path10.sep === "\\" ? (filePath) => method_replace_all_default(0, filePath, "\\", "/") : (filePath) => filePath;
15506
15506
  object_omit_default = omit;
15507
15507
  get_file_info_default = getFileInfo;
15508
- version_evaluate_default = "3.8.3";
15508
+ version_evaluate_default = "3.8.4";
15509
15509
  public_exports = {};
15510
15510
  __export(public_exports, {
15511
15511
  addDanglingComment: () => addDanglingComment,
@@ -1,2 +1,2 @@
1
- import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-X7PZZf-k.js";
1
+ import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-COt95VpI.js";
2
2
  export { createSorter, getTailwindConfig };
@@ -1,10 +1,10 @@
1
- import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-CrjveNIv.js";
1
+ import { i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-Q4hfmPG1.js";
2
2
  import { fileURLToPath, pathToFileURL } from "node:url";
3
3
  import * as path from "node:path";
4
4
  import { dirname, resolve } from "path";
5
5
  import { readdirSync, statSync } from "fs";
6
6
  import fs from "node:fs";
7
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
7
+ //#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/resolve-pWjAK-4f.mjs
8
8
  function expiringMap(duration) {
9
9
  let map = /* @__PURE__ */ new Map();
10
10
  return {
@@ -4198,7 +4198,7 @@ function resolveCssFrom(base, id) {
4198
4198
  return cssResolver.resolveSync({}, base, id) || id;
4199
4199
  }
4200
4200
  //#endregion
4201
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
4201
+ //#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/utils-D8dQkKEd.mjs
4202
4202
  function isNodeLike(value) {
4203
4203
  return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
4204
4204
  }
@@ -4277,7 +4277,7 @@ function cacheForDirs(cache, inputDir, value, targetDir, makeKey = (dir) => dir)
4277
4277
  }
4278
4278
  }
4279
4279
  //#endregion
4280
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
4280
+ //#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/sorter-BZkvDMjt.mjs
4281
4281
  let seen = /* @__PURE__ */ new Set();
4282
4282
  function warn(key, arg, ...args) {
4283
4283
  if (seen.has(key)) return;
@@ -4376,14 +4376,14 @@ async function getTailwindConfig(options) {
4376
4376
  if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
4377
4377
  if (jsConfig) {
4378
4378
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
4379
- const { loadV3 } = await import("./v3-D-mr2VVh-BYLPgMY0.js");
4379
+ const { loadV3 } = await import("./v3-D-mr2VVh-sE8Y1ugu.js");
4380
4380
  return loadV3(pkgDir, jsConfig);
4381
4381
  });
4382
4382
  error("explicit-stylesheet-and-config-together", base, `You have specified a Tailwind CSS stylesheet and a Tailwind CSS config at the same time. Use stylesheetPath unless you are using v3. Preferring the stylesheet.`);
4383
4383
  }
4384
4384
  if (mod && !mod.__unstable__loadDesignSystem) {
4385
4385
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
4386
- const { loadV3 } = await import("./v3-D-mr2VVh-BYLPgMY0.js");
4386
+ const { loadV3 } = await import("./v3-D-mr2VVh-sE8Y1ugu.js");
4387
4387
  return loadV3(pkgDir, jsConfig);
4388
4388
  });
4389
4389
  mod = null;
@@ -4391,7 +4391,7 @@ async function getTailwindConfig(options) {
4391
4391
  }
4392
4392
  if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
4393
4393
  return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
4394
- const { loadV4 } = await import("./v4-C-HWEQJm-DbK_mluY.js");
4394
+ const { loadV4 } = await import("./v4-C-HWEQJm-9cSRecG6.js");
4395
4395
  return loadV4(mod, stylesheet);
4396
4396
  });
4397
4397
  }
@@ -1,5 +1,5 @@
1
- import { n as __esmMin } from "./chunk-CNf5ZN-e.js";
2
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/typescript.mjs
1
+ import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
2
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/typescript.mjs
3
3
  function e_(e) {
4
4
  return e !== void 0 ? e.length : 0;
5
5
  }
@@ -1,9 +1,9 @@
1
- import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-CrjveNIv.js";
2
- import { s as bigSign } from "./sorter-BZkvDMjt-X7PZZf-k.js";
3
- import { t as createJiti } from "./jiti-Bb1dT6Cw-bfahw2Ut.js";
1
+ import { a as __toESM, i as __require, n as __esmMin, t as __commonJSMin } from "./chunk-DSjvVL_1-Q4hfmPG1.js";
2
+ import { s as bigSign } from "./sorter-BZkvDMjt-COt95VpI.js";
3
+ import { t as createJiti } from "./jiti-Bb1dT6Cw-BAogql5V.js";
4
4
  import { fileURLToPath, pathToFileURL } from "node:url";
5
5
  import * as path from "node:path";
6
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
6
+ //#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/v3-D-mr2VVh.mjs
7
7
  var getFilename, __filename;
8
8
  var init_esm_shims = __esmMin((() => {
9
9
  getFilename = () => fileURLToPath(import.meta.url);
@@ -1,10 +1,10 @@
1
- import { r as __exportAll } from "./chunk-DSjvVL_1-CrjveNIv.js";
2
- import { h as resolveJsFrom, m as resolveCssFrom } from "./sorter-BZkvDMjt-X7PZZf-k.js";
3
- import { t as createJiti } from "./jiti-Bb1dT6Cw-bfahw2Ut.js";
1
+ import { r as __exportAll } from "./chunk-DSjvVL_1-Q4hfmPG1.js";
2
+ import { h as resolveJsFrom, m as resolveCssFrom } from "./sorter-BZkvDMjt-COt95VpI.js";
3
+ import { t as createJiti } from "./jiti-Bb1dT6Cw-BAogql5V.js";
4
4
  import { pathToFileURL } from "node:url";
5
5
  import * as path from "node:path";
6
6
  import * as fs from "node:fs/promises";
7
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_961279539c8b58c29c93389b521be834/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs
7
+ //#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/v4-C-HWEQJm.mjs
8
8
  var l$1 = {
9
9
  inherit: "inherit",
10
10
  current: "currentcolor",
@@ -1,5 +1,5 @@
1
- import { n as __esmMin } from "./chunk-CNf5ZN-e.js";
2
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/yaml.mjs
1
+ import { n as __esmMin } from "./rolldown-runtime-CNf5ZN-e.js";
2
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/yaml.mjs
3
3
  function Ri(t) {
4
4
  return this[t < 0 ? this.length + t : t];
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxfmt",
3
- "version": "0.53.0",
3
+ "version": "0.55.0",
4
4
  "description": "Formatter for the JavaScript Oxidation Compiler",
5
5
  "keywords": [
6
6
  "formatter",
@@ -86,24 +86,24 @@
86
86
  },
87
87
  "preferUnplugged": true,
88
88
  "optionalDependencies": {
89
- "@oxfmt/binding-darwin-arm64": "0.53.0",
90
- "@oxfmt/binding-android-arm64": "0.53.0",
91
- "@oxfmt/binding-win32-arm64-msvc": "0.53.0",
92
- "@oxfmt/binding-linux-arm64-gnu": "0.53.0",
93
- "@oxfmt/binding-linux-arm64-musl": "0.53.0",
94
- "@oxfmt/binding-openharmony-arm64": "0.53.0",
95
- "@oxfmt/binding-android-arm-eabi": "0.53.0",
96
- "@oxfmt/binding-linux-arm-gnueabihf": "0.53.0",
97
- "@oxfmt/binding-linux-arm-musleabihf": "0.53.0",
98
- "@oxfmt/binding-win32-ia32-msvc": "0.53.0",
99
- "@oxfmt/binding-linux-ppc64-gnu": "0.53.0",
100
- "@oxfmt/binding-linux-riscv64-gnu": "0.53.0",
101
- "@oxfmt/binding-linux-riscv64-musl": "0.53.0",
102
- "@oxfmt/binding-linux-s390x-gnu": "0.53.0",
103
- "@oxfmt/binding-darwin-x64": "0.53.0",
104
- "@oxfmt/binding-win32-x64-msvc": "0.53.0",
105
- "@oxfmt/binding-freebsd-x64": "0.53.0",
106
- "@oxfmt/binding-linux-x64-gnu": "0.53.0",
107
- "@oxfmt/binding-linux-x64-musl": "0.53.0"
89
+ "@oxfmt/binding-darwin-arm64": "0.55.0",
90
+ "@oxfmt/binding-android-arm64": "0.55.0",
91
+ "@oxfmt/binding-win32-arm64-msvc": "0.55.0",
92
+ "@oxfmt/binding-linux-arm64-gnu": "0.55.0",
93
+ "@oxfmt/binding-linux-arm64-musl": "0.55.0",
94
+ "@oxfmt/binding-openharmony-arm64": "0.55.0",
95
+ "@oxfmt/binding-android-arm-eabi": "0.55.0",
96
+ "@oxfmt/binding-linux-arm-gnueabihf": "0.55.0",
97
+ "@oxfmt/binding-linux-arm-musleabihf": "0.55.0",
98
+ "@oxfmt/binding-win32-ia32-msvc": "0.55.0",
99
+ "@oxfmt/binding-linux-ppc64-gnu": "0.55.0",
100
+ "@oxfmt/binding-linux-riscv64-gnu": "0.55.0",
101
+ "@oxfmt/binding-linux-riscv64-musl": "0.55.0",
102
+ "@oxfmt/binding-linux-s390x-gnu": "0.55.0",
103
+ "@oxfmt/binding-darwin-x64": "0.55.0",
104
+ "@oxfmt/binding-win32-x64-msvc": "0.55.0",
105
+ "@oxfmt/binding-freebsd-x64": "0.55.0",
106
+ "@oxfmt/binding-linux-x64-gnu": "0.55.0",
107
+ "@oxfmt/binding-linux-x64-musl": "0.55.0"
108
108
  }
109
109
  }