@walkeros/server-destination-posthog 4.8.1 → 4.8.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/server-destination-posthog",
4
- "version": "4.8.1",
4
+ "version": "4.8.2",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "server"
@@ -39,11 +39,11 @@
39
39
  },
40
40
  "flushAt": {
41
41
  "type": "number",
42
- "description": "Number of events queued before auto-flush. Default: 20."
42
+ "description": "Number of queued group identifies before auto-flush. Captures and identifies are sent at once, each push awaiting its own call. Default: 20."
43
43
  },
44
44
  "flushInterval": {
45
45
  "type": "number",
46
- "description": "Milliseconds between periodic flushes. Default: 10000."
46
+ "description": "Milliseconds between periodic flushes of queued group identifies. Default: 10000."
47
47
  },
48
48
  "personalApiKey": {
49
49
  "type": "string",
@@ -57,22 +57,35 @@
57
57
  "type": "boolean",
58
58
  "description": "Disable GeoIP lookups globally. Useful for GDPR compliance."
59
59
  },
60
+ "disableCompression": {
61
+ "type": "boolean",
62
+ "description": "Send requests uncompressed (no gzip). Default: false."
63
+ },
64
+ "requestTimeout": {
65
+ "type": "number",
66
+ "description": "Milliseconds before a request to PostHog times out. Default: a quarter of config.timeout (2500 at the 10 s default). A value set here wins."
67
+ },
68
+ "fetchRetryCount": {
69
+ "type": "number",
70
+ "description": "Retries of a failed request to PostHog. Default: 2, which with the default timeout and delay ends within config.timeout. A value set here wins."
71
+ },
72
+ "fetchRetryDelay": {
73
+ "type": "number",
74
+ "description": "Milliseconds between retries of a failed request. Default: a tenth of config.timeout (1000 at the 10 s default). A value set here wins."
75
+ },
60
76
  "debug": {
61
77
  "type": "boolean",
62
78
  "description": "Enable PostHog SDK debug logging. Default: false."
63
79
  },
80
+ "disabled": {
81
+ "type": "boolean",
82
+ "description": "Disable the PostHog client: nothing is sent. Default: false."
83
+ },
64
84
  "identify": {
65
85
  "description": "walkerOS mapping value resolving to an identity object. Keys: distinctId, $set, $set_once. Resolved on every push (server is stateless)."
66
86
  },
67
87
  "group": {
68
88
  "description": "walkerOS mapping value resolving to a group object. Keys: type, key, properties. Resolved on every push."
69
- },
70
- "include": {
71
- "type": "array",
72
- "items": {
73
- "type": "string"
74
- },
75
- "description": "Event sections to flatten into capture() properties (e.g. [\"data\", \"globals\"])."
76
89
  }
77
90
  },
