@akinon/next 1.43.0-rc.4 → 1.43.0-rc.6
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 +45 -0
- package/middlewares/default.ts +6 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @akinon/next
|
|
2
2
|
|
|
3
|
+
## 1.43.0-rc.6
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 90282b5: ZERO-2729: Audit packages for yarn and npm and also update app-template
|
|
8
|
+
- 572d2e8: ZERO-2667: Add iframe support for redirection payment methods
|
|
9
|
+
- a4c8d6a: ZERO-2663: Fix the image url for gif and svgs and return them without options
|
|
10
|
+
- fda5b92: ZERO-2725: fix invalid import
|
|
11
|
+
- 2d9b2b2: ZERO-2816: Add segment to headers
|
|
12
|
+
- c53ea3e: ZERO-2609: Reset additional form fields when selectedFormType is not company
|
|
13
|
+
- 8d9ac9a: ZERO-2794: Add field to order type
|
|
14
|
+
- e9541a1: ZERO-2816: Add headers to url
|
|
15
|
+
- c53ef7b: ZERO-2668: The Link component has been updated to improve the logic for handling href values. Previously, if the href was not a string or started with 'http', it would return the href as is. Now, if the href is not provided, it will default to '#' to prevent any potential errors. Additionally, if the href is a string and does not start with 'http', it will be formatted with the locale and pathname, based on the localeUrlStrategy and defaultLocaleValue. This ensures that the correct href is generated based on the localization settings.
|
|
16
|
+
- 64699d3: ZERO-2761: Fix invalid import for plugin module
|
|
17
|
+
- 0d3a913: ZERO-2725: Update decimal scale in Price component
|
|
18
|
+
- 1448a96: ZERO-2612: add errors type in CheckoutState
|
|
19
|
+
- d3474c6: ZERO-2655: Add data source shipping option
|
|
20
|
+
- 75080fd: ZERO-2630: Add max limit to postcode area
|
|
21
|
+
- 17f8752: ZERO-2816: Make the incoming currency lowercase
|
|
22
|
+
- 91265bb: ZERO-2551: Improve pretty url and caching performance
|
|
23
|
+
- bbe18b9: ZERO-2575: Fix build error
|
|
24
|
+
- d409996: ZERO-2781: Refactor buildClientRequestUrl function to support caching and options
|
|
25
|
+
- 94b6928: ZERO-2551: Add cache handler check in url-redirection middleware
|
|
26
|
+
- 98bb8dc: ZERO-2706: Cache getTranlations method
|
|
27
|
+
- 46b7aad: ZERO-2775: Add condition and logger for menuitemmodel data
|
|
28
|
+
- dcc8a15: ZERO-2694: added build step to RC branch pipeline
|
|
29
|
+
- fad2768: ZERO-2739: add gpay to payment plugin map
|
|
30
|
+
- dff0d59: ZERO-2659: add formData support to proxy api requests
|
|
31
|
+
- eecb282: ZERO-2607: Update address-related functions to include invalidateTag option
|
|
32
|
+
- 4a163f2: ZERO-2761: Add condition for basket summary
|
|
33
|
+
- beb499e: ZERO-2551: Add new tsconfig paths
|
|
34
|
+
- 146ea39: ZERO-2774: Update imports
|
|
35
|
+
- f2c92d5: ZERO-2816: Update cookie name
|
|
36
|
+
- c47be30: ZERO-2744: Update Order and OrderItem types
|
|
37
|
+
- e9a46ac: ZERO-2738: add CVC input to registered cards in Masterpass
|
|
38
|
+
- f046f8e: ZERO-2575: update version for react-number-format
|
|
39
|
+
- 86d2531: ZERO-2693: resolve dependency collision warning for eslint-config-next
|
|
40
|
+
- 3f9b8d7: ZERO-2761: Update plugins.js for akinon-next
|
|
41
|
+
|
|
42
|
+
## 1.43.0-rc.5
|
|
43
|
+
|
|
44
|
+
### Minor Changes
|
|
45
|
+
|
|
46
|
+
- 17f8752: ZERO-2816: Make the incoming currency lowercase
|
|
47
|
+
|
|
3
48
|
## 1.43.0-rc.4
|
|
4
49
|
|
|
5
50
|
### Minor Changes
|
package/middlewares/default.ts
CHANGED
|
@@ -85,7 +85,7 @@ const withPzDefault =
|
|
|
85
85
|
req.nextUrl.pathname.includes('/orders/checkout-with-token/')
|
|
86
86
|
) {
|
|
87
87
|
const segment = url.searchParams.get('segment');
|
|
88
|
-
const currency = url.searchParams.get('currency');
|
|
88
|
+
const currency = url.searchParams.get('currency')?.toLowerCase();
|
|
89
89
|
|
|
90
90
|
const headers = {};
|
|
91
91
|
|
|
@@ -114,7 +114,11 @@ const withPzDefault =
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
if (currency) {
|
|
117
|
-
response.cookies.set('pz-currency', currency
|
|
117
|
+
response.cookies.set('pz-currency', currency, {
|
|
118
|
+
sameSite: 'none',
|
|
119
|
+
secure: true,
|
|
120
|
+
expires: new Date(Date.now() + 1000 * 60 * 60 * 24 * 7) // 7 days
|
|
121
|
+
});
|
|
118
122
|
}
|
|
119
123
|
|
|
120
124
|
return response;
|
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.43.0-rc.
|
|
4
|
+
"version": "1.43.0-rc.6",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"set-cookie-parser": "2.6.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@akinon/eslint-plugin-projectzero": "1.43.0-rc.
|
|
33
|
+
"@akinon/eslint-plugin-projectzero": "1.43.0-rc.6",
|
|
34
34
|
"@types/react-redux": "7.1.30",
|
|
35
35
|
"@types/set-cookie-parser": "2.4.7",
|
|
36
36
|
"@typescript-eslint/eslint-plugin": "6.7.4",
|