oxfmt 0.50.0 → 0.52.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 (33) hide show
  1. package/dist/{acorn-sBRpswSh.js → acorn-C-l7ouWN.js} +1 -1
  2. package/dist/{angular-DtI-eDW8.js → angular-4Mc0TmPv.js} +3 -5
  3. package/dist/{apis-CKvPKBJI.js → apis-Cc9jzUH4.js} +7 -53
  4. package/dist/{babel-DaNjvh9L.js → babel-DjR61Wf3.js} +2 -3
  5. package/dist/{bindings-Dj_YoR0Z.js → bindings-BJw0GhQr.js} +26 -26
  6. package/dist/chunk-CNf5ZN-e.js +37 -0
  7. package/dist/cli-worker.js +1 -1
  8. package/dist/cli.js +79 -41
  9. package/dist/{dist-D_YbN99t.js → dist-CJyFMFm2.js} +70 -50
  10. package/dist/{estree-CzfNsl8m.js → estree-DHQPBKqf.js} +1 -1
  11. package/dist/{flow-c9AjoQam.js → flow-Cz3mJAtC.js} +1 -1
  12. package/dist/{glimmer-D_zkI0w_.js → glimmer-ubhL-0tG.js} +1 -1
  13. package/dist/{graphql-BFXkB4Nq.js → graphql-Cl0TIiHU.js} +1 -1
  14. package/dist/{html-DkcPxRXg.js → html-Cqnv8X__.js} +1 -1
  15. package/dist/index.js +4 -4
  16. package/dist/{init-C3nxU_Wc.js → init-DGfXRYLw.js} +1 -1
  17. package/dist/{jiti-Bb1dT6Cw-C0N20Za1.js → jiti-Bb1dT6Cw-B_5IaZk7.js} +2 -2
  18. package/dist/{markdown-DVLNmbQg.js → markdown-Eujfu-fQ.js} +1 -1
  19. package/dist/{meriyah-BGPf00Rn.js → meriyah-DESRG6oe.js} +1 -1
  20. package/dist/{migrate-biome-DclTzwKW.js → migrate-biome-P928W9-y.js} +1 -1
  21. package/dist/{migrate-prettier-DLfviW85.js → migrate-prettier-CotsZUFl.js} +2 -2
  22. package/dist/{plugin-DOdiccQR.js → plugin-C4twtOn4.js} +433 -374
  23. package/dist/{postcss-D-ql-dm8.js → postcss-BFLfznNY.js} +1 -1
  24. package/dist/{prettier-Cw36juP9.js → prettier-Cy-lZk4k.js} +15 -15
  25. package/dist/{sorter-BZkvDMjt-DpGe0QK9.js → sorter-BZkvDMjt-C3eOnP5z.js} +7 -7
  26. package/dist/{sorter-w0dgpoFw.js → sorter-CHFUGfz-.js} +1 -1
  27. package/dist/{typescript-C_eN_ThF.js → typescript-lqJOqGcK.js} +1 -1
  28. package/dist/{v3-D-mr2VVh-CU7hQIit.js → v3-D-mr2VVh-BXhnMySQ.js} +3 -3
  29. package/dist/{v4-C-HWEQJm-C8EWwksG.js → v4-C-HWEQJm-CvgekpKf.js} +3 -3
  30. package/dist/{yaml-Bqxyk-13.js → yaml-D3PpfZBy.js} +1 -1
  31. package/package.json +25 -21
  32. /package/dist/{prettier-plugin-oxfmt-BlJcmKAv.js → prettier-plugin-oxfmt-Dj6FaAil.js} +0 -0
  33. /package/dist/{shared-BtJbjkue.js → shared-BiMl-bLP.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { c as __exportAll, s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin, r as __exportAll } from "./chunk-CNf5ZN-e.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/postcss.mjs
3
3
  var postcss_exports = /* @__PURE__ */ __exportAll({
4
4
  default: () => _l,
@@ -1,4 +1,4 @@
1
- import { c as __exportAll, s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin, r as __exportAll } from "./chunk-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";
@@ -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-Bqxyk-13.js"));
2405
+ if (!parseYaml) ({__parsePrettierYamlConfig: parseYaml} = await import("./yaml-D3PpfZBy.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-CzfNsl8m.js"),
15383
+ importPlugin: () => import("./estree-DHQPBKqf.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-sBRpswSh.js"),
15406
+ importPlugin: () => import("./acorn-C-l7ouWN.js"),
15407
15407
  parsers: ["acorn", "espree"]
15408
15408
  },
15409
15409
  {
15410
- importPlugin: () => import("./angular-DtI-eDW8.js"),
15410
+ importPlugin: () => import("./angular-4Mc0TmPv.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-DaNjvh9L.js"),
15419
+ importPlugin: () => import("./babel-DjR61Wf3.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-c9AjoQam.js"),
15438
+ importPlugin: () => import("./flow-Cz3mJAtC.js"),
15439
15439
  parsers: ["flow"]
15440
15440
  },
15441
15441
  {
15442
- importPlugin: () => import("./glimmer-D_zkI0w_.js"),
15442
+ importPlugin: () => import("./glimmer-ubhL-0tG.js"),
15443
15443
  parsers: ["glimmer"],
15444
15444
  printers: ["glimmer"]
15445
15445
  },
15446
15446
  {
15447
- importPlugin: () => import("./graphql-BFXkB4Nq.js"),
15447
+ importPlugin: () => import("./graphql-Cl0TIiHU.js"),
15448
15448
  parsers: ["graphql"],
15449
15449
  printers: ["graphql"]
15450
15450
  },
15451
15451
  {
15452
- importPlugin: () => import("./html-DkcPxRXg.js"),
15452
+ importPlugin: () => import("./html-Cqnv8X__.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-DVLNmbQg.js"),
15463
+ importPlugin: () => import("./markdown-Eujfu-fQ.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-BGPf00Rn.js"),
15472
+ importPlugin: () => import("./meriyah-DESRG6oe.js"),
15473
15473
  parsers: ["meriyah"]
15474
15474
  },
15475
15475
  {
15476
- importPlugin: () => import("./postcss-D-ql-dm8.js"),
15476
+ importPlugin: () => import("./postcss-BFLfznNY.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-C_eN_ThF.js"),
15485
+ importPlugin: () => import("./typescript-lqJOqGcK.js"),
15486
15486
  parsers: ["typescript"]
15487
15487
  },
15488
15488
  {
15489
- importPlugin: () => import("./yaml-Bqxyk-13.js"),
15489
+ importPlugin: () => import("./yaml-D3PpfZBy.js"),
15490
15490
  parsers: ["yaml"],
15491
15491
  printers: ["yaml"]
15492
15492
  }
@@ -4,7 +4,7 @@ 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.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/chunk-DSjvVL_1.mjs
7
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_b20d8b14d002a94b1de20f5a14f79b1e/node_modules/prettier-plugin-tailwindcss/dist/chunk-DSjvVL_1.mjs
8
8
  var __create = Object.create;
9
9
  var __defProp = Object.defineProperty;
10
10
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -38,7 +38,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
38
  }) : target, mod));
