@biomejs/wasm-bundler 2.4.15 → 2.4.16

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.
package/biome_wasm.d.ts CHANGED
@@ -1015,6 +1015,10 @@ interface OverrideFormatterConfiguration {
1015
1015
  * What's the max width of a line. Defaults to 80.
1016
1016
  */
1017
1017
  lineWidth?: LineWidth;
1018
+ /**
1019
+ * Print trailing commas wherever possible in multi-line comma-separated syntactic structures.
1020
+ */
1021
+ trailingCommas?: JsTrailingCommas;
1018
1022
  /**
1019
1023
  * Whether to add a trailing newline at the end of the file.
1020
1024
 
@@ -2925,7 +2929,7 @@ interface Style {
2925
2929
  */
2926
2930
  useConsistentMemberAccessibility?: UseConsistentMemberAccessibilityConfiguration;
2927
2931
  /**
2928
- * Require the consistent declaration of object literals. Defaults to explicit definitions.
2932
+ * Require the consistent declaration of object literals.
2929
2933
  See https://biomejs.dev/linter/rules/use-consistent-object-definitions
2930
2934
  */
2931
2935
  useConsistentObjectDefinitions?: UseConsistentObjectDefinitionsConfiguration;
@@ -7928,7 +7932,10 @@ interface UseConsistentTestItOptions {
7928
7932
  */
7929
7933
  withinDescribe?: TestFunctionKind;
7930
7934
  }
7931
- type UseDestructuringOptions = {};
7935
+ interface UseDestructuringOptions {
7936
+ assignmentExpression?: DestructuringConfig;
7937
+ variableDeclarator?: DestructuringConfig;
7938
+ }
7932
7939
  type UseDisposablesOptions = {};
7933
7940
  type UseDomNodeTextContentOptions = {};
7934
7941
  type UseDomQuerySelectorOptions = {};
@@ -8534,6 +8541,10 @@ type AvailabilityTarget = AvailabilityNamed | number;
8534
8541
  type UseConsistentGraphqlDescriptionsStyle = "block" | "inline";
8535
8542
  type MethodSignatureStyle = "property" | "method";
8536
8543
  type TestFunctionKind = "it" | "test";
8544
+ interface DestructuringConfig {
8545
+ array?: boolean;
8546
+ object?: boolean;
8547
+ }
8537
8548
  type CheckInputType = "off" | "loose" | "strict";
8538
8549
  type IgnoreClassesWithImplements = "none" | "all" | "public-fields";
8539
8550
  type DeclarationStyle = "type" | "runtime";
@@ -9461,10 +9472,8 @@ type DocumentFileSource =
9461
9472
  | { Js: JsFileSource }
9462
9473
  | { Json: JsonFileSource }
9463
9474
  | { Css: CssFileSource }
9464
- | { Graphql: GraphqlFileSource }
9465
9475
  | { Html: HtmlFileSource }
9466
- | { Grit: GritFileSource }
9467
- | { Markdown: MdFileSource };
9476
+ | { Grit: GritFileSource };
9468
9477
  interface JsFileSource {
9469
9478
  /**
9470
9479
  * Used to mark if the JavaScript is embedded inside some particular files. This affects the parsing.
@@ -9490,18 +9499,12 @@ interface CssFileSource {
9490
9499
  language: CssFileLanguage;
9491
9500
  variant: CssVariant;
9492
9501
  }
9493
- interface GraphqlFileSource {
9494
- variant: GraphqlVariant;
9495
- }
9496
9502
  interface HtmlFileSource {
9497
9503
  variant: HtmlVariant;
9498
9504
  }
9499
9505
  interface GritFileSource {
9500
9506
  variant: GritVariant;
9501
9507
  }
9502
- interface MdFileSource {
9503
- variant: MarkdownVariant;
9504
- }
9505
9508
  type EmbeddingKind =
9506
9509
  | "None"
9507
9510
  | {
@@ -9565,14 +9568,12 @@ type JsonFileVariant = "standard" | "jsonc";
9565
9568
  type EmbeddingKind2 = "None" | "Styled" | { Html: EmbeddingHtmlKind };
9566
9569
  type CssFileLanguage = "css" | "scss";
9567
9570
  type CssVariant = "standard" | "cssModules" | "tailwindCss";
9568
- type GraphqlVariant = "standard";
9569
9571
  type HtmlVariant =
9570
9572
  | { Standard: HtmlTextExpressions }
9571
9573
  | "Astro"
9572
9574
  | "Vue"
9573
9575
  | "Svelte";
9574
9576
  type GritVariant = "Standard";
9575
- type MarkdownVariant = "Standard";
9576
9577
  type SvelteFileKind = "Component" | "SourceModule";
9577
9578
  type EmbeddingHtmlKind = "None" | "Html" | "Vue" | "Astro" | "Svelte";
9578
9579
  type HtmlTextExpressions = "None" | "Single" | "Double";
@@ -9593,7 +9594,7 @@ interface CloseFileParams {
9593
9594
  path: BiomePath;
9594
9595
  projectKey: ProjectKey;
9595
9596
  }
9596
- interface FileExitsParams {
9597
+ interface FileExistsParams {
9597
9598
  filePath: BiomePath;
9598
9599
  }
9599
9600
  interface PathIsIgnoredParams {
@@ -9928,10 +9929,10 @@ interface RenameResult {
9928
9929
  range: TextRange;
9929
9930
  }
9930
9931
  interface ParsePatternParams {
9931
- defaultLanguage: GritTargetLanguage;
9932
+ defaultLanguage: SearchLanguage;
9932
9933
  pattern: string;
9933
9934
  }
9934
- type GritTargetLanguage = "CSS" | "JavaScript" | "JSON";
9935
+ type SearchLanguage = "css" | "js" | "json";
9935
9936
  interface ParsePatternResult {
9936
9937
  patternId: PatternId;
9937
9938
  }
@@ -9974,7 +9975,7 @@ export class Workspace {
9974
9975
  changeFile(params: ChangeFileParams): ChangeFileResult;
9975
9976
  closeFile(params: CloseFileParams): void;
9976
9977
  dropPattern(params: DropPatternParams): void;
9977
- fileExists(params: FileExitsParams): boolean;
9978
+ fileExists(params: FileExistsParams): boolean;
9978
9979
  fileFeatures(params: SupportsFeatureParams): FileFeaturesResult;
9979
9980
  fixFile(params: FixFileParams): FixFileResult;
9980
9981
  formatFile(params: FormatFileParams): any;
package/biome_wasm_bg.js CHANGED
@@ -153,7 +153,7 @@ export class Workspace {
153
153
  }
154
154
  }
155
155
  /**
156
- * @param {FileExitsParams} params
156
+ * @param {FileExistsParams} params
157
157
  * @returns {boolean}
158
158
  */
159
159
  fileExists(params) {
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Biome Developers and Contributors"
6
6
  ],
7
7
  "description": "WebAssembly bindings to the Biome workspace API",
8
- "version": "2.4.15",
8
+ "version": "2.4.16",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",