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

@lwc/shared

Package Overview
Dependencies
Maintainers
0
Versions
594
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lwc/shared - npm Package Compare versions

Comparing version 7.0.1-alpha.0 to 7.0.1

13

dist/api-version.d.ts

@@ -50,15 +50,10 @@ export declare const enum APIVersion {

/**
* If enabled, we use the native custom element lifecycle events: connectedCallback, disconnectedCallback
* rather than synthetic events.
*/
ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE = 7,
/**
* If enabled, allows usage of the `attachInternals` and `ElementInternals` APIs, as well as
* Form-Associated Custom Elements (FACE).
*/
ENABLE_ELEMENT_INTERNALS_AND_FACE = 8,
ENABLE_ELEMENT_INTERNALS_AND_FACE = 7,
/**
* If enabled, allow `this.hostElement` within a `LightningElement` to return the host element.
*/
ENABLE_THIS_DOT_HOST_ELEMENT = 9,
ENABLE_THIS_DOT_HOST_ELEMENT = 8,
/**

@@ -68,7 +63,7 @@ * If enabled, allow `this.style` within a `LightningElement` to return the `CSSStyleDeclaration`

*/
ENABLE_THIS_DOT_STYLE = 10,
ENABLE_THIS_DOT_STYLE = 9,
/**
* If enabled, add support for complex class expressions in the template.
*/
TEMPLATE_CLASS_NAME_OBJECT_BINDING = 11
TEMPLATE_CLASS_NAME_OBJECT_BINDING = 10
}

@@ -75,0 +70,0 @@ /**

@@ -314,9 +314,8 @@ /**

return apiVersion >= 60 /* APIVersion.V60_248_SPRING_24 */;
case 8 /* APIFeature.ENABLE_ELEMENT_INTERNALS_AND_FACE */:
case 7 /* APIFeature.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE */:
case 7 /* APIFeature.ENABLE_ELEMENT_INTERNALS_AND_FACE */:
case 6 /* APIFeature.USE_LIGHT_DOM_SLOT_FORWARDING */:
return apiVersion >= 61 /* APIVersion.V61_250_SUMMER_24 */;
case 9 /* APIFeature.ENABLE_THIS_DOT_HOST_ELEMENT */:
case 10 /* APIFeature.ENABLE_THIS_DOT_STYLE */:
case 11 /* APIFeature.TEMPLATE_CLASS_NAME_OBJECT_BINDING */:
case 8 /* APIFeature.ENABLE_THIS_DOT_HOST_ELEMENT */:
case 9 /* APIFeature.ENABLE_THIS_DOT_STYLE */:
case 10 /* APIFeature.TEMPLATE_CLASS_NAME_OBJECT_BINDING */:
return apiVersion >= 62 /* APIVersion.V62_252_WINTER_25 */;

@@ -750,3 +749,3 @@ }

// Increment whenever the LWC template compiler changes
const LWC_VERSION = "7.0.0";
const LWC_VERSION = "7.0.1";
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;

@@ -850,3 +849,3 @@ const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;

exports.toString = toString;
/** version: 7.0.0 */
/** version: 7.0.1 */
//# sourceMappingURL=index.cjs.js.map

@@ -310,9 +310,8 @@ /**

return apiVersion >= 60 /* APIVersion.V60_248_SPRING_24 */;
case 8 /* APIFeature.ENABLE_ELEMENT_INTERNALS_AND_FACE */:
case 7 /* APIFeature.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE */:
case 7 /* APIFeature.ENABLE_ELEMENT_INTERNALS_AND_FACE */:
case 6 /* APIFeature.USE_LIGHT_DOM_SLOT_FORWARDING */:
return apiVersion >= 61 /* APIVersion.V61_250_SUMMER_24 */;
case 9 /* APIFeature.ENABLE_THIS_DOT_HOST_ELEMENT */:
case 10 /* APIFeature.ENABLE_THIS_DOT_STYLE */:
case 11 /* APIFeature.TEMPLATE_CLASS_NAME_OBJECT_BINDING */:
case 8 /* APIFeature.ENABLE_THIS_DOT_HOST_ELEMENT */:
case 9 /* APIFeature.ENABLE_THIS_DOT_STYLE */:
case 10 /* APIFeature.TEMPLATE_CLASS_NAME_OBJECT_BINDING */:
return apiVersion >= 62 /* APIVersion.V62_252_WINTER_25 */;

@@ -746,3 +745,3 @@ }

// Increment whenever the LWC template compiler changes
const LWC_VERSION = "7.0.0";
const LWC_VERSION = "7.0.1";
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;

