Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lwc/ssr-compiler

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/ssr-compiler - npm Package Compare versions

Comparing version 8.12.1 to 8.12.2

dist/compile-js/errors.d.ts

10

dist/compile-js/lwc-import.d.ts

@@ -1,2 +0,2 @@

import type { ImportDeclaration } from 'estree';
import type { ImportDeclaration, ExportNamedDeclaration, ExportAllDeclaration } from 'estree';
import type { NodePath } from 'estree-toolkit';

@@ -11,1 +11,9 @@ import type { ComponentMetaState } from './types';

export declare function replaceLwcImport(path: NodePath<ImportDeclaration>, state: ComponentMetaState): void;
/**
* This handles lwc barrel exports by replacing "lwc" with "@lwc/ssr-runtime"
*/
export declare function replaceNamedLwcExport(path: NodePath<ExportNamedDeclaration>): void;
/**
* This handles all lwc barrel exports by replacing "lwc" with "@lwc/ssr-runtime"
*/
export declare function replaceAllLwcExport(path: NodePath<ExportAllDeclaration>): void;

1

dist/compile-js/types.d.ts

@@ -15,3 +15,2 @@ import type { ImportManager } from '../imports';

hasConnectedCallback: boolean;
hasRenderMethod: boolean;
hadRenderedCallback: boolean;

@@ -18,0 +17,0 @@ hadDisconnectedCallback: boolean;

import type { ChildNode as IrChildNode, Node as IrNode } from '@lwc/template-compiler';
import type { Statement as EsStatement } from 'estree';
import type { TemplateOpts, TransformerContext } from './types';
export declare function irChildrenToEs(children: IrChildNode[], cxt: TransformerContext): EsStatement[];
export declare function irChildrenToEs(children: IrChildNode[], cxt: TransformerContext, cb?: (child: IrChildNode) => (() => void) | void): EsStatement[];
export declare function irToEs<T extends IrNode>(node: T, cxt: TransformerContext): EsStatement[];

@@ -6,0 +6,0 @@ export declare function templateIrToEsTree(node: IrNode, contextOpts: TemplateOpts): {

@@ -1,21 +0,3 @@

import type { CallExpression, Identifier, MemberExpression } from 'estree';
import type { Checker } from 'estree-toolkit/dist/generated/is-type';
import type { Node } from 'estree-toolkit/dist/helpers';
/** Node representing an identifier named "render". */
type RenderIdentifier = Identifier & {
name: 'render';
};
/** Node representing a member expression `<something>.render`. */
type RenderMemberExpression = MemberExpression & {
property: RenderIdentifier;
};
/** Node representing a method call `<something>.render()`. */
type RenderCall = CallExpression & {
callee: RenderMemberExpression;
};
/** Returns `true` if the node is an identifier or `<something>.render()`. */
export declare const isIdentOrRenderCall: {
(node: Node | null | undefined): node is Identifier | RenderCall;
__debugName: string;
};
/** A validator that returns `true` if the node is `null`. */

@@ -22,0 +4,0 @@ type NullableChecker<T extends Node> = (node: Node | null | undefined) => node is T | null;

@@ -35,4 +35,4 @@ import type { LwcBabelPluginOptions } from '@lwc/babel-plugin-component';

export type TemplateTransformOptions = Pick<TemplateCompilerConfig, 'name' | 'namespace'>;
export type ComponentTransformOptions = Pick<LwcBabelPluginOptions, 'name' | 'namespace'> & {
export type ComponentTransformOptions = Partial<Pick<LwcBabelPluginOptions, 'name' | 'namespace'>> & {
experimentalDynamicComponent?: LwcBabelPluginOptions['dynamicImports'];
};

@@ -7,3 +7,3 @@ {

"name": "@lwc/ssr-compiler",
"version": "8.12.1",
"version": "8.12.2",
"description": "Compile component for use during server-side rendering",

@@ -52,5 +52,5 @@ "keywords": [

"@babel/types": "7.26.3",
"@lwc/shared": "8.12.1",
"@lwc/errors": "8.12.1",
"@lwc/template-compiler": "8.12.1",
"@lwc/shared": "8.12.2",
"@lwc/errors": "8.12.2",
"@lwc/template-compiler": "8.12.2",
"acorn": "8.14.0",

@@ -63,5 +63,5 @@ "astring": "^1.9.0",

"devDependencies": {
"@lwc/babel-plugin-component": "8.12.1",
"@lwc/babel-plugin-component": "8.12.2",
"@types/estree": "^1.0.6"
}
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc