oxfmt 0.40.0 → 0.42.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.
@@ -63,6 +63,15 @@
63
63
  "type": "boolean",
64
64
  "markdownDescription": "Whether to insert a final newline at the end of the file.\n\n- Default: `true`\n- Overrides `.editorconfig.insert_final_newline`"
65
65
  },
66
+ "jsdoc": {
67
+ "description": "Enable JSDoc comment formatting.\n\nWhen enabled, JSDoc comments are normalized and reformatted:\ntag aliases are canonicalized, descriptions are capitalized,\nlong lines are wrapped, and short comments are collapsed to single-line.\n\nPass an object (`jsdoc: {}`) to enable with defaults, or omit to disable.\n\n- Default: Disabled",
68
+ "allOf": [
69
+ {
70
+ "$ref": "#/definitions/JsdocConfig"
71
+ }
72
+ ],
73
+ "markdownDescription": "Enable JSDoc comment formatting.\n\nWhen enabled, JSDoc comments are normalized and reformatted:\ntag aliases are canonicalized, descriptions are capitalized,\nlong lines are wrapped, and short comments are collapsed to single-line.\n\nPass an object (`jsdoc: {}`) to enable with defaults, or omit to disable.\n\n- Default: Disabled"
74
+ },
66
75
  "jsxSingleQuote": {
67
76
  "description": "Use single quotes instead of double quotes in JSX.\n\n- Default: `false`",
68
77
  "type": "boolean",
@@ -291,6 +300,15 @@
291
300
  "type": "boolean",
292
301
  "markdownDescription": "Whether to insert a final newline at the end of the file.\n\n- Default: `true`\n- Overrides `.editorconfig.insert_final_newline`"
293
302
  },
303
+ "jsdoc": {
304
+ "description": "Enable JSDoc comment formatting.\n\nWhen enabled, JSDoc comments are normalized and reformatted:\ntag aliases are canonicalized, descriptions are capitalized,\nlong lines are wrapped, and short comments are collapsed to single-line.\n\nPass an object (`jsdoc: {}`) to enable with defaults, or omit to disable.\n\n- Default: Disabled",
305
+ "allOf": [
306
+ {
307
+ "$ref": "#/definitions/JsdocConfig"
308
+ }
309
+ ],
310
+ "markdownDescription": "Enable JSDoc comment formatting.\n\nWhen enabled, JSDoc comments are normalized and reformatted:\ntag aliases are canonicalized, descriptions are capitalized,\nlong lines are wrapped, and short comments are collapsed to single-line.\n\nPass an object (`jsdoc: {}`) to enable with defaults, or omit to disable.\n\n- Default: Disabled"
311
+ },
294
312
  "jsxSingleQuote": {
295
313
  "description": "Use single quotes instead of double quotes in JSX.\n\n- Default: `false`",
296
314
  "type": "boolean",
@@ -408,6 +426,66 @@
408
426
  "ignore"
409
427
  ]
410
428
  },
