@akinon/next 1.92.0-snapshot-ZERO-3460-20250708070834 → 1.92.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,10 +1,6 @@
1
1
  # @akinon/next
2
2
 
3
- ## 1.92.0-snapshot-ZERO-3460-20250708070834
4
-
5
- ### Minor Changes
6
-
7
- - d1bb93a: ZERO-3460: fix installment request loop"
3
+ ## 1.92.0
8
4
 
9
5
  ## 1.91.0
10
6
 
@@ -445,6 +445,10 @@ export const checkoutApi = api.injectEndpoints({
445
445
  }),
446
446
  async onQueryStarted(arg, { dispatch, queryFulfilled }) {
447
447
  dispatch(setPaymentStepBusy(true));
448
+ dispatch(setInstallmentOptions([]));
449
+ dispatch(setBankAccounts([]));
450
+ dispatch(setSelectedBankAccountPk(null));
451
+ dispatch(setCardType(null));
448
452
  await queryFulfilled;
449
453
  dispatch(setPaymentStepBusy(false));
450
454
  }
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-snapshot-ZERO-3460-20250708070834",
4
+ "version": "1.92.0",
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-snapshot-ZERO-3460-20250708070834",
37
+ "@akinon/eslint-plugin-projectzero": "1.92.0",
38
38
  "@babel/core": "7.26.10",
39
39
  "@babel/preset-env": "7.26.9",
40
40
  "@babel/preset-typescript": "7.27.0",
@@ -20,8 +20,7 @@ import {
20
20
  setShippingOptions,
21
21
  setHepsipayAvailability,
22
22
  setWalletPaymentData,
23
- setPayOnDeliveryOtpModalActive,
24
- setSelectedBankAccountPk
23
+ setPayOnDeliveryOtpModalActive
25
24
  } from '../../redux/reducers/checkout';
26
25
  import { RootState, TypedDispatch } from 'redux/store';
27
26
  import { checkoutApi } from '../../data/client/checkout';
@@ -314,24 +313,3 @@ export const walletPaymentMiddleware: Middleware = ({
314
313
  return result;
315
314
  };
316
315
  };
317
-
318
- export const paymentOptionResetMiddleware: Middleware = ({
319
- dispatch
320
- }: MiddlewareParams) => {
321
- return (next) => (action) => {
322
- const result = next(action);
323
-
324
- if (
325
- action.type === 'api/executeMutation/fulfilled' &&
326
- action.meta?.arg?.endpointName === 'setPaymentOption'
327
- ) {
328
- // Reset payment-related state when payment option changes
329
- dispatch(setInstallmentOptions([]));
330
- dispatch(setBankAccounts([]));
331
- dispatch(setSelectedBankAccountPk(null));
332
- dispatch(setCardType(null));
333
- }
334
-
335
- return result;
336
- };
337
- };
@@ -8,8 +8,7 @@ import {
8
8
  redirectUrlMiddleware,
9
9
  contextListMiddleware,
10
10
  hepsiPayMiddleware,
11
- walletPaymentMiddleware,
12
- paymentOptionResetMiddleware
11
+ walletPaymentMiddleware
13
12
  } from './checkout';
14
13
 
15
14
  import { preOrderMiddlewares } from './pre-order';
@@ -57,7 +56,6 @@ const middlewares = [
57
56
  contextListMiddleware,
58
57
  hepsiPayMiddleware,
59
58
  walletPaymentMiddleware,
60
- paymentOptionResetMiddleware,
61
59
  savedCardMiddleware
62
60
  ];
63
61