@akinon/next 1.81.0-rc.9 → 1.82.0-rc.0

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,59 +1,17 @@
1
1
  # @akinon/next
2
2
 
3
- ## 1.81.0-rc.9
4
-
5
- ## 1.81.0-rc.8
6
-
7
- ### Minor Changes
8
-
9
- - 757ee539: ZERO-3207: Add SMS send & verify endpoints with state management
10
-
11
- ## 1.81.0-rc.7
3
+ ## 1.82.0-rc.0
12
4
 
13
5
  ### Minor Changes
14
6
 
15
7
  - 2e0b7ffd: ZERO-3226: Refactor checkoutApi to simplify request body structure by removing device_info parameter
16
-
17
- ## 1.81.0-rc.6
18
-
19
- ### Minor Changes
20
-
21
- - 40a46853: ZERO-3182: Optimize basket update mutation with optimistic update
22
-
23
- ## 1.81.0-rc.5
24
-
25
- ### Minor Changes
26
-
27
- - 2d2ab446: ZERO-3226: Add device_info param to WalletPaymentPage request
28
-
29
- ## 1.81.0-rc.4
30
-
31
- ### Minor Changes
32
-
33
- - 7d1b5af1: ZERO-3206: Encode search parameters in product data URL
34
-
35
- ## 1.81.0-rc.3
36
-
37
- ### Minor Changes
38
-
39
- - c0fef075: ZERO-3197: Refetch payment options after loyalty usage
40
-
41
- ## 1.81.0-rc.2
42
-
43
- ### Minor Changes
44
-
45
- - aa05ed79: ZERO-3170: Add commerceRedirectionIgnoreList to settings and update URL redirection middleware
46
-
47
- ## 1.81.0-rc.1
48
-
49
- ## 1.81.0-rc.0
50
-
51
- ### Minor Changes
52
-
8
+ - 757ee539: ZERO-3207: Add SMS send & verify endpoints with state management
53
9
  - 778aabf8: ZERO-3163: Add frontend ID header to authentication requests and forgot password mutation
10
+ - c0fef075: ZERO-3197: Refetch payment options after loyalty usage
54
11
  - 5dfeea04: ZERO-2801: Revert ZERO-2801
55
12
  - 2d9b2b2c: ZERO-2816: Add segment to headers
56
- - fd4b74e9: ZERO-3126: add reset checkout state query
13
+ - 40a46853: ZERO-3182: Optimize basket update mutation with optimistic update
14
+ - 2d2ab446: ZERO-3226: Add device_info param to WalletPaymentPage request
57
15
  - f49bb74f: ZERO-3097: Add setCookie to logging in payment redirection middlewares
58
16
  - e9541a13: ZERO-2816: Add headers to url
59
17
  - 4d3deb4f: ZERO-2935: sentry 8 upgrade
@@ -62,22 +20,31 @@
62
20
  - 64699d3f: ZERO-2761: Fix invalid import for plugin module
63
21
  - 0200d568: ZERO-3163: Add frontendIds property to Settings interface
64
22
  - 7727ae55: ZERO-3073: Refactor basket page to use server-side data fetching and simplify component structure
23
+ - d552629f: ZERO-3182: Refactor basketApi to use invalidatesTags and comment out onQueryStarted logic
65
24
  - 17f87524: ZERO-2816: Make the incoming currency lowercase
66
25
  - 65d3b862: ZERO-3054: Update headers in appFetch
67
26
  - bbe18b9f: ZERO-2575: Fix build error
68
27
  - 4920742c: Disable getCachedTranslations
69
28
  - 7e56d6b6: ZERO-2841: Update api tagTypes
29
+ - 7d1b5af1: ZERO-3206: Encode search parameters in product data URL
70
30
  - 43c182ee: ZERO-3054: Update Redis variable checks to conditionally include CACHE_SECRET
71
31
  - 2d305aaf: ZERO-2935: Update Sentry configuration: remove hideSourceMaps option and add it to withPzConfig
72
- - 4cc22c7c: ZERO-3125: replace X-Frame-Options with CSP frame-ancestors
73
32
  - eeb20bea: Revert "ZERO-3054: Refactor cache handler to use custom Redis handler and implement key hashing"
74
- - 6a0a0807: ZERO-3112: Update button
75
33
  - f2c92d5c: ZERO-2816: Update cookie name
76
34
  - 7bd3d992: ZERO-2801: Refactor locale middleware to handle single locale configuration
77
35
  - fdd255ee: ZERO-3054: Refactor cache handler to use custom Redis handler and implement key hashing
36
+ - aa05ed79: ZERO-3170: Add commerceRedirectionIgnoreList to settings and update URL redirection middleware
78
37
  - 49eeebfa: ZERO-2909: Add deleteCollectionItem query to wishlistApi
79
38
  - 3f9b8d7e: ZERO-2761: Update plugins.js for akinon-next
80
39
 
40
+ ## 1.81.0
41
+
42
+ ### Minor Changes
43
+
44
+ - fd4b74e: ZERO-3126: add reset checkout state query
45
+ - 4cc22c7: ZERO-3125: replace X-Frame-Options with CSP frame-ancestors
46
+ - 6a0a080: ZERO-3112: Update button
47
+
81
48
  ## 1.80.0
82
49
 
83
50
  ### Minor Changes
@@ -84,20 +84,23 @@ export const basketApi = api.injectEndpoints({
84
84
  method: 'PUT',
85
85
  body
86
86
  }),
87
- async onQueryStarted(_, { dispatch, queryFulfilled }) {
88
- try {
89
- const { data } = await queryFulfilled;
90
- dispatch(
91
- basketApi.util.updateQueryData(
92
- 'getBasket',
93
- undefined,
94
- () => data.basket
95
- )
96
- );
97
- } catch {
98
- dispatch(basketApi.util.invalidateTags(['MultiBasket', 'Basket']));
99
- }
100
- }
87
+ // TODO: It doesn't work with namespaced baskets. Fix it and remove invalidatesTags.
88
+ invalidatesTags: ['MultiBasket', 'Basket']
89
+
90
+ // async onQueryStarted(_, { dispatch, queryFulfilled }) {
91
+ // try {
92
+ // const { data } = await queryFulfilled;
93
+ // dispatch(
94
+ // basketApi.util.updateQueryData(
95
+ // 'getBasket',
96
+ // undefined,
97
+ // () => data.basket
98
+ // )
99
+ // );
100
+ // } catch {
101
+ // dispatch(basketApi.util.invalidateTags(['MultiBasket', 'Basket']));
102
+ // }
103
+ // }
101
104
  }),
102
105
  clearBasket: build.mutation<Basket, void>({
103
106
  query: (body) => ({
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.81.0-rc.9",
4
+ "version": "1.82.0-rc.0",
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.81.0-rc.9",
33
+ "@akinon/eslint-plugin-projectzero": "1.82.0-rc.0",
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",