@akinon/next 1.110.0-snapshot-ZERO-3873-20251201162154 → 1.110.0-snapshot-ZERO-3875-barcin-20251229080751
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 +7 -7
- package/lib/cache-handler.mjs +11 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# @akinon/next
|
|
2
2
|
|
|
3
|
-
## 1.110.0-snapshot-ZERO-
|
|
3
|
+
## 1.110.0-snapshot-ZERO-3875-barcin-20251229080751
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
7
|
+
- fc752c9: ZERO-3795: Remove unnecessary redirection logic from payment middleware
|
|
8
|
+
- 7a5095a: ZERO-3873: Refactor redirection payment middleware to improve error handling and cookie management
|
|
9
|
+
- d2c0e75: ZERO-3684: Handle cross-origin iframe access in iframeURLChange function
|
|
10
10
|
- b55acb76: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
|
|
11
|
-
-
|
|
11
|
+
- 143be2b: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
|
|
12
12
|
- 9f8cd3bc: ZERO-3449: AI Search Active Filters & Crop Style changes have been implemented
|
|
13
|
-
-
|
|
14
|
-
-
|
|
13
|
+
- 757af4a: ZERO-3783: Update image remote patterns for security compliance
|
|
14
|
+
- d99a6a7: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
|
|
15
15
|
- 4de5303c: ZERO-2504: add cookie filter to api client request
|
|
16
16
|
|
|
17
17
|
## 1.110.0-rc.13
|
package/lib/cache-handler.mjs
CHANGED
|
@@ -463,6 +463,14 @@ CacheHandler.onCreation(async () => {
|
|
|
463
463
|
set: async (key, value, context) => {
|
|
464
464
|
const vKey = versionKey(key);
|
|
465
465
|
|
|
466
|
+
const stripTags = (val) => {
|
|
467
|
+
if (val && typeof val === 'object') {
|
|
468
|
+
const { tags, ...rest } = val;
|
|
469
|
+
return { ...rest, tags: [] };
|
|
470
|
+
}
|
|
471
|
+
return val;
|
|
472
|
+
};
|
|
473
|
+
|
|
466
474
|
let compressedValue;
|
|
467
475
|
let shouldUseCompressed = false;
|
|
468
476
|
|
|
@@ -482,12 +490,12 @@ CacheHandler.onCreation(async () => {
|
|
|
482
490
|
|
|
483
491
|
if (shouldUseCompressed) {
|
|
484
492
|
try {
|
|
485
|
-
await redisHandler.set(vKey, compressedValue, context);
|
|
493
|
+
await redisHandler.set(vKey, stripTags(compressedValue), context);
|
|
486
494
|
|
|
487
495
|
redisSetResult = { status: 'fulfilled' };
|
|
488
496
|
} catch (compressionError) {
|
|
489
497
|
try {
|
|
490
|
-
await redisHandler.set(vKey, value, context);
|
|
498
|
+
await redisHandler.set(vKey, stripTags(value), context);
|
|
491
499
|
|
|
492
500
|
redisSetResult = { status: 'fulfilled' };
|
|
493
501
|
} catch (fallbackError) {
|
|
@@ -496,7 +504,7 @@ CacheHandler.onCreation(async () => {
|
|
|
496
504
|
}
|
|
497
505
|
} else {
|
|
498
506
|
try {
|
|
499
|
-
await redisHandler.set(vKey, value, context);
|
|
507
|
+
await redisHandler.set(vKey, stripTags(value), context);
|
|
500
508
|
redisSetResult = { status: 'fulfilled' };
|
|
501
509
|
} catch (error) {
|
|
502
510
|
redisSetResult = { status: 'rejected', reason: error };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/next",
|
|
3
3
|
"description": "Core package for Project Zero Next",
|
|
4
|
-
"version": "1.110.0-snapshot-ZERO-
|
|
4
|
+
"version": "1.110.0-snapshot-ZERO-3875-barcin-20251229080751",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"set-cookie-parser": "2.6.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@akinon/eslint-plugin-projectzero": "1.110.0-snapshot-ZERO-
|
|
38
|
+
"@akinon/eslint-plugin-projectzero": "1.110.0-snapshot-ZERO-3875-barcin-20251229080751",
|
|
39
39
|
"@babel/core": "7.26.10",
|
|
40
40
|
"@babel/preset-env": "7.26.9",
|
|
41
41
|
"@babel/preset-typescript": "7.27.0",
|