@akinon/next 1.45.0-rc.3 → 1.45.0-rc.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/CHANGELOG.md CHANGED
@@ -1,5 +1,63 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.45.0-rc.5
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
+ - a4c8d6a9: 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
+ - 70279e7: ZERO-2817: Add metrics endpoint in default middleware
15
+ - 6c25f66: ZERO-2551: Check CACHE_HOST variable
16
+ - bc2b411: ZERO-2825: Add attribute-based shipping options to checkout page
17
+ - 3bf2dd9: ZERO-2551: Fix search page
18
+ - e9541a1: ZERO-2816: Add headers to url
19
+ - c53ef7b9: 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.
20
+ - 9d94f7e: ZERO-2820: update parent pk usage for menu generator
21
+ - 64699d3: ZERO-2761: Fix invalid import for plugin module
22
+ - 0d3a913: ZERO-2725: Update decimal scale in Price component
23
+ - 1448a96e: ZERO-2612: add errors type in CheckoutState
24
+ - d6edb1d: ZERO-2551: Fix searchparams handling for list and other routes
25
+ - d3474c6: ZERO-2655: Add data source shipping option
26
+ - 75080fd6: ZERO-2630: Add max limit to postcode area
27
+ - 17f8752: ZERO-2816: Make the incoming currency lowercase
28
+ - c45b62c: ZERO-2818: Add upload and download support for b2b package
29
+ - 91265bba: ZERO-2551: Improve pretty url and caching performance
30
+ - bbe18b9f: ZERO-2575: Fix build error
31
+ - d409996: ZERO-2781: Refactor buildClientRequestUrl function to support caching and options
32
+ - 4920742: Disable getCachedTranslations
33
+ - 7e56d6b: ZERO-2841: Update api tagTypes
34
+ - 94b6928: ZERO-2551: Add cache handler check in url-redirection middleware
35
+ - 98bb8dc: ZERO-2706: Cache getTranlations method
36
+ - 46b7aad: ZERO-2775: Add condition and logger for menuitemmodel data
37
+ - dcc8a15: ZERO-2694: added build step to RC branch pipeline
38
+ - 8f47cca: ZERO-2829: fix and add nested JSON support for useFormData in api/client route
39
+ - fad2768: ZERO-2739: add gpay to payment plugin map
40
+ - dff0d595: ZERO-2659: add formData support to proxy api requests
41
+ - eecb282: ZERO-2607: Update address-related functions to include invalidateTag option
42
+ - f2c325c: ZERO-2838: Move file input component into @akinon/next
43
+ - 9e25a64: ZERO-2835: Update category page layout with breadcrumb
44
+ - beb499e6: ZERO-2551: Add new tsconfig paths
45
+ - 948eb42: ZERO-2852: Add out of stock endpoints
46
+ - 146ea39: ZERO-2774: Update imports
47
+ - f2c92d5: ZERO-2816: Update cookie name
48
+ - 7bd3d99: ZERO-2801: Refactor locale middleware to handle single locale configuration
49
+ - c47be30: ZERO-2744: Update Order and OrderItem types
50
+ - e9a46ac: ZERO-2738: add CVC input to registered cards in Masterpass
51
+ - f046f8e0: ZERO-2575: update version for react-number-format
52
+ - 86d2531: ZERO-2693: resolve dependency collision warning for eslint-config-next
53
+ - 3f9b8d7: ZERO-2761: Update plugins.js for akinon-next
54
+
55
+ ## 1.45.0-rc.4
56
+
57
+ ### Minor Changes
58
+
59
+ - 8f47cca: ZERO-2829: fix and add nested JSON support for useFormData in api/client route
60
+
3
61
  ## 1.45.0-rc.3
4
62
 
5
63
  ### Minor Changes
package/api/client.ts CHANGED
@@ -93,7 +93,9 @@ async function proxyRequest(...args) {
93
93
  fetchOptions.headers['Content-Type'] = options.contentType;
94
94
  }
95
95
 
96
- const isMultipartFormData = req.headers.get('content-type')?.includes('multipart/form-data;');
96
+ const isMultipartFormData = req.headers
97
+ .get('content-type')
98
+ ?.includes('multipart/form-data;');
97
99
 
98
100
  if (req.method !== 'GET') {
99
101
  let body: Record<string, any> | FormData = {};
@@ -117,7 +119,11 @@ async function proxyRequest(...args) {
117
119
 
118
120
  Object.keys(body ?? {}).forEach((key) => {
119
121
  if (body[key]) {
120
- formData.append(key, body[key]);
122
+ if (typeof body[key] === 'object' && body[key] !== null) {
123
+ formData.append(key, JSON.stringify(body[key]));
124
+ } else {
125
+ formData.append(key, body[key]);
126
+ }
121
127
  }
122
128
  });
123
129
 
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.45.0-rc.3",
4
+ "version": "1.45.0-rc.5",
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.45.0-rc.3",
33
+ "@akinon/eslint-plugin-projectzero": "1.45.0-rc.5",
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",