@biomejs/wasm-web 2.4.9 → 2.4.10

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
@@ -2012,6 +2012,11 @@ See https://biomejs.dev/linter/rules/no-hex-colors
2012
2012
  */
2013
2013
  noHexColors?: NoHexColorsConfiguration;
2014
2014
  /**
2015
+ * Disallow the use of eval()-like methods.
2016
+ See https://biomejs.dev/linter/rules/no-implied-eval
2017
+ */
2018
+ noImpliedEval?: NoImpliedEvalConfiguration;
2019
+ /**
2015
2020
  * Disallows the usage of the unary operators ++ and --.
2016
2021
  See https://biomejs.dev/linter/rules/no-increment-decrement
2017
2022
  */
@@ -2167,6 +2172,11 @@ See https://biomejs.dev/linter/rules/no-unnecessary-conditions
2167
2172
  */
2168
2173
  noUnnecessaryConditions?: NoUnnecessaryConditionsConfiguration;
2169
2174
  /**
2175
+ * Disallow + operations with operands that are known to be unsafe.
2176
+ See https://biomejs.dev/linter/rules/no-unsafe-plus-operands
2177
+ */
2178
+ noUnsafePlusOperands?: NoUnsafePlusOperandsConfiguration;
2179
+ /**
2170
2180
  * Disallow dependencies with untrusted licenses.
2171
2181
  See https://biomejs.dev/linter/rules/no-untrusted-licenses
2172
2182
  */
@@ -2381,7 +2391,7 @@ See https://biomejs.dev/linter/rules/use-vue-valid-template-root
2381
2391
  */
2382
2392
  useVueValidTemplateRoot?: UseVueValidTemplateRootConfiguration;
2383
2393
  /**
2384
- * Forbids v-bind directives with missing arguments or invalid modifiers.
2394
+ * Forbids v-bind directives with missing values or invalid modifiers.
2385
2395
  See https://biomejs.dev/linter/rules/use-vue-valid-v-bind
2386
2396
  */
2387
2397
  useVueValidVBind?: UseVueValidVBindConfiguration;
@@ -4002,6 +4012,9 @@ type NoForInConfiguration = RulePlainConfiguration | RuleWithNoForInOptions;
4002
4012
  type NoHexColorsConfiguration =
4003
4013
  | RulePlainConfiguration
4004
4014
  | RuleWithNoHexColorsOptions;
4015
+ type NoImpliedEvalConfiguration =
4016
+ | RulePlainConfiguration
4017
+ | RuleWithNoImpliedEvalOptions;
4005
4018
  type NoIncrementDecrementConfiguration =
4006
4019
  | RulePlainConfiguration
4007
4020
  | RuleWithNoIncrementDecrementOptions;
@@ -4089,6 +4102,9 @@ type NoUnknownAttributeConfiguration =
4089
4102
  type NoUnnecessaryConditionsConfiguration =
4090
4103
  | RulePlainConfiguration
4091
4104
  | RuleWithNoUnnecessaryConditionsOptions;
4105
+ type NoUnsafePlusOperandsConfiguration =
4106
+ | RulePlainConfiguration
4107
+ | RuleWithNoUnsafePlusOperandsOptions;
4092
4108
  type NoUntrustedLicensesConfiguration =
4093
4109
  | RulePlainConfiguration
4094
4110
  | RuleWithNoUntrustedLicensesOptions;
@@ -5651,6 +5667,10 @@ interface RuleWithNoHexColorsOptions {
5651
5667
  level: RulePlainConfiguration;
5652
5668
  options?: NoHexColorsOptions;
5653
5669
  }
