@lwc/ssr-compiler
Advanced tools
Comparing version
import { type traverse } from 'estree-toolkit'; | ||
import type { ImportManager } from '../imports'; | ||
import type { ComponentTransformOptions } from '../shared'; | ||
import type { Identifier, MemberExpression, MethodDefinition, Node, ObjectExpression, PropertyDefinition } from 'estree'; | ||
export type Visitors = Parameters<typeof traverse<Node, ComponentMetaState>>[1]; | ||
import type { ClassDeclaration, Identifier, MemberExpression, MethodDefinition, Node, ObjectExpression, PropertyDefinition } from 'estree'; | ||
export type Visitors = Parameters<typeof traverse<Node, ComponentMetaState, never>>[1]; | ||
export interface WireAdapter { | ||
@@ -12,21 +12,41 @@ adapterId: Identifier | MemberExpression; | ||
export interface ComponentMetaState { | ||
/** indicates whether a subclass of LightningElement is found in the JS being traversed */ | ||
isLWC: boolean; | ||
/** the class declaration currently being traversed, if it is an LWC component */ | ||
currentComponent: ClassDeclaration | null; | ||
/** indicates whether the LightningElement subclass includes a constructor method */ | ||
hasConstructor: boolean; | ||
/** indicates whether the subclass has a connectedCallback method */ | ||
hasConnectedCallback: boolean; | ||
/** indicates whether the subclass has a renderedCallback method */ | ||
hadRenderedCallback: boolean; | ||
/** indicates whether the subclass has a disconnectedCallback method */ | ||
hadDisconnectedCallback: boolean; | ||
/** indicates whether the subclass has a errorCallback method */ | ||
hadErrorCallback: boolean; | ||
/** the local name corresponding to the `LightningElement` import */ | ||
lightningElementIdentifier: string | null; | ||
/** the class name of the subclass */ | ||
lwcClassName: string | null; | ||
/** ties local variable names to explicitly-imported HTML templates */ | ||
tmplExplicitImports: Map<string, string> | null; | ||
/** ties local variable names to explicitly-imported CSS files */ | ||
cssExplicitImports: Map<string, string> | null; | ||
/** the set of variable names associated with explicitly imported CSS files */ | ||
staticStylesheetIds: Set<string> | null; | ||
/** the public (`@api`-annotated) properties of the component class */ | ||
publicProperties: Map<string, (MethodDefinition | PropertyDefinition) & { | ||
key: Identifier; | ||
}>; | ||
/** the private properties of the component class */ | ||
privateProperties: Set<string>; | ||
/** indicates whether the LightningElement has any wired props */ | ||
wireAdapters: WireAdapter[]; | ||
/** dynamic imports configuration */ | ||
experimentalDynamicComponent: ComponentTransformOptions['experimentalDynamicComponent']; | ||
/** imports to add to the top of the program after parsing */ | ||
importManager: ImportManager; | ||
/** identifiers starting with __lwc that we added */ | ||
trustedLwcIdentifiers: WeakSet<Identifier>; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
@@ -8,3 +8,3 @@ import { traverse } from 'estree-toolkit'; | ||
} | ||
export type Visitors = Parameters<typeof traverse<Node, TransmogrificationState>>[1]; | ||
export type Visitors = Parameters<typeof traverse<Node, TransmogrificationState, never>>[1]; | ||
/** | ||
@@ -11,0 +11,0 @@ * Transforms async-generator code into either the async or synchronous alternatives that are |
@@ -7,3 +7,3 @@ { | ||
"name": "@lwc/ssr-compiler", | ||
"version": "8.16.4", | ||
"version": "8.17.0-alpha.0", | ||
"description": "Compile component for use during server-side rendering", | ||
@@ -53,5 +53,5 @@ "keywords": [ | ||
"@babel/types": "7.26.10", | ||
"@lwc/errors": "8.16.4", | ||
"@lwc/shared": "8.16.4", | ||
"@lwc/template-compiler": "8.16.4", | ||
"@lwc/errors": "8.17.0-alpha.0", | ||
"@lwc/shared": "8.17.0-alpha.0", | ||
"@lwc/template-compiler": "8.17.0-alpha.0", | ||
"acorn": "8.14.1", | ||
@@ -64,5 +64,5 @@ "astring": "^1.9.0", | ||
"devDependencies": { | ||
"@lwc/babel-plugin-component": "8.16.4", | ||
"@lwc/babel-plugin-component": "8.17.0-alpha.0", | ||
"@types/estree": "^1.0.6" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
256758
1%5436
0.85%1
Infinity%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated