@sendoracloud/sdk-react-native 1.10.0 → 1.11.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/dist/index.cjs CHANGED
@@ -223,7 +223,7 @@ async function request(opts, method, path, body, extraHeaders, reqOpts) {
223
223
  // package.json
224
224
  var package_default = {
225
225
  name: "@sendoracloud/sdk-react-native",
226
- version: "1.10.0",
226
+ version: "1.11.0",
227
227
  description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth, deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push token registration requires a Dev Client (EAS Build or `npx expo prebuild`).",
228
228
  type: "module",
229
229
  main: "./dist/index.cjs",
@@ -2875,6 +2875,10 @@ var SendoraSDK = class {
2875
2875
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
2876
2876
  ...this.userId ? { userId: this.userId } : {},
2877
2877
  anonymousId: this.anonId,
2878
+ // Top-level sessionId so backend `events.session_id` populates (powers
2879
+ // the Audience "Sessions & engagement" metrics). Set by auto-track;
2880
+ // blank until the first auto event of the launch → omitted when empty.
2881
+ ...this.sessionId ? { sessionId: this.sessionId } : {},
2878
2882
  properties: payload.properties ?? {},
2879
2883
  context: {
2880
2884
  platform: "react-native",
package/dist/index.js CHANGED
@@ -180,7 +180,7 @@ async function request(opts, method, path, body, extraHeaders, reqOpts) {
180
180
  // package.json
181
181
  var package_default = {
182
182
  name: "@sendoracloud/sdk-react-native",
183
- version: "1.10.0",
183
+ version: "1.11.0",
184
184
  description: "Sendora Cloud React Native + Expo SDK \u2014 analytics, identity, push-token registration, auth, deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push token registration requires a Dev Client (EAS Build or `npx expo prebuild`).",
185
185
  type: "module",
186
186
  main: "./dist/index.cjs",
@@ -2837,6 +2837,10 @@ var SendoraSDK = class {
2837
2837
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
2838
2838
  ...this.userId ? { userId: this.userId } : {},
2839
2839
  anonymousId: this.anonId,
2840
+ // Top-level sessionId so backend `events.session_id` populates (powers
2841
+ // the Audience "Sessions & engagement" metrics). Set by auto-track;
2842
+ // blank until the first auto event of the launch → omitted when empty.
2843
+ ...this.sessionId ? { sessionId: this.sessionId } : {},
2840
2844
  properties: payload.properties ?? {},
2841
2845
  context: {
2842
2846
  platform: "react-native",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendoracloud/sdk-react-native",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Sendora Cloud React Native + Expo SDK — analytics, identity, push-token registration, auth, deep links (Branch / Firebase Dynamic Links parity). Auth + analytics + deep links work in Expo Go; push token registration requires a Dev Client (EAS Build or `npx expo prebuild`).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",