78
91
  "required": [
@@ -138,7 +151,7 @@
138
151
  "consent": {
139
152
  "functional": true
140
153
  },
141
- "id": "a013ba187cc7d5d2",
154
+ "id": "ev1700000104",
142
155
  "trigger": "load",
143
156
  "entity": "page",
144
157
  "action": "view",
@@ -165,6 +178,7 @@
165
178
  [
166
179
  "client.capture",
167
180
  {
181
+ "uuid": "c6a47305-44fc-8835-b15f-3f494c1f9e20",
168
182
  "distinctId": "us3r",
169
183
  "event": "page view",
170
184
  "properties": {},
@@ -185,7 +199,7 @@
185
199
  "currency": "EUR",
186
200
  "shipping": 5.22,
187
201
  "taxes": 73.76,
188
- "total": 555
202
+ "value": 555
189
203
  },
190
204
  "context": {
191
205
  "shopping": [
@@ -255,7 +269,7 @@
255
269
  "consent": {
256
270
  "functional": true
257
271
  },
258
- "id": "48473e592c0ce9e1",
272
+ "id": "ev1700000101",
259
273
  "trigger": "load",
260
274
  "entity": "order",
261
275
  "action": "complete",
@@ -276,6 +290,7 @@
276
290
  [
277
291
  "client.capture",
278
292
  {
293
+ "uuid": "a5a5ede9-4f3b-85f4-b30f-3da8773fabfa",
279
294
  "distinctId": "us3r",
280
295
  "event": "order complete",
281
296
  "properties": {
@@ -283,7 +298,7 @@
283
298
  "data_currency": "EUR",
284
299
  "data_shipping": 5.22,
285
300
  "data_taxes": 73.76,
286
- "data_total": 555,
301
+ "data_value": 555,
287
302
  "globals_pagegroup": "shop"
288
303
  }
289
304
  }
@@ -357,7 +372,7 @@
357
372
  "consent": {
358
373
  "functional": true
359
374
  },
360
- "id": "7cd732153100299b",
375
+ "id": "ev1700000100",
361
376
  "trigger": "load",
362
377
  "entity": "product",
363
378
  "action": "view",
@@ -374,6 +389,7 @@
374
389
  [
375
390
  "client.capture",
376
391
  {
392
+ "uuid": "b8a7f21f-1a9f-8aa7-8480-8d16fb64c44c",
377
393
  "distinctId": "us3r",
378
394
  "event": "product view",
379
395
  "properties": {}
@@ -419,7 +435,7 @@
419
435
  "consent": {
420
436
  "functional": true
421
437
  },
422
- "id": "b12f7103a8e66e61",
438
+ "id": "898bd98fba0f9795",
423
439
  "trigger": "test",
424
440
  "entity": "company",
425
441
  "action": "update",
@@ -465,6 +481,36 @@
465
481
  ]
466
482
  ]
467
483
  },
484
+ "groupIdentifyWithoutData": {
485
+ "public": false,
486
+ "description": "A silent group rule whose key finds no data sends nothing: an unmet mapping, not a failure, so the push returns normally.",
487
+ "in": {
488
+ "name": "company update",
489
+ "entity": "company",
490
+ "action": "update",
491
+ "timestamp": 1700000106
492
+ },
493
+ "mapping": {
494
+ "silent": true,
495
+ "settings": {
496
+ "group": {
497
+ "map": {
498
+ "type": {
499
+ "value": "company"
500
+ },
501
+ "key": "data.company_id",
502
+ "properties": {
503
+ "map": {
504
+ "name": "data.company_name",
505
+ "plan": "data.plan"
506
+ }
507
+ }
508
+ }
509
+ }
510
+ }
511
+ },
512
+ "out": []
513
+ },
468
514
  "identifyWithSetAndSetOnce": {
469
515
  "title": "Identify with $set",
470
516
  "description": "A user login fires PostHog identify with $set and $set_once person properties and skips the capture.",
@@ -503,7 +549,7 @@
503
549
  "consent": {
504
550
  "functional": true
505
551
  },
506
- "id": "eb8b8f16d8f6d390",
552
+ "id": "bc6d4af5367fa63c",
507
553
  "trigger": "test",
508
554
  "entity": "user",
509
555
  "action": "login",
@@ -554,6 +600,65 @@
554
600
  }
555
601
  ]
556
602
  ]
603
+ },
604
+ "silentRule": {
605
+ "public": false,
606
+ "description": "A rule with silent: true and no identify or group mapping sends nothing to PostHog.",
607
+ "in": {
608
+ "name": "page view",
609
+ "data": {
610
+ "domain": "www.example.com",
611
+ "title": "walkerOS documentation",
612
+ "referrer": "https://www.walkeros.io/",
613
+ "search": "?foo=bar",
614
+ "hash": "#hash",
615
+ "id": "/docs/"
616
+ },
617
+ "context": {
618
+ "dev": [
619
+ "test",
620
+ 1
621
+ ]
622
+ },
623
+ "globals": {
624
+ "pagegroup": "docs"
625
+ },
626
+ "custom": {
627
+ "completely": "random"
628
+ },
629
+ "user": {
630
+ "id": "us3r",
631
+ "device": "c00k13",
632
+ "session": "s3ss10n"
633
+ },
634
+ "nested": [
635
+ {
636
+ "entity": "child",
637
+ "data": {
638
+ "is": "subordinated"
639
+ }
640
+ }
641
+ ],
642
+ "consent": {
643
+ "functional": true
644
+ },
645
+ "id": "f0cc5f6fec3d8eeb",
646
+ "trigger": "load",
647
+ "entity": "page",
648
+ "action": "view",
649
+ "timestamp": 1700000105,
650
+ "timing": 3.14,
651
+ "source": {
652
+ "count": 1,
653
+ "trace": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
654
+ "type": "collector",
655
+ "schema": "4"
656
+ }
657
+ },
658
+ "mapping": {
659
+ "silent": true
660
+ },
661
+ "out": []
557
662
  }
558
663
  }
559
664
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/server-destination-posthog",
3
3
  "description": "PostHog server destination for walkerOS",
4
- "version": "4.8.1",
4
+ "version": "4.8.2",
5
5
  "license": "MIT",
6
6
  "exports": {
7
7
  ".": {
@@ -35,12 +35,12 @@
35
35
  "update": "npx npm-check-updates -u && npm update"
36
36
  },
37
37
  "dependencies": {
38
- "@walkeros/core": "4.8.1",
39
- "@walkeros/server-core": "4.8.1",
38
+ "@walkeros/core": "4.8.2",
39
+ "@walkeros/server-core": "4.8.2",
40
40
  "posthog-node": "^5.0.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@walkeros/collector": "4.8.1"
43
+ "@walkeros/collector": "4.8.2"
44
44
  },
45
45
  "repository": {
46
46
  "url": "git+https://github.com/elbwalker/walkerOS.git",