oxfmt 0.57.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 (37) hide show
  1. package/configuration_schema.json +3 -3
  2. package/dist/{acorn-LGWopQvF.js → acorn-Dxp-n4ed.js} +1984 -1801
  3. package/dist/{angular-BbAuvH72.js → angular-Clx-wbm6.js} +1750 -995
  4. package/dist/{apis-CvFX8LhR.js → apis-D299uPBa.js} +4 -4
  5. package/dist/babel-7tfAjQas.js +10005 -0
  6. package/dist/{bindings-Cj_GMsoO.js → bindings-CjOHPMBU.js} +26 -26
  7. package/dist/{chunk-DSjvVL_1-DllBg9tc.js → chunk-DSjvVL_1-Do0Iorfu.js} +1 -1
  8. package/dist/cli-worker.d.ts +21 -27
  9. package/dist/cli-worker.js +1 -1
  10. package/dist/cli.js +3 -2
  11. package/dist/{dist-BKyxiMdj.js → dist-Byfj_1s9.js} +17 -17
  12. package/dist/estree-CyQu6pff.js +8006 -0
  13. package/dist/flow-BH5imzwC.js +9164 -0
  14. package/dist/{glimmer-Ba_8Z2bG.js → glimmer-B5hfTXAX.js} +295 -213
  15. package/dist/{graphql-CZ7EPWgo.js → graphql-DQB_nHt9.js} +968 -818
  16. package/dist/{html-DblM11Xw.js → html--849eFzc.js} +1531 -1318
  17. package/dist/index.d.ts +7 -3
  18. package/dist/index.js +3 -3
  19. package/dist/{jiti-Bb1dT6Cw-0c6As3U-.js → jiti-Bb1dT6Cw-cY1yrK9n.js} +2 -2
  20. package/dist/markdown-B1lBrqaF.js +14043 -0
  21. package/dist/{meriyah-DafjRZfO.js → meriyah-B5wbO5kj.js} +1568 -1445
  22. package/dist/{migrate-prettier-DrYAkU3F.js → migrate-prettier-CbxtU9AG.js} +49 -42
  23. package/dist/{plugin-BuVceHGR.js → plugin-D1B0s0iv.js} +16 -12
  24. package/dist/{postcss-CkhtwsAS.js → postcss-DuOoF7OX.js} +2243 -2013
  25. package/dist/{prettier-DKAx5A83.js → prettier-CEZwFZsY.js} +5673 -5038
  26. package/dist/{sorter-BZkvDMjt-C8qUPUh2.js → sorter-BZkvDMjt-DFTeIPU-.js} +7 -7
  27. package/dist/{sorter-DSVZH4kF.js → sorter-Cm0Z2eGI.js} +1 -1
  28. package/dist/{typescript-DaxiA0nr.js → typescript-Cvdwz3-D.js} +10574 -10254
  29. package/dist/{v3-D-mr2VVh-Ch8a-2Ce.js → v3-D-mr2VVh-C_WUxELf.js} +6 -5
  30. package/dist/{v4-C-HWEQJm-DheWK34Z.js → v4-C-HWEQJm-C0ut0NwJ.js} +108 -30
  31. package/dist/yaml-Dd4aShtG.js +6210 -0
  32. package/package.json +20 -20
  33. package/dist/babel-DLjwvkt5.js +0 -9884
  34. package/dist/estree-DbmUPhmV.js +0 -7269
  35. package/dist/flow-CJbpv7JL.js +0 -52916
  36. package/dist/markdown-B5hFVJKQ.js +0 -6880
  37. package/dist/yaml-BC7gw7un.js +0 -5280
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-CvFX8LhR.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-Cj_GMsoO.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-Cj_GMsoO.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-DllBg9tc.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_2cd42c04494cb69fdc0c372d6ff3f4da/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) {