@connextar/house 0.25.0 → 0.25.1
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 +13 -1
- package/dist/analytics/posthog-extensions.d.ts +2 -0
- package/dist/analytics/posthog-extensions.d.ts.map +1 -1
- package/dist/analytics/posthog-extensions.js +2 -0
- package/dist/analytics/posthog-extensions.js.map +1 -1
- package/package.json +2 -2
- package/src/analytics/posthog-extensions.ts +2 -0
package/README.md
CHANGED
|
@@ -3625,7 +3625,19 @@ they are already registered on `window.__PosthogExtensions__`. Import
|
|
|
3625
3625
|
come from the app's bundle instead: a `<NotMeasured />` page then makes no
|
|
3626
3626
|
request to the relay at all, and nothing depends on the relay serving scripts.
|
|
3627
3627
|
PharmaLine found it in 0.27.5. The package's `sideEffects` names the file, so a
|
|
3628
|
-
bundler does not drop the bare import.
|
|
3628
|
+
bundler does not drop the bare import.
|
|
3629
|
+
|
|
3630
|
+
It needs **posthog-js 1.434 or later**, which is the optional peer's floor since
|
|
3631
|
+
0.25.1. Up to 1.383, posthog-js registers the extension and then fetches the
|
|
3632
|
+
script anyway (`ext.X && run(), ext.loadExternalDependency(…)`). From 1.434 it
|
|
3633
|
+
does one or the other (`ext.X ? run() : load()`). So on an older posthog-js the
|
|
3634
|
+
import changes nothing, and nothing says so. In the 0.25.0 rollout, FB Web
|
|
3635
|
+
(1.306), MAS (1.300), Canisters (1.336), senco (1.377) and PM Tool (1.383) all
|
|
3636
|
+
still fetched both scripts after adding the import, until each moved to 1.447.
|
|
3637
|
+
An app whose own range allows 1.434 (`^1.300.0` does) is moved up by
|
|
3638
|
+
`npm install` when it takes the house. One pinned below it gets an `ERESOLVE`
|
|
3639
|
+
instead. To check an app, look at its built page: no request under
|
|
3640
|
+
`<api_host>/static/`. The env names are already the same
|
|
3629
3641
|
everywhere: `NEXT_PUBLIC_POSTHOG_KEY`, `NEXT_PUBLIC_POSTHOG_HOST`,
|
|
3630
3642
|
`NEXT_PUBLIC_GTM_ID`, `GA4_MEASUREMENT_ID`, `GA4_API_SECRET`.
|
|
3631
3643
|
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* all. Found in PharmaLine 0.27.5: a platform admin's changelog still fetched both scripts from `/ingest/static/`.
|
|
13
13
|
*
|
|
14
14
|
* They are the app's posthog-js (an optional peer), so the extensions always match the version that loads them.
|
|
15
|
+
* The peer's floor is 1.434: up to 1.383, posthog-js fetches each script even when it is already registered, so this
|
|
16
|
+
* import would change nothing (five apps on 1.300–1.383 found that in the 0.25.0 rollout).
|
|
15
17
|
*/
|
|
16
18
|
import "posthog-js/dist/exception-autocapture.js";
|
|
17
19
|
import "posthog-js/dist/dead-clicks-autocapture.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog-extensions.d.ts","sourceRoot":"","sources":["../../src/analytics/posthog-extensions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"posthog-extensions.d.ts","sourceRoot":"","sources":["../../src/analytics/posthog-extensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,0CAA0C,CAAC;AAClD,OAAO,4CAA4C,CAAC;AAEpD,OAAO,EAAE,CAAC"}
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* all. Found in PharmaLine 0.27.5: a platform admin's changelog still fetched both scripts from `/ingest/static/`.
|
|
13
13
|
*
|
|
14
14
|
* They are the app's posthog-js (an optional peer), so the extensions always match the version that loads them.
|
|
15
|
+
* The peer's floor is 1.434: up to 1.383, posthog-js fetches each script even when it is already registered, so this
|
|
16
|
+
* import would change nothing (five apps on 1.300–1.383 found that in the 0.25.0 rollout).
|
|
15
17
|
*/
|
|
16
18
|
import "posthog-js/dist/exception-autocapture.js";
|
|
17
19
|
import "posthog-js/dist/dead-clicks-autocapture.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posthog-extensions.js","sourceRoot":"","sources":["../../src/analytics/posthog-extensions.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"posthog-extensions.js","sourceRoot":"","sources":["../../src/analytics/posthog-extensions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,0CAA0C,CAAC;AAClD,OAAO,4CAA4C,CAAC;AAEpD,OAAO,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@connextar/house",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "The pieces every app we build needs and none of them should own a copy of.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
"@anthropic-ai/sdk": ">=0.122.0",
|
|
221
221
|
"next": "^16.0.0",
|
|
222
222
|
"openai": ">=7.10.0",
|
|
223
|
-
"posthog-js": ">=1.
|
|
223
|
+
"posthog-js": ">=1.434.0",
|
|
224
224
|
"react": "^19.0.0",
|
|
225
225
|
"react-dom": "^19.0.0",
|
|
226
226
|
"react-hook-form": "^7.60.0",
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
* all. Found in PharmaLine 0.27.5: a platform admin's changelog still fetched both scripts from `/ingest/static/`.
|
|
13
13
|
*
|
|
14
14
|
* They are the app's posthog-js (an optional peer), so the extensions always match the version that loads them.
|
|
15
|
+
* The peer's floor is 1.434: up to 1.383, posthog-js fetches each script even when it is already registered, so this
|
|
16
|
+
* import would change nothing (five apps on 1.300–1.383 found that in the 0.25.0 rollout).
|
|
15
17
|
*/
|
|
16
18
|
import "posthog-js/dist/exception-autocapture.js";
|
|
17
19
|
import "posthog-js/dist/dead-clicks-autocapture.js";
|