@drakkar.software/sunglasses-core 0.5.0 → 0.6.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.d.mts CHANGED
@@ -399,6 +399,20 @@ interface StarfishAdapterConfig {
399
399
  * Can be the same adapter as `SunglassesConfig.storage`.
400
400
  */
401
401
  pathStorage?: IStorageAdapter;
402
+ /**
403
+ * When `true`, events are pushed directly without a prior pull.
404
+ * No merge, no optimistic locking, no conflict detection.
405
+ *
406
+ * Use this for Starfish collections configured with `queueOnly: true` —
407
+ * the server ignores `baseHash` and returns no stored data on pull,
408
+ * so a pull round-trip is always wasted.
409
+ *
410
+ * On push failure the adapter **throws**, allowing SunglassesCore to keep
411
+ * events in the local queue and retry on the next flush interval.
412
+ *
413
+ * Cannot be combined with `rotatePathOnSuccess`.
414
+ */
415
+ pushOnly?: boolean;
402
416
  }
403
417
  /**
404
418
  * In-memory + persisted session state.
package/dist/index.d.ts CHANGED
@@ -399,6 +399,20 @@ interface StarfishAdapterConfig {
399
399
  * Can be the same adapter as `SunglassesConfig.storage`.
400
400
  */
401
401
  pathStorage?: IStorageAdapter;
402
+ /**
403
+ * When `true`, events are pushed directly without a prior pull.
404
+ * No merge, no optimistic locking, no conflict detection.
405
+ *
406
+ * Use this for Starfish collections configured with `queueOnly: true` —
407
+ * the server ignores `baseHash` and returns no stored data on pull,
408
+ * so a pull round-trip is always wasted.
409
+ *
410
+ * On push failure the adapter **throws**, allowing SunglassesCore to keep
411
+ * events in the local queue and retry on the next flush interval.
412
+ *
413
+ * Cannot be combined with `rotatePathOnSuccess`.
414
+ */
415
+ pushOnly?: boolean;
402
416
  }
403
417
  /**
404
418
  * In-memory + persisted session state.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drakkar.software/sunglasses-core",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Platform-agnostic event tracking engine for SunGlasses",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",