oxfmt 0.54.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 (33) hide show
  1. package/configuration_schema.json +1 -1
  2. package/dist/{acorn-C-l7ouWN.js → acorn-Cvoi4PWR.js} +2 -2
  3. package/dist/{angular-4Mc0TmPv.js → angular-DPcoLhcH.js} +2 -2
  4. package/dist/{apis-CngUzqDq.js → apis-DkdEeIjV.js} +5 -5
  5. package/dist/{babel-DjR61Wf3.js → babel-CVxlCcDg.js} +2 -2
  6. package/dist/{napi-callbacks-C8y3J_xb.js → bindings-NuElWCOb.js} +46 -64
  7. package/dist/{chunk-DSjvVL_1-BUO3FyMh.js → chunk-DSjvVL_1-Q4hfmPG1.js} +1 -1
  8. package/dist/cli-worker.d.ts +2 -2
  9. package/dist/cli-worker.js +1 -1
  10. package/dist/cli.js +3 -2
  11. package/dist/{dist-ZI7w_ao-.js → dist-DivOnw62.js} +15 -15
  12. package/dist/{estree-DHQPBKqf.js → estree-CkMEq_Zb.js} +2 -2
  13. package/dist/{flow-Cz3mJAtC.js → flow-BXs7AWV-.js} +2 -2
  14. package/dist/{glimmer-ubhL-0tG.js → glimmer-BN5XmZ27.js} +2 -2
  15. package/dist/{graphql-Cl0TIiHU.js → graphql-BgY-saF-.js} +2 -2
  16. package/dist/{html-Cqnv8X__.js → html-vBUPNHC4.js} +2 -2
  17. package/dist/index.js +7 -4
  18. package/dist/{jiti-Bb1dT6Cw-DPQUX1DC.js → jiti-Bb1dT6Cw-BAogql5V.js} +2 -2
  19. package/dist/{markdown-Eujfu-fQ.js → markdown-Bowe09rB.js} +3 -3
  20. package/dist/{meriyah-DESRG6oe.js → meriyah-CLIO9qWy.js} +2 -2
  21. package/dist/{migrate-prettier-DWPaoKDl.js → migrate-prettier-qkEMts2A.js} +1 -1
  22. package/dist/napi-callbacks-Sb-usWTs.js +30 -0
  23. package/dist/{plugin-CHUKsFCg.js → plugin-Beq25NZF.js} +4 -4
  24. package/dist/{postcss-BFLfznNY.js → postcss-nPoy2yt-.js} +2 -2
  25. package/dist/{prettier-CttUn4xj.js → prettier-D67P9sCF.js} +18 -18
  26. package/dist/{sorter-CharfNIQ.js → sorter-BPzPgLsP.js} +1 -1
  27. package/dist/{sorter-BZkvDMjt-DCuU-7CM.js → sorter-BZkvDMjt-COt95VpI.js} +7 -7
  28. package/dist/{typescript-lqJOqGcK.js → typescript-DgGTZjEC.js} +2 -2
  29. package/dist/{v3-D-mr2VVh-C7AdPwxy.js → v3-D-mr2VVh-sE8Y1ugu.js} +4 -4
  30. package/dist/{v4-C-HWEQJm-CJKqx13d.js → v4-C-HWEQJm-9cSRecG6.js} +4 -4
  31. package/dist/{yaml-BT3ntp8h.js → yaml-BStl3JdL.js} +2 -2
  32. package/package.json +20 -20
  33. /package/dist/{chunk-CNf5ZN-e.js → rolldown-runtime-CNf5ZN-e.js} +0 -0
@@ -811,4 +811,4 @@
811
811
  }
812
812
  },
813
813
  "markdownDescription": "Configuration options for the Oxfmt.\n\nMost options are the same as Prettier's options, but not all of them.\nIn addition, some options are our own extensions."