429
+ "JsdocConfig": {
430
+ "type": "object",
431
+ "properties": {
432
+ "addDefaultToDescription": {
433
+ "description": "Append default values to `@param` descriptions (e.g. \"Default is `value`\").\n\n- Default: `true`",
434
+ "type": "boolean",
435
+ "markdownDescription": "Append default values to `@param` descriptions (e.g. \"Default is `value`\").\n\n- Default: `true`"
436
+ },
437
+ "bracketSpacing": {
438
+ "description": "Add spaces inside JSDoc type braces: `{string}` → `{ string }`.\n\n- Default: `false`",
439
+ "type": "boolean",
440
+ "markdownDescription": "Add spaces inside JSDoc type braces: `{string}` → `{ string }`.\n\n- Default: `false`"
441
+ },
442
+ "capitalizeDescriptions": {
443
+ "description": "Capitalize the first letter of tag descriptions.\n\n- Default: `true`",
444
+ "type": "boolean",
445
+ "markdownDescription": "Capitalize the first letter of tag descriptions.\n\n- Default: `true`"
446
+ },
447
+ "commentLineStrategy": {
448
+ "description": "How to format comment blocks.\n\n- `\"singleLine\"` — Convert to single-line `/** content */` when possible.\n- `\"multiline\"` — Always use multi-line format.\n- `\"keep\"` — Preserve original formatting.\n\n- Default: `\"singleLine\"`",
449
+ "type": "string",
450
+ "markdownDescription": "How to format comment blocks.\n\n- `\"singleLine\"` — Convert to single-line `/** content */` when possible.\n- `\"multiline\"` — Always use multi-line format.\n- `\"keep\"` — Preserve original formatting.\n\n- Default: `\"singleLine\"`"
451
+ },
452
+ "descriptionTag": {
453
+ "description": "Emit `@description` tag instead of inline description.\n\n- Default: `false`",
454
+ "type": "boolean",
455
+ "markdownDescription": "Emit `@description` tag instead of inline description.\n\n- Default: `false`"
456
+ },
457
+ "descriptionWithDot": {
458
+ "description": "Add a trailing dot to the end of descriptions.\n\n- Default: `false`",
459
+ "type": "boolean",
460
+ "markdownDescription": "Add a trailing dot to the end of descriptions.\n\n- Default: `false`"
461
+ },
462
+ "keepUnparsableExampleIndent": {
463
+ "description": "Preserve indentation in unparsable `@example` code.\n\n- Default: `false`",
464
+ "type": "boolean",
465
+ "markdownDescription": "Preserve indentation in unparsable `@example` code.\n\n- Default: `false`"
466
+ },
467
+ "lineWrappingStyle": {
468
+ "description": "Strategy for wrapping description lines at print width.\n\n- `\"greedy\"` — Always re-wrap text to fit within print width.\n- `\"balance\"` — Preserve original line breaks if all lines fit within print width.\n\n- Default: `\"greedy\"`",
469
+ "type": "string",
470
+ "markdownDescription": "Strategy for wrapping description lines at print width.\n\n- `\"greedy\"` — Always re-wrap text to fit within print width.\n- `\"balance\"` — Preserve original line breaks if all lines fit within print width.\n\n- Default: `\"greedy\"`"
471
+ },
472
+ "preferCodeFences": {
473
+ "description": "Use fenced code blocks (```` ``` ````) instead of 4-space indentation for code without a language tag.\n\n- Default: `false`",
474
+ "type": "boolean",
475
+ "markdownDescription": "Use fenced code blocks (```` ``` ````) instead of 4-space indentation for code without a language tag.\n\n- Default: `false`"
476
+ },
477
+ "separateReturnsFromParam": {
478
+ "description": "Add a blank line between the last `@param` and `@returns`.\n\n- Default: `false`",
479
+ "type": "boolean",
480
+ "markdownDescription": "Add a blank line between the last `@param` and `@returns`.\n\n- Default: `false`"
481
+ },
482
+ "separateTagGroups": {
483
+ "description": "Add blank lines between different tag groups (e.g. between `@param` and `@returns`).\n\n- Default: `false`",
484
+ "type": "boolean",
485
+ "markdownDescription": "Add blank lines between different tag groups (e.g. between `@param` and `@returns`).\n\n- Default: `false`"
486
+ }
487
+ }
488
+ },
411
489
  "NewlinesBetweenMarker": {
412
490
  "description": "A marker object for overriding `newlinesBetween` at a specific group boundary.",
413
491
  "type": "object",
@@ -3,6 +3,9 @@ let prettierCache;
3
3
  async function loadPrettier() {
4
4
  if (prettierCache) return prettierCache;
5
5
  prettierCache = await import("./prettier-DmvT5K0i.js");
6
+ const { formatOptionsHiddenDefaults } = prettierCache.__internal;
7
+ formatOptionsHiddenDefaults.parentParser = null;
8
+ formatOptionsHiddenDefaults.__onHtmlRoot = null;
6
9
  return prettierCache;
7
10
  }
8
11
  /**
@@ -55,10 +58,15 @@ async function formatEmbeddedDoc({ texts, options }) {
55
58
  const prettier = await loadPrettier();
56
59
  await setupTailwindPlugin(options);
57
60
  return Promise.all(texts.map(async (text) => {
61
+ const metadata = {};
62
+ if (options.parser === "html") {
63
+ options.parentParser = "OXFMT";
64
+ options.__onHtmlRoot = (root) => metadata.htmlHasMultipleRootElements = (root.children?.length ?? 0) > 1;
65
+ }
58
66
  const doc = await prettier.__debug.printToDoc(text, options);
59
67
  const symbolToNumber = /* @__PURE__ */ new Map();
60
68
  let nextId = 1;
61
- return JSON.stringify(doc, (_key, value) => {
69
+ return JSON.stringify([doc, metadata], (_key, value) => {
62
70
  if (typeof value === "symbol") {
63
71
  if (!symbolToNumber.has(value)) symbolToNumber.set(value, nextId++);
64
72
  return symbolToNumber.get(value);
@@ -104,7 +112,7 @@ async function sortTailwindClasses({ classes, options }) {
104
112
  let oxfmtPluginCache;
105
113
  async function loadOxfmtPlugin() {
106
114
  if (oxfmtPluginCache) return oxfmtPluginCache;
107
- oxfmtPluginCache = await import("./prettier-plugin-oxfmt-gZr3rMg5.js");
115
+ oxfmtPluginCache = await import("./prettier-plugin-oxfmt-DkmSndQ0.js");
108
116
  return oxfmtPluginCache;
109
117
  }
110
118
  /**
@@ -57,7 +57,7 @@ function requireNative() {
57
57
  try {
58
58
  const binding = require("@oxfmt/binding-android-arm64");
59
59
  const bindingPackageVersion = require("@oxfmt/binding-android-arm64/package.json").version;
60
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
60
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
61
61
  return binding;
62
62
  } catch (e) {
63
63
  loadErrors.push(e);
@@ -71,7 +71,7 @@ function requireNative() {
71
71
  try {
72
72
  const binding = require("@oxfmt/binding-android-arm-eabi");
73
73
  const bindingPackageVersion = require("@oxfmt/binding-android-arm-eabi/package.json").version;
74
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
74
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
75
75
  return binding;
76
76
  } catch (e) {
77
77
  loadErrors.push(e);
@@ -86,7 +86,7 @@ function requireNative() {
86
86
  try {
87
87
  const binding = require("@oxfmt/binding-win32-x64-gnu");
88
88
  const bindingPackageVersion = require("@oxfmt/binding-win32-x64-gnu/package.json").version;
89
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
89
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
90
90
  return binding;
91
91
  } catch (e) {
92
92
  loadErrors.push(e);
@@ -100,7 +100,7 @@ function requireNative() {
100
100
  try {
101
101
  const binding = require("@oxfmt/binding-win32-x64-msvc");
102
102
  const bindingPackageVersion = require("@oxfmt/binding-win32-x64-msvc/package.json").version;
103
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
103
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
104
104
  return binding;
105
105
  } catch (e) {
106
106
  loadErrors.push(e);
@@ -115,7 +115,7 @@ function requireNative() {
115
115
  try {
116
116
  const binding = require("@oxfmt/binding-win32-ia32-msvc");
117
117
  const bindingPackageVersion = require("@oxfmt/binding-win32-ia32-msvc/package.json").version;
118
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
118
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
119
119
  return binding;
120
120
  } catch (e) {
121
121
  loadErrors.push(e);
@@ -129,7 +129,7 @@ function requireNative() {
129
129
  try {
130
130
  const binding = require("@oxfmt/binding-win32-arm64-msvc");
131
131
  const bindingPackageVersion = require("@oxfmt/binding-win32-arm64-msvc/package.json").version;
132
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
132
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
133
133
  return binding;
134
134
  } catch (e) {
135
135
  loadErrors.push(e);
@@ -144,7 +144,7 @@ function requireNative() {
144
144
  try {
145
145
  const binding = require("@oxfmt/binding-darwin-universal");
146
146
  const bindingPackageVersion = require("@oxfmt/binding-darwin-universal/package.json").version;
147
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
147
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
148
148
  return binding;
149
149
  } catch (e) {
150
150
  loadErrors.push(e);
@@ -158,7 +158,7 @@ function requireNative() {
158
158
  try {
159
159
  const binding = require("@oxfmt/binding-darwin-x64");
160
160
  const bindingPackageVersion = require("@oxfmt/binding-darwin-x64/package.json").version;
161
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
161
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
162
  return binding;
163
163
  } catch (e) {
164
164
  loadErrors.push(e);
@@ -172,7 +172,7 @@ function requireNative() {
172
172
  try {
173
173
  const binding = require("@oxfmt/binding-darwin-arm64");
174
174
  const bindingPackageVersion = require("@oxfmt/binding-darwin-arm64/package.json").version;
175
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
175
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
176
176
  return binding;
177
177
  } catch (e) {
178
178
  loadErrors.push(e);
@@ -187,7 +187,7 @@ function requireNative() {
187
187
  try {
188
188
  const binding = require("@oxfmt/binding-freebsd-x64");
189
189
  const bindingPackageVersion = require("@oxfmt/binding-freebsd-x64/package.json").version;
190
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
190
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
191
191
  return binding;
192
192
  } catch (e) {
193
193
  loadErrors.push(e);
@@ -201,7 +201,7 @@ function requireNative() {
201
201
  try {
202
202
  const binding = require("@oxfmt/binding-freebsd-arm64");
203
203
  const bindingPackageVersion = require("@oxfmt/binding-freebsd-arm64/package.json").version;
204
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
204
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
205
205
  return binding;
206
206
  } catch (e) {
207
207
  loadErrors.push(e);
@@ -216,7 +216,7 @@ function requireNative() {
216
216
  try {
217
217
  const binding = require("@oxfmt/binding-linux-x64-musl");
218
218
  const bindingPackageVersion = require("@oxfmt/binding-linux-x64-musl/package.json").version;
219
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
219
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
220
220
  return binding;
221
221
  } catch (e) {
222
222
  loadErrors.push(e);
@@ -230,7 +230,7 @@ function requireNative() {
230
230
  try {
231
231
  const binding = require("@oxfmt/binding-linux-x64-gnu");
232
232
  const bindingPackageVersion = require("@oxfmt/binding-linux-x64-gnu/package.json").version;
233
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
233
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
234
234
  return binding;
235
235
  } catch (e) {
236
236
  loadErrors.push(e);
@@ -245,7 +245,7 @@ function requireNative() {
245
245
  try {
246
246
  const binding = require("@oxfmt/binding-linux-arm64-musl");
247
247
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-musl/package.json").version;
248
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
248
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
249
249
  return binding;
250
250
  } catch (e) {
251
251
  loadErrors.push(e);
@@ -259,7 +259,7 @@ function requireNative() {
259
259
  try {
260
260
  const binding = require("@oxfmt/binding-linux-arm64-gnu");
261
261
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm64-gnu/package.json").version;
262
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
262
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
263
263
  return binding;
264
264
  } catch (e) {
265
265
  loadErrors.push(e);
@@ -274,7 +274,7 @@ function requireNative() {
274
274
  try {
275
275
  const binding = require("@oxfmt/binding-linux-arm-musleabihf");
276
276
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm-musleabihf/package.json").version;
277
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
277
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
278
278
  return binding;
279
279
  } catch (e) {
280
280
  loadErrors.push(e);
@@ -288,7 +288,7 @@ function requireNative() {
288
288
  try {
289
289
  const binding = require("@oxfmt/binding-linux-arm-gnueabihf");
290
290
  const bindingPackageVersion = require("@oxfmt/binding-linux-arm-gnueabihf/package.json").version;
291
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
291
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
292
292
  return binding;
293
293
  } catch (e) {
294
294
  loadErrors.push(e);
@@ -303,7 +303,7 @@ function requireNative() {
303
303
  try {
304
304
  const binding = require("@oxfmt/binding-linux-loong64-musl");
305
305
  const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-musl/package.json").version;
306
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
306
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
307
307
  return binding;
308
308
  } catch (e) {
309
309
  loadErrors.push(e);
@@ -317,7 +317,7 @@ function requireNative() {
317
317
  try {
318
318
  const binding = require("@oxfmt/binding-linux-loong64-gnu");
319
319
  const bindingPackageVersion = require("@oxfmt/binding-linux-loong64-gnu/package.json").version;
320
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
320
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
321
321
  return binding;
322
322
  } catch (e) {
323
323
  loadErrors.push(e);
@@ -332,7 +332,7 @@ function requireNative() {
332
332
  try {
333
333
  const binding = require("@oxfmt/binding-linux-riscv64-musl");
334
334
  const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-musl/package.json").version;
335
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
335
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
336
336
  return binding;
337
337
  } catch (e) {
338
338
  loadErrors.push(e);
@@ -346,7 +346,7 @@ function requireNative() {
346
346
  try {
347
347
  const binding = require("@oxfmt/binding-linux-riscv64-gnu");
348
348
  const bindingPackageVersion = require("@oxfmt/binding-linux-riscv64-gnu/package.json").version;
349
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
350
350
  return binding;
351
351
  } catch (e) {
352
352
  loadErrors.push(e);
@@ -361,7 +361,7 @@ function requireNative() {
361
361
  try {
362
362
  const binding = require("@oxfmt/binding-linux-ppc64-gnu");
363
363
  const bindingPackageVersion = require("@oxfmt/binding-linux-ppc64-gnu/package.json").version;
364
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
364
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
365
365
  return binding;
366
366
  } catch (e) {
367
367
  loadErrors.push(e);
@@ -375,7 +375,7 @@ function requireNative() {
375
375
  try {
376
376
  const binding = require("@oxfmt/binding-linux-s390x-gnu");
377
377
  const bindingPackageVersion = require("@oxfmt/binding-linux-s390x-gnu/package.json").version;
378
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
378
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
379
379
  return binding;
380
380
  } catch (e) {
381
381
  loadErrors.push(e);
@@ -390,7 +390,7 @@ function requireNative() {
390
390
  try {
391
391
  const binding = require("@oxfmt/binding-openharmony-arm64");
392
392
  const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm64/package.json").version;
393
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
393
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
394
394
  return binding;
395
395
  } catch (e) {
396
396
  loadErrors.push(e);
@@ -404,7 +404,7 @@ function requireNative() {
404
404
  try {
405
405
  const binding = require("@oxfmt/binding-openharmony-x64");
406
406
  const bindingPackageVersion = require("@oxfmt/binding-openharmony-x64/package.json").version;
407
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
407
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
408
  return binding;
409
409
  } catch (e) {
410
410
  loadErrors.push(e);
@@ -418,7 +418,7 @@ function requireNative() {
418
418
  try {
419
419
  const binding = require("@oxfmt/binding-openharmony-arm");
420
420
  const bindingPackageVersion = require("@oxfmt/binding-openharmony-arm/package.json").version;
421
- if (bindingPackageVersion !== "0.40.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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
421
+ if (bindingPackageVersion !== "0.41.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.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
422
422
  return binding;
423
423
  } catch (e) {
424
424
  loadErrors.push(e);
@@ -1,2 +1,2 @@
1
- import { a as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-C4p62fZb.js";
1
+ import { a as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-B6IsFaEf.js";
2
2
  export { formatEmbeddedCode, formatEmbeddedDoc, formatFile, sortTailwindClasses };
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
- import { r as runCli } from "./bindings-NtH60nWL.js";
2
- import { i as resolvePlugins } from "./apis-C4p62fZb.js";
1
+ import { r as runCli } from "./bindings-D6U4DxG3.js";
2
+ import { i as resolvePlugins } from "./apis-B6IsFaEf.js";
3
3
  import Tinypool from "tinypool";
4
4
  import { basename } from "node:path";
5
5
  import { pathToFileURL } from "node:url";
@@ -73,15 +73,15 @@ async function loadJsConfig(path) {
73
73
  const fileUrl = pathToFileURL(path);
74
74
  fileUrl.searchParams.set("cache", Date.now().toString());
75
75
  const { default: config } = await import(fileUrl.href);
76
- if (config === void 0) throw new Error(`Configuration file has no default export: ${path}`);
76
+ if (config === void 0) throw new Error("Configuration file has no default export.");
77
77
  if (basename(path) === VITE_CONFIG_NAME) {
78
78
  if (!isObject(config)) return null;
79
79
  const fmtConfig = config[VITE_OXFMT_CONFIG_FIELD];
80
80
  if (fmtConfig === void 0) return null;
81
- if (!isObject(fmtConfig)) throw new Error(`The \`${VITE_OXFMT_CONFIG_FIELD}\` field in the default export must be an object: ${path}`);
81
+ if (!isObject(fmtConfig)) throw new Error(`The \`${VITE_OXFMT_CONFIG_FIELD}\` field in the default export must be an object.`);
82
82
  return fmtConfig;
83
83
  }
84
- if (!isObject(config)) throw new Error(`Configuration file must have a default export that is an object: ${path}`);
84
+ if (!isObject(config)) throw new Error("Configuration file must have a default export that is an object.");
85
85
  return config;
86
86
  }
87
87
  //#endregion
@@ -90,6 +90,7 @@ async function loadJsConfig(path) {
90
90
  const args = process.argv.slice(2);
91
91
  if (!process.stdout.isTTY) process.stdout._handle?.setBlocking?.(true);
92
92
  if (!process.stdin.isTTY) process.stdin._handle?.setBlocking?.(true);
93
+ if (args.includes("--lsp")) process.stdout.write = process.stderr.write.bind(process.stderr);
93
94
  const [mode, exitCode] = await runCli(args, loadJsConfig, initExternalFormatter, formatFile, formatEmbeddedCode, formatEmbeddedDoc, sortTailwindClasses);
94
95
  if (mode === "init") {
95
96
  await import("./init-BbKOMZ57.js").then((m) => m.runInit());
package/dist/index.d.ts CHANGED
@@ -98,6 +98,18 @@ interface Oxfmtrc {
98
98
  * - Overrides `.editorconfig.insert_final_newline`
99
99
  */
100
100
  insertFinalNewline?: boolean;
101
+ /**
102
+ * Enable JSDoc comment formatting.
103
+ *
104
+ * When enabled, JSDoc comments are normalized and reformatted:
105
+ * tag aliases are canonicalized, descriptions are capitalized,
106
+ * long lines are wrapped, and short comments are collapsed to single-line.
107
+ *
108
+ * Pass an object (`jsdoc: {}`) to enable with defaults, or omit to disable.
109
+ *
110
+ * - Default: Disabled
111
+ */
112
+ jsdoc?: JsdocConfig;
101
113
  /**
102
114
  * Use single quotes instead of double quotes in JSX.
103
115
  *
@@ -224,6 +236,82 @@ interface Oxfmtrc {
224
236
  vueIndentScriptAndStyle?: boolean;
225
237
  [k: string]: unknown;
226
238
  }
239
+ interface JsdocConfig {
240
+ /**
241
+ * Append default values to `@param` descriptions (e.g. "Default is `value`").
242
+ *
243
+ * - Default: `true`
244
+ */
245
+ addDefaultToDescription?: boolean;
246
+ /**
247
+ * Add spaces inside JSDoc type braces: `{string}` → `{ string }`.
248
+ *
249
+ * - Default: `false`
250
+ */
251
+ bracketSpacing?: boolean;
252
+ /**
253
+ * Capitalize the first letter of tag descriptions.
254
+ *
255
+ * - Default: `true`
256
+ */
257
+ capitalizeDescriptions?: boolean;
258
+ /**
259
+ * How to format comment blocks.
260
+ *
261
+ * - `"singleLine"` — Convert to single-line `/** content * /` when possible.
262
+ * - `"multiline"` — Always use multi-line format.
263
+ * - `"keep"` — Preserve original formatting.
264
+ *
265
+ * - Default: `"singleLine"`
266
+ */
267
+ commentLineStrategy?: string;
268
+ /**
269
+ * Emit `@description` tag instead of inline description.
270
+ *
271
+ * - Default: `false`
272
+ */
273
+ descriptionTag?: boolean;
274
+ /**
275
+ * Add a trailing dot to the end of descriptions.
276
+ *
277
+ * - Default: `false`
278
+ */
279
+ descriptionWithDot?: boolean;
280
+ /**
281
+ * Preserve indentation in unparsable `@example` code.
282
+ *
283
+ * - Default: `false`
284
+ */
285
+ keepUnparsableExampleIndent?: boolean;
286
+ /**
287
+ * Strategy for wrapping description lines at print width.
288
+ *
289
+ * - `"greedy"` — Always re-wrap text to fit within print width.
290
+ * - `"balance"` — Preserve original line breaks if all lines fit within print width.
291
+ *
292
+ * - Default: `"greedy"`
293
+ */
294
+ lineWrappingStyle?: string;
295
+ /**
296
+ * Use fenced code blocks (```` ``` ````) instead of 4-space indentation for code without a language tag.
297
+ *
298
+ * - Default: `false`
299
+ */
300
+ preferCodeFences?: boolean;
301
+ /**
302
+ * Add a blank line between the last `@param` and `@returns`.
303
+ *
304
+ * - Default: `false`
305
+ */
306
+ separateReturnsFromParam?: boolean;
307
+ /**
308
+ * Add blank lines between different tag groups (e.g. between `@param` and `@returns`).
309
+ *
310
+ * - Default: `false`
311
+ */
312
+ separateTagGroups?: boolean;
313
+ [k: string]: unknown;
314
+ }
227
315
  interface OxfmtOverrideConfig {
228
316
  /**
229
317
  * Glob patterns to exclude from this override.
@@ -290,6 +378,18 @@ interface FormatConfig {
290
378
  * - Overrides `.editorconfig.insert_final_newline`
291
379
  */
292
380
  insertFinalNewline?: boolean;
381
+ /**
382
+ * Enable JSDoc comment formatting.
383
+ *
384
+ * When enabled, JSDoc comments are normalized and reformatted:
385
+ * tag aliases are canonicalized, descriptions are capitalized,
386
+ * long lines are wrapped, and short comments are collapsed to single-line.
387
+ *
388
+ * Pass an object (`jsdoc: {}`) to enable with defaults, or omit to disable.
389
+ *
390
+ * - Default: Disabled
391
+ */
392
+ jsdoc?: JsdocConfig;
293
393
  /**
294
394
  * Use single quotes instead of double quotes in JSX.
295
395
  *
@@ -639,33 +739,38 @@ interface SortTailwindcssConfig {
639
739
  }
640
740
  //#endregion
641
741
  //#region src-js/index.d.ts
642
- /**
643
- * Define an oxfmt configuration with type inference.
644
- */
645
- declare function defineConfig<T extends Oxfmtrc>(config: T): T;
742
+ interface OxfmtConfig extends Oxfmtrc {}
646
743
  /**
647
744
  * Configuration options for the `format()` API.
648
745
  *
649
746
  * Based on `FormatConfig` generated from the JSON Schema,
650
747
  * with additional deprecated aliases for backward compatibility.
748
+ * @deprecated Use `FormatConfig` instead.
651
749
  */
652
750
  type FormatOptions = FormatConfig & {
653
751
  /** @deprecated Use `sortImports` instead. */experimentalSortImports?: SortImportsConfig; /** @deprecated Use `sortPackageJson` instead. */
654
752
  experimentalSortPackageJson?: boolean | SortPackageJsonConfig; /** @deprecated Use `sortTailwindcss` instead. */
655
753
  experimentalTailwindcss?: SortTailwindcssConfig;
656
754
  };
755
+ /** @deprecated Use `FormatConfig["sortImports"]` instead. */
657
756
  type SortImportsOptions = SortImportsConfig;
757
+ /** @deprecated Use `FormatConfig["sortPackageJson"]` instead. */
658
758
  type SortPackageJsonOptions = SortPackageJsonConfig;
759
+ /** @deprecated Use `FormatConfig["sortTailwindcss"]` instead. */
659
760
  type SortTailwindcssOptions = SortTailwindcssConfig;
660
- /** @deprecated Use `SortTailwindcssOptions` instead. */
761
+ /** @deprecated Use `FormatConfig["sortTailwindcss"]` instead. */
661
762
  type TailwindcssOptions = SortTailwindcssConfig;
763
+ /**
764
+ * Define an oxfmt configuration with type inference.
765
+ */
766
+ declare function defineConfig<T extends OxfmtConfig>(config: T): T;
662
767
  /**
663
768
  * Format the given source text according to the specified options.
664
769
  */
665
- declare function format(fileName: string, sourceText: string, options?: FormatOptions): Promise<FormatResult>;
770
+ declare function format(fileName: string, sourceText: string, options?: FormatConfig): Promise<FormatResult>;
666
771
  /**
667
772
  * Format a JS/TS snippet for Prettier `textToDoc()` plugin flow.
668
773
  */
669
774
  declare function jsTextToDoc(sourceExt: string, sourceText: string, oxfmtPluginOptionsJson: string, parentContext: string): Promise<string | null>;
670
775
  //#endregion
671
- export { FormatOptions, SortImportsOptions, SortPackageJsonOptions, SortTailwindcssOptions, TailwindcssOptions, defineConfig, format, jsTextToDoc };
776
+ export { ArrowParensConfig, CustomGroupItemConfig, EmbeddedLanguageFormattingConfig, EndOfLineConfig, FormatConfig, FormatOptions, HtmlWhitespaceSensitivityConfig, JsdocConfig, NewlinesBetweenMarker, ObjectWrapConfig, OxfmtConfig, OxfmtOverrideConfig, Oxfmtrc, ProseWrapConfig, QuotePropsConfig, SortGroupItemConfig, SortImportsConfig, SortImportsOptions, SortOrderConfig, SortPackageJsonConfig, SortPackageJsonOptions, SortPackageJsonUserConfig, SortTailwindcssConfig, SortTailwindcssOptions, TailwindcssOptions, TrailingCommaConfig, defineConfig, format, jsTextToDoc };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as jsTextToDoc$1, t as format$1 } from "./bindings-NtH60nWL.js";
2
- import { a as sortTailwindClasses, i as resolvePlugins, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-C4p62fZb.js";
1
+ import { n as jsTextToDoc$1, t as format$1 } from "./bindings-D6U4DxG3.js";
2
+ import { a as sortTailwindClasses, i as resolvePlugins, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-B6IsFaEf.js";
3
3
  //#region src-js/index.ts
4
4
  /**
5
5
  * Define an oxfmt configuration with type inference.
@@ -1,5 +1,5 @@
1
- import "./bindings-NtH60nWL.js";
2
- import "./apis-C4p62fZb.js";
1
+ import "./bindings-D6U4DxG3.js";
2
+ import "./apis-B6IsFaEf.js";
3
3
  import { jsTextToDoc } from "./index.js";
4
4
  //#region src-js/libs/prettier-plugin-oxfmt/text-to-doc.ts
5
5
  const textToDoc = async (embeddedSourceText, textToDocOptions) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxfmt",
3
- "version": "0.40.0",
3
+ "version": "0.42.0",
4
4
  "description": "Formatter for the JavaScript Oxidation Compiler",
5
5
  "keywords": [
6
6
  "formatter",
@@ -67,24 +67,24 @@
67
67
  },
68
68
  "preferUnplugged": true,
69
69
  "optionalDependencies": {
70
- "@oxfmt/binding-darwin-arm64": "0.40.0",
71
- "@oxfmt/binding-android-arm64": "0.40.0",
72
- "@oxfmt/binding-win32-arm64-msvc": "0.40.0",
73
- "@oxfmt/binding-linux-arm64-gnu": "0.40.0",
74
- "@oxfmt/binding-linux-arm64-musl": "0.40.0",
75
- "@oxfmt/binding-openharmony-arm64": "0.40.0",
76
- "@oxfmt/binding-android-arm-eabi": "0.40.0",
77
- "@oxfmt/binding-linux-arm-gnueabihf": "0.40.0",
78
- "@oxfmt/binding-linux-arm-musleabihf": "0.40.0",
79
- "@oxfmt/binding-win32-ia32-msvc": "0.40.0",
80
- "@oxfmt/binding-linux-ppc64-gnu": "0.40.0",
81
- "@oxfmt/binding-linux-riscv64-gnu": "0.40.0",
82
- "@oxfmt/binding-linux-riscv64-musl": "0.40.0",
83
- "@oxfmt/binding-linux-s390x-gnu": "0.40.0",
84
- "@oxfmt/binding-darwin-x64": "0.40.0",
85
- "@oxfmt/binding-win32-x64-msvc": "0.40.0",
86
- "@oxfmt/binding-freebsd-x64": "0.40.0",
87
- "@oxfmt/binding-linux-x64-gnu": "0.40.0",
88
- "@oxfmt/binding-linux-x64-musl": "0.40.0"
70
+ "@oxfmt/binding-darwin-arm64": "0.42.0",
71
+ "@oxfmt/binding-android-arm64": "0.42.0",
72
+ "@oxfmt/binding-win32-arm64-msvc": "0.42.0",
73
+ "@oxfmt/binding-linux-arm64-gnu": "0.42.0",
74
+ "@oxfmt/binding-linux-arm64-musl": "0.42.0",
75
+ "@oxfmt/binding-openharmony-arm64": "0.42.0",
76
+ "@oxfmt/binding-android-arm-eabi": "0.42.0",
77
+ "@oxfmt/binding-linux-arm-gnueabihf": "0.42.0",
78
+ "@oxfmt/binding-linux-arm-musleabihf": "0.42.0",
79
+ "@oxfmt/binding-win32-ia32-msvc": "0.42.0",
80
+ "@oxfmt/binding-linux-ppc64-gnu": "0.42.0",
81
+ "@oxfmt/binding-linux-riscv64-gnu": "0.42.0",
82
+ "@oxfmt/binding-linux-riscv64-musl": "0.42.0",
83
+ "@oxfmt/binding-linux-s390x-gnu": "0.42.0",
84
+ "@oxfmt/binding-darwin-x64": "0.42.0",
85
+ "@oxfmt/binding-win32-x64-msvc": "0.42.0",
86
+ "@oxfmt/binding-freebsd-x64": "0.42.0",
87
+ "@oxfmt/binding-linux-x64-gnu": "0.42.0",
88
+ "@oxfmt/binding-linux-x64-musl": "0.42.0"
89
89
  }
90
90
  }