@lightningjs/blits 1.16.0 → 1.16.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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## v1.16.1
4
+
5
+ _17 jan 2025_
6
+
7
+ - Fixed issue in certain browsers caused by route query params functionality (and optimized for performance)
8
+
9
+
3
10
  ## v1.16.0
4
11
 
5
12
  _16 jan 2025_
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightningjs/blits",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Blits: The Lightning 3 App Development Framework",
5
5
  "bin": "bin/index.js",
6
6
  "exports": {
@@ -156,16 +156,20 @@ export const navigate = async function () {
156
156
  holder.populate({})
157
157
  holder.set('w', '100%')
158
158
  holder.set('h', '100%')
159
+
160
+ const queryParamsData = {}
161
+ const queryParamsEntries = [...queryParams.entries()]
162
+ for (let i = 0; i < queryParamsEntries.length; i++) {
163
+ queryParamsData[queryParamsEntries[i][0]] = queryParamsEntries[i][1]
164
+ }
165
+
159
166
  // merge props with potential route params, navigation data and route data to be injected into the component instance
160
167
  const props = {
161
168
  ...this[symbols.props],
162
169
  ...route.params,
163
170
  ...navigationData,
164
171
  ...route.data,
165
- ...queryParams.entries().reduce((obj, item) => {
166
- obj[item[0]] = item[1]
167
- return obj
168
- }, {}),
172
+ ...queryParamsData,
169
173
  }
170
174
 
171
175
  view = await route.component({ props }, holder, this)