@logbrew/react-native 0.1.40 → 0.1.41

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
@@ -80,9 +80,9 @@ For mobile apps, prefer an app-scoped public key through `clientKey`. Expo
80
80
  inlines `EXPO_PUBLIC_*` values into the app, so never use a server key there.
81
81
  `apiKey` is still accepted for compatibility with lower-level SDK examples.
82
82
 
83
- Supplying `transport` enables the core SDK's bounded automatic delivery. On
84
- mobile it sends 5 seconds after the first queued event or at 50 queued events,
85
- which saves battery and radio wakeups; set `deliveryIntervalMs` to change it. It
83
+ Supplying `transport` enables the core SDK's bounded automatic delivery. It
84
+ sends 1 second after the first queued event or at 50 queued events, whichever
85
+ comes first; set `deliveryIntervalMs` to change it. It
86
86
  coalesces concurrent work, retries transient failures, retains rejected
87
87
  batches, waits out short rate limits on its own, and pauses repeated automatic
88
88
  sends after authentication, usage-limit, or non-retryable failures. Do not add a second app-owned flush interval.
package/index.cjs CHANGED
@@ -36,8 +36,8 @@ const { getReactNativeContext } = require("./index-values.cjs");
36
36
  */
37
37
 
38
38
  const DEFAULT_SDK_NAME = "logbrew-react-native";
39
- const DEFAULT_SDK_VERSION = "0.1.40";
40
- const DEFAULT_REACT_NATIVE_DELIVERY_INTERVAL_MS = 5000;
39
+ const DEFAULT_SDK_VERSION = "0.1.41";
40
+ const DEFAULT_REACT_NATIVE_DELIVERY_INTERVAL_MS = 1000;
41
41
  const DEFAULT_MAX_RETRIES = 2;
42
42
 
43
43
  /**
@@ -3,7 +3,7 @@ import Foundation
3
3
  @objc(LBRNAppleNativeDiagnostics)
4
4
  public final class LBRNAppleNativeDiagnostics: NSObject, @unchecked Sendable {
5
5
  private static let shared = LBRNAppleNativeDiagnostics()
6
- private static let sdkVersion = "0.1.40"
6
+ private static let sdkVersion = "0.1.41"
7
7
 
8
8
  private let lock = NSLock()
9
9
  private let replayQueue = DispatchQueue(label: "co.logbrew.react-native.apple-diagnostics-replay")
@@ -44,7 +44,7 @@ public struct AutomaticDeliveryOptions: Equatable, Sendable {
44
44
  public let maxRetryDelay: TimeInterval
45
45
 
46
46
  public init(
47
- interval: TimeInterval = 5,
47
+ interval: TimeInterval = 1,
48
48
  threshold: Int = 100,
49
49
  retryBaseDelay: TimeInterval = 0.25,
50
50
  maxRetryDelay: TimeInterval = 30,
@@ -6,7 +6,7 @@
6
6
  "swift/logbrew-swift/Sources/LogBrew/DeliveryEngineAutomatic.swift": "cd05cd45aeea52cde3d228938acf9ff2e784c1e2350cf2473c3b72030a3abf64",
7
7
  "swift/logbrew-swift/Sources/LogBrew/DeliveryEngineDurable.swift": "b0d2ca07cce7fe01fc110238c7d10aa9c8ada0d28509e4c022e7fa950a4c79b9",
8
8
  "swift/logbrew-swift/Sources/LogBrew/DeliveryEngineQueue.swift": "e187a737e18dd88a4be8719f1a3a07776c6d6eb0edb5b1904a82c5059a0aef57",
9
- "swift/logbrew-swift/Sources/LogBrew/DeliveryLifecycle.swift": "af7b36649f9d07ac4567652f578c008e4ec8086f14c157b2d5144df93d211aaf",
9
+ "swift/logbrew-swift/Sources/LogBrew/DeliveryLifecycle.swift": "61d8d1e30dd716d23ed9da2728be376497549764c39b9b41ffb4ef754357f384",
10
10
  "swift/logbrew-swift/Sources/LogBrew/DurableDeliveryStore.swift": "7c292dda68efc3de790daf44733b25e4392226793343c21ba5df4f51fc1b402b",
11
11
  "swift/logbrew-swift/Sources/LogBrew/DurableDeliveryStoreRecovery.swift": "79fee27975b6571954bf0b3692a50e60bbbcf53b5ab47f653a474db5c56d68ba",
12
12
  "swift/logbrew-swift/Sources/LogBrew/EventEncoding.swift": "b88b6b2d17f7d0cee9ac1a1f34ef35b192cd33d213ef3c9e1c2d21cbcc304a97",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logbrew/react-native",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "React Native offline delivery, native diagnostics, screen, error, trace, action, and network timeline helpers for LogBrew.",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",
package/types/config.d.ts CHANGED
@@ -26,7 +26,7 @@ type CreateLogBrewReactNativeClientConfig = {
26
26
  apiKey?: string;
27
27
  clientKey?: string;
28
28
  context?: TelemetryContext;
29
- /** Automatic delivery interval in milliseconds. Defaults to 5000 on mobile to save battery. */
29
+ /** Automatic delivery interval in milliseconds. Defaults to 1000. */
30
30
  deliveryIntervalMs?: number;
31
31
  deliveryQueueThreshold?: number;
32
32
  /** Advanced synchronous persistence seam. React Native apps normally use the native entry's persistentQueue mode. */