@easy-cms/plugin-ecommerce 0.68.3 → 0.68.4

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.
@@ -783,7 +783,7 @@ var INFO = {
783
783
  name: "@easy-cms/plugin-ecommerce",
784
784
  // The plugin API it is written for (`PLUGIN_API_VERSION` of @easy-cms/core).
785
785
  apiVersion: 1,
786
- ...true ? { version: "0.68.3" } : {}
786
+ ...true ? { version: "0.68.4" } : {}
787
787
  };
788
788
 
789
789
  // src/shop.ts
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  paymentSucceeded,
13
13
  price,
14
14
  priceField
15
- } from "./chunk-4LVHLK2C.js";
15
+ } from "./chunk-KZVA2LII.js";
16
16
 
17
17
  // src/payments.ts
18
18
  var definePaymentAdapter = (adapter) => adapter;
package/dist/react.js CHANGED
@@ -110,7 +110,7 @@ function useAddresses() {
110
110
  }
111
111
  }, [client, user]);
112
112
  useEffect(() => {
113
- void reload();
113
+ void reload().catch(() => setAddresses([]));
114
114
  }, [reload]);
115
115
  return {
116
116
  addresses,
package/dist/stripe.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paymentFailed,
3
3
  paymentSucceeded
4
- } from "./chunk-4LVHLK2C.js";
4
+ } from "./chunk-KZVA2LII.js";
5
5
 
6
6
  // src/stripe-client.ts
7
7
  var STRIPE_API_VERSION = "2026-09-30.endive";
package/dist/vue.js CHANGED
@@ -119,7 +119,11 @@ function useAddresses() {
119
119
  };
120
120
  const stop = watch(
121
121
  () => state.value.user,
122
- () => void reload(),
122
+ // On its own (signing in or out), a failure leaves the list empty instead of throwing
123
+ // where nobody catches it; reload() itself still throws.
124
+ () => void reload().catch(() => {
125
+ addresses.value = [];
126
+ }),
123
127
  { immediate: true }
124
128
  );
125
129
  onScopeDispose(stop);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/plugin-ecommerce",
3
- "version": "0.68.3",
3
+ "version": "0.68.4",
4
4
  "description": "A shop for Easy CMS: products and variants, prices in several currencies, carts (guests too), checkout with Stripe or bank transfer, orders, stock, customer accounts, and React and Vue hooks (experimental)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "react": ">=18.0.0",
37
37
  "stripe": ">=17.0.0 <24.0.0",
38
38
  "vue": "^3.4.0",
39
- "@easy-cms/core": "^0.68.3"
39
+ "@easy-cms/core": "^0.68.4"
40
40
  },
41
41
  "peerDependenciesMeta": {
42
42
  "react": {
@@ -51,14 +51,16 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/react": "^19.2.0",
54
+ "@types/react-dom": "^19.3.0",
54
55
  "happy-dom": "^20.14.5",
55
56
  "react": "^19.2.0",
57
+ "react-dom": "^19.3.0",
56
58
  "stripe": "^23.0.0",
57
59
  "stripe-17": "npm:stripe@^17.7.0",
58
60
  "vue": "^3.5.43",
59
- "@easy-cms/core": "^0.68.3",
60
- "@easy-cms/db-sqlite": "^0.68.3",
61
- "@easy-cms/plugin-multi-tenant": "^0.68.3"
61
+ "@easy-cms/core": "^0.68.4",
62
+ "@easy-cms/db-sqlite": "^0.68.4",
63
+ "@easy-cms/plugin-multi-tenant": "^0.68.4"
62
64
  },
63
65
  "engines": {
64
66
  "node": ">=22.12"