@contractspec/lib.analytics 1.59.0 → 1.61.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.
Files changed (1) hide show
  1. package/package.json +181 -49
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.analytics",
3
- "version": "1.59.0",
3
+ "version": "1.61.0",
4
4
  "description": "Product analytics and growth metrics",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -32,38 +32,170 @@
32
32
  "typecheck": "tsc --noEmit"
33
33
  },
34
34
  "dependencies": {
35
- "@contractspec/lib.contracts": "1.59.0",
36
- "@contractspec/lib.lifecycle": "1.59.0",
35
+ "@contractspec/lib.contracts": "1.61.0",
36
+ "@contractspec/lib.lifecycle": "1.61.0",
37
37
  "dayjs": "^1.11.13"
38
38
  },
39
39
  "devDependencies": {
40
- "@contractspec/tool.typescript": "1.59.0",
40
+ "@contractspec/tool.typescript": "1.61.0",
41
41
  "typescript": "^5.9.3",
42
- "@contractspec/tool.bun": "1.58.0"
42
+ "@contractspec/tool.bun": "1.60.0"
43
43
  },
44
44
  "exports": {
45
- ".": "./src/index.ts",
46
- "./churn": "./src/churn/index.ts",
47
- "./churn/index": "./src/churn/index.ts",
48
- "./churn/predictor": "./src/churn/predictor.ts",
49
- "./cohort": "./src/cohort/index.ts",
50
- "./cohort/index": "./src/cohort/index.ts",
51
- "./cohort/tracker": "./src/cohort/tracker.ts",
52
- "./funnel": "./src/funnel/index.ts",
53
- "./funnel/analyzer": "./src/funnel/analyzer.ts",
54
- "./funnel/index": "./src/funnel/index.ts",
55
- "./growth": "./src/growth/index.ts",
56
- "./growth/hypothesis-generator": "./src/growth/hypothesis-generator.ts",
57
- "./growth/index": "./src/growth/index.ts",
58
- "./lifecycle": "./src/lifecycle/index.ts",
59
- "./lifecycle/index": "./src/lifecycle/index.ts",
60
- "./lifecycle/metric-collectors": "./src/lifecycle/metric-collectors.ts",
61
- "./lifecycle/posthog-bridge": "./src/lifecycle/posthog-bridge.ts",
62
- "./lifecycle/posthog-metric-source": "./src/lifecycle/posthog-metric-source.ts",
63
- "./posthog": "./src/posthog/index.ts",
64
- "./posthog/event-source": "./src/posthog/event-source.ts",
65
- "./posthog/index": "./src/posthog/index.ts",
66
- "./types": "./src/types.ts"
45
+ ".": {
46
+ "types": "./dist/index.d.ts",
47
+ "bun": "./dist/index.js",
48
+ "node": "./dist/node/index.js",
49
+ "browser": "./dist/browser/index.js",
50
+ "default": "./dist/index.js"
51
+ },
52
+ "./churn": {
53
+ "types": "./dist/churn/index.d.ts",
54
+ "bun": "./dist/churn/index.js",
55
+ "node": "./dist/node/churn/index.js",
56
+ "browser": "./dist/browser/churn/index.js",
57
+ "default": "./dist/churn/index.js"
58
+ },
59
+ "./churn/index": {
60
+ "types": "./dist/churn/index.d.ts",
61
+ "bun": "./dist/churn/index.js",
62
+ "node": "./dist/node/churn/index.js",
63
+ "browser": "./dist/browser/churn/index.js",
64
+ "default": "./dist/churn/index.js"
65
+ },
66
+ "./churn/predictor": {
67
+ "types": "./dist/churn/predictor.d.ts",
68
+ "bun": "./dist/churn/predictor.js",
69
+ "node": "./dist/node/churn/predictor.js",
70
+ "browser": "./dist/browser/churn/predictor.js",
71
+ "default": "./dist/churn/predictor.js"
72
+ },
73
+ "./cohort": {
74
+ "types": "./dist/cohort/index.d.ts",
75
+ "bun": "./dist/cohort/index.js",
76
+ "node": "./dist/node/cohort/index.js",
77
+ "browser": "./dist/browser/cohort/index.js",
78
+ "default": "./dist/cohort/index.js"
79
+ },
80
+ "./cohort/index": {
81
+ "types": "./dist/cohort/index.d.ts",
82
+ "bun": "./dist/cohort/index.js",
83
+ "node": "./dist/node/cohort/index.js",
84
+ "browser": "./dist/browser/cohort/index.js",
85
+ "default": "./dist/cohort/index.js"
86
+ },
87
+ "./cohort/tracker": {
88
+ "types": "./dist/cohort/tracker.d.ts",
89
+ "bun": "./dist/cohort/tracker.js",
90
+ "node": "./dist/node/cohort/tracker.js",
91
+ "browser": "./dist/browser/cohort/tracker.js",
92
+ "default": "./dist/cohort/tracker.js"
93
+ },
94
+ "./funnel": {
95
+ "types": "./dist/funnel/index.d.ts",
96
+ "bun": "./dist/funnel/index.js",
97
+ "node": "./dist/node/funnel/index.js",
98
+ "browser": "./dist/browser/funnel/index.js",
99
+ "default": "./dist/funnel/index.js"
100
+ },
101
+ "./funnel/analyzer": {
102
+ "types": "./dist/funnel/analyzer.d.ts",
103
+ "bun": "./dist/funnel/analyzer.js",
104
+ "node": "./dist/node/funnel/analyzer.js",
105
+ "browser": "./dist/browser/funnel/analyzer.js",
106
+ "default": "./dist/funnel/analyzer.js"
107
+ },
108
+ "./funnel/index": {
109
+ "types": "./dist/funnel/index.d.ts",
110
+ "bun": "./dist/funnel/index.js",
111
+ "node": "./dist/node/funnel/index.js",
112
+ "browser": "./dist/browser/funnel/index.js",
113
+ "default": "./dist/funnel/index.js"
114
+ },
115
+ "./growth": {
116
+ "types": "./dist/growth/index.d.ts",
117
+ "bun": "./dist/growth/index.js",
118
+ "node": "./dist/node/growth/index.js",
119
+ "browser": "./dist/browser/growth/index.js",
120
+ "default": "./dist/growth/index.js"
121
+ },
122
+ "./growth/hypothesis-generator": {
123
+ "types": "./dist/growth/hypothesis-generator.d.ts",
124
+ "bun": "./dist/growth/hypothesis-generator.js",
125
+ "node": "./dist/node/growth/hypothesis-generator.js",
126
+ "browser": "./dist/browser/growth/hypothesis-generator.js",
127
+ "default": "./dist/growth/hypothesis-generator.js"
128
+ },
129
+ "./growth/index": {
130
+ "types": "./dist/growth/index.d.ts",
131
+ "bun": "./dist/growth/index.js",
132
+ "node": "./dist/node/growth/index.js",
133
+ "browser": "./dist/browser/growth/index.js",
134
+ "default": "./dist/growth/index.js"
135
+ },
136
+ "./lifecycle": {
137
+ "types": "./dist/lifecycle/index.d.ts",
138
+ "bun": "./dist/lifecycle/index.js",
139
+ "node": "./dist/node/lifecycle/index.js",
140
+ "browser": "./dist/browser/lifecycle/index.js",
141
+ "default": "./dist/lifecycle/index.js"
142
+ },
143
+ "./lifecycle/index": {
144
+ "types": "./dist/lifecycle/index.d.ts",
145
+ "bun": "./dist/lifecycle/index.js",
146
+ "node": "./dist/node/lifecycle/index.js",
147
+ "browser": "./dist/browser/lifecycle/index.js",
148
+ "default": "./dist/lifecycle/index.js"
149
+ },
150
+ "./lifecycle/metric-collectors": {
151
+ "types": "./dist/lifecycle/metric-collectors.d.ts",
152
+ "bun": "./dist/lifecycle/metric-collectors.js",
153
+ "node": "./dist/node/lifecycle/metric-collectors.js",
154
+ "browser": "./dist/browser/lifecycle/metric-collectors.js",
155
+ "default": "./dist/lifecycle/metric-collectors.js"
156
+ },
157
+ "./lifecycle/posthog-bridge": {
158
+ "types": "./dist/lifecycle/posthog-bridge.d.ts",
159
+ "bun": "./dist/lifecycle/posthog-bridge.js",
160
+ "node": "./dist/node/lifecycle/posthog-bridge.js",
161
+ "browser": "./dist/browser/lifecycle/posthog-bridge.js",
162
+ "default": "./dist/lifecycle/posthog-bridge.js"
163
+ },
164
+ "./lifecycle/posthog-metric-source": {
165
+ "types": "./dist/lifecycle/posthog-metric-source.d.ts",
166
+ "bun": "./dist/lifecycle/posthog-metric-source.js",
167
+ "node": "./dist/node/lifecycle/posthog-metric-source.js",
168
+ "browser": "./dist/browser/lifecycle/posthog-metric-source.js",
169
+ "default": "./dist/lifecycle/posthog-metric-source.js"
170
+ },
171
+ "./posthog": {
172
+ "types": "./dist/posthog/index.d.ts",
173
+ "bun": "./dist/posthog/index.js",
174
+ "node": "./dist/node/posthog/index.js",
175
+ "browser": "./dist/browser/posthog/index.js",
176
+ "default": "./dist/posthog/index.js"
177
+ },
178
+ "./posthog/event-source": {
179
+ "types": "./dist/posthog/event-source.d.ts",
180
+ "bun": "./dist/posthog/event-source.js",
181
+ "node": "./dist/node/posthog/event-source.js",
182
+ "browser": "./dist/browser/posthog/event-source.js",
183
+ "default": "./dist/posthog/event-source.js"
184
+ },
185
+ "./posthog/index": {
186
+ "types": "./dist/posthog/index.d.ts",
187
+ "bun": "./dist/posthog/index.js",
188
+ "node": "./dist/node/posthog/index.js",
189
+ "browser": "./dist/browser/posthog/index.js",
190
+ "default": "./dist/posthog/index.js"
191
+ },
192
+ "./types": {
193
+ "types": "./dist/types.d.ts",
194
+ "bun": "./dist/types.js",
195
+ "node": "./dist/node/types.js",
196
+ "browser": "./dist/browser/types.js",
197
+ "default": "./dist/types.js"
198
+ }
67
199
  },
