lwc 2.43.0 → 2.45.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 +53 -231
  2. package/dist/engine-dom/esm/es2017/engine-dom.js.map +1 -1
  3. package/dist/engine-dom/iife/es2017/engine-dom.js +52 -231
  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 -28
  7. package/dist/engine-dom/iife/es2017/engine-dom_debug.js.map +1 -1
  8. package/dist/engine-dom/iife/es5/engine-dom.js +51 -232
  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 -27
  12. package/dist/engine-dom/iife/es5/engine-dom_debug.js.map +1 -1
  13. package/dist/engine-dom/umd/es2017/engine-dom.js +52 -231
  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 -28
  17. package/dist/engine-dom/umd/es2017/engine-dom_debug.js.map +1 -1
  18. package/dist/engine-dom/umd/es5/engine-dom.js +51 -232
  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 -27
  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 -203
  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 +103 -203
  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.45.0";
354
336
  const LWC_VERSION_COMMENT_REGEX = /\/\*LWC compiler v([\d.]+)\*\/\s*}/;
355
- /** version: 2.43.0 */
337
+ /** version: 2.45.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.45.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.45.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);
@@ -3756,15 +3617,6 @@ var LWC = (function (exports) {
3756
3617
  // the stylesheet, while internally, we have a replacement for it.
3757
3618
  stylesheet = getStyleOrSwappedStyle(stylesheet);
3758
3619
  }
3759
- // Check that this stylesheet was generated by our compiler
3760
- if (!isStylesheetRegistered(stylesheet)) {
3761
- if (process.env.NODE_ENV !== 'production') {
3762
- logWarnOnce(`TypeError: Unexpected LWC stylesheet content found for component <${vm.tagName.toLowerCase()}>.`);
3763
- }
3764
- report("UnexpectedStylesheetContent" /* ReportingEventId.UnexpectedStylesheetContent */, {
3765
- tagName: vm.tagName.toLowerCase(),
3766
- });
3767
- }
3768
3620
  const isScopedCss = stylesheet[KEY__SCOPED_CSS];
3769
3621
  if (lwcRuntimeFlags.DISABLE_LIGHT_DOM_UNSCOPED_CSS &&
3770
3622
  !isScopedCss &&
@@ -3885,18 +3737,6 @@ var LWC = (function (exports) {
3885
3737
  }
3886
3738
  return null;
3887
3739
  }
3888
- const signedStylesheetSet = new Set();
3889
- /**
3890
- * INTERNAL: This function can only be invoked by compiled code. The compiler
3891
- * will prevent this function from being imported by userland code.
3892
- */
3893
- function registerStylesheet(stylesheet) {
3894
- signedStylesheetSet.add(stylesheet);
3895
- return stylesheet;
3896
- }
3897
- function isStylesheetRegistered(stylesheet) {
3898
- return signedStylesheetSet.has(stylesheet);
3899
- }
3900
3740
 
3901
3741
  /*
3902
3742
  * Copyright (c) 2018, salesforce.com, inc.
@@ -6708,7 +6548,7 @@ var LWC = (function (exports) {
6708
6548
  const vm = findVM(elm);
6709
6549
  if (process.env.NODE_ENV !== 'production') {
6710
6550
  logWarnOnce(`Element <${elm.tagName.toLowerCase()}> ` +
6711
- (isUndefined$1(vm) ? '' : `owned by <${vm.tagName.toLowerCase()}> `) +
6551
+ (isUndefined$1(vm) ? '' : `owned by <${vm.elm.tagName.toLowerCase()}> `) +
6712
6552
  `uses non-standard property "${prop}". This will be removed in a future version of LWC. ` +
6713
6553
  `See https://sfdc.co/deprecated-aria`);
6714
6554
  }
@@ -6825,8 +6665,6 @@ var LWC = (function (exports) {
6825
6665
  return renderer.nextSibling(hydratedNode);
6826
6666
  }
6827
6667
  const NODE_VALUE_PROP = 'nodeValue';
6828
- const PARENT_NODE_PROP = 'parentNode';
6829
- const TAG_NAME_PROP = 'tagName';
6830
6668
  function textNodeContentsAreEqual(node, vnode, renderer) {
6831
6669
  const { getProperty } = renderer;
6832
6670
  const nodeValue = getProperty(node, NODE_VALUE_PROP);
@@ -6838,22 +6676,6 @@ var LWC = (function (exports) {
6838
6676
  if (nodeValue === '\u200D' && vnode.text === '') {
6839
6677
  return true;
6840
6678
  }
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
6679
  return false;
6858
6680
  }
6859
6681
  function hydrateText(node, vnode, renderer) {
@@ -7479,12 +7301,12 @@ var LWC = (function (exports) {
7479
7301
  if (process.env.NODE_ENV !== 'production') {
7480
7302
  // TODO [#1292]: Remove the readonly decorator
7481
7303
  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.');
7304
+ 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
7305
  }
7484
7306
  }
7485
7307
  return getReadOnlyProxy(obj);
7486
7308
  }
7487
- /* version: 2.43.0 */
7309
+ /* version: 2.45.0 */
7488
7310
 
7489
7311
  /*
7490
7312
  * Copyright (c) 2018, salesforce.com, inc.
@@ -7912,7 +7734,7 @@ var LWC = (function (exports) {
7912
7734
  function isNull(obj) {
7913
7735
  return obj === null;
7914
7736
  }
7915
- /** version: 2.43.0 */
7737
+ /** version: 2.45.0 */
7916
7738
 
7917
7739
  /*
7918
7740
  * Copyright (c) 2023, salesforce.com, inc.
@@ -8531,7 +8353,7 @@ var LWC = (function (exports) {
8531
8353
  });
8532
8354
  }));
8533
8355
  }
8534
- /* version: 2.43.0 */
8356
+ /* version: 2.45.0 */
8535
8357
 
8536
8358
  exports.LightningElement = LightningElement;
8537
8359
  exports.__unstable__ProfilerControl = profilerControl;
@@ -8552,7 +8374,6 @@ var LWC = (function (exports) {
8552
8374
  exports.register = register;
8553
8375
  exports.registerComponent = registerComponent;
8554
8376
  exports.registerDecorators = registerDecorators;
8555
- exports.registerStylesheet = registerStylesheet;
8556
8377
  exports.registerTemplate = registerTemplate;
8557
8378
  exports.renderer = renderer;
8558
8379
  exports.rendererFactory = rendererFactory;