Skip to content
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

fix: Use posthog.version in heatmap logic #24484

Merged
merged 2 commits into from
Aug 21, 2024
Merged

Conversation

robbie-c
Copy link
Member

@robbie-c robbie-c commented Aug 20, 2024

Problem

We're using a posthog-js private method.

Changes

Use the public field instead where we can.
Use the semver functions to check versions

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

The new semver function has tests, I haven't tested the logic changes

@robbie-c robbie-c changed the title Swap to use dedicated version checker fix: Use posthog.version in heatmap logic Aug 20, 2024
@robbie-c robbie-c force-pushed the fix/js-version-check-2 branch from cdeb470 to 0cadc32 Compare August 20, 2024 13:12
Copy link
Contributor

github-actions bot commented Aug 20, 2024

Size Change: +805 B (+0.07%)

Total Size: 1.08 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.08 MB +805 B (+0.07%)

compressed-size-action

@robbie-c robbie-c requested a review from benjackwhite August 20, 2024 13:24
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

4 snapshot changes in total. 0 added, 4 modified, 0 deleted:

  • chromium: 0 added, 4 modified, 0 deleted (wasn't pushed!)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@robbie-c robbie-c merged commit 406ed6e into master Aug 21, 2024
93 checks passed
@robbie-c robbie-c deleted the fix/js-version-check-2 branch August 21, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants