posthog-node 5.68.1 → 5.68.2

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.
@@ -36,7 +36,9 @@ const external_transform_js_namespaceObject = require("./transform.js");
36
36
  const V1_ANALYTICS_PATH = '/i/v1/analytics/events';
37
37
  const DEFAULT_MAX_BACKOFF_MS = 30000;
38
38
  const RETRYABLE_STATUSES = new Set([
39
+ 404,
39
40
  408,
41
+ 429,
40
42
  500,
41
43
  502,
42
44
  503,
@@ -4,7 +4,9 @@ import { buildV1Batch } from "./transform.mjs";
4
4
  const V1_ANALYTICS_PATH = '/i/v1/analytics/events';
5
5
  const DEFAULT_MAX_BACKOFF_MS = 30000;
6
6
  const RETRYABLE_STATUSES = new Set([
7
+ 404,
7
8
  408,
9
+ 429,
8
10
  500,
9
11
  502,
10
12
  503,
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "5.68.1";
1
+ export declare const version = "5.68.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -27,7 +27,7 @@ var __webpack_require__ = {};
27
27
  })();
28
28
  var __webpack_exports__ = {};
29
29
  __webpack_require__.r(__webpack_exports__);
30
- const version = "5.68.1";
30
+ const version = "5.68.2";
31
31
  __webpack_require__.d(__webpack_exports__, {}, {
32
32
  version: version
33
33
  });
package/dist/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- const version = "5.68.1";
1
+ const version = "5.68.2";
2
2
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-node",
3
- "version": "5.68.1",
3
+ "version": "5.68.2",
4
4
  "bugs": {
5
5
  "url": "https://github.com/PostHog/posthog-js/issues"
6
6
  },
@@ -44,8 +44,8 @@
44
44
  "rxjs": "^7.8.0",
45
45
  "typescript": "7.0.2",
46
46
  "vitest": "^1.6.1",
47
- "@posthog-tooling/tsconfig-base": "1.1.1",
48
- "@posthog/types": "^1.423.0"
47
+ "@posthog/types": "^1.423.0",
48
+ "@posthog-tooling/tsconfig-base": "1.1.1"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@opentelemetry/api": "^1.2.0",
@@ -17,8 +17,8 @@ import type { V1BatchResponse, V1Event } from './types'
17
17
  const V1_ANALYTICS_PATH = '/i/v1/analytics/events'
18
18
  const DEFAULT_MAX_BACKOFF_MS = 30_000
19
19
 
20
- /** HTTP statuses the v1 backend wants retried. 429 is intentionally terminal in v1. */
21
- const RETRYABLE_STATUSES = new Set([408, 500, 502, 503, 504])
20
+ /** HTTP statuses a capture request is retried on. 404 and 429 can come from a proxy in front of capture. */
21
+ const RETRYABLE_STATUSES = new Set([404, 408, 429, 500, 502, 503, 504])
22
22
 
23
23
  export interface V1CaptureSenderConfig {
24
24
  host: string
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = "5.68.1"
1
+ export const version = "5.68.2"