@akinon/next 1.92.0-snapshot-ZERO-3460-20250710073429 → 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,11 +1,6 @@
1
1
  # @akinon/next
2
2
 
3
- ## 1.92.0-snapshot-ZERO-3460-20250710073429
4
-
5
- ### Minor Changes
6
-
7
- - e57cd93: ZERO-3460: prevent installment loop on payment method switch
8
- - d1bb93a: ZERO-3460: fix installment request loop"
3
+ ## 1.92.0
9
4
 
10
5
  ## 1.91.0
11
6
 
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-20250710073429",
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-20250710073429",
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",
package/plugins.d.ts CHANGED
@@ -13,7 +13,6 @@ declare module '@akinon/pz-masterpass/src/redux/reducer' {
13
13
  export const setError: any;
14
14
  export const setOtpModalVisible: any;
15
15
  export const setCvcRequired: any;
16
- export const resetMasterpassState: any;
17
16
  }
18
17
 
19
18
  declare module '@akinon/pz-otp' {
@@ -8,17 +8,15 @@ import { dataSourceShippingOptionMiddleware } from './data-source-shipping-optio
8
8
  import { attributeBasedShippingOptionMiddleware } from './attribute-based-shipping-option';
9
9
  import { paymentOptionMiddleware } from './payment-option';
10
10
  import { installmentOptionMiddleware } from './installment-option';
11
- import { paymentOptionResetMiddleware } from './payment-option-reset';
12
11
  import { shippingStepMiddleware } from './shipping-step';
13
12
 
14
13
  // ⚠️ WARNING: Redux Toolkit applies middlewares in reverse order (from last to first).
15
- // This list is written **in reverse execution order** to ensure they run in the correct sequence.
14
+ // This list is written **in reverse execution order** to ensure they run in the correct sequence.
16
15
  // If you add a new middleware, make sure to insert it **in reverse order** based on execution priority.
17
16
 
18
17
  export const preOrderMiddlewares = [
19
18
  shippingStepMiddleware,
20
19
  installmentOptionMiddleware,
21
- paymentOptionResetMiddleware,
22
20
  paymentOptionMiddleware,
23
21
  attributeBasedShippingOptionMiddleware,
24
22
  dataSourceShippingOptionMiddleware,
@@ -10,7 +10,6 @@ export enum MiddlewareNames {
10
10
  DataSourceShippingOptionMiddleware = 'dataSourceShippingOptionMiddleware',
11
11
  AttributeBasedShippingOptionMiddleware = 'attributeBasedShippingOptionMiddleware',
12
12
  PaymentOptionMiddleware = 'paymentOptionMiddleware',
13
- PaymentOptionResetMiddleware = 'paymentOptionResetMiddleware',
14
13
  InstallmentOptionMiddleware = 'installmentOptionMiddleware',
15
14
  ShippingStepMiddleware = 'shippingStepMiddleware'
16
15
  }
@@ -1,34 +0,0 @@
1
- import { Middleware } from '@reduxjs/toolkit';
2
- import { CheckoutResult, MiddlewareParams } from '../../../types';
3
- import {
4
- setBankAccounts,
5
- setCardType,
6
- setInstallmentOptions,
7
- setSelectedBankAccountPk
8
- } from '../../reducers/checkout';
9
- import { resetMasterpassState } from '@akinon/pz-masterpass/src/redux/reducer';
10
-
11
- export const paymentOptionResetMiddleware: Middleware = ({
12
- dispatch
13
- }: MiddlewareParams) => {
14
- return (next) => (action) => {
15
- const result: CheckoutResult = next(action);
16
-
17
- if (
18
- action.type === 'api/executeMutation/fulfilled' &&
19
- action.meta?.arg?.endpointName === 'setPaymentOption'
20
- ) {
21
- dispatch(setInstallmentOptions([]));
22
- dispatch(setBankAccounts([]));
23
- dispatch(setSelectedBankAccountPk(null));
24
- dispatch(setCardType(null));
25
- dispatch(resetMasterpassState());
26
- }
27
-
28
- return result;
29
- };
30
- };
31
-
32
- Object.defineProperty(paymentOptionResetMiddleware, 'name', {
33
- value: 'paymentOptionResetMiddleware'
34
- });