39
39
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
40
40
  //#endregion
41
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
41
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_b20d8b14d002a94b1de20f5a14f79b1e/node_modules/prettier-plugin-tailwindcss/dist/resolve-pWjAK-4f.mjs
42
42
  function expiringMap(duration) {
43
43
  let map = /* @__PURE__ */ new Map();
44
44
  return {
@@ -4232,7 +4232,7 @@ function resolveCssFrom(base, id) {
4232
4232
  return cssResolver.resolveSync({}, base, id) || id;
4233
4233
  }
4234
4234
  //#endregion
4235
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
4235
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_b20d8b14d002a94b1de20f5a14f79b1e/node_modules/prettier-plugin-tailwindcss/dist/utils-D8dQkKEd.mjs
4236
4236
  function isNodeLike(value) {
4237
4237
  return typeof (value === null || value === void 0 ? void 0 : value.type) === "string";
4238
4238
  }
@@ -4311,7 +4311,7 @@ function cacheForDirs(cache, inputDir, value, targetDir, makeKey = (dir) => dir)
4311
4311
  }
4312
4312
  }
4313
4313
  //#endregion
4314
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
4314
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_b20d8b14d002a94b1de20f5a14f79b1e/node_modules/prettier-plugin-tailwindcss/dist/sorter-BZkvDMjt.mjs
4315
4315
  let seen = /* @__PURE__ */ new Set();
