posthog-node 5.29.3 → 5.29.5

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.
@@ -450,7 +450,7 @@ class FeatureFlagsPoller {
450
450
  };
451
451
  }
452
452
  _requestFeatureFlagDefinitions() {
453
- const url = `${this.host}/api/feature_flag/local_evaluation?token=${this.projectApiKey}&send_cohorts`;
453
+ const url = `${this.host}/flags/definitions?token=${this.projectApiKey}&send_cohorts`;
454
454
  const options = this.getPersonalApiKeyRequestOptions('GET', this.flagsEtag);
455
455
  let abortTimeout = null;
456
456
  if (this.timeout && 'number' == typeof this.timeout) {
@@ -416,7 +416,7 @@ class FeatureFlagsPoller {
416
416
  };
417
417
  }
418
418
  _requestFeatureFlagDefinitions() {
419
- const url = `${this.host}/api/feature_flag/local_evaluation?token=${this.projectApiKey}&send_cohorts`;
419
+ const url = `${this.host}/flags/definitions?token=${this.projectApiKey}&send_cohorts`;
420
420
  const options = this.getPersonalApiKeyRequestOptions('GET', this.flagsEtag);
421
421
  let abortTimeout = null;
422
422
  if (this.timeout && 'number' == typeof this.timeout) {
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "5.29.3";
1
+ export declare const version = "5.29.5";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  version: ()=>version
28
28
  });
29
- const version = '5.29.3';
29
+ const version = '5.29.5';
30
30
  exports.version = __webpack_exports__.version;
31
31
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
32
32
  "version"
package/dist/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- const version = '5.29.3';
1
+ const version = '5.29.5';
2
2
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-node",
3
- "version": "5.29.3",
3
+ "version": "5.29.5",
4
4
  "description": "PostHog Node.js integration",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "module": "dist/entrypoints/index.node.mjs",
26
26
  "types": "dist/entrypoints/index.node.d.ts",
27
27
  "dependencies": {
28
- "@posthog/core": "1.25.3"
28
+ "@posthog/core": "1.26.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@edge-runtime/jest-environment": "^4.0.0",
@@ -914,7 +914,7 @@ class FeatureFlagsPoller {
914
914
  }
915
915
 
916
916
  _requestFeatureFlagDefinitions(): Promise<PostHogFetchResponse> {
917
- const url = `${this.host}/api/feature_flag/local_evaluation?token=${this.projectApiKey}&send_cohorts`
917
+ const url = `${this.host}/flags/definitions?token=${this.projectApiKey}&send_cohorts`
918
918
 
919
919
  const options = this.getPersonalApiKeyRequestOptions('GET', this.flagsEtag)
920
920
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '5.29.3'
1
+ export const version = '5.29.5'