@akinon/next 1.92.0-rc.40 → 1.92.0-rc.42

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,88 @@
1
1
  # @akinon/next
2
2
 
3
+ ## 1.92.0-rc.42
4
+
5
+ ### Minor Changes
6
+
7
+ - 5dfeea04: ZERO-2801: Revert ZERO-2801
8
+ - 823d82f9: ZERO-3393: Enhance error handling in checkout middleware to ensure errors are checked for existence before processing
9
+ - 28c7ea79: ZERO-3427: Refactor redirect utility to handle undefined URL and improve locale handling
10
+ - e1aa030d: ZERO-3473: Refactor locale handling to prioritize cookie value for matched locale
11
+ - 6e6b0a9e: ZERO-3422: Add pz-flow-payment package
12
+ - 63774a6a: ZERO-3351: Add commerce redirection ignore list functionality and related utility
13
+ - 2d9b2b2c: ZERO-2816: Add segment to headers
14
+ - 5e1feca6: Revert "ZERO-3286: Add notFound handling for chunk URLs starting with \_next"
15
+ - 40a46853: ZERO-3182: Optimize basket update mutation with optimistic update
16
+ - 68bbcb27: ZERO-3393: Fix error handling in checkout middleware to check for errors array length
17
+ - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
18
+ - b55acb76: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
19
+ - f49bb74f: ZERO-3097: Add setCookie to logging in payment redirection middlewares
20
+ - 0ad91bbd: ZERO-3489: Improve error handling in data fetching across multiple pages and server functions
21
+ - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
22
+ - e9541a13: ZERO-2816: Add headers to url
23
+ - 9b7d0de6: ZERO-3393: Improve error handling in checkout middleware to support both object and array error formats
24
+ - 72fd4d67: ZERO-3084: Fix URL search parameters encoding in default middleware
25
+ - c53ef7b95: 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.
26
+ - a8539c8c: ZERO-3439: Enhance locale handling in middleware and redirect utility
27
+ - 16aff543: ZERO-3431: Add test script for redirect utility in package.json
28
+ - 64699d3f: ZERO-2761: Fix invalid import for plugin module
29
+ - 9f8cd3bc: ZERO-3449: AI Search Active Filters & Crop Style changes have been implemented
30
+ - e974d8e8: ZERO-3406: Fix rc build
31
+ - 89ce46fc: ZERO-3493: return 404 status code for pz-not-found pages
32
+ - 7eb51ca9: ZERO-3424 :Update package versions
33
+ - c806fad7: ZERO-3422: Add Flow Payment plugin to the defined plugins list
34
+ - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
35
+ - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
36
+ - d552629f: ZERO-3182: Refactor basketApi to use invalidatesTags and comment out onQueryStarted logic
37
+ - 17f87524: ZERO-2816: Make the incoming currency lowercase
38
+ - 65d3b862: ZERO-3054: Update headers in appFetch
39
+ - 0abde6bb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
40
+ - 72ad7bb1: ZERO-3422: Add Flow Payment to the list of available plugins
41
+ - c39c7000: ZERO-3420: Refactor Modal component
42
+ - e7cd3a5e: ZERO-3435: Add Accept-Language to requestHeaders
43
+ - bbe18b9ff: ZERO-2575: Fix build error
44
+ - 17bfadc4: ZERO-3275: Disable OpenTelemetry monitoring in production environment
45
+ - 35dfb8f8: ZERO-3363: Refactor URL handling in checkout and redirection middlewares to use url.origin instead of process.env.NEXT_PUBLIC_URL
46
+ - 4920742c: Disable getCachedTranslations
47
+ - b6e5b624: ZERO-3257: Enhance locale middleware to redirect using existing or default locale and support 303 status for POST requests
48
+ - 0de55738: ZERO-3418: Update remotePatterns hostname to allow all subdomains
49
+ - 7e56d6b6: ZERO-2841: Update api tagTypes
50
+ - dfaceffd: ZERO-3356: Add useLoyaltyAvailability hook and update checkout state management
51
+ - 86642cfa: ZERO-3531: Add saveSampleProducts endpoint and update URLs in checkout
52
+ - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
53
+ - 9dc7298a: ZERO-3416: Refactor Accordion component to enhance props and improve styling flexibility
54
+ - 33377cfd: ZERO-3267: Refactor import statement for ROUTES in error-page component
55
+ - 43c182ee: ZERO-3054: Update Redis variable checks to conditionally include CACHE_SECRET
56
+ - c480272c: ZERO-3531: Refactor checkoutApi: Remove unnecessary invalidatesTags property from POST request from sample products
57
+ - b00a90b1: ZERO-3436: Preserve query params on redirect
58
+ - facf1ada: ZERO-3445: Add SameSite and Secure attributes
59
+ - 485e8ef8: ZERO-3422: Refactor parameter handling in wallet complete redirection middleware to use forEach
60
+ - eeb20bea: Revert "ZERO-3054: Refactor cache handler to use custom Redis handler and implement key hashing"
61
+ - 99b6e7b9: ZERO-3421: Enhance Sentry error handling by adding network error detection logic and refining initialization options
62
+ - 3bf63c8a: ZERO-3286: Add notFound handling for chunk URLs starting with \_next
63
+ - 9be2c081: ZERO-3243: Improve basket update query handling with optimistic updates
64
+ - f7fd459b: ZERO-3445: Refactor setCookie function to include domain handling and improve cookie string construction
65
+ - 4de5303c: ZERO-2504: add cookie filter to api client request
66
+ - dc678c31: ZERO-3523: Enhance redirect tests with dynamic locale handling and settings integration
67
+ - f2c92d5c: ZERO-2816: Update cookie name
68
+ - a420947d: ZERO-3517: Fix optional chaining for rawData in error logging for category data handlers
69
+ - 7bd3d992: ZERO-2801: Refactor locale middleware to handle single locale configuration
70
+ - acd2afdf: ZERO-3431: Fix import statement for findBaseDir in next-config test
71
+ - 2d3f1788: ZERO-3417: Enhance FileInput component with additional props for customization
72
+ - fdd255ee: ZERO-3054: Refactor cache handler to use custom Redis handler and implement key hashing
73
+ - b434ac89: ZERO-3545: Update fetchCheckout API URL to include page parameter
74
+ - 49eeebfa: ZERO-2909: Add deleteCollectionItem query to wishlistApi
75
+ - 3f9b8d7e: ZERO-2761: Update plugins.js for akinon-next
76
+ - fee608dd: ZERO-3422: Refactor body handling in wallet complete redirection middleware
77
+ - cbdb5c14: ZERO-3448: fix set cookie domain handling for subdomain locale strategy
78
+ - 0e823010: ZERO-3531: Add saveSampleProducts endpoint
79
+
80
+ ## 1.92.0-rc.41
81
+
82
+ ### Minor Changes
83
+
84
+ - b434ac89: ZERO-3545: Update fetchCheckout API URL to include page parameter
85
+
3
86
  ## 1.92.0-rc.40
4
87
 
5
88
  ### Minor Changes
@@ -183,7 +183,10 @@ export const checkoutApi = api.injectEndpoints({
183
183
  endpoints: (build) => ({
184
184
  fetchCheckout: build.query<CheckoutResponse, void>({
185
185
  query: () => ({
186
- url: buildClientRequestUrl(checkout.fetchCheckout, {})
186
+ url: buildClientRequestUrl(
187
+ `${checkout.fetchCheckout}?page=IndexPage`,
188
+ {}
189
+ )
187
190
  }),
188
191
  providesTags: ['Checkout']
189
192
  }),
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.92.0-rc.40",
4
+ "version": "1.92.0-rc.42",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -34,7 +34,7 @@
34
34
  "set-cookie-parser": "2.6.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@akinon/eslint-plugin-projectzero": "1.92.0-rc.40",
37
+ "@akinon/eslint-plugin-projectzero": "1.92.0-rc.42",
38
38
  "@babel/core": "7.26.10",
39
39
  "@babel/preset-env": "7.26.9",
40
40
  "@babel/preset-typescript": "7.27.0",