Skip to content

Commit 18dfcc1

Browse files
Copilotpauldambra
andauthored
docs: add backwards compatibility warnings to recorder entrypoints (#3167)
* Initial plan * Add backwards compatibility comments to recorder entrypoints Co-authored-by: pauldambra <984817+pauldambra@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pauldambra <984817+pauldambra@users.noreply.github.com>
1 parent 7ba6a27 commit 18dfcc1

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/browser/src/entrypoints/lazy-recorder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This file is kept only for backwards compatibility.
2+
// In almost every case, if you are manually importing a file you should use posthog-recorder instead.
3+
14
// This is only here for so that users with cached recorder.ts don't get errors during the transition to lazy loading
25
// if you have the new eager loaded recording code it will request this file, not `recorder.js`
36
// so you don't have the problem that clients get new code and a cached recorder.js
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
// This is only here for backwards compatibility
1+
// This file is kept only for backwards compatibility.
2+
// In almost every case, if you are manually importing a file you should use posthog-recorder instead.
23
export * from './recorder'

packages/browser/src/entrypoints/recorder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// This file is kept only for backwards compatibility.
2+
// In almost every case, if you are manually importing a file you should use posthog-recorder instead.
3+
14
import { record as rrwebRecord } from '@rrweb/record'
25
import { getRecordConsolePlugin } from '@rrweb/rrweb-plugin-console-record'
36
import { getRecordNetworkPlugin } from '../extensions/replay/external/network-plugin'

0 commit comments

Comments
 (0)