@lightningjs/blits 0.9.1 → 0.9.2

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.9.2
4
+
5
+ _21 mar 2024_
6
+
7
+ - Fixed issue with updates not triggering during array operation
8
+
3
9
  # v0.9.1
4
10
 
5
11
  _21 mar 2024_
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.js",
6
6
  "exports": {
@@ -219,7 +219,7 @@ const generateForLoopCode = function (templateObject, parent) {
219
219
 
220
220
  const forCounter = counter
221
221
  ctx.renderCode.push(`
222
- const collection = ${cast(result[2], ':for')}
222
+ const collection = ${cast(result[2], ':for')} || []
223
223
  const keys = []
224
224
  for(let __index = 0; __index < collection.length; __index++) {
225
225
  parent = ${parent}
@@ -55,8 +55,8 @@ const reactiveProxy = (original, _parent = null, _key) => {
55
55
  // trigger a change on the parent object and the key
56
56
  // i.e. when pushing a new item to `obj.data`, _parent will equal `obj`
57
57
  // and _key will equal `data`
58
- trigger(_parent, _key)
59
58
  resumeTracking()
59
+ trigger(_parent, _key)
60
60
  return result
61
61
  }
62
62
  } else {