@biomejs/wasm-web 2.5.5 → 2.5.6

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
@@ -2243,6 +2243,11 @@ interface Nursery {
2243
2243
  See https://biomejs.dev/linter/rules/no-inline-styles
2244
2244
  */
2245
2245
  noInlineStyles?: NoInlineStylesConfiguration;
2246
+ /**
2247
+ * Disallow specific object properties.
2248
+ See https://biomejs.dev/linter/rules/no-js-restricted-properties
2249
+ */
2250
+ noJsRestrictedProperties?: NoJsRestrictedPropertiesConfiguration;
2246
2251
  /**
2247
2252
  * Flags text nodes with a trailing $ before a JSX expression.
2248
2253
  See https://biomejs.dev/linter/rules/no-jsx-leaked-dollar
@@ -4472,6 +4477,9 @@ type NoImpliedEvalConfiguration =
4472
4477
  type NoInlineStylesConfiguration =
4473
4478
  | RulePlainConfiguration
4474
4479
  | RuleWithNoInlineStylesOptions;
4480
+ type NoJsRestrictedPropertiesConfiguration =
4481
+ | RulePlainConfiguration
4482
+ | RuleWithNoJsRestrictedPropertiesOptions;
4475
4483
  type NoJsxLeakedDollarConfiguration =
4476
4484
  | RulePlainConfiguration
4477
4485
  | RuleWithNoJsxLeakedDollarOptions;
@@ -6296,6 +6304,10 @@ interface RuleWithNoInlineStylesOptions {
6296
6304
  level: RulePlainConfiguration;
6297
6305
  options?: NoInlineStylesOptions;
6298
6306
  }
6307
+ interface RuleWithNoJsRestrictedPropertiesOptions {
6308
+ level: RulePlainConfiguration;
6309
+ options?: NoJsRestrictedPropertiesOptions;
6310
+ }
6299
6311
  interface RuleWithNoJsxLeakedDollarOptions {
6300
6312
  fix?: FixKind;
6301
6313
  level: RulePlainConfiguration;
@@ -8059,6 +8071,21 @@ type NoFloatingPromisesOptions = {};
8059
8071
  type NoIdenticalTestTitleOptions = {};
8060
8072
  type NoImpliedEvalOptions = {};
8061
8073
  type NoInlineStylesOptions = {};
8074
+ interface NoJsRestrictedPropertiesOptions {
8075
+ /**
8076
+ * Restriction entries for object/property access.
8077
+
8078
+ Each entry can describe one of these cases:
8079
+
8080
+ - exact object/property match:
8081
+ `{ "object": "require", "property": "ensure" }`
8082
+ - property-wide restriction with allowed objects:
8083
+ `{ "property": "__defineGetter__", "allowObjects": ["Object"] }`
8084
+ - object-wide restriction with allowed properties:
8085
+ `{ "object": "arguments", "allowProperties": ["length"] }`
8086
+ */
8087
+ entries?: RestrictedPropertyEntry[];
8088
+ }
8062
8089
  type NoJsxLeakedDollarOptions = {};
8063
8090
  type NoJsxNamespaceOptions = {};
8064
8091
  type NoLoopFuncOptions = {};
@@ -8945,6 +8972,38 @@ interface Hook {
8945
8972
  */
8946
8973
  stableResult?: StableHookResult;
8947
8974
  }
8975
+ interface RestrictedPropertyEntry {
8976
+ /**
8977
+ * Objects that are allowed when `property` is restricted globally.
8978
+
8979
+ Example:
8980
+ `{ "property": "__defineGetter__", "allowObjects": ["Object"] }`
8981
+ */
8982
+ allowObjects?: string[];
8983
+ /**
8984
+ * Properties that are allowed when `object` is restricted globally.
8985
+
8986
+ Example:
8987
+ `{ "object": "arguments", "allowProperties": ["length"] }`
8988
+ */
8989
+ allowProperties?: string[];
8990
+ /**
8991
+ * Optional custom note appended to the diagnostic.
8992
+ */
8993
+ message?: string;
8994
+ /**
8995
+ * Object name to restrict.
8996
+
8997
+ Example: `"require"` or `"Object"`.
8998
+ */
8999
+ object?: string;
9000
+ /**
9001
+ * Property name to restrict.
9002
+
9003
+ Example: `"ensure"` or `"__defineGetter__"`.
9004
+ */
9005
+ property?: string;
9006
+ }
8948
9007
  type AvailabilityTarget = AvailabilityNamed | number;
8949
9008
  type TestFunctionKind = "it" | "test";
8950
9009
  type IgnorePrimitives =
@@ -9376,6 +9435,7 @@ type Category =
9376
9435
  | "lint/nursery/noImplicitCoercion"
9377
9436
  | "lint/nursery/noImpliedEval"
9378
9437
  | "lint/nursery/noInlineStyles"
9438
+ | "lint/nursery/noJsRestrictedProperties"
9379
9439
  | "lint/nursery/noJsxLeakedDollar"
9380
9440
  | "lint/nursery/noJsxNamespace"
9381
9441
  | "lint/nursery/noLoopFunc"
@@ -10002,25 +10062,14 @@ type JsEmbeddingKind =
10002
10062
  }
10003
10063
  | {
10004
10064
  Svelte: {
10065
+ embedding_kind: SvelteEmbeddingKind;
10005
10066
  /**
10006
- * Whether this is a `{@const name = value}` block.
10007
- */
10008
- is_const_block: boolean;
10009
- /**
10010
- * Whether this is the declaration of a function, usually declared in `#snippet`
10011
- */
10012
- is_function_signature: boolean;
10013
- /**
10014
- * Where the bindings are defined
10015
- */
10016
- is_source: boolean;
10017
- /**
10018
- * `kind` models whether the Svelte file is a component document or a
10067
+ * `file_kind` models whether the Svelte file is a component document or a
10019
10068
  source module. That distinction controls whether downstream code
10020
10069
  extracts `<script>` content or treats the file as a standalone JS/TS
10021
- module, while `is_source` still tracks where bindings come from.
10070
+ module.
10022
10071
  */
10023
- kind: SvelteFileKind;
10072
+ file_kind: SvelteFileKind;
10024
10073
  };
10025
10074
  };
10026
10075
  type Language = "javaScript" | { typeScript: { definition_file: boolean } };
@@ -10039,6 +10088,12 @@ type HtmlVariant =
10039
10088
  | "Svelte"
10040
10089
  | "Angular";
10041
10090
  type GritVariant = "Standard";
10091
+ type SvelteEmbeddingKind =
10092
+ | "Source"
10093
+ | "Expression"
10094
+ | "SnippetSignature"
10095
+ | "LegacyConst"
10096
+ | "Declaration";
10042
10097
  type SvelteFileKind = "Component" | "SourceModule";
10043
10098
  type EmbeddingHtmlKind =
10044
10099
  | "None"
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.5.5",
8
+ "version": "2.5.6",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",