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

feat: switch playback to our own rrweb #28148

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

pauldambra
Copy link
Member

we're publishing @posthog/rrweb* now

using it in the player should be safe, and get us all the missing things between v13 and v18+/HEAD

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR switches from using the original rrweb packages to PostHog's own published versions, aiming to incorporate features from v13 through v18+/HEAD.

  • Replaces [email protected] and related packages with @posthog/[email protected] and its corresponding packages in package.json
  • Updates all imports from @rrweb/* to @posthog/rrweb* across multiple files while maintaining existing type definitions
  • Enhances rr-web-schema.json with more detailed type definitions and node serialization support
  • Adds decompression logic and improved error handling in sessionRecordingDataLogic.ts
  • Potential concern: Version downgrade from 2.0.0-alpha to 0.0.4 could introduce compatibility issues

24 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +445 to +455
"attributes": {
"additionalProperties": {
"type": ["string", "number", "boolean", "null"]
},
"properties": {
"_cssText": {
"type": "string"
}
},
"type": "object"
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: New attributes definition allows for CSS text but doesn't restrict other attribute types - could potentially allow invalid attribute values through

@pauldambra pauldambra requested a review from veryayskiy January 31, 2025 18:33
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

  • chromium: 0 added, 1 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.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

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

  • chromium: 0 added, 1 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.

Copy link
Contributor

github-actions bot commented Jan 31, 2025

Size Change: -5 B (0%)

Total Size: 1.16 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.16 MB -5 B (0%)

compressed-size-action

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.

2 participants