@coherent.js/core 1.0.0-rc.3 → 1.0.0-rc.5

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.js CHANGED
@@ -2101,6 +2101,16 @@ var HTMLRenderer = class extends BaseRenderer {
2101
2101
  const { children, text, key: _key, html: _rawHtml, ...attributes } = element || {};
2102
2102
  const attributeString = formatAttributes(attributes);
2103
2103
  const openingTag = attributeString ? `<${tagName} ${attributeString}>` : `<${tagName}>`;
2104
+ if (isVoidElement(tagName)) {
2105
+ if (options.enableCache && this.cache && RendererUtils.isCacheable(element, options)) {
2106
+ const cacheKey = RendererUtils.generateCacheKey(tagName, element);
2107
+ if (cacheKey) {
2108
+ this.cache.set(cacheKey, openingTag);
2109
+ }
2110
+ }
2111
+ this.recordPerformance(tagName, startTime, false);
2112
+ return openingTag;
2113
+ }
2104
2114
  if (_rawHtml !== void 0) {
2105
2115
  const rawContent = typeof _rawHtml === "function" ? String(_rawHtml()) : String(_rawHtml);
2106
2116
  const result = `${openingTag}${rawContent}</${tagName}>`;
@@ -6407,7 +6417,7 @@ function deepClone2(obj) {
6407
6417
  }
6408
6418
  return cloned;
6409
6419
  }
6410
- var VERSION = "1.0.0-beta.8";
6420
+ var VERSION = true ? "1.0.0-rc.5" : JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8")).version;
6411
6421
  var fp = {
6412
6422
  /**
6413
6423
  * Curried map: fp.map(fn)(array)
@@ -6565,7 +6575,6 @@ export {
6565
6575
  * Coherent.js - Object-Based Rendering Framework
6566
6576
  * A pure JavaScript framework for server-side rendering using natural object syntax
6567
6577
  *
6568
- * @version 1.0.0-beta.8
6569
6578
  * @author Coherent Framework Team
6570
6579
  * @license MIT
6571
6580
  */