lwc 2.43.0 → 2.44.0

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.
Files changed (68) hide show
  1. package/dist/engine-dom/esm/es2017/engine-dom.js +51 -208
  2. package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
  3. package/dist/engine-dom/iife/es2017/engine-dom.js +51 -208
  4. package/dist/engine-dom/iife/es2017/engine-dom.js.map +1 -1
  5. package/dist/engine-dom/iife/es2017/engine-dom.min.js +1 -1
  6. package/dist/engine-dom/iife/es2017/engine-dom_debug.js +8 -9
  7. package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
  8. package/dist/engine-dom/iife/es5/engine-dom.js +50 -209
  9. package/dist/engine-dom/iife/es5/engine-dom.js.map +1 -1
  10. package/dist/engine-dom/iife/es5/engine-dom.min.js +1 -1
  11. package/dist/engine-dom/iife/es5/engine-dom_debug.js +7 -8
  12. package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
  13. package/dist/engine-dom/umd/es2017/engine-dom.js +51 -208
  14. package/dist/engine-dom/umd/es2017/engine-dom.js.map +1 -1
  15. package/dist/engine-dom/umd/es2017/engine-dom.min.js +1 -1
  16. package/dist/engine-dom/umd/es2017/engine-dom_debug.js +8 -9
  17. package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
  18. package/dist/engine-dom/umd/es5/engine-dom.js +50 -209
  19. package/dist/engine-dom/umd/es5/engine-dom.js.map +1 -1
  20. package/dist/engine-dom/umd/es5/engine-dom.min.js +1 -1
  21. package/dist/engine-dom/umd/es5/engine-dom_debug.js +7 -8
  22. package/dist/engine-dom/umd/es5/engine-dom_debug.js.map +1 -1
  23. package/dist/engine-server/commonjs/es2017/engine-server.js +121 -174
  24. package/dist/engine-server/commonjs/es2017/engine-server.js.map +1 -1
  25. package/dist/engine-server/commonjs/es2017/engine-server.min.js +1 -1
  26. package/dist/engine-server/esm/es2017/engine-server.js +102 -174
  27. package/dist/engine-server/esm/es2017/engine-server.js.map +1 -1
  28. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js +89 -74
  29. package/dist/synthetic-shadow/esm/es2017/synthetic-shadow.js.map +1 -1
  30. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js +89 -74
  31. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.js.map +1 -1
  32. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow.min.js +2 -2
  33. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js +85 -70
  34. package/dist/synthetic-shadow/iife/es2017/synthetic-shadow_debug.js.map +1 -1
  35. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js +88 -71
  36. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.js.map +1 -1
  37. package/dist/synthetic-shadow/iife/es5/synthetic-shadow.min.js +2 -2
  38. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js +84 -67
  39. package/dist/synthetic-shadow/iife/es5/synthetic-shadow_debug.js.map +1 -1
  40. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js +89 -74
  41. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.js.map +1 -1
  42. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow.min.js +2 -2
  43. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js +85 -70
  44. package/dist/synthetic-shadow/umd/es2017/synthetic-shadow_debug.js.map +1 -1
  45. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js +88 -71
  46. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.js.map +1 -1
  47. package/dist/synthetic-shadow/umd/es5/synthetic-shadow.min.js +2 -2
  48. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js +84 -67
  49. package/dist/synthetic-shadow/umd/es5/synthetic-shadow_debug.js.map +1 -1
  50. package/dist/wire-service/esm/es2017/wire-service.js +2 -2
  51. package/dist/wire-service/esm/es2017/wire-service.js.map +1 -1
  52. package/dist/wire-service/iife/es2017/wire-service.js +2 -2
  53. package/dist/wire-service/iife/es2017/wire-service.js.map +1 -1
  54. package/dist/wire-service/iife/es2017/wire-service_debug.js +2 -2
  55. package/dist/wire-service/iife/es2017/wire-service_debug.js.map +1 -1
  56. package/dist/wire-service/iife/es5/wire-service.js +2 -2
  57. package/dist/wire-service/iife/es5/wire-service.js.map +1 -1
  58. package/dist/wire-service/iife/es5/wire-service_debug.js +2 -2
  59. package/dist/wire-service/iife/es5/wire-service_debug.js.map +1 -1
  60. package/dist/wire-service/umd/es2017/wire-service.js +2 -2
  61. package/dist/wire-service/umd/es2017/wire-service.js.map +1 -1
  62. package/dist/wire-service/umd/es2017/wire-service_debug.js +2 -2
  63. package/dist/wire-service/umd/es2017/wire-service_debug.js.map +1 -1
  64. package/dist/wire-service/umd/es5/wire-service.js +2 -2
  65. package/dist/wire-service/umd/es5/wire-service.js.map +1 -1
  66. package/dist/wire-service/umd/es5/wire-service_debug.js +2 -2
  67. package/dist/wire-service/umd/es5/wire-service_debug.js.map +1 -1
  68. package/package.json +7 -7