68
200
  "publishConfig": {
69
201
  "access": "public",
@@ -71,154 +203,154 @@
71
203
  ".": {
72
204
  "types": "./dist/index.d.ts",
73
205
  "bun": "./dist/index.js",
74
- "node": "./dist/node/index.mjs",
206
+ "node": "./dist/node/index.js",
75
207
  "browser": "./dist/browser/index.js",
76
208
  "default": "./dist/index.js"
77
209
  },
78
210
  "./churn": {
79
211
  "types": "./dist/churn/index.d.ts",
80
212
  "bun": "./dist/churn/index.js",
81
- "node": "./dist/node/churn/index.mjs",
213
+ "node": "./dist/node/churn/index.js",
82
214
  "browser": "./dist/browser/churn/index.js",
83
215
  "default": "./dist/churn/index.js"
84
216
  },
85
217
  "./churn/index": {
86
218
  "types": "./dist/churn/index.d.ts",
87
219
  "bun": "./dist/churn/index.js",
88
- "node": "./dist/node/churn/index.mjs",
220
+ "node": "./dist/node/churn/index.js",
89
221
  "browser": "./dist/browser/churn/index.js",
90
222
  "default": "./dist/churn/index.js"
91
223
  },
92
224
  "./churn/predictor": {
93
225
  "types": "./dist/churn/predictor.d.ts",
94
226
  "bun": "./dist/churn/predictor.js",
95
- "node": "./dist/node/churn/predictor.mjs",
227
+ "node": "./dist/node/churn/predictor.js",
96
228
  "browser": "./dist/browser/churn/predictor.js",
97
229
  "default": "./dist/churn/predictor.js"
98
230
  },
99
231
  "./cohort": {
100
232
  "types": "./dist/cohort/index.d.ts",
101
233
  "bun": "./dist/cohort/index.js",
102
- "node": "./dist/node/cohort/index.mjs",
234
+ "node": "./dist/node/cohort/index.js",
103
235
  "browser": "./dist/browser/cohort/index.js",
104
236
  "default": "./dist/cohort/index.js"
105
237
  },
106
238
  "./cohort/index": {
107
239
  "types": "./dist/cohort/index.d.ts",
108
240
  "bun": "./dist/cohort/index.js",
109
- "node": "./dist/node/cohort/index.mjs",
241
+ "node": "./dist/node/cohort/index.js",
110
242
  "browser": "./dist/browser/cohort/index.js",
111
243
  "default": "./dist/cohort/index.js"
112
244
  },
113
245
  "./cohort/tracker": {
114
246
  "types": "./dist/cohort/tracker.d.ts",
115
247
  "bun": "./dist/cohort/tracker.js",
116
- "node": "./dist/node/cohort/tracker.mjs",
248
+ "node": "./dist/node/cohort/tracker.js",
117
249
  "browser": "./dist/browser/cohort/tracker.js",
118
250
  "default": "./dist/cohort/tracker.js"
119
251
  },
120
252
  "./funnel": {
121
253
  "types": "./dist/funnel/index.d.ts",
122
254
  "bun": "./dist/funnel/index.js",
123
- "node": "./dist/node/funnel/index.mjs",
255
+ "node": "./dist/node/funnel/index.js",
124
256
  "browser": "./dist/browser/funnel/index.js",
125
257
  "default": "./dist/funnel/index.js"
126
258
  },
127
259
  "./funnel/analyzer": {
128
260
  "types": "./dist/funnel/analyzer.d.ts",
129
261
  "bun": "./dist/funnel/analyzer.js",
130
- "node": "./dist/node/funnel/analyzer.mjs",
262
+ "node": "./dist/node/funnel/analyzer.js",
131
263
  "browser": "./dist/browser/funnel/analyzer.js",
132
264
  "default": "./dist/funnel/analyzer.js"
133
265
  },
134
266
  "./funnel/index": {
135
267
  "types": "./dist/funnel/index.d.ts",
136
268
  "bun": "./dist/funnel/index.js",
137
- "node": "./dist/node/funnel/index.mjs",
269
+ "node": "./dist/node/funnel/index.js",
138
270
  "browser": "./dist/browser/funnel/index.js",
139
271
  "default": "./dist/funnel/index.js"
140
272
  },
141
273
  "./growth": {
142
274
  "types": "./dist/growth/index.d.ts",
143
275
  "bun": "./dist/growth/index.js",
144
- "node": "./dist/node/growth/index.mjs",
276
+ "node": "./dist/node/growth/index.js",
145
277
  "browser": "./dist/browser/growth/index.js",
146
278
  "default": "./dist/growth/index.js"
147
279
  },
148
280
  "./growth/hypothesis-generator": {
149
281
  "types": "./dist/growth/hypothesis-generator.d.ts",
150
282
  "bun": "./dist/growth/hypothesis-generator.js",
151
- "node": "./dist/node/growth/hypothesis-generator.mjs",
283
+ "node": "./dist/node/growth/hypothesis-generator.js",
152
284
  "browser": "./dist/browser/growth/hypothesis-generator.js",
153
285
  "default": "./dist/growth/hypothesis-generator.js"
154
286
  },
155
287
  "./growth/index": {
156
288
  "types": "./dist/growth/index.d.ts",
157
289
  "bun": "./dist/growth/index.js",
158
- "node": "./dist/node/growth/index.mjs",
290
+ "node": "./dist/node/growth/index.js",
159
291
  "browser": "./dist/browser/growth/index.js",
160
292
  "default": "./dist/growth/index.js"
161
293
  },
162
294
  "./lifecycle": {
163
295
  "types": "./dist/lifecycle/index.d.ts",
164
296
  "bun": "./dist/lifecycle/index.js",
165
- "node": "./dist/node/lifecycle/index.mjs",
297
+ "node": "./dist/node/lifecycle/index.js",
166
298
  "browser": "./dist/browser/lifecycle/index.js",
167
299
  "default": "./dist/lifecycle/index.js"
168
300
  },
169
301
  "./lifecycle/index": {
170
302
  "types": "./dist/lifecycle/index.d.ts",
171
303
  "bun": "./dist/lifecycle/index.js",
172
- "node": "./dist/node/lifecycle/index.mjs",
304
+ "node": "./dist/node/lifecycle/index.js",
173
305
  "browser": "./dist/browser/lifecycle/index.js",
174
306
  "default": "./dist/lifecycle/index.js"
175
307
  },
176
308
  "./lifecycle/metric-collectors": {
177
309
  "types": "./dist/lifecycle/metric-collectors.d.ts",
178
310
  "bun": "./dist/lifecycle/metric-collectors.js",
179
- "node": "./dist/node/lifecycle/metric-collectors.mjs",
311
+ "node": "./dist/node/lifecycle/metric-collectors.js",
180
312
  "browser": "./dist/browser/lifecycle/metric-collectors.js",
181
313
  "default": "./dist/lifecycle/metric-collectors.js"
182
314
  },
183
315
  "./lifecycle/posthog-bridge": {
184
316
  "types": "./dist/lifecycle/posthog-bridge.d.ts",
185
317
  "bun": "./dist/lifecycle/posthog-bridge.js",
186
- "node": "./dist/node/lifecycle/posthog-bridge.mjs",
318
+ "node": "./dist/node/lifecycle/posthog-bridge.js",
187
319
  "browser": "./dist/browser/lifecycle/posthog-bridge.js",
188
320
  "default": "./dist/lifecycle/posthog-bridge.js"
189
321
  },
190
322
  "./lifecycle/posthog-metric-source": {
191
323
  "types": "./dist/lifecycle/posthog-metric-source.d.ts",
192
324
  "bun": "./dist/lifecycle/posthog-metric-source.js",
193
- "node": "./dist/node/lifecycle/posthog-metric-source.mjs",
325
+ "node": "./dist/node/lifecycle/posthog-metric-source.js",
194
326
  "browser": "./dist/browser/lifecycle/posthog-metric-source.js",
195
327
  "default": "./dist/lifecycle/posthog-metric-source.js"
196
328
  },
197
329
  "./posthog": {
198
330
  "types": "./dist/posthog/index.d.ts",
199
331
  "bun": "./dist/posthog/index.js",
200
- "node": "./dist/node/posthog/index.mjs",
332
+ "node": "./dist/node/posthog/index.js",
201
333
  "browser": "./dist/browser/posthog/index.js",
202
334
  "default": "./dist/posthog/index.js"
203
335
  },
204
336
  "./posthog/event-source": {
205
337
  "types": "./dist/posthog/event-source.d.ts",
206
338
  "bun": "./dist/posthog/event-source.js",
207
- "node": "./dist/node/posthog/event-source.mjs",
339
+ "node": "./dist/node/posthog/event-source.js",
208
340
  "browser": "./dist/browser/posthog/event-source.js",
209
341
  "default": "./dist/posthog/event-source.js"
210
342
  },
211
343
  "./posthog/index": {
212
344
  "types": "./dist/posthog/index.d.ts",
213
345
  "bun": "./dist/posthog/index.js",
214
- "node": "./dist/node/posthog/index.mjs",
346
+ "node": "./dist/node/posthog/index.js",
215
347
  "browser": "./dist/browser/posthog/index.js",
216
348
  "default": "./dist/posthog/index.js"
217
349
  },
218
350
  "./types": {
219
351
  "types": "./dist/types.d.ts",
220
352
  "bun": "./dist/types.js",
221
- "node": "./dist/node/types.mjs",
353
+ "node": "./dist/node/types.js",
222
354
  "browser": "./dist/browser/types.js",
223
355
  "default": "./dist/types.js"
224
356
  }