-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Swap to use dedicated version checker #24345
Conversation
const posthogVersion = | ||
posthog.version ?? | ||
(posthog as any)?._calculate_event_properties?.('test', {})?.['$lib_version'] ?? | ||
'0.0.0' | ||
const majorMinorVersion = posthogVersion.split('.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor point, but we could also replace this with the functions from semver
(would be along the lines of compareVersion(a,b) >= 0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given it is just a fallback I am going to be lazy and say no if thats alright 😅 but happy for you to take over and do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did this here #24484
# Conflicts: # frontend/src/toolbar/elements/heatmapLogic.ts
📸 UI snapshots have been updated3 snapshot changes in total. 0 added, 3 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
Size Change: +13 B (0%) Total Size: 1.07 MB ℹ️ View Unchanged
|
Problem
Needs PostHog/posthog-js#1357
Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
How did you test this code?