@akinon/projectzero 1.43.0-rc.0 → 1.43.0-rc.1

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,7 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.43.0-rc.1
4
+
3
5
  ## 1.43.0-rc.0
4
6
 
5
7
  ### Minor Changes
@@ -1,5 +1,28 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.43.0-rc.1
4
+
5
+ ### Minor Changes
6
+
7
+ - eecb282: ZERO-2607: Update address-related functions to include invalidateTag option
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [eecb282]
12
+ - @akinon/next@1.43.0-rc.1
13
+ - @akinon/pz-akifast@1.43.0-rc.1
14
+ - @akinon/pz-b2b@1.43.0-rc.1
15
+ - @akinon/pz-basket-gift-pack@1.43.0-rc.1
16
+ - @akinon/pz-bkm@1.43.0-rc.1
17
+ - @akinon/pz-checkout-gift-pack@1.43.0-rc.1
18
+ - @akinon/pz-click-collect@1.43.0-rc.1
19
+ - @akinon/pz-credit-payment@1.43.0-rc.1
20
+ - @akinon/pz-gpay@1.43.0-rc.1
21
+ - @akinon/pz-masterpass@1.43.0-rc.1
22
+ - @akinon/pz-one-click-checkout@1.43.0-rc.1
23
+ - @akinon/pz-otp@1.43.0-rc.1
24
+ - @akinon/pz-pay-on-delivery@1.43.0-rc.1
25
+
3
26
  ## 1.43.0-rc.0
4
27
 
5
28
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.43.0-rc.0",
3
+ "version": "1.43.0-rc.1",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,19 +22,19 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.43.0-rc.0",
26
- "@akinon/pz-akifast": "1.43.0-rc.0",
27
- "@akinon/pz-b2b": "1.43.0-rc.0",
28
- "@akinon/pz-basket-gift-pack": "1.43.0-rc.0",
29
- "@akinon/pz-bkm": "1.43.0-rc.0",
30
- "@akinon/pz-checkout-gift-pack": "1.43.0-rc.0",
31
- "@akinon/pz-click-collect": "1.43.0-rc.0",
32
- "@akinon/pz-credit-payment": "1.43.0-rc.0",
33
- "@akinon/pz-gpay": "1.43.0-rc.0",
34
- "@akinon/pz-masterpass": "1.43.0-rc.0",
35
- "@akinon/pz-one-click-checkout": "1.43.0-rc.0",
36
- "@akinon/pz-otp": "1.43.0-rc.0",
37
- "@akinon/pz-pay-on-delivery": "1.43.0-rc.0",
25
+ "@akinon/next": "1.43.0-rc.1",
26
+ "@akinon/pz-akifast": "1.43.0-rc.1",
27
+ "@akinon/pz-b2b": "1.43.0-rc.1",
28
+ "@akinon/pz-basket-gift-pack": "1.43.0-rc.1",
29
+ "@akinon/pz-bkm": "1.43.0-rc.1",
30
+ "@akinon/pz-checkout-gift-pack": "1.43.0-rc.1",
31
+ "@akinon/pz-click-collect": "1.43.0-rc.1",
32
+ "@akinon/pz-credit-payment": "1.43.0-rc.1",
33
+ "@akinon/pz-gpay": "1.43.0-rc.1",
34
+ "@akinon/pz-masterpass": "1.43.0-rc.1",
35
+ "@akinon/pz-one-click-checkout": "1.43.0-rc.1",
36
+ "@akinon/pz-otp": "1.43.0-rc.1",
37
+ "@akinon/pz-pay-on-delivery": "1.43.0-rc.1",
38
38
  "@hookform/resolvers": "2.9.0",
39
39
  "@next/third-parties": "14.1.0",
40
40
  "@react-google-maps/api": "2.17.1",
@@ -58,7 +58,7 @@
58
58
  "yup": "0.32.11"
59
59
  },
60
60
  "devDependencies": {
61
- "@akinon/eslint-plugin-projectzero": "1.43.0-rc.0",
61
+ "@akinon/eslint-plugin-projectzero": "1.43.0-rc.1",
62
62
  "@semantic-release/changelog": "6.0.2",
63
63
  "@semantic-release/exec": "6.0.3",
64
64
  "@semantic-release/git": "10.0.1",
@@ -17,7 +17,7 @@ export default function Page() {
17
17
  const [addAddress] = useAddAddressMutation();
18
18
 
19
19
  const onSubmit = async (data) => {
20
- await addAddress(data);
20
+ await addAddress({ ...data, invalidateTag: 'Addresses' });
21
21
  setIsNewAddressModalOpen(false);
22
22
  };
23
23
 
@@ -27,13 +27,13 @@ export const AddressCard = (props: Props) => {
27
27
  const [isRemoveAddressModalOpen, setRemoveAddressModalOpen] = useState(false);
28
28
 
29
29
  const onSubmit = async (data) => {
30
- await editAddress(data);
30
+ await editAddress({ ...data, invalidateTag: 'Addresses' });
31
31
  setIsEditAddressModalOpen(false);
32
32
  };
33
33
 
34
34
  const handleRemoveAddress = async (pk: number) => {
35
35
  try {
36
- await removeAddress(pk)
36
+ await removeAddress({ id: pk, invalidateTag: 'Addresses' })
37
37
  .unwrap()
38
38
  .then(() => setRemoveAddressModalOpen(false))
39
39
  .catch((err) => console.error(err));
@@ -85,7 +85,7 @@ const AddressBox = ({
85
85
  };
86
86
 
87
87
  const onSubmit = (data) => {
88
- editAddress(data)
88
+ editAddress({ ...data, invalidateTag: 'Addresses' })
89
89
  .unwrap()
90
90
  .then((editAddressResponse) => {
91
91
  handleAddressClick(addressType, editAddressResponse);
@@ -96,7 +96,7 @@ const AddressBox = ({
96
96
  };
97
97
 
98
98
  const handleRemoveAddress = async (addressPk: number) => {
99
- await removeAddress(addressPk);
99
+ await removeAddress({ id: addressPk, invalidateTag: 'Addresses' });
100
100
  setRemoveAddressModalOpen(false);
101
101
  dispatch(resetCheckoutState());
102
102
 
@@ -77,7 +77,7 @@ const Addresses = () => {
77
77
  }, [billing_and_shipping_same]);
78
78
 
79
79
  const onSubmit = (data) => {
80
- addAddress(data)
80
+ addAddress({ ...data, invalidateTag: 'Addresses' })
81
81
  .unwrap()
82
82
  .then((addAddressResponse) => {
83
83
  if (addressList.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.43.0-rc.0",
3
+ "version": "1.43.0-rc.1",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {