@posthog/browser-common 0.8.3 → 0.9.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
@@ -64,7 +64,8 @@ What an extension is given in `setup` — the adapter shared by extensions on th
64
64
  - **storage and logging**: `kv`, `logger`
65
65
 
66
66
  Identity, session, SDK metadata, capture permission, and the public project token are always-ready synchronous reads.
67
- `capture` and `sendRequest` are awaitable. For `sendRequest`, `sentAt` controls `sent_at` placement on POST requests; GET query mode
67
+ `capture` synchronously admits an event to the host pipeline; use host lifecycle APIs when delivery completion matters.
68
+ `sendRequest` is awaitable. Its `sentAt` option controls `sent_at` placement on POST requests; GET query mode
68
69
  uses the cache-busting `_` parameter instead, and GET body mode has no effect. `onRemoteConfig` replays the latest
69
70
  available success or failure and then reports subsequent outcomes. Configuration timing is host-owned, and the
70
71
  subscription remains active until disposed. Extensions that want a named log prefix can create a child with
package/dist/client.d.ts CHANGED
@@ -102,8 +102,8 @@ export interface Client {
102
102
  readonly session: SessionContext;
103
103
  /** Whether the host currently permits data capture. */
104
104
  readonly canCapture: boolean;
105
- /** Records an analytics event through the client's normal pipeline. */
106
- capture(event: string, properties?: Properties | null, options?: CaptureOptions): Promise<void>;
105
+ /** Synchronously admits an analytics event to the client's normal pipeline. */
106
+ capture(event: string, properties?: Properties | null, options?: CaptureOptions): void;
107
107
  /** Registers a synchronous producer of properties merged into every captured event. */
108
108
  registerDynamicEventProperties(producer: () => Record<string, unknown>): Disposable;
109
109
  /** Returns the extension registered under a typed stable name, or `undefined` when it is not installed. */
package/dist/config.js CHANGED
@@ -27,7 +27,7 @@ var __webpack_require__ = {};
27
27
  })();
28
28
  var __webpack_exports__ = {};
29
29
  __webpack_require__.r(__webpack_exports__);
30
- const packageVersion = "0.8.3";
30
+ const packageVersion = "0.9.0";
31
31
  const Config = {
32
32
  DEBUG: false,
33
33
  LIB_VERSION: packageVersion,
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const packageVersion = "0.8.3";
1
+ const packageVersion = "0.9.0";
2
2
  const Config = {
3
3
  DEBUG: false,
4
4
  LIB_VERSION: packageVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/browser-common",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "description": "Internal shared browser utilities and extension primitives for PostHog Browser SDKs",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -73,8 +73,8 @@
73
73
  }
74
74
  },
75
75
  "dependencies": {
76
- "@posthog/types": "^1.411.1",
77
- "@posthog/core": "^1.53.2"
76
+ "@posthog/core": "^1.54.2",
77
+ "@posthog/types": "^1.412.1"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@rslib/core": "0.23.2",