@lightningjs/blits 0.5.4 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ # v0.5.5
4
+
5
+ _5 dec 2023_
6
+
7
+ - Fixed regression in Slots functionality caused by forloop cleanup fix in 0.5.4
8
+
3
9
  # v0.5.4
4
10
 
5
11
  _5 dec 2023_
@@ -31,6 +31,6 @@
31
31
  "vite": "^4.0.4"
32
32
  },
33
33
  "dependencies": {
34
- "@lightningjs/blits": "^0.5.4"
34
+ "@lightningjs/blits": "^0.5.5"
35
35
  }
36
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.cjs",
6
6
  "exports": {
package/src/element.js CHANGED
@@ -78,7 +78,7 @@ const transformations = {
78
78
  Object.entries(props.color).forEach((color) => {
79
79
  props[map[color[0]]] = colors.normalize(color[1])
80
80
  })
81
- delete props.mount
81
+ delete props.color
82
82
  } else {
83
83
  props.color = colors.normalize(props.color)
84
84
  }
@@ -93,7 +93,7 @@ const generateElementCode = function (
93
93
  renderCode.push(`
94
94
  if(typeof cmp${counter} !== 'undefined') {
95
95
  for(key in cmp${counter}.config.props) {
96
- delete elementConfig${counter}[cmp${counter}.config.props[key]]
96
+ delete elementConfig${counter}[cmp${counter}.config.props[key]]
97
97
  }
98
98
  }
99
99
  `)
@@ -182,6 +182,7 @@ const generateComponentCode = function (
182
182
  `)
183
183
 
184
184
  if (children) {
185
+ counter++
185
186
  generateElementCode.call(this, { children }, false, { ...options })
186
187
  }
187
188
  }