5670
+ interface RuleWithNoImpliedEvalOptions {
5671
+ level: RulePlainConfiguration;
5672
+ options?: NoImpliedEvalOptions;
5673
+ }
5654
5674
  interface RuleWithNoIncrementDecrementOptions {
5655
5675
  level: RulePlainConfiguration;
5656
5676
  options?: NoIncrementDecrementOptions;
@@ -5782,6 +5802,10 @@ interface RuleWithNoUnnecessaryConditionsOptions {
5782
5802
  level: RulePlainConfiguration;
5783
5803
  options?: NoUnnecessaryConditionsOptions;
5784
5804
  }
5805
+ interface RuleWithNoUnsafePlusOperandsOptions {
5806
+ level: RulePlainConfiguration;
5807
+ options?: NoUnsafePlusOperandsOptions;
5808
+ }
5785
5809
  interface RuleWithNoUntrustedLicensesOptions {
5786
5810
  level: RulePlainConfiguration;
5787
5811
  options?: NoUntrustedLicensesOptions;
@@ -7251,6 +7275,7 @@ type NoFloatingClassesOptions = {};
7251
7275
  type NoFloatingPromisesOptions = {};
7252
7276
  type NoForInOptions = {};
7253
7277
  type NoHexColorsOptions = {};
7278
+ type NoImpliedEvalOptions = {};
7254
7279
  interface NoIncrementDecrementOptions {
7255
7280
  /**
7256
7281
  * Allows unary operators ++ and -- in the afterthought (final expression) of a for loop.
@@ -7303,6 +7328,7 @@ interface NoUnknownAttributeOptions {
7303
7328
  ignore?: string[];
7304
7329
  }
7305
7330
  type NoUnnecessaryConditionsOptions = {};
7331
+ type NoUnsafePlusOperandsOptions = {};
7306
7332
  interface NoUntrustedLicensesOptions {
7307
7333
  /**
7308
7334
  * Additional license identifiers to trust, beyond valid SPDX identifiers.
@@ -8287,6 +8313,8 @@ type Category =
8287
8313
  | "lint/nursery/noContinue"
8288
8314
  | "lint/nursery/noDeprecatedMediaType"
8289
8315
  | "lint/nursery/noDivRegex"
8316
+ | "lint/nursery/noDrizzleDeleteWithoutWhere"
8317
+ | "lint/nursery/noDrizzleUpdateWithoutWhere"
8290
8318
  | "lint/nursery/noDuplicateArgumentNames"
8291
8319
  | "lint/nursery/noDuplicateAttributes"
8292
8320
  | "lint/nursery/noDuplicateEnumValueNames"
@@ -8306,6 +8334,7 @@ type Category =
8306
8334
  | "lint/nursery/noForIn"
8307
8335
  | "lint/nursery/noHexColors"
8308
8336
  | "lint/nursery/noImplicitCoercion"
8337
+ | "lint/nursery/noImpliedEval"
8309
8338
  | "lint/nursery/noIncrementDecrement"
8310
8339
  | "lint/nursery/noInlineStyles"
8311
8340
  | "lint/nursery/noJsxPropsBind"
@@ -8316,8 +8345,6 @@ type Category =
8316
8345
  | "lint/nursery/noMultiStr"
8317
8346
  | "lint/nursery/noNestedPromises"
8318
8347
  | "lint/nursery/noParametersOnlyUsedInRecursion"
8319
- | "lint/nursery/noDrizzleDeleteWithoutWhere"
8320
- | "lint/nursery/noDrizzleUpdateWithoutWhere"
8321
8348
  | "lint/nursery/noPlaywrightElementHandle"
8322
8349
  | "lint/nursery/noPlaywrightEval"
8323
8350
  | "lint/nursery/noPlaywrightForceOption"
@@ -8340,6 +8367,7 @@ type Category =
8340
8367
  | "lint/nursery/noUndeclaredEnvVars"
8341
8368
  | "lint/nursery/noUnknownAttribute"
8342
8369
  | "lint/nursery/noUnnecessaryConditions"
8370
+ | "lint/nursery/noUnsafePlusOperands"
8343
8371
  | "lint/nursery/noUntrustedLicenses"
8344
8372
  | "lint/nursery/noUnwantedPolyfillio"
8345
8373
  | "lint/nursery/noUselessBackrefInRegex"
@@ -9054,18 +9082,35 @@ Maps from the local imported name to the absolute path it resolves to.
9054
9082
  }
9055
9083
  interface PullDiagnosticsParams {
9056
9084
  categories: RuleCategories;
9085
+ /**
9086
+ * Minimum severity for a diagnostic to be included. Diagnostics with a
9087
+ severity below this threshold are ignored entirely (not counted, not
9088
+ serialized). Defaults to [`Severity::Hint`] (include everything).
9089
+ */
9090
+ diagnosticLevel?: Severity;
9057
9091
  /**
9058
9092
  * Rules to apply on top of the configuration
9059
9093
  */
9060
9094
  enabledRules?: AnalyzerSelector[];
9095
+ /**
9096
+ * When true, promote assist diagnostics (`assist/*`) to error severity
9097
+ before applying the diagnostic_level filter.
9098
+ */
9099
+ enforceAssist?: boolean;
9100
+ /**
9101
+ * When `true`, diagnostics include code suggestions for rule fixes.
9102
+ */
9103
+ includeCodeFix?: boolean;
9061
9104
  inlineConfig?: Configuration;
9105
+ /**
9106
+ * Max limit of diagnostics types to pull. This limit is meant to cap the number of [Diagnostic] to pull.
9107
+ However, the workspace still processes ALL diagnostics coming from the analyzer to compute their severity.
9108
+ If no value is provided, the workspace will pull all diagnostics.
9109
+ */
9110
+ maxDiagnostics?: number;
9062
9111
  only?: AnalyzerSelector[];
9063
9112
  path: BiomePath;
9064
9113
  projectKey: ProjectKey;
9065
- /**
9066
- * When `false` the diagnostics, don't have code frames of the code actions (fixes, suppressions, etc.)
9067
- */
9068
- pullCodeActions: boolean;
9069
9114
  skip?: AnalyzerSelector[];
9070
9115
  }
9071
9116
  type RuleCategories = RuleCategory[];
@@ -9074,10 +9119,22 @@ type RuleCategory = "syntax" | "lint" | "action" | "transformation";
9074
9119
  interface PullDiagnosticsResult {
9075
9120
  diagnostics: Diagnostic[];
9076
9121
  errors: number;
9122
+ infos: number;
9123
+ /**
9124
+ * Number of parse errors (subset of `errors`). Used by `--skip-parse-errors`
9125
+ to distinguish parse errors from analyzer errors.
9126
+ */
9127
+ parseErrors: number;
9077
9128
  skippedDiagnostics: number;
9129
+ warnings: number;
9078
9130
  }
9079
9131
  interface PullActionsParams {
9080
9132
  categories?: RuleCategories;
9133
+ /**
9134
+ * When `false`, returned actions have `suggestion: None` (no `BatchMutation`
9135
+ computed). Used by `codeAction/resolve` to defer edit computation.
9136
+ */
9137
+ computeActions?: boolean;
9081
9138
  enabledRules?: AnalyzerSelector[];
9082
9139
  inlineConfig?: Configuration;
9083
9140
  only?: AnalyzerSelector[];
@@ -9091,11 +9148,17 @@ interface PullActionsResult {
9091
9148
  actions: CodeAction[];
9092
9149
  }
9093
9150
  interface CodeAction {
9151
+ applicability?: Applicability;
9094
9152
  category: ActionCategory;
9095
9153
  offset?: TextSize;
9096
9154
  ruleName?: [string, string];
9097
- suggestion: CodeSuggestion;
9155
+ /**
9156
+ * The computed code suggestion with text edit. `None` when the action was
9157
+ returned without computing edits (deferred for `codeAction/resolve`).
9158
+ */
9159
+ suggestion?: CodeSuggestion;
9098
9160
  }
9161
+ type Applicability = "always" | "maybeIncorrect";
9099
9162
  type ActionCategory =
9100
9163
  | { quickFix: string }
9101
9164
  | { refactor: RefactorKind }
@@ -9123,7 +9186,6 @@ type OtherActionCategory =
9123
9186
  | "inlineSuppression"
9124
9187
  | "toplevelSuppression"
9125
9188
  | { generic: string };
9126
- type Applicability = "always" | "maybeIncorrect";
9127
9189
  interface PullDiagnosticsAndActionsParams {
9128
9190
  categories?: RuleCategories;
9129
9191
  enabledRules?: AnalyzerSelector[];
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.9",
8
+ "version": "2.4.10",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",