814
- }
814
+ }
@@ -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/acorn.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/acorn.mjs
3
3
  function je(e, t) {
4
4
  for (var i = 65536, s = 0; s < t.length; s += 2) {
5
5
  if (i += t[s], i > e) return !1;
@@ -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/angular.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/angular.mjs
3
3
  function Fr(t) {
4
4
  return typeof t == "string" ? (e) => e === t : (e) => t.test(e);
5
5
  }
@@ -1,4 +1,4 @@
1
- import { o as __toESM } from "./chunk-CNf5ZN-e.js";
1
+ import { o as __toESM } from "./rolldown-runtime-CNf5ZN-e.js";
2
2
  //#region src-js/libs/apis.ts
3
3
  const CACHES = {
4
4
  prettier: null,
@@ -13,7 +13,7 @@ async function loadCached(key, loader) {
13
13
  }
14
14
  async function loadPrettier() {
15
15
  return loadCached("prettier", async () => {
16
- const prettier = await import("./prettier-CttUn4xj.js");
16
+ const prettier = await import("./prettier-D67P9sCF.js");
17
17
  const { formatOptionsHiddenDefaults } = prettier.__internal;
18
18
  formatOptionsHiddenDefaults.parentParser = null;
19
19
  formatOptionsHiddenDefaults.__onHtmlRoot = null;
@@ -84,7 +84,7 @@ async function formatEmbeddedDoc({ texts, options }) {
84
84
  * Option mapping (sortTailwindcss.xxx → tailwindXxx) is also done in Rust side.
85
85
  */
86
86
  async function setupTailwindPlugin(options) {
87
- CACHES.tailwindPlugin ??= await loadCached("tailwindPlugin", () => import("./dist-ZI7w_ao-.js"));
87
+ CACHES.tailwindPlugin ??= await loadCached("tailwindPlugin", () => import("./dist-DivOnw62.js"));
88
88
  options.plugins ??= [];
89
89
  options.plugins.push(CACHES.tailwindPlugin);
90
90
  }
@@ -94,7 +94,7 @@ async function setupTailwindPlugin(options) {
94
94
  * @returns Array of sorted class strings (same order/length as input)
95
95
  */
96
96
  async function sortTailwindClasses({ classes, options }) {
97
- CACHES.tailwindSorter ??= await loadCached("tailwindSorter", () => import("./sorter-CharfNIQ.js"));
97
+ CACHES.tailwindSorter ??= await loadCached("tailwindSorter", () => import("./sorter-BPzPgLsP.js"));
98
98
  const { createSorter } = CACHES.tailwindSorter;
99
99
  return (await createSorter({
100
100
  filepath: options.filepath,
@@ -108,7 +108,7 @@ async function sortTailwindClasses({ classes, options }) {
108
108
  * Load prettier-plugin-svelte to provide the `svelte` parser.
109
109
  */
110
110
  async function setupSveltePlugin(options) {
111
- CACHES.sveltePlugin ??= await loadCached("sveltePlugin", async () => await import("./plugin-CHUKsFCg.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
111
+ CACHES.sveltePlugin ??= await loadCached("sveltePlugin", async () => await import("./plugin-Beq25NZF.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
112
112
  options.plugins ??= [];
113
113
  options.plugins.push(CACHES.sveltePlugin);
114
114
  }
@@ -1,5 +1,5 @@
1
- import { n as __esmMin, r as __exportAll } from "./chunk-CNf5ZN-e.js";
2
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/babel.mjs
1
+ import { n as __esmMin, r as __exportAll } from "./rolldown-runtime-CNf5ZN-e.js";
2
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/babel.mjs
3
3
  var babel_exports = /* @__PURE__ */ __exportAll({
4
4
  default: () => Ks,
5
5
  parsers: () => ra
@@ -1,8 +1,15 @@
1
- import { createRequire } from "node:module";
1
+ import { r as __exportAll } from "./rolldown-runtime-CNf5ZN-e.js";
2
+ import { createRequire } from "module";
2
3
  //#region src-js/bindings.js
4
+ var bindings_exports = /* @__PURE__ */ __exportAll({
5
+ Severity: () => Severity,
6
+ format: () => format,
7
+ jsTextToDoc: () => jsTextToDoc,
8
+ runCli: () => runCli
9
+ });
3
10
  const require = createRequire(import.meta.url);
4
11
  new URL(".", import.meta.url).pathname;
5
- const { readFileSync } = require("node:fs");
12
+ const { readFileSync } = require("fs");
6
13
  let nativeBinding = null;
7
14
  const loadErrors = [];
8
15
  const isMusl = () => {
@@ -24,7 +31,7 @@ const isMuslFromFilesystem = () => {
24
31
  };
25
32
  const isMuslFromReport = () => {
26
33
  let report = null;
27
- if (typeof process.report?.getReport === "function") {
34
+ if (process.report && typeof process.report.getReport === "function") {
28
35
  process.report.excludeNetwork = true;
29
36
  report = process.report.getReport();
30
37
  }
@@ -57,7 +64,7 @@ function requireNative() {
57
64
  try {
58
65
  const binding = require("@oxfmt/binding-android-arm64");
59
66
  const bindingPackageVersion = require("@oxfmt/binding-android-arm64/package.json").version;
60
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
67
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
61
68
  return binding;
62
69
  } catch (e) {
63
70
  loadErrors.push(e);
@@ -71,13 +78,13 @@ function requireNative() {
71
78
  try {
72
79
  const binding = require("@oxfmt/binding-android-arm-eabi");
73
80
  const bindingPackageVersion = require("@oxfmt/binding-android-arm-eabi/package.json").version;
74
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
81
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
75
82
  return binding;
76
83
  } catch (e) {
77
84
  loadErrors.push(e);
78
85
  }
79
86
  } else loadErrors.push(/* @__PURE__ */ new Error(`Unsupported architecture on Android ${process.arch}`));
80
- else if (process.platform === "win32") if (process.arch === "x64") if (process.config?.variables?.shlib_suffix === "dll.a" || process.config?.variables?.node_target_type === "shared_library") {
87
+ else if (process.platform === "win32") if (process.arch === "x64") if (process.config && process.config.variables && process.config.variables.shlib_suffix === "dll.a" || process.config && process.config.variables && process.config.variables.node_target_type === "shared_library") {
81
88
  try {
82
89
  return require("./oxfmt.win32-x64-gnu.node");
83
90
  } catch (e) {
@@ -86,7 +93,7 @@ function requireNative() {
86
93
  try {
87
94
  const binding = require("@oxfmt/binding-win32-x64-gnu");
88
95
  const bindingPackageVersion = require("@oxfmt/binding-win32-x64-gnu/package.json").version;
89
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
96
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
90
97
  return binding;
91
98
  } catch (e) {
92
99
  loadErrors.push(e);
@@ -100,7 +107,7 @@ function requireNative() {
100
107
  try {
101
108
  const binding = require("@oxfmt/binding-win32-x64-msvc");
102
109
  const bindingPackageVersion = require("@oxfmt/binding-win32-x64-msvc/package.json").version;
103
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
110
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
104
111
  return binding;
105
112
  } catch (e) {
106
113
  loadErrors.push(e);
@@ -115,7 +122,7 @@ function requireNative() {
115
122
  try {
116
123
  const binding = require("@oxfmt/binding-win32-ia32-msvc");
117
124
  const bindingPackageVersion = require("@oxfmt/binding-win32-ia32-msvc/package.json").version;
118
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
125
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
119
126
  return binding;
120
127
  } catch (e) {
121
128
  loadErrors.push(e);
@@ -129,7 +136,7 @@ function requireNative() {
129
136
  try {
130
137
  const binding = require("@oxfmt/binding-win32-arm64-msvc");
131
138
  const bindingPackageVersion = require("@oxfmt/binding-win32-arm64-msvc/package.json").version;
132
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
139
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
133
140
  return binding;
134
141
  } catch (e) {
135
142
  loadErrors.push(e);
@@ -144,7 +151,7 @@ function requireNative() {
144
151
  try {
145
152
  const binding = require("@oxfmt/binding-darwin-universal");
146
153
  const bindingPackageVersion = require("@oxfmt/binding-darwin-universal/package.json").version;
147
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
154
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
155
  return binding;
149
156
  } catch (e) {
150
157
  loadErrors.push(e);
@@ -158,7 +165,7 @@ function requireNative() {
158
165
  try {
159
166
  const binding = require("@oxfmt/binding-darwin-x64");
160
167
  const bindingPackageVersion = require("@oxfmt/binding-darwin-x64/package.json").version;
161
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
168
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
169
  return binding;
163
170
  } catch (e) {
164
171
  loadErrors.push(e);
@@ -172,7 +179,7 @@ function requireNative() {
172
179
  try {
173
180
  const binding = require("@oxfmt/binding-darwin-arm64");
174
181
  const bindingPackageVersion = require("@oxfmt/binding-darwin-arm64/package.json").version;
175
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
182
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
176
183
  return binding;
177
184
  } catch (e) {
178
185
  loadErrors.push(e);
@@ -187,7 +194,7 @@ function requireNative() {
187
194
  try {
188
195
  const binding = require("@oxfmt/binding-freebsd-x64");
189
196
  const bindingPackageVersion = require("@oxfmt/binding-freebsd-x64/package.json").version;
190
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
197
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
191
198
  return binding;
192
199
  } catch (e) {
193
200
  loadErrors.push(e);
@@ -201,7 +208,7 @@ function requireNative() {
201
208
  try {
202
209
  const binding = require("@oxfmt/binding-freebsd-arm64");
203
210
  const bindingPackageVersion = require("@oxfmt/binding-freebsd-arm64/package.json").version;
204
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
211
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
205
212
  return binding;
206
213
  } catch (e) {
207
214
  loadErrors.push(e);
@@ -216,7 +223,7 @@ function requireNative() {
216
223
  try {
217
224
  const binding = require("@oxfmt/binding-linux-x64-musl");
218
225
  const bindingPackageVersion = require("@oxfmt/binding-linux-x64-musl/package.json").version;
219
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
226
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
220
227
  return binding;
221
228
  } catch (e) {
222
229
  loadErrors.push(e);
@@ -230,7 +237,7 @@ function requireNative() {
230
237
  try {
231
238
  const binding = require("@oxfmt/binding-linux-x64-gnu");
232
239
  const bindingPackageVersion = require("@oxfmt/binding-linux-x64-gnu/package.json").version;
233
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
240
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
234
241
  return binding;
235
242
  } catch (e) {
236
243
  loadErrors.push(e);
@@ -245,7 +252,7 @@ function requireNative() {
245
252
  try {
246
253
  const binding = require("@oxfmt/binding-linux-arm64-musl");
247
254
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-musl/package.json").version;
248
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
255
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
249
256
  return binding;
250
257
  } catch (e) {
251
258
  loadErrors.push(e);
@@ -259,7 +266,7 @@ function requireNative() {
259
266
  try {
260
267
  const binding = require("@oxfmt/binding-linux-arm64-gnu");
261
268
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-gnu/package.json").version;
262
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
269
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
263
270
  return binding;
264
271
  } catch (e) {
265
272
  loadErrors.push(e);
@@ -274,7 +281,7 @@ function requireNative() {
274
281
  try {
275
282
  const binding = require("@oxfmt/binding-linux-arm-musleabihf");
276
283
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm-musleabihf/package.json").version;
277
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
284
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
278
285
  return binding;
279
286
  } catch (e) {
280
287
  loadErrors.push(e);
@@ -288,7 +295,7 @@ function requireNative() {
288
295
  try {
289
296
  const binding = require("@oxfmt/binding-linux-arm-gnueabihf");
290
297
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm-gnueabihf/package.json").version;
291
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
298
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
292
299
  return binding;
293
300
  } catch (e) {
294
301
  loadErrors.push(e);
@@ -303,7 +310,7 @@ function requireNative() {
303
310
  try {
304
311
  const binding = require("@oxfmt/binding-linux-loong64-musl");
305
312
  const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-musl/package.json").version;
306
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
313
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
307
314
  return binding;
308
315
  } catch (e) {
309
316
  loadErrors.push(e);
@@ -317,7 +324,7 @@ function requireNative() {
317
324
  try {
318
325
  const binding = require("@oxfmt/binding-linux-loong64-gnu");
319
326
  const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-gnu/package.json").version;
320
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
327
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
321
328
  return binding;
322
329
  } catch (e) {
323
330
  loadErrors.push(e);
@@ -332,7 +339,7 @@ function requireNative() {
332
339
  try {
333
340
  const binding = require("@oxfmt/binding-linux-riscv64-musl");
334
341
  const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-musl/package.json").version;
335
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
342
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
343
  return binding;
337
344
  } catch (e) {
338
345
  loadErrors.push(e);
@@ -346,7 +353,7 @@ function requireNative() {
346
353
  try {
347
354
  const binding = require("@oxfmt/binding-linux-riscv64-gnu");
348
355
  const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-gnu/package.json").version;
349
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
356
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
357
  return binding;
351
358
  } catch (e) {
352
359
  loadErrors.push(e);
@@ -361,7 +368,7 @@ function requireNative() {
361
368
  try {
362
369
  const binding = require("@oxfmt/binding-linux-ppc64-gnu");
363
370
  const bindingPackageVersion = require("@oxfmt/binding-linux-ppc64-gnu/package.json").version;
364
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
371
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
365
372
  return binding;
366
373
  } catch (e) {
367
374
  loadErrors.push(e);
@@ -375,7 +382,7 @@ function requireNative() {
375
382
  try {
376
383
  const binding = require("@oxfmt/binding-linux-s390x-gnu");
377
384
  const bindingPackageVersion = require("@oxfmt/binding-linux-s390x-gnu/package.json").version;
378
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
385
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
379
386
  return binding;
380
387
  } catch (e) {
381
388
  loadErrors.push(e);
@@ -390,7 +397,7 @@ function requireNative() {
390
397
  try {
391
398
  const binding = require("@oxfmt/binding-openharmony-arm64");
392
399
  const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm64/package.json").version;
393
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
400
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
401
  return binding;
395
402
  } catch (e) {
396
403
  loadErrors.push(e);
@@ -404,7 +411,7 @@ function requireNative() {
404
411
  try {
405
412
  const binding = require("@oxfmt/binding-openharmony-x64");
406
413
  const bindingPackageVersion = require("@oxfmt/binding-openharmony-x64/package.json").version;
407
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
414
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
415
  return binding;
409
416
  } catch (e) {
410
417
  loadErrors.push(e);
@@ -418,7 +425,7 @@ function requireNative() {
418
425
  try {
419
426
  const binding = require("@oxfmt/binding-openharmony-arm");
420
427
  const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm/package.json").version;
421
- if (bindingPackageVersion !== "0.54.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.54.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
428
+ if (bindingPackageVersion !== "0.55.0" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.55.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
422
429
  return binding;
423
430
  } catch (e) {
424
431
  loadErrors.push(e);
@@ -454,41 +461,16 @@ if (!nativeBinding || forceWasi) {
454
461
  }
455
462
  }
456
463
  if (!nativeBinding) {
457
- if (loadErrors.length > 0) throw new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.", { cause: loadErrors.reduce((err, cur) => {
458
- cur.cause = err;
459
- return cur;
460
- }) });
464
+ if (loadErrors.length > 0) {
465
+ const error = /* @__PURE__ */ new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.");
466
+ error.cause = loadErrors.reduce((err, cur) => {
467
+ cur.cause = err;
468
+ return cur;
469
+ });
470
+ throw error;
471
+ }
461
472
  throw new Error(`Failed to load native binding`);
462
473
  }
463
474
  const { Severity, format, jsTextToDoc, runCli } = nativeBinding;
464
475
  //#endregion
465
- //#region src-js/libs/napi-callbacks.ts
466
- /**
467
- * Wrap a `formatFile`-shaped `Promise<string>` so it never rejects, preserving the error message.
468
- */
469
- async function toFormatFileResult(run) {
470
- return run.then((code) => ({
471
- ok: true,
472
- code
473
- })).catch((err) => ({
474
- ok: false,
475
- error: errorToMessage(err)
476
- }));
477
- }
478
- /**
479
- * Wrap a best-effort formatter `Promise<T>` so it never rejects, discarding the error as `null`.
480
- * Used for embedded code / tailwind sorting, where Rust falls back to the original code on failure.
481
- */
482
- async function toNullable(run) {
483
- return run.catch(() => null);
484
- }
485
- function errorToMessage(err) {
486
- if (err instanceof Error) return String(err);
487
- if (err !== null && typeof err === "object") {
488
- const { name, message } = err;
489
- if (typeof message === "string") return typeof name === "string" && name.length > 0 ? `${name}: ${message}` : message;
490
- }
491
- return String(err);
492
- }
493
- //#endregion
494
- export { runCli as a, jsTextToDoc as i, toNullable as n, format as r, toFormatFileResult as t };
476
+ export { runCli as n, bindings_exports as t };
@@ -1,5 +1,5 @@
1
1
  import { createRequire } from "node:module";
2
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/node_modules/prettier-plugin-tailwindcss/dist/chunk-DSjvVL_1.mjs
2
+ //#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/chunk-DSjvVL_1.mjs
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/doc.d.ts
1
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/doc.d.ts
2
2
  // https://github.com/prettier/prettier/blob/next/src/document/public.js
3
3
  declare namespace builders {
4
4
  type DocCommand = Align | BreakParent | Cursor | Fill | Group | IfBreak | Indent | IndentIfBreak | Label | Line | LineSuffix | LineSuffixBoundary | Trim;
@@ -177,7 +177,7 @@ declare namespace utils {
177
177
  function canBreak(doc: builders.Doc): boolean;
178
178
  }
179
179
  //#endregion
180
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/index.d.ts
180
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/index.d.ts
181
181
  declare namespace doc {
182
182
  export { builders, printer, utils };
183
183
  }
@@ -1,2 +1,2 @@
1
- import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-CngUzqDq.js";
1
+ import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-DkdEeIjV.js";
2
2
  export { formatEmbeddedCode, formatEmbeddedDoc, formatFile, sortTailwindClasses };
package/dist/cli.js CHANGED
@@ -1,4 +1,5 @@
1
- import { a as runCli, n as toNullable, t as toFormatFileResult } from "./napi-callbacks-C8y3J_xb.js";
1
+ import { n as toNullable, t as toFormatFileResult } from "./napi-callbacks-Sb-usWTs.js";
2
+ import { n as runCli } from "./bindings-NuElWCOb.js";
2
3
  import Tinypool from "tinypool";
3
4
  import { fileURLToPath, pathToFileURL } from "node:url";
4
5
  import { extname } from "node:path";
@@ -170,7 +171,7 @@ async function loadVitePlusConfig(path) {
170
171
  return;
171
172
  }
172
173
  if (mode === "migrate:prettier") {
173
- await import("./migrate-prettier-DWPaoKDl.js").then((m) => m.runMigratePrettier());
174
+ await import("./migrate-prettier-qkEMts2A.js").then((m) => m.runMigratePrettier());
174
175
  return;
175
176
  }
176
177
  if (mode === "migrate:biome") {
@@ -1,13 +1,13 @@
1
- import { o as __toESM } from "./chunk-CNf5ZN-e.js";
2
- import { n as init_babel, parsers as ra, t as babel_exports } from "./babel-DjR61Wf3.js";
3
- import index_exports, { t as init_prettier } from "./prettier-CttUn4xj.js";
4
- import { a as __toESM$1, t as __commonJSMin } from "./chunk-DSjvVL_1-BUO3FyMh.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-DCuU-7CM.js";
6
- import { parsers as fn, t as init_angular } from "./angular-4Mc0TmPv.js";
7
- import { n as postcss_exports, parsers as en, t as init_postcss } from "./postcss-BFLfznNY.js";
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";
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_e3345e2f5995e2d14d8ee5c58c9c043a/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.0_prettie_661f6aa3144bd2f260306254bad2432f/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-Cqnv8X__.js")
1073
+ importer: () => import("./html-vBUPNHC4.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-ubhL-0tG.js")
1088
+ importer: () => import("./glimmer-BN5XmZ27.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-lqJOqGcK.js")
1120
+ importer: () => import("./typescript-DgGTZjEC.js")
1121
1121
  }] },
1122
1122
  meriyah: { load: [{
1123
1123
  name: "prettier/plugins/meriyah",
1124
- importer: () => import("./meriyah-DESRG6oe.js")
1124
+ importer: () => import("./meriyah-CLIO9qWy.js")
1125
1125
  }] },
1126
1126
  acorn: { load: [{
1127
1127
  name: "prettier/plugins/acorn",
1128
- importer: () => import("./acorn-C-l7ouWN.js")
1128
+ importer: () => import("./acorn-Cvoi4PWR.js")
1129
1129
  }] },
1130
1130
  flow: { load: [{
1131
1131
  name: "prettier/plugins/flow",
1132
- importer: () => import("./flow-Cz3mJAtC.js")
1132
+ importer: () => import("./flow-BXs7AWV-.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-CHUKsFCg.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))
1163
+ importer: () => import("./plugin-Beq25NZF.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))
1164
1164
  }],
1165
1165
  parsers: { svelte: {} },
1166
1166
  printers: { "svelte-ast": {} },
@@ -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/estree.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/estree.mjs
3
3
  function ka(e) {
4
4
  return this[e < 0 ? this.length + e : e];
5
5
  }
@@ -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/flow.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/flow.mjs
3
3
  function iI0(a0, ox) {
4
4
  let Yx = /* @__PURE__ */ new SyntaxError(a0 + " (" + ox.loc.start.line + ":" + ox.loc.start.column + ")");
5
5
  return Object.assign(Yx, ox);
@@ -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/glimmer.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/glimmer.mjs
3
3
  function Yn(e) {
4
4
  return this[e < 0 ? this.length + e : e];
5
5
  }
@@ -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/graphql.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/graphql.mjs
3
3
  function x(e) {
4
4
  return S(e), {
5
5
  type: Ee,
@@ -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/html.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/html.mjs
3
3
  function ns(e) {
4
4
  return this[e < 0 ? this.length + e : e];
5
5
  }
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { i as jsTextToDoc$1, n as toNullable, r as format$1, t as toFormatFileResult } from "./napi-callbacks-C8y3J_xb.js";
2
- import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-CngUzqDq.js";
1
+ import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-DkdEeIjV.js";
2
+ import { n as toNullable, t as toFormatFileResult } from "./napi-callbacks-Sb-usWTs.js";
3
3
  //#region src-js/index.ts
4
4
  /**
5
5
  * Define an oxfmt configuration with type inference.
@@ -7,13 +7,15 @@ import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as
7
7
  function defineConfig(config) {
8
8
  return config;
9
9
  }
10
+ let BINDINGS_CACHE = null;
10
11
  /**
11
12
  * Format the given source text according to the specified options.
12
13
  */
13
14
  async function format(fileName, sourceText, options) {
14
15
  if (typeof fileName !== "string") throw new TypeError("`fileName` must be a string");
15
16
  if (typeof sourceText !== "string") throw new TypeError("`sourceText` must be a string");
16
- return format$1(fileName, sourceText, options ?? {}, (options, code) => toFormatFileResult(formatFile({
17
+ BINDINGS_CACHE ??= await import("./bindings-NuElWCOb.js").then((n) => n.t);
18
+ return BINDINGS_CACHE.format(fileName, sourceText, options ?? {}, (options, code) => toFormatFileResult(formatFile({
17
19
  options,
18
20
  code
19
21
  })), (options, code) => toNullable(formatEmbeddedCode({
@@ -31,7 +33,8 @@ async function format(fileName, sourceText, options) {
31
33
  * Format a JS/TS snippet for Prettier `textToDoc()` plugin flow.
32
34
  */
33
35
  async function jsTextToDoc(sourceExt, sourceText, oxfmtPluginOptionsJson, parentContext) {
34
- return jsTextToDoc$1(sourceExt, sourceText, oxfmtPluginOptionsJson, parentContext, () => toFormatFileResult(Promise.reject("formatFile is unavailable for jsTextToDoc")), (options, code) => toNullable(formatEmbeddedCode({
36
+ BINDINGS_CACHE ??= await import("./bindings-NuElWCOb.js").then((n) => n.t);
37
+ return BINDINGS_CACHE.jsTextToDoc(sourceExt, sourceText, oxfmtPluginOptionsJson, parentContext, () => toFormatFileResult(Promise.reject("formatFile is unavailable for jsTextToDoc")), (options, code) => toNullable(formatEmbeddedCode({
35
38
  options,
36
39
  code
37
40
  })), (options, texts) => toNullable(formatEmbeddedDoc({
@@ -1,6 +1,6 @@
1
- import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-BUO3FyMh.js";
1
+ import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-Q4hfmPG1.js";
2
2
  import { createRequire } from "node:module";
3
- //#region ../../node_modules/.pnpm/prettier-plugin-tailwindcss@0.0.0-insiders.2b6f3c2_prettier-plugin-svelte@4.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/node_modules/prettier-plugin-tailwindcss/dist/jiti-Bb1dT6Cw.mjs
3
+ //#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/jiti-Bb1dT6Cw.mjs
4
4
  var require_jiti = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
5
  (() => {
6
6
  var e = { "./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive": function(e) {
@@ -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/markdown.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/markdown.mjs
3
3
  function yl(e) {
4
4
  return this[e < 0 ? this.length + e : e];
5
5
  }
@@ -879,7 +879,7 @@ function Cf({ node: e, parent: r }) {
879
879
  return !t && !n;
880
880
  }
881
881
  function Af({ node: e, previous: r, parent: t }, n) {
882
- if (Ni(r, n) || e.type === "list" && t.type === "listItem" && r.type === "code") return !0;
882
+ if (Ni(r, n) || e.type === "list" && t.type === "listItem" && (r.type === "code" || r.type === "paragraph") && r.position.end.line + 1 < e.position.start.line) return !0;
883
883
  let u = r.type === e.type && vf.has(e.type), a = t.type === "listItem" && (e.type === "list" || !Ni(t, n)), o = lr(r) === "next", s = e.type === "html" && r.type === "html" && r.position.end.line + 1 === e.position.start.line, l = e.type === "html" && t.type === "listItem" && r.type === "paragraph" && r.position.end.line + 1 === e.position.start.line;
884
884
  return !(u || a || o || s || l);
885
885
  }
@@ -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/meriyah.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/meriyah.mjs
3
3
  function Se(e) {
4
4
  return e <= 127 ? _2[e] > 0 : Ct(e);
5
5
  }
@@ -9,7 +9,7 @@ import { readFile } from "node:fs/promises";
9
9
  async function runMigratePrettier() {
10
10
  const cwd = process.cwd();
11
11
  if (await hasOxfmtrcFile(cwd)) return exitWithError("Oxfmt configuration file already exists.");
12
- const { resolveConfigFile, resolveConfig } = await import("./prettier-CttUn4xj.js");
12
+ const { resolveConfigFile, resolveConfig } = await import("./prettier-D67P9sCF.js");
13
13
  const prettierConfigPath = await resolveConfigFile(join(cwd, "dummy.js"));
14
14
  if (!prettierConfigPath) {
15
15
  console.log("No Prettier configuration file found.");
@@ -0,0 +1,30 @@
1
+ //#region src-js/libs/napi-callbacks.ts
2
+ /**
3
+ * Wrap a `formatFile`-shaped `Promise<string>` so it never rejects, preserving the error message.
4
+ */
5
+ async function toFormatFileResult(run) {
6
+ return run.then((code) => ({
7
+ ok: true,
8
+ code
9
+ })).catch((err) => ({
10
+ ok: false,
11
+ error: errorToMessage(err)
12
+ }));
13
+ }
14
+ /**
15
+ * Wrap a best-effort formatter `Promise<T>` so it never rejects, discarding the error as `null`.
16
+ * Used for embedded code / tailwind sorting, where Rust falls back to the original code on failure.
17
+ */
18
+ async function toNullable(run) {
19
+ return run.catch(() => null);
20
+ }
21
+ function errorToMessage(err) {
22
+ if (err instanceof Error) return String(err);
23
+ if (err !== null && typeof err === "object") {
24
+ const { name, message } = err;
25
+ if (typeof message === "string") return typeof name === "string" && name.length > 0 ? `${name}: ${message}` : message;
26
+ }
27
+ return String(err);
28
+ }
29
+ //#endregion
30
+ export { toNullable as n, toFormatFileResult as t };
@@ -1,7 +1,7 @@
1
- import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./chunk-CNf5ZN-e.js";
2
- import { n as init_babel, t as babel_exports } from "./babel-DjR61Wf3.js";
3
- import { n as prettier_exports, t as init_prettier } from "./prettier-CttUn4xj.js";
4
- //#region ../../node_modules/.pnpm/prettier-plugin-svelte@4.1.0_prettier@3.8.3_svelte@5.56.2_@typescript-eslint+types@8.60.1_/node_modules/prettier-plugin-svelte/plugin.js
1
+ import { a as __toCommonJS, i as __require, t as __commonJSMin } from "./rolldown-runtime-CNf5ZN-e.js";
2
+ import { n as init_babel, t as babel_exports } from "./babel-CVxlCcDg.js";
3
+ import { n as prettier_exports, t as init_prettier } from "./prettier-D67P9sCF.js";
4
+ //#region ../../node_modules/.pnpm/prettier-plugin-svelte@4.1.0_prettier@3.8.4_svelte@5.56.3_@typescript-eslint+types@8.61.0_/node_modules/prettier-plugin-svelte/plugin.js
5
5
  var require_plugin = /* @__PURE__ */ __commonJSMin(((exports) => {
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  var prettierPluginBabel = (init_babel(), __toCommonJS(babel_exports));
@@ -1,5 +1,5 @@
1
- import { n as __esmMin, r as __exportAll } from "./chunk-CNf5ZN-e.js";
2
- //#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/postcss.mjs
1
+ import { n as __esmMin, r as __exportAll } from "./rolldown-runtime-CNf5ZN-e.js";
2
+ //#region ../../node_modules/.pnpm/prettier@3.8.4/node_modules/prettier/plugins/postcss.mjs
3
3
  var postcss_exports = /* @__PURE__ */ __exportAll({
4
4
  default: () => _l,
5
5
  languages: () => Si,
@@ -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-DCuU-7CM.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-BUO3FyMh.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.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/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.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/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.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/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-C7AdPwxy.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-C7AdPwxy.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-CJKqx13d.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-BUO3FyMh.js";
2
- import { s as bigSign } from "./sorter-BZkvDMjt-DCuU-7CM.js";
3
- import { t as createJiti } from "./jiti-Bb1dT6Cw-DPQUX1DC.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.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/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-BUO3FyMh.js";
2
- import { h as resolveJsFrom, m as resolveCssFrom } from "./sorter-BZkvDMjt-DCuU-7CM.js";
3
- import { t as createJiti } from "./jiti-Bb1dT6Cw-DPQUX1DC.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.1.0_prettie_e3345e2f5995e2d14d8ee5c58c9c043a/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.54.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.54.0",
90
- "@oxfmt/binding-android-arm64": "0.54.0",
91
- "@oxfmt/binding-win32-arm64-msvc": "0.54.0",
92
- "@oxfmt/binding-linux-arm64-gnu": "0.54.0",
93
- "@oxfmt/binding-linux-arm64-musl": "0.54.0",
94
- "@oxfmt/binding-openharmony-arm64": "0.54.0",
95
- "@oxfmt/binding-android-arm-eabi": "0.54.0",
96
- "@oxfmt/binding-linux-arm-gnueabihf": "0.54.0",
97
- "@oxfmt/binding-linux-arm-musleabihf": "0.54.0",
98
- "@oxfmt/binding-win32-ia32-msvc": "0.54.0",
99
- "@oxfmt/binding-linux-ppc64-gnu": "0.54.0",
100
- "@oxfmt/binding-linux-riscv64-gnu": "0.54.0",
101
- "@oxfmt/binding-linux-riscv64-musl": "0.54.0",
102
- "@oxfmt/binding-linux-s390x-gnu": "0.54.0",
103
- "@oxfmt/binding-darwin-x64": "0.54.0",
104
- "@oxfmt/binding-win32-x64-msvc": "0.54.0",
105
- "@oxfmt/binding-freebsd-x64": "0.54.0",
106
- "@oxfmt/binding-linux-x64-gnu": "0.54.0",
107
- "@oxfmt/binding-linux-x64-musl": "0.54.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
  }