@workleap/mixpanel 3.0.2 → 4.0.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 CHANGED
@@ -1,5 +1,16 @@
1
1
  # @workleap/mixpanel
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#101](https://github.com/workleap/wl-telemetry/pull/101) [`107d7ef`](https://github.com/workleap/wl-telemetry/commit/107d7efecd77470c8d13ee2ca055cf27405b31a8) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Added "noop" clients for LogRocket, Honeycomb and Mixpanel.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`107d7ef`](https://github.com/workleap/wl-telemetry/commit/107d7efecd77470c8d13ee2ca055cf27405b31a8)]:
12
+ - @workleap/logrocket@2.1.0
13
+
3
14
  ## 3.0.2
4
15
 
5
16
  ### Patch Changes
@@ -0,0 +1,4 @@
1
+ import type { MixpanelPartialClient } from "@workleap-telemetry/core";
2
+ export declare class NoopMixpanelClient implements MixpanelPartialClient {
3
+ createTrackingFunction(): () => Promise<void>;
4
+ }
@@ -0,0 +1,11 @@
1
+
2
+ ;// CONCATENATED MODULE: ./src/js/NoopMixpanelClient.ts
3
+ class NoopMixpanelClient {
4
+ createTrackingFunction() {
5
+ return ()=>Promise.resolve();
6
+ }
7
+ }
8
+
9
+ export { NoopMixpanelClient };
10
+
11
+ //# sourceMappingURL=NoopMixpanelClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"js/NoopMixpanelClient.js","sources":["webpack://@workleap/mixpanel/./src/js/NoopMixpanelClient.ts"],"sourcesContent":["import type { MixpanelPartialClient } from \"@workleap-telemetry/core\";\n\nexport class NoopMixpanelClient implements MixpanelPartialClient {\n createTrackingFunction() {\n return () => Promise.resolve();\n }\n}\n"],"names":["NoopMixpanelClient","Promise"],"mappings":";;AAEO,MAAMA;IACT,yBAAyB;QACrB,OAAO,IAAMC,QAAQ,OAAO;IAChC;AACJ"}
@@ -4,3 +4,4 @@ export { createTrackingFunction } from "./createTrackingFunction.ts";
4
4
  export type { MixpanelEnvironment } from "./env.ts";
5
5
  export { initializeMixpanel, type InitializeMixpanelOptions } from "./initializeMixpanel.ts";
6
6
  export { MixpanelClient, type MixpanelGlobalEventProperties } from "./MixpanelClient.ts";
7
+ export { NoopMixpanelClient } from "./NoopMixpanelClient.ts";
package/dist/js/index.js CHANGED
@@ -2,6 +2,7 @@ import { createTelemetryContext } from "@workleap-telemetry/core";
2
2
  import { createTrackingFunction } from "./createTrackingFunction.js";
3
3
  import { initializeMixpanel } from "./initializeMixpanel.js";
4
4
  import { MixpanelClient } from "./MixpanelClient.js";
5
+ import { NoopMixpanelClient } from "./NoopMixpanelClient.js";
5
6
 
6
7
  ;// CONCATENATED MODULE: external "@workleap-telemetry/core"
7
8
 
@@ -11,12 +12,15 @@ import { MixpanelClient } from "./MixpanelClient.js";
11
12
 
12
13
  ;// CONCATENATED MODULE: external "./MixpanelClient.js"
13
14
 
15
+ ;// CONCATENATED MODULE: external "./NoopMixpanelClient.js"
16
+
14
17
  ;// CONCATENATED MODULE: ./src/js/index.ts
15
18
 
16
19
 
17
20
 
18
21
 
19
22
 
20
- export { MixpanelClient, createTelemetryContext, createTrackingFunction, initializeMixpanel };
23
+
24
+ export { MixpanelClient, NoopMixpanelClient, createTelemetryContext, createTrackingFunction, initializeMixpanel };
21
25
 
22
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js/index.js","sources":["webpack://@workleap/mixpanel/./src/js/index.ts"],"sourcesContent":["export { createTelemetryContext, type CreateTelemetryContextOptions, type TelemetryContext } from \"@workleap-telemetry/core\";\nexport type { CreateMixpanelTrackingFunctionOptions, MixpanelEventProperties, MixpanelTrackingFunction, MixpanelTrackingFunctionOptions } from \"@workleap-telemetry/core\";\nexport { createTrackingFunction } from \"./createTrackingFunction.ts\";\nexport type { MixpanelEnvironment } from \"./env.ts\";\nexport { initializeMixpanel, type InitializeMixpanelOptions } from \"./initializeMixpanel.ts\";\nexport { MixpanelClient, type MixpanelGlobalEventProperties } from \"./MixpanelClient.ts\";\n\n"],"names":["createTelemetryContext","createTrackingFunction","initializeMixpanel","MixpanelClient"],"mappings":";;;;;;;;;;;;;;AAA6H;AAExD;AAEwB;AACJ"}
1
+ {"version":3,"file":"js/index.js","sources":["webpack://@workleap/mixpanel/./src/js/index.ts"],"sourcesContent":["export { createTelemetryContext, type CreateTelemetryContextOptions, type TelemetryContext } from \"@workleap-telemetry/core\";\nexport type { CreateMixpanelTrackingFunctionOptions, MixpanelEventProperties, MixpanelTrackingFunction, MixpanelTrackingFunctionOptions } from \"@workleap-telemetry/core\";\nexport { createTrackingFunction } from \"./createTrackingFunction.ts\";\nexport type { MixpanelEnvironment } from \"./env.ts\";\nexport { initializeMixpanel, type InitializeMixpanelOptions } from \"./initializeMixpanel.ts\";\nexport { MixpanelClient, type MixpanelGlobalEventProperties } from \"./MixpanelClient.ts\";\nexport { NoopMixpanelClient } from \"./NoopMixpanelClient.ts\";\n\n"],"names":["createTelemetryContext","createTrackingFunction","initializeMixpanel","MixpanelClient","NoopMixpanelClient"],"mappings":";;;;;;;;;;;;;;;;;AAA6H;AAExD;AAEwB;AACJ;AAC5B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workleap/mixpanel",
3
3
  "author": "Workleap",
4
- "version": "3.0.2",
4
+ "version": "4.0.0",
5
5
  "description": "A package containing utilities for Mixpanel telemetry.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "peerDependencies": {
36
36
  "react": "^18.0.0 || ^19.0.0",
37
37
  "react-dom": "^18.0.0 || ^19.0.0",
38
- "@workleap/logrocket": "2.0.2"
38
+ "@workleap/logrocket": "2.1.0"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "@workleap/logrocket": {
@@ -0,0 +1,7 @@
1
+ import type { MixpanelPartialClient } from "@workleap-telemetry/core";
2
+
3
+ export class NoopMixpanelClient implements MixpanelPartialClient {
4
+ createTrackingFunction() {
5
+ return () => Promise.resolve();
6
+ }
7
+ }
package/src/js/index.ts CHANGED
@@ -4,4 +4,5 @@ export { createTrackingFunction } from "./createTrackingFunction.ts";
4
4
  export type { MixpanelEnvironment } from "./env.ts";
5
5
  export { initializeMixpanel, type InitializeMixpanelOptions } from "./initializeMixpanel.ts";
6
6
  export { MixpanelClient, type MixpanelGlobalEventProperties } from "./MixpanelClient.ts";
7
+ export { NoopMixpanelClient } from "./NoopMixpanelClient.ts";
7
8