@@ -752,3 +751,3 @@ const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;

export { AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap, ArrayConcat, ArrayCopyWithin, ArrayEvery, ArrayFill, ArrayFilter, ArrayFind, ArrayFindIndex, ArrayIncludes, ArrayIndexOf, ArrayJoin, ArrayMap, ArrayPop, ArrayPush, ArrayReduce, ArrayReverse, ArrayShift, ArraySlice, ArraySome, ArraySort, ArraySplice, ArrayUnshift, HIGHEST_API_VERSION, HTML_NAMESPACE, ID_REFERENCING_ATTRIBUTES_SET, KEY__LEGACY_SHADOW_TOKEN, KEY__LEGACY_SHADOW_TOKEN_PRIVATE, KEY__NATIVE_GET_ELEMENT_BY_ID, KEY__NATIVE_QUERY_SELECTOR_ALL, KEY__SCOPED_CSS, KEY__SHADOW_RESOLVER, KEY__SHADOW_RESOLVER_PRIVATE, KEY__SHADOW_STATIC, KEY__SHADOW_STATIC_PRIVATE, KEY__SHADOW_TOKEN, KEY__SHADOW_TOKEN_PRIVATE, KEY__SYNTHETIC_MODE, LOWEST_API_VERSION, LWC_VERSION, LWC_VERSION_COMMENT, LWC_VERSION_COMMENT_REGEX, MATHML_NAMESPACE, SVG_NAMESPACE, StringCharAt, StringCharCodeAt, StringFromCharCode, StringReplace, StringSlice, StringSplit, StringToLowerCase, StringTrim, XLINK_NAMESPACE, XML_NAMESPACE, arrayEvery, assert, assign, create, defineProperties, defineProperty, entries, forEach, freeze, getAPIVersionFromNumber, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getPropertyDescriptor, getPrototypeOf, hasOwnProperty, htmlEscape, htmlPropertyToAttribute, isAPIFeatureEnabled, isAriaAttribute, isArray, isBoolean, isBooleanAttribute, isFalse, isFrozen, isFunction, isGlobalHtmlAttribute, isNull, isNumber, isObject, isString, isTrue, isUndefined, isVoidElement, kebabCaseToCamelCase, keys, noop, reservedKeywords, seal, setPrototypeOf, toString };
/** version: 7.0.0 */
/** version: 7.0.1 */
//# sourceMappingURL=index.js.map

@@ -5,4 +5,4 @@ declare const

<T extends {}, U>(target: T, source: U): T & U;
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
(target: object, ...sources: any[]): any;

@@ -29,6 +29,6 @@ },

<T extends Function>(f: T): T;
<T_1 extends {
[idx: string]: object | U | null | undefined;
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
<T_2>(o: T_2): Readonly<T_2>;
<T extends {
[idx: string]: U | null | undefined | object;
}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
<T>(o: T): Readonly<T>;
},

@@ -64,66 +64,66 @@ /** Detached {@linkcode Object.getOwnPropertyDescriptor}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor MDN Reference}. */

