posthog-node 4.0.1 → 4.1.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/CHANGELOG.md +6 -1
- package/lib/index.cjs.js +3 -3
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +3 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/posthog-core/src/types.d.ts +1 -1
- package/package.json +2 -2
- package/src/extensions/sentry-integration.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Next
|
|
2
|
+
|
|
3
|
+
# 4.1.0 - 2024-08-14
|
|
4
|
+
|
|
5
|
+
1. chore: change host to new address.
|
|
6
|
+
2. chore: bump axios to 1.7.4 (fixes [CVE-2024-39338](https://github.com/advisories/GHSA-8hc4-vh64-cxmj))
|
|
1
7
|
|
|
2
8
|
# 4.0.1 - 2024-04-25
|
|
3
9
|
|
|
@@ -27,7 +33,6 @@
|
|
|
27
33
|
1. Fixed an issue where `shutdown` would potentially exit early if a flush was already in progress
|
|
28
34
|
2. Fixes some typos in types
|
|
29
35
|
|
|
30
|
-
|
|
31
36
|
# 4.0.0-beta.3 - 2024-03-13
|
|
32
37
|
|
|
33
38
|
1. Sets `User-Agent` headers with SDK name and version for RN
|
package/lib/index.cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var rusha = require('rusha');
|
|
6
6
|
|
|
7
|
-
var version = "4.0
|
|
7
|
+
var version = "4.1.0";
|
|
8
8
|
|
|
9
9
|
var PostHogPersistedProperty;
|
|
10
10
|
(function (PostHogPersistedProperty) {
|
|
@@ -960,7 +960,7 @@ class PostHogCoreStateless {
|
|
|
960
960
|
this._isInitialized = false;
|
|
961
961
|
assert(apiKey, "You must pass your PostHog project's api key.");
|
|
962
962
|
this.apiKey = apiKey;
|
|
963
|
-
this.host = removeTrailingSlash(options?.host || 'https://
|
|
963
|
+
this.host = removeTrailingSlash(options?.host || 'https://us.i.posthog.com');
|
|
964
964
|
this.flushAt = options?.flushAt ? Math.max(options?.flushAt, 1) : 20;
|
|
965
965
|
this.maxBatchSize = Math.max(this.flushAt, options?.maxBatchSize ?? 100);
|
|
966
966
|
this.maxQueueSize = Math.max(this.flushAt, options?.maxQueueSize ?? 1000);
|
|
@@ -2523,7 +2523,7 @@ class PostHogSentryIntegration {
|
|
|
2523
2523
|
this.organization = organization;
|
|
2524
2524
|
this.prefix = prefix;
|
|
2525
2525
|
this.name = 'posthog-node';
|
|
2526
|
-
this.posthogHost = posthog.options.host ?? 'https://
|
|
2526
|
+
this.posthogHost = posthog.options.host ?? 'https://us.i.posthog.com';
|
|
2527
2527
|
}
|
|
2528
2528
|
|
|
2529
2529
|
setupOnce(addGlobalEventProcessor, getCurrentHub) {
|