@zuplo/cli 7.7.9 → 7.7.10
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/node_modules/@posthog/core/dist/traces/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/traces/index.js +2 -1
- package/node_modules/@posthog/core/dist/traces/index.mjs +2 -1
- package/node_modules/@posthog/core/dist/traces/span.d.ts +9 -0
- package/node_modules/@posthog/core/dist/traces/span.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/traces/span.js +7 -2
- package/node_modules/@posthog/core/dist/traces/span.mjs +7 -2
- package/node_modules/@posthog/core/dist/utils/index.d.ts +1 -0
- package/node_modules/@posthog/core/dist/utils/index.d.ts.map +1 -1
- package/node_modules/@posthog/core/dist/utils/index.js +22 -2
- package/node_modules/@posthog/core/dist/utils/index.mjs +8 -1
- package/node_modules/@posthog/core/package.json +2 -2
- package/node_modules/@posthog/core/src/traces/index.spec.ts +82 -0
- package/node_modules/@posthog/core/src/traces/index.ts +3 -0
- package/node_modules/@posthog/core/src/traces/span.spec.ts +1 -0
- package/node_modules/@posthog/core/src/traces/span.ts +24 -2
- package/node_modules/@posthog/core/src/utils/index.ts +8 -0
- package/node_modules/@posthog/types/dist/posthog-config.d.ts +19 -4
- package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
- package/node_modules/@posthog/types/package.json +1 -1
- package/node_modules/@posthog/types/src/posthog-config.ts +19 -4
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/out/esm/{chunk-7ZX347IG.js → chunk-JTYJUJYO.js} +3 -3
- package/node_modules/@zuplo/runtime/out/esm/chunk-JTYJUJYO.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-M3VFT3HF.js +410 -0
- package/node_modules/@zuplo/runtime/out/esm/chunk-M3VFT3HF.js.map +1 -0
- package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +3 -3
- package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
- package/node_modules/@zuplo/runtime/out/types/index.d.ts +20 -1
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/package.json +11 -11
- package/node_modules/@zuplo/runtime/out/esm/chunk-7ZX347IG.js.map +0 -1
- package/node_modules/@zuplo/runtime/out/esm/chunk-KNAYKBEE.js +0 -410
- package/node_modules/@zuplo/runtime/out/esm/chunk-KNAYKBEE.js.map +0 -1
- /package/node_modules/@zuplo/runtime/out/esm/{chunk-KNAYKBEE.js.LEGAL.txt → chunk-M3VFT3HF.js.LEGAL.txt} +0 -0
|
@@ -2063,16 +2063,31 @@ export interface PostHogConfig {
|
|
|
2063
2063
|
/**
|
|
2064
2064
|
* Controls how often feature flags are automatically refreshed in long-running sessions.
|
|
2065
2065
|
*
|
|
2066
|
-
*
|
|
2067
|
-
*
|
|
2066
|
+
* The default interval is 5 minutes (300000ms) to pick up server-side flag changes without
|
|
2067
|
+
* requiring a page reload. This is useful for SPAs and long-running tabs. An explicitly set
|
|
2068
|
+
* positive interval stays fixed, even when the page gets no user interaction.
|
|
2069
|
+
*
|
|
2070
|
+
* **Each refresh is a billable feature flag request.** A page that stays open all day makes
|
|
2071
|
+
* up to 288 requests per day on the default interval, and every open tab and every named
|
|
2072
|
+
* instance refreshes on its own timer, so they add up. Set this option to `0` to stop the
|
|
2073
|
+
* background refreshes if that cost is not useful to you.
|
|
2068
2074
|
*
|
|
2069
2075
|
* **Tradeoffs:**
|
|
2070
|
-
* - **Shorter intervals**: Feature flag changes propagate faster, but increases network requests and server load.
|
|
2071
|
-
* - **Longer intervals**: Reduces network traffic (better for mobile/battery), but flag changes take longer to propagate.
|
|
2076
|
+
* - **Shorter intervals**: Feature flag changes propagate faster, but increases network requests, cost, and server load.
|
|
2077
|
+
* - **Longer intervals**: Reduces network traffic (better for mobile/battery) and cost, but flag changes take longer to propagate.
|
|
2072
2078
|
* - **Disabled (0 or any negative value)**: No background refreshes. Flags only update on page load or manual `reloadFeatureFlags()` calls.
|
|
2073
2079
|
* Use this if you control flag updates manually or have infrequent flag changes.
|
|
2074
2080
|
*
|
|
2075
2081
|
* Hidden pages skip scheduled refreshes and reload due flags when they become visible.
|
|
2082
|
+
*
|
|
2083
|
+
* When this option is omitted, a visible page that gets no user interaction (such as a
|
|
2084
|
+
* dashboard, a page being read, a video player, or a kiosk) doubles the interval after every
|
|
2085
|
+
* refresh, up to one hour. Automatic refreshes continue at that interval; they do not stop.
|
|
2086
|
+
* The next click, key press, wheel, touch, or return to visibility restores the five-minute
|
|
2087
|
+
* default. Scrolling driven by a script, such as an auto-playing carousel, does not count as
|
|
2088
|
+
* an interaction. Set this option explicitly to keep a fixed cadence, or to `0` to stop
|
|
2089
|
+
* background refreshes completely.
|
|
2090
|
+
*
|
|
2076
2091
|
* This option does not reload remote config.
|
|
2077
2092
|
*
|
|
2078
2093
|
* @default 300000 (5 minutes)
|