@lwc/ssr-compiler
Advanced tools
Comparing version 8.9.0 to 8.10.0-alpha.0
@@ -16,6 +16,1 @@ import type { Program } from 'estree'; | ||
export declare function addGenerateMarkupExport(program: Program, state: ComponentMetaState, tagName: string, filename: string): void; | ||
/** | ||
* Attach the `generateMarkup` function to the Component class so that it can be found later | ||
* during `renderComponent`. | ||
*/ | ||
export declare function assignGenerateMarkupToComponent(program: Program, state: ComponentMetaState): void; |
@@ -1,3 +0,3 @@ | ||
import { ImportDeclaration } from 'estree'; | ||
import { NodePath } from 'estree-toolkit'; | ||
import type { ImportDeclaration } from 'estree'; | ||
import type { NodePath } from 'estree-toolkit'; | ||
export declare function removeDecoratorImport(path: NodePath<ImportDeclaration>): void; |
import type { traverse } from 'estree-toolkit'; | ||
import type { Node } from 'estree'; | ||
import type { Identifier, MemberExpression, MethodDefinition, Node, ObjectExpression, PropertyDefinition } from 'estree'; | ||
export type Visitors = Parameters<typeof traverse<Node, ComponentMetaState>>[1]; | ||
export interface WireAdapter { | ||
fieldName: string; | ||
adapterConstructorId: string; | ||
config: Array<{ | ||
configKey: string; | ||
referencedField: string; | ||
}>; | ||
fieldType: 'property' | 'method'; | ||
adapterId: Identifier | MemberExpression; | ||
config: ObjectExpression; | ||
field: MethodDefinition | PropertyDefinition; | ||
} | ||
@@ -13,0 +9,0 @@ export interface ComponentMetaState { |
@@ -1,4 +0,5 @@ | ||
import type { PropertyDefinition, Statement, MethodDefinition } from 'estree'; | ||
import type { NodePath } from 'estree-toolkit'; | ||
import type { PropertyDefinition, MethodDefinition, BlockStatement } from 'estree'; | ||
import type { ComponentMetaState, WireAdapter } from './types'; | ||
export declare function catalogWireAdapters(state: ComponentMetaState, node: PropertyDefinition | MethodDefinition): void; | ||
export declare function bWireAdaptersPlumbing(adapters: WireAdapter[]): Statement[]; | ||
export declare function catalogWireAdapters(path: NodePath<PropertyDefinition | MethodDefinition>, state: ComponentMetaState): void; | ||
export declare function bWireAdaptersPlumbing(adapters: WireAdapter[]): BlockStatement[]; |
@@ -1,3 +0,3 @@ | ||
import { Node as IrNode, Attribute as IrAttribute, Property as IrProperty } from '@lwc/template-compiler'; | ||
import { TransformerContext } from './types'; | ||
import type { TransformerContext } from './types'; | ||
import type { Node as IrNode, Attribute as IrAttribute, Property as IrProperty } from '@lwc/template-compiler'; | ||
import type { Statement as EsStatement, Expression as EsExpression, ObjectExpression as EsObjectExpression } from 'estree'; | ||
@@ -4,0 +4,0 @@ export declare function optimizeAdjacentYieldStmts(statements: EsStatement[]): EsStatement[]; |
@@ -1,3 +0,4 @@ | ||
import { type Element as IrElement, ExternalComponent as IrExternalComponent, Slot as IrSlot } from '@lwc/template-compiler'; | ||
import { type Element as IrElement } from '@lwc/template-compiler'; | ||
import type { ExternalComponent as IrExternalComponent, Slot as IrSlot } from '@lwc/template-compiler'; | ||
import type { Transformer } from '../types'; | ||
export declare const Element: Transformer<IrElement | IrExternalComponent | IrSlot>; |
@@ -1,3 +0,3 @@ | ||
import { Slot as IrSlot } from '@lwc/template-compiler'; | ||
import type { Slot as IrSlot } from '@lwc/template-compiler'; | ||
import type { Transformer } from '../types'; | ||
export declare const Slot: Transformer<IrSlot>; |
@@ -1,2 +0,2 @@ | ||
import { Node as IrNode } from '@lwc/template-compiler'; | ||
import type { Node as IrNode } from '@lwc/template-compiler'; | ||
import type { Statement as EsStatement } from 'estree'; | ||
@@ -3,0 +3,0 @@ export type Transformer<T extends IrNode = IrNode> = (node: T, cxt: TransformerContext) => EsStatement[]; |
@@ -7,3 +7,3 @@ { | ||
"name": "@lwc/ssr-compiler", | ||
"version": "8.9.0", | ||
"version": "8.10.0-alpha.0", | ||
"description": "Compile component for use during server-side rendering", | ||
@@ -48,4 +48,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@lwc/shared": "8.9.0", | ||
"@lwc/template-compiler": "8.9.0", | ||
"@lwc/shared": "8.10.0-alpha.0", | ||
"@lwc/errors": "8.10.0-alpha.0", | ||
"@lwc/template-compiler": "8.10.0-alpha.0", | ||
"acorn": "8.14.0", | ||
@@ -60,2 +61,2 @@ "astring": "^1.9.0", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
43
287043
8
4033
1
+ Added@lwc/errors@8.10.0-alpha.0
+ Added@lwc/errors@8.10.0-alpha.0(transitive)
+ Added@lwc/shared@8.10.0-alpha.0(transitive)
+ Added@lwc/template-compiler@8.10.0-alpha.0(transitive)
- Removed@lwc/errors@8.9.0(transitive)
- Removed@lwc/shared@8.9.0(transitive)
- Removed@lwc/template-compiler@8.9.0(transitive)
Updated@lwc/shared@8.10.0-alpha.0