@biomejs/runtime 0.0.1 → 2.6.2

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/js_ast.d.ts CHANGED
@@ -2148,6 +2148,15 @@ export interface JsVariableStatement extends JsAstNode {
2148
2148
  token(field: "semicolonToken"): JsAstToken | undefined;
2149
2149
  token(field: string): JsAstToken | undefined;
2150
2150
  }
2151
+ export interface JsVueGenericRoot extends JsAstNode {
2152
+ readonly kind: "JS_VUE_GENERIC_ROOT";
2153
+ readonly items: AnyJsVueGenericTypeParameters | undefined;
2154
+ withItems(value: AnyJsVueGenericTypeParameters): JsVueGenericRoot;
2155
+ readonly eofToken: string | undefined;
2156
+ withEofToken(value: JsAstToken): JsVueGenericRoot;
2157
+ token(field: "eofToken"): JsAstToken | undefined;
2158
+ token(field: string): JsAstToken | undefined;
2159
+ }
2151
2160
  export interface JsVueSlotPropsRoot extends JsAstNode {
2152
2161
  readonly kind: "JS_VUE_SLOT_PROPS_ROOT";
2153
2162
  readonly parameters: JsParameterList;
@@ -2378,8 +2387,8 @@ export interface JsxShorthandAttribute extends JsAstNode {
2378
2387
  readonly kind: "JSX_SHORTHAND_ATTRIBUTE";
2379
2388
  readonly lCurlyToken: string | undefined;
2380
2389
  withLCurlyToken(value: JsAstToken): JsxShorthandAttribute;
2381
- readonly name: JsReferenceIdentifier | undefined;
2382
- withName(value: JsReferenceIdentifier): JsxShorthandAttribute;
2390
+ readonly expression: AnyJsExpression | undefined;
2391
+ withExpression(value: AnyJsExpression): JsxShorthandAttribute;
2383
2392
  readonly rCurlyToken: string | undefined;
2384
2393
  withRCurlyToken(value: JsAstToken): JsxShorthandAttribute;
2385
2394
  token(field: "lCurlyToken" | "rCurlyToken"): JsAstToken | undefined;
@@ -4186,6 +4195,7 @@ export type AnyJsRoot =
4186
4195
  | JsScript
4187
4196
  | JsSvelteDeclarationRoot
4188
4197
  | JsSvelteSnippetRoot
4198
+ | JsVueGenericRoot
4189
4199
  | JsVueSlotPropsRoot
4190
4200
  | TsDeclarationModule;
4191
4201
  export type AnyJsStatement =
@@ -4227,6 +4237,7 @@ export type AnyJsSvelteDeclaration =
4227
4237
  | JsVariableDeclaration;
4228
4238
  export type AnyJsSwitchClause = JsCaseClause | JsDefaultClause;
4229
4239
  export type AnyJsTemplateElement = JsTemplateChunkElement | JsTemplateElement;
4240
+ export type AnyJsVueGenericTypeParameters = JsBogus | TsTypeParameterList;
4230
4241
  export type AnyJsxAttribute =
4231
4242
  | JsMetavariable
4232
4243
  | JsxAttribute
@@ -4520,6 +4531,7 @@ export interface JsNodeByKind {
4520
4531
  readonly JS_VARIABLE_DECLARATION_CLAUSE: JsVariableDeclarationClause;
4521
4532
  readonly JS_VARIABLE_DECLARATOR: JsVariableDeclarator;
4522
4533
  readonly JS_VARIABLE_STATEMENT: JsVariableStatement;
4534
+ readonly JS_VUE_GENERIC_ROOT: JsVueGenericRoot;
4523
4535
  readonly JS_VUE_SLOT_PROPS_ROOT: JsVueSlotPropsRoot;
4524
4536
  readonly JS_WHILE_STATEMENT: JsWhileStatement;
4525
4537
  readonly JS_WITH_STATEMENT: JsWithStatement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biomejs/runtime",
3
- "version": "0.0.1",
3
+ "version": "2.6.2",
4
4
  "description": "JavaScript APIs for Biome JS plugins",
5
5
  "scripts": {
6
6
  "test:types": "tsc --project tsconfig.json"
@@ -34,9 +34,9 @@
34
34
  "typescript": "7.0.2"
35
35
  },
36
36
  "peerDependencies": {
37
- "@biomejs/biome": "*"
37
+ "@biomejs/biome": "^2.6.2"
38
38
  },
39
39
  "publishConfig": {
40
40
  "provenance": true
41
41
  }
42
- }
42
+ }
package/plugin.d.ts CHANGED
@@ -82,6 +82,7 @@ export type JsEmbeddingKind =
82
82
  readonly embeddingKind:
83
83
  | "source"
84
84
  | "expression"
85
+ | "textInterpolation"
85
86
  | "snippetSignature"
86
87
  | "legacyConst"
87
88
  | "declaration";