@lightningjs/blits 1.18.0 → 1.18.1

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
+ ## v1.18.1
4
+
5
+ _27 jan 2025_
6
+
7
+ - Fixed issue with navigating back to a router page with `keepalive=true`
8
+
3
9
  ## v1.18.0
4
10
 
5
11
  _27 jan 2025_
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.js",
6
6
  "exports": {
@@ -107,14 +107,12 @@ const reactiveProxy = (original, _parent = null, _key, global) => {
107
107
  : oldRawValue === rawValue
108
108
 
109
109
  if (isEqual === false) {
110
- if (Array.isArray(value) === true) {
111
- value = getRaw(value).slice(0)
112
- } else if (
113
- typeof value === 'object' &&
114
- target[key] !== null &&
115
- Array.isArray(target) === false
116
- ) {
117
- value = Object.assign(receiver[key], value)
110
+ if(typeof value === 'object') {
111
+ if (Array.isArray(value) === true) {
112
+ value = getRaw(value).slice(0)
113
+ } else if(target[key] !== null && target[key] !== undefined && Object.getPrototypeOf(value) === Object.prototype) {
114
+ value = Object.assign(receiver[key], value)
115
+ }
118
116
  }
119
117
  result = Reflect.set(target, key, value, receiver)
120
118
  }