@@ -46,7 +46,7 @@ var LWC = (function (exports) {
46
46
  */
47
47
  const { assign, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor: getOwnPropertyDescriptor$1, getOwnPropertyNames: getOwnPropertyNames$1, getPrototypeOf: getPrototypeOf$1, hasOwnProperty: hasOwnProperty$1, isFrozen, keys, seal, setPrototypeOf, } = Object;
48
48
  const { isArray: isArray$1 } = Array;
49
- const { concat: ArrayConcat$1, copyWithin: ArrayCopyWithin, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush$1, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, some: ArraySome, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
49
+ const { concat: ArrayConcat$1, copyWithin: ArrayCopyWithin, fill: ArrayFill, filter: ArrayFilter, find: ArrayFind, findIndex: ArrayFindIndex, indexOf: ArrayIndexOf, join: ArrayJoin, map: ArrayMap, pop: ArrayPop, push: ArrayPush$1, reduce: ArrayReduce, reverse: ArrayReverse, shift: ArrayShift, slice: ArraySlice, some: ArraySome, sort: ArraySort, splice: ArraySplice, unshift: ArrayUnshift, forEach, } = Array.prototype;
50
50
  const { fromCharCode: StringFromCharCode } = String;
51
51
  const { charCodeAt: StringCharCodeAt, replace: StringReplace, split: StringSplit, slice: StringSlice, toLowerCase: StringToLowerCase, } = String.prototype;
52
52
  function isUndefined$1(obj) {
@@ -325,24 +325,6 @@ var LWC = (function (exports) {
325
325
  return propertyName;
326
326
  }
327
327
 
328
- /*
329
- * Copyright (c) 2020, salesforce.com, inc.
330
- * All rights reserved.
331
- * SPDX-License-Identifier: MIT
332
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
333
- */
334
- const ESCAPED_CHARS = {
335
- '"': '"',
336
- "'": ''',
337
- '<': '&lt;',
338
- '>': '&gt;',
339
- '&': '&amp;',
340
- };
341
- function htmlEscape(str, attrMode = false) {
342
- const searchValue = attrMode ? /["&]/g : /["'<>&]/g;
343
- return str.replace(searchValue, (char) => ESCAPED_CHARS[char]);
344
- }
345
-
346
328
  /*
347
329
  * Copyright (c) 2018, salesforce.com, inc.
348
330
  * All rights reserved.
@@ -350,9 +332,9 @@ var LWC = (function (exports) {
350
332
  * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
351
333
  */
352
334
  // Increment whenever the LWC template compiler changes
353
- const LWC_VERSION = "2.43.0";
335
+ const LWC_VERSION = "2.44.0";
354
336
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
355
- /** version: 2.43.0 */
337
+ /** version: 2.44.0 */
356
338
 
357
339
  /**
358
340
  * Copyright (C) 2018 salesforce.com, inc.
@@ -430,7 +412,7 @@ var LWC = (function (exports) {
430
412
  setFeatureFlag(name, value);
431
413
  }
432
414
  }
433
- /** version: 2.43.0 */
415
+ /** version: 2.44.0 */
434
416
 
435
417
  /**
436
418
  * Copyright (C) 2018 salesforce.com, inc.
@@ -494,7 +476,7 @@ var LWC = (function (exports) {
494
476
  }
495
477
  }
496
478
  }
497
- /** version: 2.43.0 */
479
+ /** version: 2.44.0 */
498
480
 
499
481
  /*
500
482
  * Copyright (c) 2018, salesforce.com, inc.
@@ -937,101 +919,6 @@ var LWC = (function (exports) {
937
919
  'tabIndex',
938
920
  'title',
939
921
  ];
940
- function offsetPropertyErrorMessage(name) {
941
- return `Using the \`${name}\` property is an anti-pattern because it rounds the value to an integer. Instead, use the \`getBoundingClientRect\` method to obtain fractional values for the size of an element and its position relative to the viewport.`;
942
- }
943
- // Global HTML Attributes & Properties
944
- // https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
945
- // https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement
946
- //
947
- // If you update this list, check for test files that recapitulate the same list. Searching the codebase
948
- // for e.g. "dropzone" should suffice.
949
- const globalHTMLProperties = {
950
- accessKey: {
951
- attribute: 'accesskey',
952
- },
953
- accessKeyLabel: {
954
- readOnly: true,
955
- },
956
- className: {
957
- attribute: 'class',
958
- error: 'Using the `className` property is an anti-pattern because of slow runtime behavior and potential conflicts with classes provided by the owner element. Use the `classList` API instead.',
959
- },
960
- contentEditable: {
961
- attribute: 'contenteditable',
962
- },
963
- dataset: {
964
- readOnly: true,
965
- error: "Using the `dataset` property is an anti-pattern because it can't be statically analyzed. Expose each property individually using the `@api` decorator instead.",
966
- },
967
- dir: {
968
- attribute: 'dir',
969
- },
970
- draggable: {
971
- attribute: 'draggable',
972
- },
973
- dropzone: {
974
- attribute: 'dropzone',
975
- readOnly: true,
976
- },
977
- hidden: {
978
- attribute: 'hidden',
979
- },
980
- id: {
981
- attribute: 'id',
982
- },
983
- inputMode: {
984
- attribute: 'inputmode',
985
- },
986
- lang: {
987
- attribute: 'lang',
988
- },
989
- slot: {
990
- attribute: 'slot',
991
- error: 'Using the `slot` property is an anti-pattern.',
992
- },
993
- spellcheck: {
994
- attribute: 'spellcheck',
995
- },
996
- style: {
997
- attribute: 'style',
998
- },
999
- tabIndex: {
1000
- attribute: 'tabindex',
1001
- },
1002
- title: {
1003
- attribute: 'title',
1004
- },
1005
- translate: {
1006
- attribute: 'translate',
1007
- },
1008
- // additional "global attributes" that are not present in the link above.
1009
- isContentEditable: {
1010
- readOnly: true,
1011
- },
1012
- offsetHeight: {
1013
- readOnly: true,
1014
- error: offsetPropertyErrorMessage('offsetHeight'),
1015
- },
1016
- offsetLeft: {
1017
- readOnly: true,
1018
- error: offsetPropertyErrorMessage('offsetLeft'),
1019
- },
1020
- offsetParent: {
1021
- readOnly: true,
1022
- },
1023
- offsetTop: {
1024
- readOnly: true,
1025
- error: offsetPropertyErrorMessage('offsetTop'),
1026
- },
1027
- offsetWidth: {
1028
- readOnly: true,
1029
- error: offsetPropertyErrorMessage('offsetWidth'),
1030
- },
1031
- role: {
1032
- attribute: 'role',
1033
- },
1034
- };
1035
922
  let controlledElement = null;
1036
923
  let controlledAttributeName;
1037
924
  function isAttributeLocked(elm, attrName) {
@@ -1216,8 +1103,7 @@ var LWC = (function (exports) {
1216
1103
  }),
1217
1104
  addEventListener: generateDataDescriptor({
1218
1105
  value(type, listener, options) {
1219
- // TODO [#420]: this is triggered when the component author attempts to add a listener
1220
- // programmatically into its Component's shadow root
1106
+ // TODO [#1824]: Potentially relax this restriction
1221
1107
  if (!isUndefined$1(options)) {
1222
1108
  logError('The `addEventListener` method on ShadowRoot does not support any options.', getAssociatedVMIfPresent(this));
1223
1109
  }
@@ -1263,8 +1149,7 @@ var LWC = (function (exports) {
1263
1149
  }),
1264
1150
  addEventListener: generateDataDescriptor({
1265
1151
  value(type, listener, options) {
1266
- // TODO [#420]: this is triggered when the component author attempts to add a listener
1267
- // programmatically into a lighting element node
1152
+ // TODO [#1824]: Potentially relax this restriction
1268
1153
  if (!isUndefined$1(options)) {
1269
1154
  logError('The `addEventListener` method in `LightningElement` does not support any options.', getAssociatedVMIfPresent(this));
1270
1155
  }
@@ -1292,7 +1177,7 @@ var LWC = (function (exports) {
1292
1177
  function getLightningElementPrototypeRestrictionsDescriptors(proto) {
1293
1178
  assertNotProd(); // this method should never leak to prod
1294
1179
  const originalDispatchEvent = proto.dispatchEvent;
1295
- const descriptors = {
1180
+ return {
1296
1181
  dispatchEvent: generateDataDescriptor({
1297
1182
  value(event) {
1298
1183
  const vm = getAssociatedVM(this);
@@ -1310,32 +1195,6 @@ var LWC = (function (exports) {
1310
1195
  },
1311
1196
  }),
1312
1197
  };
1313
- forEach.call(getOwnPropertyNames$1(globalHTMLProperties), (propName) => {
1314
- if (propName in proto) {
1315
- return; // no need to redefine something that we are already exposing
1316
- }
1317
- descriptors[propName] = generateAccessorDescriptor({
1318
- get() {
1319
- const { error, attribute } = globalHTMLProperties[propName];
1320
- const msg = [];
1321
- msg.push(`Accessing the global HTML property "${propName}" is disabled.`);
1322
- if (error) {
1323
- msg.push(error);
1324
- }
1325
- else if (attribute) {
1326
- msg.push(`Instead access it via \`this.getAttribute("${attribute}")\`.`);
1327
- }
1328
- logError(msg.join('\n'), getAssociatedVM(this));
1329
- },
1330
- set() {
1331
- const { readOnly } = globalHTMLProperties[propName];
1332
- if (readOnly) {
1333
- logError(`The global HTML property \`${propName}\` is read-only.`, getAssociatedVM(this));
1334
- }
1335
- },
1336
- });
1337
- });
1338
- return descriptors;
1339
1198
  }
1340
1199
  // This routine will prevent access to certain properties on a shadow root instance to guarantee
1341
1200
  // that all components will work fine in IE11 and other browsers without shadow dom support.
@@ -2686,12 +2545,7 @@ var LWC = (function (exports) {
2686
2545
  }
2687
2546
  function createPublicAccessorDescriptor(key, descriptor) {
2688
2547
  const { get, set, enumerable, configurable } = descriptor;
2689
- if (!isFunction$1(get)) {
2690
- if (process.env.NODE_ENV !== 'production') {
2691
- assert.invariant(isFunction$1(get), `Invalid compiler output for public accessor ${toString$1(key)} decorated with @api`);
2692
- }
2693
- throw new Error();
2694
- }
2548
+ assert.invariant(isFunction$1(get), `Invalid public accessor ${toString$1(key)} decorated with @api. The property is missing a getter.`);
2695
2549
  return {
2696
2550
  get() {
2697
2551
  if (process.env.NODE_ENV !== 'production') {
@@ -2813,64 +2667,64 @@ var LWC = (function (exports) {
2813
2667
  }
2814
2668
  }
2815
2669
  function validateObservedField(Ctor, fieldName, descriptor) {
2670
+ assertNotProd(); // this method should never leak to prod
2816
2671
  if (!isUndefined$1(descriptor)) {
2817
2672
  const type = getClassDescriptorType(descriptor);
2818
2673
  const message = `Invalid observed ${fieldName} field. Found a duplicate ${type} with the same name.`;
2819
- // [W-9927596] Ideally we always throw an error when detecting duplicate observed field.
2820
- // This branch is only here for backward compatibility reasons.
2821
- if (type === "accessor" /* DescriptorType.Accessor */) {
2822
- logError(message);
2823
- }
2824
- else {
2825
- assert.fail(message);
2826
- }
2674
+ // TODO [#3408]: this should throw, not log
2675
+ logError(message);
2827
2676
  }
2828
2677
  }
2829
2678
  function validateFieldDecoratedWithTrack(Ctor, fieldName, descriptor) {
2679
+ assertNotProd(); // this method should never leak to prod
2830
2680
  if (!isUndefined$1(descriptor)) {
2831
2681
  const type = getClassDescriptorType(descriptor);
2832
- assert.fail(`Invalid @track ${fieldName} field. Found a duplicate ${type} with the same name.`);
2682
+ // TODO [#3408]: this should throw, not log
2683
+ logError(`Invalid @track ${fieldName} field. Found a duplicate ${type} with the same name.`);
2833
2684
  }
2834
2685
  }
2835
2686
  function validateFieldDecoratedWithWire(Ctor, fieldName, descriptor) {
2687
+ assertNotProd(); // this method should never leak to prod
2836
2688
  if (!isUndefined$1(descriptor)) {
2837
2689
  const type = getClassDescriptorType(descriptor);
2838
- assert.fail(`Invalid @wire ${fieldName} field. Found a duplicate ${type} with the same name.`);
2690
+ // TODO [#3408]: this should throw, not log
2691
+ logError(`Invalid @wire ${fieldName} field. Found a duplicate ${type} with the same name.`);
2839
2692
  }
2840
2693
  }
2841
2694
  function validateMethodDecoratedWithWire(Ctor, methodName, descriptor) {
2695
+ assertNotProd(); // this method should never leak to prod
2842
2696
  if (isUndefined$1(descriptor) || !isFunction$1(descriptor.value) || isFalse(descriptor.writable)) {
2843
- assert.fail(`Invalid @wire ${methodName} method.`);
2697
+ // TODO [#3441]: This line of code does not seem possible to reach.
2698
+ logError(`Invalid @wire ${methodName} field. The field should have a valid writable descriptor.`);
2844
2699
  }
2845
2700
  }
2846
2701
  function validateFieldDecoratedWithApi(Ctor, fieldName, descriptor) {
2702
+ assertNotProd(); // this method should never leak to prod
2847
2703
  if (!isUndefined$1(descriptor)) {
2848
2704
  const type = getClassDescriptorType(descriptor);
2849
2705
  const message = `Invalid @api ${fieldName} field. Found a duplicate ${type} with the same name.`;
2850
- // [W-9927596] Ideally we always throw an error when detecting duplicate public properties.
2851
- // This branch is only here for backward compatibility reasons.
2852
- if (type === "accessor" /* DescriptorType.Accessor */) {
2853
- logError(message);
2854
- }
2855
- else {
2856
- assert.fail(message);
2857
- }
2706
+ // TODO [#3408]: this should throw, not log
2707
+ logError(message);
2858
2708
  }
2859
2709
  }
2860
2710
  function validateAccessorDecoratedWithApi(Ctor, fieldName, descriptor) {
2861
- if (isUndefined$1(descriptor)) {
2862
- assert.fail(`Invalid @api get ${fieldName} accessor.`);
2863
- }
2864
- else if (isFunction$1(descriptor.set)) {
2865
- assert.isTrue(isFunction$1(descriptor.get), `Missing getter for property ${fieldName} decorated with @api in ${Ctor}. You cannot have a setter without the corresponding getter.`);
2711
+ assertNotProd(); // this method should never leak to prod
2712
+ if (isFunction$1(descriptor.set)) {
2713
+ if (!isFunction$1(descriptor.get)) {
2714
+ // TODO [#3441]: This line of code does not seem possible to reach.
2715
+ logError(`Missing getter for property ${fieldName} decorated with @api in ${Ctor}. You cannot have a setter without the corresponding getter.`);
2716
+ }
2866
2717
  }
2867
2718
  else if (!isFunction$1(descriptor.get)) {
2868
- assert.fail(`Missing @api get ${fieldName} accessor.`);
2719
+ // TODO [#3441]: This line of code does not seem possible to reach.
2720
+ logError(`Missing @api get ${fieldName} accessor.`);
2869
2721
  }
2870
2722
  }
2871
2723
  function validateMethodDecoratedWithApi(Ctor, methodName, descriptor) {
2724
+ assertNotProd(); // this method should never leak to prod
2872
2725
  if (isUndefined$1(descriptor) || !isFunction$1(descriptor.value) || isFalse(descriptor.writable)) {
2873
- assert.fail(`Invalid @api ${methodName} method.`);
2726
+ // TODO [#3441]: This line of code does not seem possible to reach.
2727
+ logError(`Invalid @api ${methodName} method.`);
2874
2728
  }
2875
2729
  }
2876
2730
  /**
@@ -2893,13 +2747,14 @@ var LWC = (function (exports) {
2893
2747
  apiFieldsConfig[fieldName] = propConfig.config;
2894
2748
  descriptor = getOwnPropertyDescriptor$1(proto, fieldName);
2895
2749
  if (propConfig.config > 0) {
2750
+ if (isUndefined$1(descriptor)) {
2751
+ // TODO [#3441]: This line of code does not seem possible to reach.
2752
+ throw new Error();
2753
+ }
2896
2754
  // accessor declaration
2897
2755
  if (process.env.NODE_ENV !== 'production') {
2898
2756
  validateAccessorDecoratedWithApi(Ctor, fieldName, descriptor);
2899
2757
  }
2900
- if (isUndefined$1(descriptor)) {
2901
- throw new Error();
2902
- }
2903
2758
  descriptor = createPublicAccessorDescriptor(fieldName, descriptor);
2904
2759
  }
2905
2760
  else {
@@ -2939,7 +2794,10 @@ var LWC = (function (exports) {
2939
2794
  descriptor = getOwnPropertyDescriptor$1(proto, fieldOrMethodName);
2940
2795
  if (method === 1) {
2941
2796
  if (process.env.NODE_ENV !== 'production') {
2942
- assert.isTrue(adapter, `@wire on method "${fieldOrMethodName}": adapter id must be truthy.`);
2797
+ if (!adapter) {
2798
+ // TODO [#3408]: this should throw, not log
2799
+ logError(`@wire on method "${fieldOrMethodName}": adapter id must be truthy.`);
2800
+ }
2943
2801
  validateMethodDecoratedWithWire(Ctor, fieldOrMethodName, descriptor);
2944
2802
  }
2945
2803
  if (isUndefined$1(descriptor)) {
@@ -2950,7 +2808,10 @@ var LWC = (function (exports) {
2950
2808
  }
2951
2809
  else {
2952
2810
  if (process.env.NODE_ENV !== 'production') {
2953
- assert.isTrue(adapter, `@wire on field "${fieldOrMethodName}": adapter id must be truthy.`);
2811
+ if (!adapter) {
2812
+ // TODO [#3408]: this should throw, not log
2813
+ logError(`@wire on field "${fieldOrMethodName}": adapter id must be truthy.`);
2814
+ }
2954
2815
  validateFieldDecoratedWithWire(Ctor, fieldOrMethodName, descriptor);
2955
2816
  }
2956
2817
  descriptor = internalWireFieldDecorator(fieldOrMethodName);
@@ -6825,8 +6686,6 @@ var LWC = (function (exports) {
6825
6686
  return renderer.nextSibling(hydratedNode);
6826
6687
  }
6827
6688
  const NODE_VALUE_PROP = 'nodeValue';
6828
- const PARENT_NODE_PROP = 'parentNode';
6829
- const TAG_NAME_PROP = 'tagName';
6830
6689
  function textNodeContentsAreEqual(node, vnode, renderer) {
6831
6690
  const { getProperty } = renderer;
6832
6691
  const nodeValue = getProperty(node, NODE_VALUE_PROP);
@@ -6838,22 +6697,6 @@ var LWC = (function (exports) {
6838
6697
  if (nodeValue === '\u200D' && vnode.text === '') {
6839
6698
  return true;
6840
6699
  }
6841
- // Special case for text nodes inside `<style>` tags – these are escaped when rendered server-size,
6842
- // but not when generated by the engine client-side.
6843
- const parentNode = getProperty(node, PARENT_NODE_PROP);
6844
- // Should never be null, but just to be safe, we check.
6845
- /* istanbul ignore else */
6846
- if (!isNull(parentNode)) {
6847
- const tagName = getProperty(parentNode, TAG_NAME_PROP);
6848
- // If the tagName is STYLE, then the following condition should always be true.
6849
- // The LWC compiler blocks using `<style>`s inside of templates, so it should be impossible
6850
- // for component authors to render different `<style>` text content on the client and server.
6851
- // But just to be safe, we check.
6852
- /* istanbul ignore next */
6853
- if (tagName === 'STYLE' && htmlEscape(vnode.text) === nodeValue) {
6854
- return true;
6855
- }
6856
- }
6857
6700
  return false;
6858
6701
  }
6859
6702
  function hydrateText(node, vnode, renderer) {
@@ -7479,12 +7322,12 @@ var LWC = (function (exports) {
7479
7322
  if (process.env.NODE_ENV !== 'production') {
7480
7323
  // TODO [#1292]: Remove the readonly decorator
7481
7324
  if (arguments.length !== 1) {
7482
- assert.fail('@readonly cannot be used as a decorator just yet, use it as a function with one argument to produce a readonly version of the provided value.');
7325
+ logError('@readonly cannot be used as a decorator just yet, use it as a function with one argument to produce a readonly version of the provided value.');
7483
7326
  }
7484
7327
  }
7485
7328
  return getReadOnlyProxy(obj);
7486
7329
  }
7487
- /* version: 2.43.0 */
7330
+ /* version: 2.44.0 */
7488
7331
 
7489
7332
  /*
7490
7333
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7912,7 +7755,7 @@ var LWC = (function (exports) {
7912
7755
  function isNull(obj) {
7913
7756
  return obj === null;
7914
7757
  }
7915
- /** version: 2.43.0 */
7758
+ /** version: 2.44.0 */
7916
7759
 
7917
7760
  /*
7918
7761
  * Copyright (c) 2023, salesforce.com, inc.
@@ -8531,7 +8374,7 @@ var LWC = (function (exports) {
8531
8374
  });
8532
8375
  }));
8533
8376
  }
8534
- /* version: 2.43.0 */
8377
+ /* version: 2.44.0 */
8535
8378
 
8536
8379
  exports.LightningElement = LightningElement;
8537
8380
  exports.__unstable__ProfilerControl = profilerControl;