@lightningjs/blits 1.38.1 → 1.38.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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.38.2
4
+
5
+ _1 Sept 2025_
6
+
7
+ - Fixed issue with `reuseComponent` storing the same page multiple times
8
+ - Fixed last array patch method (sort) not triggering reactivity
9
+
10
+
3
11
  ## v1.38.1
4
12
 
5
13
  _28 Aug 2025_
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "1.38.1",
3
+ "version": "1.38.2",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.js",
6
6
  "exports": {
@@ -155,7 +155,7 @@ const reactiveDefineProperty = (target, global) => {
155
155
  if (Object.getPrototypeOf(target[key]) === Object.prototype) {
156
156
  return reactiveDefineProperty(target[key])
157
157
  } else if (Array.isArray(target[key]) === true) {
158
- for (let i = 0; i < arrayPatchMethods.length - 1; i++) {
158
+ for (let i = 0; i < arrayPatchMethods.length; i++) {
159
159
  target[key][arrayPatchMethods[i]] = function (v) {
160
160
  Array.prototype[arrayPatchMethods[i]].call(this, v)
161
161
  trigger(target, key)
@@ -358,7 +358,9 @@ export const navigate = async function () {
358
358
  }
359
359
  }
360
360
 
361
- this[symbols.children].push(view)
361
+ if (reuse === false) {
362
+ this[symbols.children].push(view)
363
+ }
362
364
 
363
365
  // keep reference to the previous focus for storing in cache
364
366
  previousFocus = Focus.get()