@lwc/shared 2.23.2 → 2.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -266,7 +266,7 @@ const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
266
266
  // e.g. `</tagName>` or `<tagName />`. For instance, `<meta>` closes on its own; no need for a slash.
267
267
  // These only come from HTML; there are no void elements in the SVG or MathML namespaces.
268
268
  // See: https://html.spec.whatwg.org/multipage/syntax.html#syntax-tags
269
- const VOID_ELEMENTS_SET = new Set([
269
+ const VOID_ELEMENTS = [
270
270
  'area',
271
271
  'base',
272
272
  'br',
@@ -280,7 +280,12 @@ const VOID_ELEMENTS_SET = new Set([
280
280
  'source',
281
281
  'track',
282
282
  'wbr',
283
- ]);
283
+ ];
284
+ // These elements have been deprecated but preserving their usage for backwards compatibility
285
+ // until we can officially deprecate them from LWC.
286
+ // See: https://html.spec.whatwg.org/multipage/obsolete.html#obsolete-but-conforming-features
287
+ const DEPRECATED_VOID_ELEMENTS = ['param', 'keygen', 'menuitem'];
288
+ const VOID_ELEMENTS_SET = new Set([...VOID_ELEMENTS, ...DEPRECATED_VOID_ELEMENTS]);
284
289
  function isVoidElement(name, namespace) {
285
290
  return namespace === HTML_NAMESPACE && VOID_ELEMENTS_SET.has(name.toLowerCase());
286
291
  }
@@ -453,7 +458,7 @@ const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === '
453
458
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
454
459
  */
455
460
  // Increment whenever the LWC template compiler changes
456
- const LWC_VERSION = "2.23.2";
461
+ const LWC_VERSION = "2.23.3";
457
462
  const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
458
463
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
459
464
 
@@ -533,4 +538,4 @@ exports.noop = noop;
533
538
  exports.seal = seal;
534
539
  exports.setPrototypeOf = setPrototypeOf;
535
540
  exports.toString = toString;
536
- /** version: 2.23.2 */
541
+ /** version: 2.23.3 */
package/dist/index.js CHANGED
@@ -262,7 +262,7 @@ const XLINK_NAMESPACE = 'http://www.w3.org/1999/xlink';
262
262
  // e.g. `</tagName>` or `<tagName />`. For instance, `<meta>` closes on its own; no need for a slash.
263
263
  // These only come from HTML; there are no void elements in the SVG or MathML namespaces.
264
264
  // See: https://html.spec.whatwg.org/multipage/syntax.html#syntax-tags
265
- const VOID_ELEMENTS_SET = new Set([
265
+ const VOID_ELEMENTS = [
266
266
  'area',
267
267
  'base',
268
268
  'br',
@@ -276,7 +276,12 @@ const VOID_ELEMENTS_SET = new Set([
276
276
  'source',
277
277
  'track',
278
278
  'wbr',
279
- ]);
279
+ ];
280
+ // These elements have been deprecated but preserving their usage for backwards compatibility
281
+ // until we can officially deprecate them from LWC.
282
+ // See: https://html.spec.whatwg.org/multipage/obsolete.html#obsolete-but-conforming-features
283
+ const DEPRECATED_VOID_ELEMENTS = ['param', 'keygen', 'menuitem'];
284
+ const VOID_ELEMENTS_SET = new Set([...VOID_ELEMENTS, ...DEPRECATED_VOID_ELEMENTS]);
280
285
  function isVoidElement(name, namespace) {
281
286
  return namespace === HTML_NAMESPACE && VOID_ELEMENTS_SET.has(name.toLowerCase());
282
287
  }
@@ -449,9 +454,9 @@ const hasNativeSymbolSupport = /*@__PURE__*/ (() => Symbol('x').toString() === '
449
454
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
450
455
  */
451
456
  // Increment whenever the LWC template compiler changes
452
- const LWC_VERSION = "2.23.2";
457
+ const LWC_VERSION = "2.23.3";
453
458
  const LWC_VERSION_COMMENT = `LWC compiler v${LWC_VERSION}`;
454
459
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
455
460
 
456
461
  export { AriaAttrNameToPropNameMap, AriaPropNameToAttrNameMap, ArrayCopyWithin, ArrayFill, ArrayFilter, ArrayFind, ArrayIndexOf, ArrayJoin, ArrayMap, ArrayPop, ArrayPush, ArrayReduce, ArrayReverse, ArrayShift, ArraySlice, ArraySort, ArraySplice, ArrayUnshift, HTML_NAMESPACE, KEY__IS_NATIVE_SHADOW_ROOT_DEFINED, 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, LWC_VERSION, LWC_VERSION_COMMENT, LWC_VERSION_COMMENT_REGEX, MATHML_NAMESPACE, SVG_NAMESPACE, StringCharCodeAt, StringFromCharCode, StringReplace, StringSlice, StringToLowerCase, XLINK_NAMESPACE, XML_NAMESPACE, assert, assign, create, defineProperties, defineProperty, forEach, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPropertyDescriptor, getPrototypeOf, _globalThis as globalThis, hasNativeSymbolSupport, hasOwnProperty, htmlEscape, htmlPropertyToAttribute, isAriaAttribute, isArray, isBoolean, isBooleanAttribute, isFalse, isFrozen, isFunction, isGlobalHtmlAttribute, isNull, isNumber, isObject, isString, isTrue, isUndefined, isVoidElement, keys, noop, seal, setPrototypeOf, toString };
457
- /** version: 2.23.2 */
462
+ /** version: 2.23.3 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lwc/shared",
3
- "version": "2.23.2",
3
+ "version": "2.23.3",
4
4
  "description": "Utilities and methods that are shared across packages",
5
5
  "homepage": "https://lwc.dev/",
6
6
  "repository": {
@@ -18,8 +18,7 @@
18
18
  "scripts": {
19
19
  "build": "rollup --config ./scripts/rollup/rollup.config.js",
20
20
  "postbuild": "node ../../../scripts/tasks/verify-treeshakable.js ./dist/index.js",
21
- "dev": "rollup --config scripts/rollup/rollup.config.js --watch --no-watch.clearScreen",
22
- "clean": "rm -rf dist/ types/"
21
+ "dev": "rollup --config scripts/rollup/rollup.config.js --watch --no-watch.clearScreen"
23
22
  },
24
23
  "files": [
25
24
  "dist/",
@@ -27,5 +26,15 @@
27
26
  ],
28
27
  "publishConfig": {
29
28
  "access": "public"
29
+ },
30
+ "nx": {
31
+ "targets": {
32
+ "build": {
33
+ "outputs": [
34
+ "./dist",
35
+ "./types"
36
+ ]
37
+ }
38
+ }
30
39
  }
31
- }
40
+ }