posthog-node 5.38.2 → 5.38.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.
@@ -4,6 +4,9 @@
4
4
  /**
5
5
  * Integrate Sentry with PostHog. This will add a direct link to the person in Sentry, and an $exception event in PostHog.
6
6
  *
7
+ * @deprecated This integration is deprecated and will be removed in a future major version. Use PostHog Error Tracking for Node instead:
8
+ * https://posthog.com/docs/error-tracking/installation/node
9
+ *
7
10
  * ### Usage
8
11
  *
9
12
  * Sentry.init({
@@ -42,8 +45,26 @@ export type SentryIntegrationOptions = {
42
45
  severityAllowList?: CoreErrorTracking.SeverityLevel[] | '*';
43
46
  sendExceptionsToPostHog?: boolean;
44
47
  };
48
+ /**
49
+ * Creates an event processor for the deprecated Sentry integration.
50
+ *
51
+ * @deprecated This integration is deprecated and will be removed in a future major version. Use PostHog Error Tracking for Node instead:
52
+ * https://posthog.com/docs/error-tracking/installation/node
53
+ */
45
54
  export declare function createEventProcessor(_posthog: PostHogBackendClient, { organization, projectId, prefix, severityAllowList, sendExceptionsToPostHog, }?: SentryIntegrationOptions): (event: _SentryEvent) => _SentryEvent;
55
+ /**
56
+ * Creates the function-based Sentry integration.
57
+ *
58
+ * @deprecated This integration is deprecated and will be removed in a future major version. Use PostHog Error Tracking for Node instead:
59
+ * https://posthog.com/docs/error-tracking/installation/node
60
+ */
46
61
  export declare function sentryIntegration(_posthog: PostHogBackendClient, options?: SentryIntegrationOptions): _SentryIntegration;
62
+ /**
63
+ * Class-based Sentry integration.
64
+ *
65
+ * @deprecated This integration is deprecated and will be removed in a future major version. Use PostHog Error Tracking for Node instead:
66
+ * https://posthog.com/docs/error-tracking/installation/node
67
+ */
47
68
  export declare class PostHogSentryIntegration implements _SentryIntegrationClass {
48
69
  readonly name = "posthog-node";
49
70
  static readonly POSTHOG_ID_TAG = "posthog_distinct_id";
@@ -1 +1 @@
1
- {"version":3,"file":"sentry-integration.d.ts","sourceRoot":"","sources":["../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uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC,CAAA;AAID;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,oBAAoB,EAC9B,EACE,YAAY,EACZ,SAAS,EACT,MAAM,EACN,iBAA6B,EAC7B,uBAA8B,GAC/B,GAAE,wBAA6B,GAC/B,CAAC,KAAK,EAAE,YAAY,KAAK,YAAY,CA0EvC;AAGD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,CAAC,EAAE,wBAAwB,GACjC,kBAAkB,CAQpB;AAGD;;;;;GAKG;AACH,qBAAa,wBAAyB,YAAW,uBAAuB;IACtE,SAAgB,IAAI,kBAAO;IAE3B,gBAAuB,cAAc,yBAAwB;IAEtD,SAAS,EAAE,CAChB,uBAAuB,EAAE,CAAC,QAAQ,EAAE,qBAAqB,KAAK,IAAI,EAClE,aAAa,EAAE,MAAM,UAAU,KAC5B,IAAI,CAAA;gBAGP,QAAQ,EAAE,oBAAoB,EAC9B,YAAY,CAAC,EAAE,MAAM,EACrB,MAAM,CAAC,EAAE,MAAM,EACf,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,aAAa,EAAE,GAAG,GAAG,EAC3D,uBAAuB,CAAC,EAAE,OAAO;CAoBpC"}
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const version = "5.38.2";
1
+ export declare const version = "5.38.3";
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.38.2';
29
+ const version = '5.38.3';
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.38.2';
1
+ const version = '5.38.3';
2
2
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-node",
3
- "version": "5.38.2",
3
+ "version": "5.38.3",
4
4
  "bugs": {
5
5
  "url": "https://github.com/PostHog/posthog-js/issues"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  "module": "dist/entrypoints/index.node.mjs",
29
29
  "types": "dist/entrypoints/index.node.d.ts",
30
30
  "dependencies": {
31
- "@posthog/core": "^1.35.3"
31
+ "@posthog/core": "^1.37.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@edge-runtime/jest-environment": "^4.0.0",
@@ -4,6 +4,9 @@
4
4
  /**
5
5
  * Integrate Sentry with PostHog. This will add a direct link to the person in Sentry, and an $exception event in PostHog.
6
6
  *
7
+ * @deprecated This integration is deprecated and will be removed in a future major version. Use PostHog Error Tracking for Node instead:
8
+ * https://posthog.com/docs/error-tracking/installation/node
9
+ *
7
10
  * ### Usage
8
11
  *
9
12
  * Sentry.init({
@@ -76,6 +79,12 @@ export type SentryIntegrationOptions = {
76
79
 
77
80
  const NAME = 'posthog-node'
78
81
 
82
+ /**
83
+ * Creates an event processor for the deprecated Sentry integration.
84
+ *
85
+ * @deprecated This integration is deprecated and will be removed in a future major version. Use PostHog Error Tracking for Node instead:
86
+ * https://posthog.com/docs/error-tracking/installation/node
87
+ */
79
88
  export function createEventProcessor(
80
89
  _posthog: PostHogBackendClient,
81
90
  {
@@ -162,6 +171,12 @@ export function createEventProcessor(
162
171
  }
163
172
 
164
173
  // V8 integration - function based
174
+ /**
175
+ * Creates the function-based Sentry integration.
176
+ *
177
+ * @deprecated This integration is deprecated and will be removed in a future major version. Use PostHog Error Tracking for Node instead:
178
+ * https://posthog.com/docs/error-tracking/installation/node
179
+ */
165
180
  export function sentryIntegration(
166
181
  _posthog: PostHogBackendClient,
167
182
  options?: SentryIntegrationOptions
@@ -176,6 +191,12 @@ export function sentryIntegration(
176
191
  }
177
192
 
178
193
  // V7 integration - class based
194
+ /**
195
+ * Class-based Sentry integration.
196
+ *
197
+ * @deprecated This integration is deprecated and will be removed in a future major version. Use PostHog Error Tracking for Node instead:
198
+ * https://posthog.com/docs/error-tracking/installation/node
199
+ */
179
200
  export class PostHogSentryIntegration implements _SentryIntegrationClass {
180
201
  public readonly name = NAME
181
202
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '5.38.2'
1
+ export const version = '5.38.3'