@biomejs/wasm-web 1.6.4 → 1.7.1

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
@@ -151,6 +151,10 @@ interface PartialJavascriptConfiguration {
151
151
  If defined here, they should not emit diagnostics.
152
152
  */
153
153
  globals?: StringSet;
154
+ /**
155
+ * Indicates the type of runtime or transformation used for interpreting JSX.
156
+ */
157
+ jsx_runtime?: JsxRuntime;
154
158
  organize_imports?: PartialJavascriptOrganizeImports;
155
159
  /**
156
160
  * Parsing options
@@ -323,6 +327,7 @@ interface PartialJavascriptFormatter {
323
327
  */
324
328
  trailingComma?: TrailingComma;
325
329
  }
330
+ type JsxRuntime = "Transparent" | "ReactClassic";
326
331
  interface PartialJavascriptOrganizeImports {}
327
332
  interface PartialJavascriptParser {
328
333
  /**
@@ -461,7 +466,7 @@ interface A11y {
461
466
  */
462
467
  noDistractingElements?: RuleConfiguration_for_Null;
463
468
  /**
464
- * The scope prop should be used only on <th> elements.
469
+ * The scope prop should be used only on \<th> elements.
465
470
  */
466
471
  noHeaderScope?: RuleConfiguration_for_Null;
467
472
  /**
@@ -578,6 +583,10 @@ interface Complexity {
578
583
  * Disallow functions that exceed a given Cognitive Complexity score.
579
584
  */
580
585
  noExcessiveCognitiveComplexity?: RuleConfiguration_for_ComplexityOptions;
586
+ /**
587
+ * This rule enforces a maximum depth to nested describe() in test files.
588
+ */
589
+ noExcessiveNestedTestSuites?: RuleConfiguration_for_Null;
581
590
  /**
582
591
  * Disallow unnecessary boolean casts
583
592
  */
@@ -630,6 +639,10 @@ interface Complexity {
630
639
  * Disallow useless case in switch statements.
631
640
  */
632
641
  noUselessSwitchCase?: RuleConfiguration_for_Null;
642
+ /**
643
+ * Disallow ternary operators when simpler alternatives exist.
644
+ */
645
+ noUselessTernary?: RuleConfiguration_for_Null;
633
646
  /**
634
647
  * Disallow useless this aliasing.
635
648
  */
@@ -824,6 +837,10 @@ interface Correctness {
824
837
  * Require calls to isNaN() when checking for NaN.
825
838
  */
826
839
  useIsNan?: RuleConfiguration_for_Null;
840
+ /**
841
+ * Disallow missing key props in iterators/collection literals.
842
+ */
843
+ useJsxKeyInIterable?: RuleConfiguration_for_Null;
827
844
  /**
828
845
  * Enforce "for" loop update clause moving the counter in the right direction.
829
846
  */
@@ -839,17 +856,21 @@ interface Nursery {
839
856
  */
840
857
  all?: boolean;
841
858
  /**
842
- * Disallow the use of barrel file.
843
- */
844
- noBarrelFile?: RuleConfiguration_for_Null;
845
- /**
846
- * [WIP] This rule hasn't been implemented yet.
859
+ * WIP: This rule hasn't been implemented yet.
847
860
  */
848
861
  noColorInvalidHex?: RuleConfiguration_for_Null;
849
862
  /**
850
863
  * Disallow the use of console.
851
864
  */
852
865
  noConsole?: RuleConfiguration_for_Null;
866
+ /**
867
+ * Disallow the use of Math.min and Math.max to clamp a value where the result itself is constant.
868
+ */
869
+ noConstantMathMinMaxClamp?: RuleConfiguration_for_Null;
870
+ /**
871
+ * Disallow CSS empty blocks.
872
+ */
873
+ noCssEmptyBlock?: RuleConfiguration_for_NoCssEmptyBlockOptions;
853
874
  /**
854
875
  * Disallow using a callback in asynchronous tests and hooks.
855
876
  */
@@ -858,66 +879,50 @@ interface Nursery {
858
879
  * Disallow duplicate conditions in if-else-if chains
859
880
  */
860
881
  noDuplicateElseIf?: RuleConfiguration_for_Null;
882
+ /**
883
+ * Disallow duplicate names within font families.
884
+ */
885
+ noDuplicateFontNames?: RuleConfiguration_for_Null;
861
886
  /**
862
887
  * Disallow two keys with the same name inside a JSON object.
863
888
  */
864
889
  noDuplicateJsonKeys?: RuleConfiguration_for_Null;
865
890
  /**
866
- * A describe block should not contain duplicate hooks.
891
+ * Disallow duplicate selectors within keyframe blocks.
867
892
  */
868
- noDuplicateTestHooks?: RuleConfiguration_for_Null;
893
+ noDuplicateSelectorsKeyframeBlock?: RuleConfiguration_for_Null;
869
894
  /**
870
895
  * Disallow variables from evolving into any type through reassignments.
871
896
  */
872
897
  noEvolvingAny?: RuleConfiguration_for_Null;
873
898
  /**
874
- * This rule enforces a maximum depth to nested describe() in test files.
899
+ * Disallow to use unnecessary callback on flatMap.
875
900
  */
876
- noExcessiveNestedTestSuites?: RuleConfiguration_for_Null;
901
+ noFlatMapIdentity?: RuleConfiguration_for_Null;
877
902
  /**
878
- * Disallow using export or module.exports in files containing tests
903
+ * Disallow invalid !important within keyframe declarations
879
904
  */
880
- noExportsInTest?: RuleConfiguration_for_Null;
881
- /**
882
- * Disallow focused tests.
883
- */
884
- noFocusedTests?: RuleConfiguration_for_Null;
905
+ noImportantInKeyframe?: RuleConfiguration_for_Null;
885
906
  /**
886
907
  * Checks that the assertion function, for example expect, is placed inside an it() function call.
887
908
  */
888
909
  noMisplacedAssertion?: RuleConfiguration_for_Null;
889
- /**
890
- * Disallow the use of namespace imports.
891
- */
892
- noNamespaceImport?: RuleConfiguration_for_Null;
893
910
  /**
894
911
  * Forbid the use of Node.js builtin modules.
895
912
  */
896
913
  noNodejsModules?: RuleConfiguration_for_Null;
897
914
  /**
898
- * Avoid re-export all.
915
+ * Prevents React-specific JSX properties from being used.
899
916
  */
900
- noReExportAll?: RuleConfiguration_for_Null;
917
+ noReactSpecificProps?: RuleConfiguration_for_Null;
901
918
  /**
902
919
  * Disallow specified modules when loaded by import or require.
903
920
  */
904
921
  noRestrictedImports?: RuleConfiguration_for_RestrictedImportsOptions;
905
- /**
906
- * Disallow disabled tests.
907
- */
908
- noSkippedTests?: RuleConfiguration_for_Null;
909
- /**
910
- * It detects possible "wrong" semicolons inside JSX elements.
911
- */
912
- noSuspiciousSemicolonInJsx?: RuleConfiguration_for_Null;
913
922
  /**
914
923
  * Disallow the use of dependencies that aren't specified in the package.json.
915
924
  */
916
925
  noUndeclaredDependencies?: RuleConfiguration_for_Null;
917
- /**
918
- * Disallow ternary operators when simpler alternatives exist.
919
- */
920
- noUselessTernary?: RuleConfiguration_for_Null;
921
926
  /**
922
927
  * It enables the recommended rules for this group
923
928
  */
@@ -926,14 +931,6 @@ interface Nursery {
926
931
  * Disallows package private imports.
927
932
  */
928
933
  useImportRestrictions?: RuleConfiguration_for_Null;
929
- /**
930
- * Disallow missing key props in iterators/collection literals.
931
- */
932
- useJsxKeyInIterable?: RuleConfiguration_for_Null;
933
- /**
934
- * Promotes the usage of node:assert/strict over node:assert.
935
- */
936
- useNodeAssertStrict?: RuleConfiguration_for_Null;
937
934
  /**
938
935
  * Enforce the sorting of CSS utility classes.
939
936
  */
@@ -948,10 +945,18 @@ interface Performance {
948
945
  * Disallow the use of spread (...) syntax on accumulators.
949
946
  */
950
947
  noAccumulatingSpread?: RuleConfiguration_for_Null;
948
+ /**
949
+ * Disallow the use of barrel file.
950
+ */
951
+ noBarrelFile?: RuleConfiguration_for_Null;
951
952
  /**
952
953
  * Disallow the use of the delete operator.
953
954
  */
954
955
  noDelete?: RuleConfiguration_for_Null;
956
+ /**
957
+ * Avoid re-export all.
958
+ */
959
+ noReExportAll?: RuleConfiguration_for_Null;
955
960
  /**
956
961
  * It enables the recommended rules for this group
957
962
  */
@@ -1008,6 +1013,10 @@ interface Style {
1008
1013
  * Disallow the use of TypeScript's namespaces.
1009
1014
  */
1010
1015
  noNamespace?: RuleConfiguration_for_Null;
1016
+ /**
1017
+ * Disallow the use of namespace imports.
1018
+ */
1019
+ noNamespaceImport?: RuleConfiguration_for_Null;
1011
1020
  /**
1012
1021
  * Disallow negation in the condition of an if statement if it has an else clause.
1013
1022
  */
@@ -1061,7 +1070,7 @@ interface Style {
1061
1070
  */
1062
1071
  useCollapsedElseIf?: RuleConfiguration_for_Null;
1063
1072
  /**
1064
- * Require consistently using either T[] or Array<T>
1073
+ * Require consistently using either T\[] or Array\<T>
1065
1074
  */
1066
1075
  useConsistentArrayType?: RuleConfiguration_for_ConsistentArrayTypeOptions;
1067
1076
  /**
@@ -1093,7 +1102,7 @@ interface Style {
1093
1102
  */
1094
1103
  useForOf?: RuleConfiguration_for_Null;
1095
1104
  /**
1096
- * This rule enforces the use of <>...</> over <Fragment>...</Fragment>.
1105
+ * This rule enforces the use of \<>...\</> over \<Fragment>...\</Fragment>.
1097
1106
  */
1098
1107
  useFragmentSyntax?: RuleConfiguration_for_Null;
1099
1108
  /**
@@ -1108,6 +1117,10 @@ interface Style {
1108
1117
  * Enforce naming conventions for everything across a codebase.
1109
1118
  */
1110
1119
  useNamingConvention?: RuleConfiguration_for_NamingConventionOptions;
1120
+ /**
1121
+ * Promotes the usage of node:assert/strict over node:assert.
1122
+ */
1123
+ useNodeAssertStrict?: RuleConfiguration_for_Null;
1111
1124
  /**
1112
1125
  * Enforces using the node: protocol for Node.js builtin modules.
1113
1126
  */
@@ -1125,7 +1138,7 @@ interface Style {
1125
1138
  */
1126
1139
  useSelfClosingElements?: RuleConfiguration_for_Null;
1127
1140
  /**
1128
- * When expressing array types, this rule promotes the usage of T[] shorthand instead of Array<T>.
1141
+ * When expressing array types, this rule promotes the usage of T\[] shorthand instead of Array\<T>.
1129
1142
  */
1130
1143
  useShorthandArrayType?: RuleConfiguration_for_Null;
1131
1144
  /**
@@ -1238,6 +1251,10 @@ interface Suspicious {
1238
1251
  * Disallow duplicate function parameter name.
1239
1252
  */
1240
1253
  noDuplicateParameters?: RuleConfiguration_for_Null;
1254
+ /**
1255
+ * A describe block should not contain duplicate hooks.
1256
+ */
1257
+ noDuplicateTestHooks?: RuleConfiguration_for_Null;
1241
1258
  /**
1242
1259
  * Disallow empty block statements and static blocks.
1243
1260
  */
@@ -1250,6 +1267,10 @@ interface Suspicious {
1250
1267
  * Disallow the any type usage.
1251
1268
  */
1252
1269
  noExplicitAny?: RuleConfiguration_for_Null;
1270
+ /**
1271
+ * Disallow using export or module.exports in files containing tests
1272
+ */
1273
+ noExportsInTest?: RuleConfiguration_for_Null;
1253
1274
  /**
1254
1275
  * Prevents the wrong usage of the non-null assertion operator (!) in TypeScript files.
1255
1276
  */
@@ -1258,6 +1279,10 @@ interface Suspicious {
1258
1279
  * Disallow fallthrough of switch clauses.
1259
1280
  */
1260
1281
  noFallthroughSwitchClause?: RuleConfiguration_for_Null;
1282
+ /**
1283
+ * Disallow focused tests.
1284
+ */
1285
+ noFocusedTests?: RuleConfiguration_for_Null;
1261
1286
  /**
1262
1287
  * Disallow reassigning function declarations.
1263
1288
  */
@@ -1318,10 +1343,18 @@ interface Suspicious {
1318
1343
  * Disallow identifiers from shadowing restricted names.
1319
1344
  */
1320
1345
  noShadowRestrictedNames?: RuleConfiguration_for_Null;
1346
+ /**
1347
+ * Disallow disabled tests.
1348
+ */
1349
+ noSkippedTests?: RuleConfiguration_for_Null;
1321
1350
  /**
1322
1351
  * Disallow sparse arrays
1323
1352
  */
1324
1353
  noSparseArray?: RuleConfiguration_for_Null;
1354
+ /**
1355
+ * It detects possible "wrong" semicolons inside JSX elements.
1356
+ */
1357
+ noSuspiciousSemicolonInJsx?: RuleConfiguration_for_Null;
1325
1358
  /**
1326
1359
  * Disallow then property.
1327
1360
  */
@@ -1425,6 +1458,9 @@ type RuleConfiguration_for_HooksOptions =
1425
1458
  type RuleConfiguration_for_DeprecatedHooksOptions =
1426
1459
  | RulePlainConfiguration
1427
1460
  | RuleWithOptions_for_DeprecatedHooksOptions;
1461
+ type RuleConfiguration_for_NoCssEmptyBlockOptions =
1462
+ | RulePlainConfiguration
1463
+ | RuleWithOptions_for_NoCssEmptyBlockOptions;
1428
1464
  type RuleConfiguration_for_RestrictedImportsOptions =
1429
1465
  | RulePlainConfiguration
1430
1466
  | RuleWithOptions_for_RestrictedImportsOptions;
@@ -1464,6 +1500,10 @@ interface RuleWithOptions_for_DeprecatedHooksOptions {
1464
1500
  level: RulePlainConfiguration;
1465
1501
  options: DeprecatedHooksOptions;
1466
1502
  }
1503
+ interface RuleWithOptions_for_NoCssEmptyBlockOptions {
1504
+ level: RulePlainConfiguration;
1505
+ options: NoCssEmptyBlockOptions;
1506
+ }
1467
1507
  interface RuleWithOptions_for_RestrictedImportsOptions {
1468
1508
  level: RulePlainConfiguration;
1469
1509
  options: RestrictedImportsOptions;
@@ -1505,6 +1545,9 @@ interface HooksOptions {
1505
1545
  hooks: Hook[];
1506
1546
  }
1507
1547
  interface DeprecatedHooksOptions {}
1548
+ interface NoCssEmptyBlockOptions {
1549
+ allowComments: boolean;
1550
+ }
1508
1551
  interface RestrictedImportsOptions {
1509
1552
  /**
1510
1553
  * A list of names that should trigger the rule
@@ -1587,7 +1630,7 @@ For example, for React's `useRef()` hook the value would be `true`, while for `u
1587
1630
  type ConsistentArrayType = "shorthand" | "generic";
1588
1631
  type FilenameCases = FilenameCase[];
1589
1632
  type EnumMemberCase = "PascalCase" | "CONSTANT_CASE" | "camelCase";
1590
- type StableHookResult = "None" | "Identity" | { Indices: number[] };
1633
+ type StableHookResult = boolean | number[];
1591
1634
  type FilenameCase =
1592
1635
  | "camelCase"
1593
1636
  | "export"
@@ -1689,7 +1732,7 @@ interface Diagnostic {
1689
1732
  severity: Severity;
1690
1733
  source?: Diagnostic;
1691
1734
  tags: DiagnosticTags;
1692
- verbose_advices: Advices;
1735
+ verboseAdvices: Advices;
1693
1736
  }
1694
1737
  interface Advices {
1695
1738
  advices: Advice[];
@@ -1728,6 +1771,7 @@ type Category =
1728
1771
  | "lint/complexity/noBannedTypes"
1729
1772
  | "lint/complexity/noEmptyTypeParameters"
1730
1773
  | "lint/complexity/noExcessiveCognitiveComplexity"
1774
+ | "lint/complexity/noExcessiveNestedTestSuites"
1731
1775
  | "lint/complexity/noExtraBooleanCast"
1732
1776
  | "lint/complexity/noForEach"
1733
1777
  | "lint/complexity/noMultipleSpacesInRegularExpressionLiterals"
@@ -1741,6 +1785,7 @@ type Category =
1741
1785
  | "lint/complexity/noUselessLoneBlockStatements"
1742
1786
  | "lint/complexity/noUselessRename"
1743
1787
  | "lint/complexity/noUselessSwitchCase"
1788
+ | "lint/complexity/noUselessTernary"
1744
1789
  | "lint/complexity/noUselessThisAlias"
1745
1790
  | "lint/complexity/noUselessTypeConstraint"
1746
1791
  | "lint/complexity/noVoid"
@@ -1786,38 +1831,35 @@ type Category =
1786
1831
  | "lint/correctness/useExhaustiveDependencies"
1787
1832
  | "lint/correctness/useHookAtTopLevel"
1788
1833
  | "lint/correctness/useIsNan"
1834
+ | "lint/correctness/useJsxKeyInIterable"
1789
1835
  | "lint/correctness/useValidForDirection"
1790
1836
  | "lint/correctness/useYield"
1791
1837
  | "lint/nursery/colorNoInvalidHex"
1792
- | "lint/nursery/noApproximativeNumericConstant"
1793
- | "lint/nursery/noBarrelFile"
1794
1838
  | "lint/nursery/noColorInvalidHex"
1795
1839
  | "lint/nursery/noConsole"
1840
+ | "lint/nursery/noConstantMathMinMaxClamp"
1841
+ | "lint/nursery/noCssEmptyBlock"
1796
1842
  | "lint/nursery/noDoneCallback"
1797
1843
  | "lint/nursery/noDuplicateElseIf"
1844
+ | "lint/nursery/noDuplicateFontNames"
1798
1845
  | "lint/nursery/noDuplicateJsonKeys"
1799
- | "lint/nursery/noDuplicateTestHooks"
1846
+ | "lint/nursery/noDuplicateSelectorsKeyframeBlock"
1800
1847
  | "lint/nursery/noEvolvingAny"
1801
- | "lint/nursery/noExcessiveNestedTestSuites"
1802
- | "lint/nursery/noExportsInTest"
1803
- | "lint/nursery/noFocusedTests"
1848
+ | "lint/nursery/noFlatMapIdentity"
1849
+ | "lint/nursery/noImportantInKeyframe"
1804
1850
  | "lint/nursery/noMisplacedAssertion"
1805
- | "lint/nursery/noNamespaceImport"
1806
1851
  | "lint/nursery/noNodejsModules"
1807
- | "lint/nursery/noReExportAll"
1852
+ | "lint/nursery/noReactSpecificProps"
1808
1853
  | "lint/nursery/noRestrictedImports"
1809
- | "lint/nursery/noSkippedTests"
1810
- | "lint/nursery/noSuspiciousSemicolonInJsx"
1811
1854
  | "lint/nursery/noTypeOnlyImportAttributes"
1812
1855
  | "lint/nursery/noUndeclaredDependencies"
1813
- | "lint/nursery/noUselessTernary"
1814
1856
  | "lint/nursery/useBiomeSuppressionComment"
1815
1857
  | "lint/nursery/useImportRestrictions"
1816
- | "lint/nursery/useJsxKeyInIterable"
1817
- | "lint/nursery/useNodeAssertStrict"
1818
1858
  | "lint/nursery/useSortedClasses"
1819
1859
  | "lint/performance/noAccumulatingSpread"
1860
+ | "lint/performance/noBarrelFile"
1820
1861
  | "lint/performance/noDelete"
1862
+ | "lint/performance/noReExportAll"
1821
1863
  | "lint/security/noDangerouslySetInnerHtml"
1822
1864
  | "lint/security/noDangerouslySetInnerHtmlWithChildren"
1823
1865
  | "lint/security/noGlobalEval"
@@ -1827,6 +1869,7 @@ type Category =
1827
1869
  | "lint/style/noImplicitBoolean"
1828
1870
  | "lint/style/noInferrableTypes"
1829
1871
  | "lint/style/noNamespace"
1872
+ | "lint/style/noNamespaceImport"
1830
1873
  | "lint/style/noNegationElse"
1831
1874
  | "lint/style/noNonNullAssertion"
1832
1875
  | "lint/style/noParameterAssign"
@@ -1851,6 +1894,7 @@ type Category =
1851
1894
  | "lint/style/useImportType"
1852
1895
  | "lint/style/useLiteralEnumMembers"
1853
1896
  | "lint/style/useNamingConvention"
1897
+ | "lint/style/useNodeAssertStrict"
1854
1898
  | "lint/style/useNodejsImportProtocol"
1855
1899
  | "lint/style/useNumberNamespace"
1856
1900
  | "lint/style/useNumericLiterals"
@@ -1882,11 +1926,14 @@ type Category =
1882
1926
  | "lint/suspicious/noDuplicateJsxProps"
1883
1927
  | "lint/suspicious/noDuplicateObjectKeys"
1884
1928
  | "lint/suspicious/noDuplicateParameters"
1929
+ | "lint/suspicious/noDuplicateTestHooks"
1885
1930
  | "lint/suspicious/noEmptyBlockStatements"
1886
1931
  | "lint/suspicious/noEmptyInterface"
1887
1932
  | "lint/suspicious/noExplicitAny"
1933
+ | "lint/suspicious/noExportsInTest"
1888
1934
  | "lint/suspicious/noExtraNonNullAssertion"
1889
1935
  | "lint/suspicious/noFallthroughSwitchClause"
1936
+ | "lint/suspicious/noFocusedTests"
1890
1937
  | "lint/suspicious/noFunctionAssign"
1891
1938
  | "lint/suspicious/noGlobalAssign"
1892
1939
  | "lint/suspicious/noGlobalIsFinite"
@@ -1902,7 +1949,9 @@ type Category =
1902
1949
  | "lint/suspicious/noRedundantUseStrict"
1903
1950
  | "lint/suspicious/noSelfCompare"
1904
1951
  | "lint/suspicious/noShadowRestrictedNames"
1952
+ | "lint/suspicious/noSkippedTests"
1905
1953
  | "lint/suspicious/noSparseArray"
1954
+ | "lint/suspicious/noSuspiciousSemicolonInJsx"
1906
1955
  | "lint/suspicious/noThenProperty"
1907
1956
  | "lint/suspicious/noUnsafeDeclarationMerging"
1908
1957
  | "lint/suspicious/noUnsafeNegation"
@@ -1948,20 +1997,20 @@ type Category =
1948
1997
  | "semanticTests";
1949
1998
  interface Location {
1950
1999
  path?: Resource_for_String;
1951
- source_code?: string;
2000
+ sourceCode?: string;
1952
2001
  span?: TextRange;
1953
2002
  }
1954
2003
  type MarkupBuf = MarkupNodeBuf[];
1955
2004
  type Severity = "hint" | "information" | "warning" | "error" | "fatal";
1956
2005
  type DiagnosticTags = DiagnosticTag[];
1957
2006
  type Advice =
1958
- | { Log: [LogCategory, MarkupBuf] }
1959
- | { List: MarkupBuf[] }
1960
- | { Frame: Location }
1961
- | { Diff: TextEdit }
1962
- | { Backtrace: [MarkupBuf, Backtrace] }
1963
- | { Command: string }
1964
- | { Group: [MarkupBuf, Advices] };
2007
+ | { log: [LogCategory, MarkupBuf] }
2008
+ | { list: MarkupBuf[] }
2009
+ | { frame: Location }
2010
+ | { diff: TextEdit }
2011
+ | { backtrace: [MarkupBuf, Backtrace] }
2012
+ | { command: string }
2013
+ | { group: [MarkupBuf, Advices] };
1965
2014
  type Resource_for_String = "argv" | "memory" | { file: string };
1966
2015
  type TextRange = [TextSize, TextSize];
1967
2016
  interface MarkupNodeBuf {
@@ -1974,7 +2023,7 @@ type DiagnosticTag =
1974
2023
  | "unnecessaryCode"
1975
2024
  | "deprecatedCode"
1976
2025
  | "verbose";
1977
- type LogCategory = "None" | "Info" | "Warn" | "Error";
2026
+ type LogCategory = "none" | "info" | "warn" | "error";
1978
2027
  interface TextEdit {
1979
2028
  dictionary: string;
1980
2029
  ops: CompressedOp[];
@@ -1993,15 +2042,15 @@ type MarkupElement =
1993
2042
  | "Trace"
1994
2043
  | "Inverse"
1995
2044
  | { Hyperlink: { href: string } };
1996
- type CompressedOp = { DiffOp: DiffOp } | { EqualLines: { line_count: number } };
2045
+ type CompressedOp = { diffOp: DiffOp } | { equalLines: { line_count: number } };
1997
2046
  interface BacktraceFrame {
1998
2047
  ip: number;
1999
2048
  symbols: BacktraceSymbol[];
2000
2049
  }
2001
2050
  type DiffOp =
2002
- | { Equal: { range: TextRange } }
2003
- | { Insert: { range: TextRange } }
2004
- | { Delete: { range: TextRange } };
2051
+ | { equal: { range: TextRange } }
2052
+ | { insert: { range: TextRange } }
2053
+ | { delete: { range: TextRange } };
2005
2054
  interface BacktraceSymbol {
2006
2055
  colno?: number;
2007
2056
  filename?: string;
Binary file
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.6.4","license":"MIT OR Apache-2.0","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"keywords":["parser","linter","formatter"]}
1
+ {"name":"@biomejs/wasm-web","collaborators":["Biome Developers and Contributors"],"description":"WebAssembly bindings to the Biome workspace API","version":"1.7.1","license":"MIT OR Apache-2.0","repository":{"type":"git","url":"https://github.com/biomejs/biome"},"files":["biome_wasm_bg.wasm","biome_wasm.js","biome_wasm.d.ts"],"module":"biome_wasm.js","homepage":"https://biomejs.dev/","types":"biome_wasm.d.ts","sideEffects":["./snippets/*"],"keywords":["parser","linter","formatter"]}