@lwc/shared
Advanced tools
Comparing version 5.3.0 to 6.0.0
@@ -38,4 +38,14 @@ export declare const enum APIVersion { | ||
*/ | ||
USE_COMMENTS_FOR_FRAGMENT_BOOKENDS = 5 | ||
USE_COMMENTS_FOR_FRAGMENT_BOOKENDS = 5, | ||
/** | ||
* If enabled, allows slot forwarding for light DOM slots. This will cause the slot attribute of the slotted | ||
* content to be updated to match the slot attribute of the light DOM slot it slotted into. | ||
*/ | ||
USE_LIGHT_DOM_SLOT_FORWARDING = 6, | ||
/** | ||
* If enabled, we use the native custom element lifecycle events: connectedCallback, disconnectedCallback | ||
* rather than synthetic events. | ||
*/ | ||
ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE = 7 | ||
} | ||
export declare function isAPIFeatureEnabled(apiVersionFeature: APIFeature, apiVersion: APIVersion): boolean; |
@@ -169,2 +169,5 @@ /** | ||
return apiVersion >= 60 /* APIVersion.V60_248_SPRING_24 */; | ||
case 6 /* APIFeature.USE_LIGHT_DOM_SLOT_FORWARDING */: | ||
case 7 /* APIFeature.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE */: | ||
return apiVersion >= 61 /* APIVersion.V61_250_SUMMER_24 */; | ||
} | ||
@@ -520,3 +523,3 @@ } | ||
// Increment whenever the LWC template compiler changes | ||
const LWC_VERSION = "5.3.0"; | ||
const LWC_VERSION = "6.0.0"; | ||
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`; | ||
@@ -617,3 +620,3 @@ const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/; | ||
exports.toString = toString; | ||
/** version: 5.3.0 */ | ||
/** version: 6.0.0 */ | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -165,2 +165,5 @@ /** | ||
return apiVersion >= 60 /* APIVersion.V60_248_SPRING_24 */; | ||
case 6 /* APIFeature.USE_LIGHT_DOM_SLOT_FORWARDING */: | ||
case 7 /* APIFeature.ENABLE_NATIVE_CUSTOM_ELEMENT_LIFECYCLE */: | ||
return apiVersion >= 61 /* APIVersion.V61_250_SUMMER_24 */; | ||
} | ||
@@ -516,3 +519,3 @@ } | ||
// Increment whenever the LWC template compiler changes | ||
const LWC_VERSION = "5.3.0"; | ||
const LWC_VERSION = "6.0.0"; | ||
const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`; | ||
@@ -522,3 +525,3 @@ const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/; | ||
export { AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap, ArrayConcat, ArrayCopyWithin, 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, StringCharCodeAt, StringFromCharCode, StringReplace, StringSlice, StringSplit, StringToLowerCase, XLINK_NAMESPACE, XML_NAMESPACE, arrayEvery, assert, assign, create, defineProperties, defineProperty, entries, forEach, freeze, getAPIVersionFromNumber, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getPropertyDescriptor, getPrototypeOf, _globalThis as globalThis, hasOwnProperty, htmlEscape, htmlPropertyToAttribute, isAPIFeatureEnabled, isAriaAttribute, isArray, isBoolean, isBooleanAttribute, isFalse, isFrozen, isFunction, isGlobalHtmlAttribute, isNull, isNumber, isObject, isString, isTrue, isUndefined, isVoidElement, kebabCaseToCamelCase, keys, noop, seal, setPrototypeOf, toString }; | ||
/** version: 5.3.0 */ | ||
/** version: 6.0.0 */ | ||
//# sourceMappingURL=index.js.map |
@@ -7,3 +7,3 @@ { | ||
"name": "@lwc/shared", | ||
"version": "5.3.0", | ||
"version": "6.0.0", | ||
"description": "Utilities and methods that are shared across packages", | ||
@@ -10,0 +10,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79479
1318