Commit 11ff147
fix(audience): lock context.libraryVersion to the SDK version
context.libraryVersion is the analytics identity of the tracking
library itself, used to segment telemetry by SDK version. It was
developer-overridable via AudienceConfig.PackageVersion, letting
arbitrary values pollute that signal. The override was also unused
internally.
Source libraryVersion from Constants.LibraryVersion at the Track /
Identify / Alias call sites and remove the public PackageVersion
property. Drift from package.json stays guarded by
ConstantsTests.LibraryVersion_MatchesPackageJson.
Breaking: removes public AudienceConfig.PackageVersion.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent e5e9ec6 commit 11ff147
2 files changed
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | 119 | | |
125 | 120 | | |
126 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| |||
0 commit comments