@luvio/lwc-luvio 0.158.3 → 0.158.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/dist/lwcluvio.js +48 -1
- package/package.json +7 -7
package/dist/lwcluvio.js
CHANGED
|
@@ -358,6 +358,53 @@ function createWireAdapterConstructor(adapter, name, luvio) {
|
|
|
358
358
|
return constructor;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
+
/**
|
|
362
|
+
* Simple deep equality comparison for configuration objects.
|
|
363
|
+
* Handles primitives, arrays, and plain objects.
|
|
364
|
+
*/
|
|
365
|
+
function deepEquals(a, b) {
|
|
366
|
+
if (a === b) {
|
|
367
|
+
return true;
|
|
368
|
+
}
|
|
369
|
+
if (a === null || a === undefined || b === null || b === undefined) {
|
|
370
|
+
return a === b;
|
|
371
|
+
}
|
|
372
|
+
if (typeof a !== typeof b) {
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
375
|
+
if (typeof a !== 'object') {
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
if (Array.isArray(a) !== Array.isArray(b)) {
|
|
379
|
+
return false;
|
|
380
|
+
}
|
|
381
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
382
|
+
if (a.length !== b.length) {
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
for (let i = 0; i < a.length; i++) {
|
|
386
|
+
if (!deepEquals(a[i], b[i])) {
|
|
387
|
+
return false;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return true;
|
|
391
|
+
}
|
|
392
|
+
// Handle plain objects
|
|
393
|
+
const aKeys = Object.keys(a);
|
|
394
|
+
const bKeys = Object.keys(b);
|
|
395
|
+
if (aKeys.length !== bKeys.length) {
|
|
396
|
+
return false;
|
|
397
|
+
}
|
|
398
|
+
for (const key of aKeys) {
|
|
399
|
+
if (!bKeys.includes(key)) {
|
|
400
|
+
return false;
|
|
401
|
+
}
|
|
402
|
+
if (!deepEquals(a[key], b[key])) {
|
|
403
|
+
return false;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return true;
|
|
407
|
+
}
|
|
361
408
|
class LWCInfinteScrollingLuvioWireAdapter extends LWCLuvioWireAdapter {
|
|
362
409
|
constructor(adapter, name, luvio, callback, sourceContext, paginationConfigParamNames) {
|
|
363
410
|
super(adapter, name, luvio, callback, sourceContext);
|
|
@@ -393,7 +440,7 @@ class LWCInfinteScrollingLuvioWireAdapter extends LWCLuvioWireAdapter {
|
|
|
393
440
|
var _a;
|
|
394
441
|
// If this is not a pagination param and its value has changed
|
|
395
442
|
return (!((_a = this.paginationConfigParamNames) === null || _a === void 0 ? void 0 : _a.includes(paramName)) &&
|
|
396
|
-
config[paramName]
|
|
443
|
+
!deepEquals(config[paramName], currentConfig === null || currentConfig === void 0 ? void 0 : currentConfig[paramName]));
|
|
397
444
|
});
|
|
398
445
|
if (hasNonPaginationParamChanged) {
|
|
399
446
|
this.connectTimestamp = Date.now();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luvio/lwc-luvio",
|
|
3
|
-
"version": "0.158.
|
|
3
|
+
"version": "0.158.5",
|
|
4
4
|
"description": "Lightning Web Component bindings for Luvio",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"watch": "yarn build --watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@luvio/engine": "^0.158.
|
|
32
|
+
"@luvio/engine": "^0.158.5"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@luvio/adapter-test-library": "^0.158.
|
|
36
|
-
"@luvio/cli": "^0.158.
|
|
35
|
+
"@luvio/adapter-test-library": "^0.158.5",
|
|
36
|
+
"@luvio/cli": "^0.158.5",
|
|
37
37
|
"@lwc/jest-preset": "18.1.0",
|
|
38
38
|
"jest-environment-jsdom": "^29.5.0"
|
|
39
39
|
},
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
{
|
|
45
45
|
"path": "./dist/lwcluvio.js",
|
|
46
46
|
"maxSize": {
|
|
47
|
-
"none": "
|
|
48
|
-
"min": "
|
|
49
|
-
"compressed": "4.
|
|
47
|
+
"none": "23 kB",
|
|
48
|
+
"min": "8.5 kB",
|
|
49
|
+
"compressed": "4.6 kB"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
],
|