@lightningjs/blits
Advanced tools
Comparing version 0.5.3 to 0.5.4
@@ -34,4 +34,4 @@ { | ||
"dependencies": { | ||
"@lightningjs/blits": "^0.5.3" | ||
"@lightningjs/blits": "^0.5.4" | ||
} | ||
} |
# Changelog | ||
# v0.5.4 | ||
_5 dec 2023_ | ||
- Fixed issue with Components and Elements not always being cleaned up in forloop | ||
- Added support for nested children inside a forloop on an Element | ||
# v0.5.3 | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@lightningjs/blits", | ||
"version": "0.5.3", | ||
"version": "0.5.4", | ||
"description": "Blits: The Lightning 3 App Development Framework", | ||
@@ -5,0 +5,0 @@ "bin": "bin/index.cjs", |
@@ -109,3 +109,3 @@ /* | ||
if (children) { | ||
generateCode.call(this, { children }, `elms[${counter}]`) | ||
generateCode.call(this, { children }, `${elm}`, options) | ||
} | ||
@@ -185,3 +185,2 @@ } | ||
counter++ | ||
if (children) { | ||
@@ -222,2 +221,3 @@ generateElementCode.call(this, { children }, false, { ...options }) | ||
parent = ${parent} | ||
if(!component.key) keys.length = 0 | ||
const scope = Object.assign(component, { | ||
@@ -270,3 +270,3 @@ key: Math.random(), | ||
const generateCode = function (templateObject, parent = false) { | ||
const generateCode = function (templateObject, parent = false, options = {}) { | ||
templateObject.children && | ||
@@ -280,5 +280,5 @@ templateObject.children.forEach((childTemplateObject) => { | ||
if (childTemplateObject.type === 'Element' || childTemplateObject.type === 'Slot') { | ||
generateElementCode.call(this, childTemplateObject, parent) | ||
generateElementCode.call(this, childTemplateObject, parent, options) | ||
} else { | ||
generateComponentCode.call(this, childTemplateObject, parent) | ||
generateComponentCode.call(this, childTemplateObject, parent, options) | ||
} | ||
@@ -285,0 +285,0 @@ } |
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
907158