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

@lwc/engine-core

Package Overview
Dependencies
Maintainers
12
Versions
384
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/engine-core - npm Package Compare versions

Comparing version 2.0.0-rc-1-alpha0 to 2.0.0

8

package.json
{
"name": "@lwc/engine-core",
"version": "2.0.0-rc-1-alpha0",
"version": "2.0.0",
"description": "Core LWC engine APIs.",

@@ -28,4 +28,4 @@ "homepage": "https://lwc.dev/",

"devDependencies": {
"@lwc/features": "2.0.0-rc-1-alpha0",
"@lwc/shared": "2.0.0-rc-1-alpha0",
"@lwc/features": "2.0.0",
"@lwc/shared": "2.0.0",
"observable-membrane": "1.0.1"

@@ -36,3 +36,3 @@ },

},
"gitHead": "b3f4e0f188e0ffe16ad2cce4cad3a444f3dc7633"
"gitHead": "543c82a9708cb2e953af2e2607d524d307b8353f"
}

@@ -49,2 +49,8 @@ /**

}
export interface VComment extends VNode {
sel: undefined;
children: undefined;
text: string;
key: undefined;
}
export declare type CustomElementContext = Record<string, Record<string, any>>;

@@ -51,0 +57,0 @@ export interface VNodeData {

import { SlotSet } from './vm';
import { VNode, VNodeData, VNodes, VElement, VText, Key, VCustomElement } from '../3rdparty/snabbdom/types';
import { VNode, VNodeData, VNodes, VElement, VText, Key, VCustomElement, VComment } from '../3rdparty/snabbdom/types';
import { LightningElementConstructor } from './base-lightning-element';

@@ -20,2 +20,3 @@ export interface ElementCompilerData extends VNodeData {

k(compilerKey: number, iteratorValue: any): string | void;
co(text: string): VComment;
}

@@ -32,2 +33,3 @@ export declare function h(sel: string, data: ElementCompilerData, children: VNodes): VElement;

export declare function t(text: string): VText;
export declare function co(text: string): VComment;
export declare function d(value: any): VNode | null;

@@ -34,0 +36,0 @@ export declare function b(fn: EventListener): EventListener;

@@ -10,2 +10,3 @@ export declare type HostNode = any;

createText(content: string): N;
createComment(content: string): N;
nextSibling(node: N): N | null;

@@ -12,0 +13,0 @@ attachShadow(element: E, options: ShadowRootInit): N;

@@ -5,2 +5,11 @@ import { VNode, VNodes } from '../3rdparty/snabbdom/types';

import { TemplateStylesheetFactories } from './stylesheet';
export interface TemplateStylesheetTokens {
/** HTML attribute that need to be applied to the host element. This attribute is used for
* the `:host` pseudo class CSS selector. */
hostAttribute: string;
/** HTML attribute that need to the applied to all the element that the template produces.
* This attribute is used for style encapsulation when the engine runs with synthetic
* shadow. */
shadowAttribute: string;
}
export interface Template {

@@ -13,11 +22,3 @@ (api: RenderAPI, cmp: object, slotSet: SlotSet, cache: TemplateCache): VNodes;

/** The stylesheet tokens used for synthetic shadow style scoping. */
stylesheetTokens?: {
/** HTML attribute that need to be applied to the host element. This attribute is used for
* the `:host` pseudo class CSS selector. */
hostAttribute: string;
/** HTML attribute that need to the applied to all the element that the template produces.
* This attribute is used for style encapsulation when the engine runs with synthetic
* shadow. */
shadowAttribute: string;
};
stylesheetTokens?: TemplateStylesheetTokens;
}

@@ -24,0 +25,0 @@ export declare let isUpdatingTemplate: boolean;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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