docs: add backwards compatibility warnings to recorder entrypoints#3167
Merged
pauldambra merged 2 commits intomainfrom Feb 27, 2026
Merged
docs: add backwards compatibility warnings to recorder entrypoints#3167pauldambra merged 2 commits intomainfrom
pauldambra merged 2 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: pauldambra <984817+pauldambra@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add backward compatibility comments to recorder files
docs: add backwards compatibility warnings to recorder entrypoints
Feb 26, 2026
Contributor
📝 No Changeset FoundThis PR doesn't include a changeset. A changeset (and the release label) is required to release a new version. How to add a changesetRun this command and follow the prompts: pnpm changesetRemember: Never use |
TueHaulund
approved these changes
Feb 26, 2026
Contributor
Contributor
|
Size Change: 0 B Total Size: 6.69 MB ℹ️ View Unchanged
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
recorder.ts,recorder-v2.ts, andlazy-recorder.tsexist solely for backwards compatibility but have no indication of this, making it easy for developers to import them directly when they should be usingposthog-recorder.see: https://posthog.slack.com/archives/C07TQR0V16U/p1772134136416989
Changes
Added a two-line comment to the top of each file:
Files updated:
packages/browser/src/entrypoints/recorder.tspackages/browser/src/entrypoints/recorder-v2.tspackages/browser/src/entrypoints/lazy-recorder.tsRelease info Sub-libraries affected
Libraries affected
Checklist
If releasing new changes
pnpm changesetto generate a changeset file💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.