@blinkdotnew/sdk 0.10.0 → 0.10.2

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
@@ -597,6 +597,13 @@ blink.analytics.clearAttribution()
597
597
 
598
598
  // Features: Privacy-first, offline support, event batching, session management
599
599
  // Attribution: UTM params persist across sessions for conversion tracking
600
+
601
+ // How UTM persistence works:
602
+ // 1. User visits with ?utm_source=google&utm_campaign=summer_sale
603
+ // 2. These params are saved to localStorage for attribution
604
+ // 3. Future events (even days later) include these UTM params
605
+ // 4. Perfect for tracking which campaigns drive conversions
606
+ // 5. New UTM params override old ones (last-touch model available)
600
607
  ```
601
608
 
602
609
  ### Realtime Operations
package/dist/index.js CHANGED
@@ -2865,7 +2865,7 @@ var BlinkNotificationsImpl = class {
2865
2865
  if (!params.to || !params.subject || !params.html && !params.text) {
2866
2866
  throw new BlinkNotificationsError('The "to", "subject", and either "html" or "text" fields are required.');
2867
2867
  }
2868
- const response = await this.httpClient.post("/notifications/email", params);
2868
+ const response = await this.httpClient.post(`/api/notifications/${this.httpClient.projectId}/email`, params);
2869
2869
  if (!response.data || typeof response.data.success !== "boolean") {
2870
2870
  throw new BlinkNotificationsError("Invalid response from email API");
2871
2871
  }
package/dist/index.mjs CHANGED
@@ -2863,7 +2863,7 @@ var BlinkNotificationsImpl = class {
2863
2863
  if (!params.to || !params.subject || !params.html && !params.text) {
2864
2864
  throw new BlinkNotificationsError('The "to", "subject", and either "html" or "text" fields are required.');
2865
2865
  }
2866
- const response = await this.httpClient.post("/notifications/email", params);
2866
+ const response = await this.httpClient.post(`/api/notifications/${this.httpClient.projectId}/email`, params);
2867
2867
  if (!response.data || typeof response.data.success !== "boolean") {
2868
2868
  throw new BlinkNotificationsError("Invalid response from email API");
2869
2869
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blinkdotnew/sdk",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "Blink TypeScript SDK for client-side applications - Zero-boilerplate CRUD + auth + AI + analytics + notifications for modern SaaS/AI apps",
5
5
  "keywords": [
6
6
  "blink",