4316
4316
  function warn(key, arg, ...args) {
4317
4317
  if (seen.has(key)) return;
@@ -4410,14 +4410,14 @@ async function getTailwindConfig(options) {
4410
4410
  if (!stylesheet && !(mod === null || mod === void 0 ? void 0 : mod.__unstable__loadDesignSystem)) jsConfig = jsConfig ?? findClosestJsConfig(inputDir);
4411
4411
  if (jsConfig) {
4412
4412
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
4413
- const { loadV3 } = await import("./v3-D-mr2VVh-CU7hQIit.js");
4413
+ const { loadV3 } = await import("./v3-D-mr2VVh-BXhnMySQ.js");
4414
4414
  return loadV3(pkgDir, jsConfig);
4415
4415
  });
4416
4416
  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.`);
4417
4417
  }
4418
4418
  if (mod && !mod.__unstable__loadDesignSystem) {
4419
4419
  if (!stylesheet) return pathToApiMap.remember(`${pkgDir}:${jsConfig}`, async () => {
4420
- const { loadV3 } = await import("./v3-D-mr2VVh-CU7hQIit.js");
4420
+ const { loadV3 } = await import("./v3-D-mr2VVh-BXhnMySQ.js");
4421
4421
  return loadV3(pkgDir, jsConfig);
4422
4422
  });
4423
4423
  mod = null;
@@ -4425,7 +4425,7 @@ async function getTailwindConfig(options) {
4425
4425
  }
4426
4426
  if (mod && mod.__unstable__loadDesignSystem && pkgDir) stylesheet ?? (stylesheet = `${pkgDir}/theme.css`);
4427
4427
  return pathToApiMap.remember(`${pkgDir}:${stylesheet}`, async () => {
4428
- const { loadV4 } = await import("./v4-C-HWEQJm-C8EWwksG.js");
4428
+ const { loadV4 } = await import("./v4-C-HWEQJm-CvgekpKf.js");
4429
4429
  return loadV4(mod, stylesheet);
4430
4430
  });
4431
4431
  }
@@ -1,2 +1,2 @@
1
- import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-DpGe0QK9.js";
1
+ import { r as getTailwindConfig, t as createSorter } from "./sorter-BZkvDMjt-C3eOnP5z.js";
2
2
  export { createSorter, getTailwindConfig };
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-CNf5ZN-e.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/typescript.mjs
3
3
  function e_(e) {
4
4
  return e !== void 0 ? e.length : 0;
@@ -1,8 +1,8 @@
1
- import { _ as __esmMin, b as __toESM, g as __commonJSMin, s as bigSign, y as __require } from "./sorter-BZkvDMjt-DpGe0QK9.js";
2
- import { t as createJiti } from "./jiti-Bb1dT6Cw-C0N20Za1.js";
1
+ import { _ as __esmMin, b as __toESM, g as __commonJSMin, s as bigSign, y as __require } from "./sorter-BZkvDMjt-C3eOnP5z.js";
2
+ import { t as createJiti } from "./jiti-Bb1dT6Cw-B_5IaZk7.js";
3
3
  import { fileURLToPath, pathToFileURL } from "node:url";
4
4
  import * as path from "node:path";
5
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
5
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_b20d8b14d002a94b1de20f5a14f79b1e/node_modules/prettier-plugin-tailwindcss/dist/v3-D-mr2VVh.mjs
6
6
  var getFilename, __filename;
7
7
  var init_esm_shims = __esmMin((() => {
8
8
  getFilename = () => fileURLToPath(import.meta.url);
@@ -1,9 +1,9 @@
1
- import { h as resolveJsFrom, m as resolveCssFrom, v as __exportAll } from "./sorter-BZkvDMjt-DpGe0QK9.js";
2
- import { t as createJiti } from "./jiti-Bb1dT6Cw-C0N20Za1.js";
1
+ import { h as resolveJsFrom, m as resolveCssFrom, v as __exportAll } from "./sorter-BZkvDMjt-C3eOnP5z.js";
2
+ import { t as createJiti } from "./jiti-Bb1dT6Cw-B_5IaZk7.js";
3
3
  import { pathToFileURL } from "node:url";
4
4
  import * as path from "node:path";
5
5
  import * as fs from "node:fs/promises";
6
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.3997fbd_prettier-plugin-svelte@3.5.2_prettie_981079e52d31d99dd529b9a262e0d726/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs
6
+ //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.0.1_prettie_b20d8b14d002a94b1de20f5a14f79b1e/node_modules/prettier-plugin-tailwindcss/dist/v4-C-HWEQJm.mjs
7
7
  var l$1 = {
8
8
  inherit: "inherit",
9
9
  current: "currentcolor",
@@ -1,4 +1,4 @@
1
- import { s as __esmMin } from "./apis-CKvPKBJI.js";
1
+ import { n as __esmMin } from "./chunk-CNf5ZN-e.js";
2
2
  //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/yaml.mjs
3
3
  function Ri(t) {
4
4
  return this[t < 0 ? this.length + t : t];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxfmt",
3
- "version": "0.50.0",
3
+ "version": "0.52.0",
4
4
  "description": "Formatter for the JavaScript Oxidation Compiler",
5
5
  "keywords": [
6
6
  "formatter",
@@ -45,11 +45,15 @@
45
45
  "tinypool": "2.1.0"
46
46
  },
47
47
  "peerDependencies": {
48
- "svelte": "^5.0.0"
48
+ "svelte": "^5.0.0",
49
+ "vite-plus": "*"
49
50
  },
50
51
  "peerDependenciesMeta": {
51
52
  "svelte": {
52
53
  "optional": true
54
+ },
55
+ "vite-plus": {
56
+ "optional": true
53
57
  }
54
58
  },
55
59
  "napi": {
@@ -82,24 +86,24 @@
82
86
  },
83
87
  "preferUnplugged": true,
84
88
  "optionalDependencies": {
85
- "@oxfmt/binding-darwin-arm64": "0.50.0",
86
- "@oxfmt/binding-android-arm64": "0.50.0",
87
- "@oxfmt/binding-win32-arm64-msvc": "0.50.0",
88
- "@oxfmt/binding-linux-arm64-gnu": "0.50.0",
89
- "@oxfmt/binding-linux-arm64-musl": "0.50.0",
90
- "@oxfmt/binding-openharmony-arm64": "0.50.0",
91
- "@oxfmt/binding-android-arm-eabi": "0.50.0",
92
- "@oxfmt/binding-linux-arm-gnueabihf": "0.50.0",
93
- "@oxfmt/binding-linux-arm-musleabihf": "0.50.0",
94
- "@oxfmt/binding-win32-ia32-msvc": "0.50.0",
95
- "@oxfmt/binding-linux-ppc64-gnu": "0.50.0",
96
- "@oxfmt/binding-linux-riscv64-gnu": "0.50.0",
97
- "@oxfmt/binding-linux-riscv64-musl": "0.50.0",
98
- "@oxfmt/binding-linux-s390x-gnu": "0.50.0",
99
- "@oxfmt/binding-darwin-x64": "0.50.0",
100
- "@oxfmt/binding-win32-x64-msvc": "0.50.0",
101
- "@oxfmt/binding-freebsd-x64": "0.50.0",
102
- "@oxfmt/binding-linux-x64-gnu": "0.50.0",
103
- "@oxfmt/binding-linux-x64-musl": "0.50.0"
89
+ "@oxfmt/binding-darwin-arm64": "0.52.0",
90
+ "@oxfmt/binding-android-arm64": "0.52.0",
91
+ "@oxfmt/binding-win32-arm64-msvc": "0.52.0",
92
+ "@oxfmt/binding-linux-arm64-gnu": "0.52.0",
93
+ "@oxfmt/binding-linux-arm64-musl": "0.52.0",
94
+ "@oxfmt/binding-openharmony-arm64": "0.52.0",
95
+ "@oxfmt/binding-android-arm-eabi": "0.52.0",
96
+ "@oxfmt/binding-linux-arm-gnueabihf": "0.52.0",
97
+ "@oxfmt/binding-linux-arm-musleabihf": "0.52.0",
98
+ "@oxfmt/binding-win32-ia32-msvc": "0.52.0",
99
+ "@oxfmt/binding-linux-ppc64-gnu": "0.52.0",
100
+ "@oxfmt/binding-linux-riscv64-gnu": "0.52.0",
101
+ "@oxfmt/binding-linux-riscv64-musl": "0.52.0",
102
+ "@oxfmt/binding-linux-s390x-gnu": "0.52.0",
103
+ "@oxfmt/binding-darwin-x64": "0.52.0",
104
+ "@oxfmt/binding-win32-x64-msvc": "0.52.0",
105
+ "@oxfmt/binding-freebsd-x64": "0.52.0",
106
+ "@oxfmt/binding-linux-x64-gnu": "0.52.0",
107
+ "@oxfmt/binding-linux-x64-musl": "0.52.0"
104
108
  }
105
109
  }
File without changes