commerce-kit 0.61.0 → 0.64.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/README.md CHANGED
@@ -129,6 +129,21 @@ const updated = await commerce.ticketsUpdate(
129
129
  const ticket = await commerce.ticketAttendeeGet({ token: 'a1b2c3...' });
130
130
  ```
131
131
 
132
+ ## Newsletter
133
+
134
+ ```typescript
135
+ const subscriber = await commerce.subscriberCreate({ email: 'jane@example.com', marketingConsent: true });
136
+
137
+ // Double opt-in stores return pending: true — the address joins the list only after the
138
+ // shopper clicks the link in the confirmation email. Tell them to check their inbox.
139
+ if (subscriber.pending) { /* "Check your inbox to confirm" */ }
140
+
141
+ await commerce.subscriberDelete('jane@example.com');
142
+ ```
143
+
144
+ Confirmation and unsubscribe links in emails point at pages hosted by Your Next Store, so a
145
+ storefront needs no `/confirm-subscription` or `/unsubscribe` route of its own.
146
+
132
147
  ## Collections & Categories
133
148
 
134
149
  Full CRUD for product collections, product categories, and blog categories. Mutations are