posthog-js 1.275.1 → 1.275.3

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.
Files changed (40) hide show
  1. package/dist/array.full.es5.js +1 -1
  2. package/dist/array.full.es5.js.map +1 -1
  3. package/dist/array.full.js +1 -1
  4. package/dist/array.full.js.map +1 -1
  5. package/dist/array.full.no-external.js +1 -1
  6. package/dist/array.full.no-external.js.map +1 -1
  7. package/dist/array.js +1 -1
  8. package/dist/array.js.map +1 -1
  9. package/dist/array.no-external.js +1 -1
  10. package/dist/array.no-external.js.map +1 -1
  11. package/dist/customizations.full.js +1 -1
  12. package/dist/lazy-recorder.js +1 -1
  13. package/dist/main.js +1 -1
  14. package/dist/main.js.map +1 -1
  15. package/dist/module.d.ts +6 -1
  16. package/dist/module.full.d.ts +6 -1
  17. package/dist/module.full.js +1 -1
  18. package/dist/module.full.js.map +1 -1
  19. package/dist/module.full.no-external.d.ts +6 -1
  20. package/dist/module.full.no-external.js +1 -1
  21. package/dist/module.full.no-external.js.map +1 -1
  22. package/dist/module.js +1 -1
  23. package/dist/module.js.map +1 -1
  24. package/dist/module.no-external.d.ts +6 -1
  25. package/dist/module.no-external.js +1 -1
  26. package/dist/module.no-external.js.map +1 -1
  27. package/dist/posthog-recorder.js +1 -1
  28. package/dist/src/posthog-core.d.ts +1 -0
  29. package/dist/src/posthog-persistence.d.ts +5 -1
  30. package/dist/surveys-preview.d.ts +6 -1
  31. package/lib/package.json +1 -1
  32. package/lib/src/extensions/sentry-integration.js +0 -1
  33. package/lib/src/extensions/sentry-integration.js.map +1 -1
  34. package/lib/src/posthog-core.d.ts +1 -0
  35. package/lib/src/posthog-core.js +26 -12
  36. package/lib/src/posthog-core.js.map +1 -1
  37. package/lib/src/posthog-persistence.d.ts +5 -1
  38. package/lib/src/posthog-persistence.js +4 -0
  39. package/lib/src/posthog-persistence.js.map +1 -1
  40. package/package.json +2 -2
@@ -2241,7 +2241,11 @@ declare class PostHogPersistence {
2241
2241
  * @param {boolean=} isDisabled should persistence be disabled (e.g. because of consent management)
2242
2242
  */
2243
2243
  constructor(config: PostHogConfig, isDisabled?: boolean);
2244
- isDisabled(): boolean;
2244
+ /**
2245
+ * Returns whether persistence is disabled. Only available in SDKs > 1.257.1. Do not use on extensions, otherwise
2246
+ * it'll break backwards compatibility for any version before 1.257.1.
2247
+ */
2248
+ isDisabled?(): boolean;
2245
2249
  private _buildStorage;
2246
2250
  properties(): Properties;
2247
2251
  load(): void;
@@ -4273,6 +4277,7 @@ declare class PostHog {
4273
4277
  * @param metricValue The value of the metric to capture.
4274
4278
  */
4275
4279
  captureTraceMetric(traceId: string | number, metricName: string, metricValue: string | number | boolean): void;
4280
+ private _checkLocalStorageForDebug;
4276
4281
  }
4277
4282
 
4278
4283
  declare const posthog: PostHog;