oxfmt 0.58.0 → 0.59.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 (32) hide show
  1. package/configuration_schema.json +3 -3
  2. package/dist/{acorn-CZllRq2x.js → acorn-Dxp-n4ed.js} +136 -43
  3. package/dist/{angular-CsoDKqo4.js → angular-Clx-wbm6.js} +253 -90
  4. package/dist/{apis-DLO0lBDu.js → apis-D299uPBa.js} +4 -4
  5. package/dist/{babel-DZD6u90w.js → babel-7tfAjQas.js} +178 -69
  6. package/dist/{bindings-DTiEua0g.js → bindings-CjOHPMBU.js} +26 -26
  7. package/dist/{chunk-DSjvVL_1-DX2STy_I.js → chunk-DSjvVL_1-Do0Iorfu.js} +1 -1
  8. package/dist/cli-worker.d.ts +18 -24
  9. package/dist/cli-worker.js +1 -1
  10. package/dist/cli.js +2 -2
  11. package/dist/{dist-YOS4M6hk.js → dist-Byfj_1s9.js} +14 -14
  12. package/dist/{estree-ChnhgzGg.js → estree-CyQu6pff.js} +1982 -1861
  13. package/dist/{flow-C6LkWPPl.js → flow-BH5imzwC.js} +2014 -1999
  14. package/dist/{glimmer-YnkKK2a7.js → glimmer-B5hfTXAX.js} +107 -42
  15. package/dist/{graphql-BNiwkZTo.js → graphql-DQB_nHt9.js} +80 -15
  16. package/dist/{html-DMHXIbrM.js → html--849eFzc.js} +257 -155
  17. package/dist/index.d.ts +7 -3
  18. package/dist/index.js +3 -3
  19. package/dist/{jiti-Bb1dT6Cw-B61jQmj-.js → jiti-Bb1dT6Cw-cY1yrK9n.js} +2 -2
  20. package/dist/{markdown-BjyDFyaO.js → markdown-B1lBrqaF.js} +3778 -3745
  21. package/dist/{meriyah-zDNCk2o1.js → meriyah-B5wbO5kj.js} +264 -213
  22. package/dist/{migrate-prettier-BmSsy164.js → migrate-prettier-CbxtU9AG.js} +1 -1
  23. package/dist/{plugin-B4cguZ1l.js → plugin-D1B0s0iv.js} +3 -3
  24. package/dist/{postcss-CwPwODg8.js → postcss-DuOoF7OX.js} +1129 -1050
  25. package/dist/{prettier-BByt4AhK.js → prettier-CEZwFZsY.js} +18 -19
  26. package/dist/{sorter-BZkvDMjt-B8ihSEiX.js → sorter-BZkvDMjt-DFTeIPU-.js} +7 -7
  27. package/dist/{sorter-BcGkkjyR.js → sorter-Cm0Z2eGI.js} +1 -1
  28. package/dist/{typescript-Bq_S3kyC.js → typescript-Cvdwz3-D.js} +120 -47
  29. package/dist/{v3-D-mr2VVh-p01OHBjH.js → v3-D-mr2VVh-C_WUxELf.js} +6 -5
  30. package/dist/{v4-C-HWEQJm-BbuYNtSW.js → v4-C-HWEQJm-C0ut0NwJ.js} +108 -30
  31. package/dist/{yaml-DlyuuZmC.js → yaml-Dd4aShtG.js} +138 -49
  32. package/package.json +20 -20
package/dist/index.d.ts CHANGED
@@ -99,7 +99,8 @@ interface Oxfmtrc {
99
99
  htmlWhitespaceSensitivity?: HtmlWhitespaceSensitivityConfig;
100
100
  /**
101
101
  * Ignore files matching these glob patterns.
102
- * Patterns are based on the location of the Oxfmt configuration file.
102
+ * Patterns use gitignore-style matching, rooted at the directory containing the configuration file.
103
+ * Files outside that directory cannot be matched; patterns containing `..` are rejected as a configuration error.
103
104
  *
104
105
  * - Default: `[]`
105
106
  */
@@ -861,8 +862,11 @@ interface OxfmtConfig extends Oxfmtrc {}
861
862
  * @deprecated Use `FormatConfig` instead.
862
863
  */
863
864
  type FormatOptions = FormatConfig & {
864
- /** @deprecated Use `sortImports` instead. */experimentalSortImports?: SortImportsConfig; /** @deprecated Use `sortPackageJson` instead. */
865
- experimentalSortPackageJson?: boolean | SortPackageJsonConfig; /** @deprecated Use `sortTailwindcss` instead. */
865
+ /** @deprecated Use `sortImports` instead. */
866
+ experimentalSortImports?: SortImportsConfig;
867
+ /** @deprecated Use `sortPackageJson` instead. */
868
+ experimentalSortPackageJson?: boolean | SortPackageJsonConfig;
869
+ /** @deprecated Use `sortTailwindcss` instead. */
866
870
  experimentalTailwindcss?: SortTailwindcssConfig;
867
871
  };
868
872
  /** @deprecated Use `FormatConfig["sortImports"]` instead. */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-DLO0lBDu.js";
1
+ import { i as sortTailwindClasses, n as formatEmbeddedDoc, r as formatFile, t as formatEmbeddedCode } from "./apis-D299uPBa.js";
2
2
  import { n as toNullable, t as toFormatFileResult } from "./napi-callbacks-Sb-usWTs.js";
3
3
  //#region src-js/index.ts
4
4
  /**
@@ -14,7 +14,7 @@ let BINDINGS_CACHE = null;
14
14
  async function format(fileName, sourceText, options) {
15
15
  if (typeof fileName !== "string") throw new TypeError("`fileName` must be a string");
16
16
  if (typeof sourceText !== "string") throw new TypeError("`sourceText` must be a string");
17
- BINDINGS_CACHE ??= await import("./bindings-DTiEua0g.js").then((n) => n.t);
17
+ BINDINGS_CACHE ??= await import("./bindings-CjOHPMBU.js").then((n) => n.t);
18
18
  return BINDINGS_CACHE.format(fileName, sourceText, options ?? {}, (options, code) => toFormatFileResult(formatFile({
19
19
  options,
20
20
  code
@@ -33,7 +33,7 @@ async function format(fileName, sourceText, options) {
33
33
  * Format a JS/TS snippet for Prettier `textToDoc()` plugin flow.
34
34
  */
35
35
  async function jsTextToDoc(sourceExt, sourceText, oxfmtPluginOptionsJson, parentContext) {
36
- BINDINGS_CACHE ??= await import("./bindings-DTiEua0g.js").then((n) => n.t);
36
+ BINDINGS_CACHE ??= await import("./bindings-CjOHPMBU.js").then((n) => n.t);
37
37
  return BINDINGS_CACHE.jsTextToDoc(sourceExt, sourceText, oxfmtPluginOptionsJson, parentContext, () => toFormatFileResult(Promise.reject("formatFile is unavailable for jsTextToDoc")), (options, code) => toNullable(formatEmbeddedCode({
38
38
  options,
39
39
  code
@@ -1,6 +1,6 @@
1
- import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-DX2STy_I.js";
1
+ import { a as __toESM, i as __require, t as __commonJSMin } from "./chunk-DSjvVL_1-Do0Iorfu.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.1_prettie_3df15310ed5f784eec0c3143d98cee10/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.1_prettie_98ae334cd105e01916eac934f27a76de/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) {