@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 +2 -1
- package/dist/client.d.ts +2 -2
- package/dist/config.js +1 -1
- package/dist/config.mjs +1 -1
- package/package.json +3 -3
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`
|
|
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
|
-
/**
|
|
106
|
-
capture(event: string, properties?: Properties | null, options?: CaptureOptions):
|
|
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
package/dist/config.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posthog/browser-common",
|
|
3
|
-
"version": "0.
|
|
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/
|
|
77
|
-
"@posthog/
|
|
76
|
+
"@posthog/core": "^1.54.2",
|
|
77
|
+
"@posthog/types": "^1.412.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@rslib/core": "0.23.2",
|