call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["concat"]>) => ReturnType<T["concat"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["concat"]>) => ReturnType<T_1["concat"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["concat"]>) => ReturnType<T["concat"]>;
}, ArrayCopyWithin: {
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["copyWithin"]>) => ReturnType<T["copyWithin"]>;
apply: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["copyWithin"]>) => ReturnType<T_1["copyWithin"]>;
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["copyWithin"]>) => ReturnType<T["copyWithin"]>;
}, ArrayEvery: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["every"]>) => ReturnType<T["every"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["every"]>) => ReturnType<T_1["every"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["every"]>) => ReturnType<T["every"]>;
}, ArrayFill: {
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["fill"]>) => ReturnType<T["fill"]>;
apply: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["fill"]>) => ReturnType<T_1["fill"]>;
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["fill"]>) => ReturnType<T["fill"]>;
}, ArrayFilter: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["filter"]>) => ReturnType<T["filter"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["filter"]>) => ReturnType<T_1["filter"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["filter"]>) => ReturnType<T["filter"]>;
}, ArrayFind: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["find"]>) => ReturnType<T["find"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["find"]>) => ReturnType<T_1["find"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["find"]>) => ReturnType<T["find"]>;
}, ArrayFindIndex: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["findIndex"]>) => ReturnType<T["findIndex"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["findIndex"]>) => ReturnType<T_1["findIndex"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["findIndex"]>) => ReturnType<T["findIndex"]>;
}, ArrayIncludes: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["includes"]>) => ReturnType<T["includes"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["includes"]>) => ReturnType<T_1["includes"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["includes"]>) => ReturnType<T["includes"]>;
}, ArrayIndexOf: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["indexOf"]>) => ReturnType<T["indexOf"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["indexOf"]>) => ReturnType<T_1["indexOf"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["indexOf"]>) => ReturnType<T["indexOf"]>;
}, ArrayJoin: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["join"]>) => ReturnType<T["join"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["join"]>) => ReturnType<T_1["join"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["join"]>) => ReturnType<T["join"]>;
}, ArrayMap: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["map"]>) => ReturnType<T["map"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["map"]>) => ReturnType<T_1["map"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["map"]>) => ReturnType<T["map"]>;
}, ArrayPop: {
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["pop"]>) => ReturnType<T["pop"]>;
apply: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["pop"]>) => ReturnType<T_1["pop"]>;
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["pop"]>) => ReturnType<T["pop"]>;
}, ArrayPush: {
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["push"]>) => ReturnType<T["push"]>;
apply: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["push"]>) => ReturnType<T_1["push"]>;
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["push"]>) => ReturnType<T["push"]>;
}, ArrayReduce: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["reduce"]>) => ReturnType<T["reduce"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["reduce"]>) => ReturnType<T_1["reduce"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["reduce"]>) => ReturnType<T["reduce"]>;
}, ArrayReverse: {
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["reverse"]>) => ReturnType<T["reverse"]>;
apply: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["reverse"]>) => ReturnType<T_1["reverse"]>;
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["reverse"]>) => ReturnType<T["reverse"]>;
}, ArrayShift: {
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["shift"]>) => ReturnType<T["shift"]>;
apply: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["shift"]>) => ReturnType<T_1["shift"]>;
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["shift"]>) => ReturnType<T["shift"]>;
}, ArraySlice: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["slice"]>) => ReturnType<T["slice"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["slice"]>) => ReturnType<T_1["slice"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["slice"]>) => ReturnType<T["slice"]>;
}, ArraySome: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["some"]>) => ReturnType<T["some"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["some"]>) => ReturnType<T_1["some"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["some"]>) => ReturnType<T["some"]>;
}, ArraySort: {
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["sort"]>) => ReturnType<T["sort"]>;
apply: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["sort"]>) => ReturnType<T_1["sort"]>;
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["sort"]>) => ReturnType<T["sort"]>;
}, ArraySplice: {
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["splice"]>) => ReturnType<T["splice"]>;
apply: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["splice"]>) => ReturnType<T_1["splice"]>;
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["splice"]>) => ReturnType<T["splice"]>;
}, ArrayUnshift: {
call: <T extends unknown[]>(thisArg: T, ...args: Parameters<T["unshift"]>) => ReturnType<T["unshift"]>;
apply: <T_1 extends unknown[]>(thisArg: T_1, args: Parameters<T_1["unshift"]>) => ReturnType<T_1["unshift"]>;
apply: <T extends unknown[]>(thisArg: T, args: Parameters<T["unshift"]>) => ReturnType<T["unshift"]>;
}, forEach: {
call: <T extends BaseArray>(thisArg: T, ...args: Parameters<T["forEach"]>) => ReturnType<T["forEach"]>;
apply: <T_1 extends BaseArray>(thisArg: T_1, args: Parameters<T_1["forEach"]>) => ReturnType<T_1["forEach"]>;
apply: <T extends BaseArray>(thisArg: T, args: Parameters<T["forEach"]>) => ReturnType<T["forEach"]>;
};

@@ -150,7 +150,7 @@ /**

}, StringSplit: {
(separator: string | RegExp, limit?: number | undefined): string[];
(separator: string | RegExp, limit?: number): string[];
(splitter: {
[Symbol.split](string: string, limit?: number | undefined): string[];
}, limit?: number | undefined): string[];
}, StringSlice: (start?: number | undefined, end?: number | undefined) => string, StringToLowerCase: () => string, StringTrim: () => string;
[Symbol.split](string: string, limit?: number): string[];
}, limit?: number): string[];
}, StringSlice: (start?: number, end?: number) => string, StringToLowerCase: () => string, StringTrim: () => string;
export {

@@ -157,0 +157,0 @@ /** Detached {@linkcode Array.isArray}; see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray MDN Reference}. */

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

"name": "@lwc/shared",
"version": "7.0.1-alpha.0",
"version": "7.0.1",
"description": "Utilities and methods that are shared across packages",

@@ -45,2 +45,2 @@ "keywords": [

}
}
}

Sorry, the diff of this file is not supported yet

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