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: Upgrade to rrweb2 #107

Merged
merged 60 commits into from
Sep 21, 2023
Merged

feat: Upgrade to rrweb2 #107

merged 60 commits into from
Sep 21, 2023

Conversation

billyvg
Copy link
Member

@billyvg billyvg commented Sep 20, 2023

mdellanoce and others added 30 commits August 30, 2023 16:49
Applying Justin's review suggestion
This currently adds a new API, `maskAttributesFn: (key: string, value: string, element: HTMLElement) => string`, that is used as a callback in `transformAttribute`. I prefer this API as it gives more flexibility for users (though it may need to pass the el node for most flexibility), but it is inconsistent with `maskTextFn` and `maskInputFn`.

other options:

* Rename this to something else (open to ideas)
* Change this to pass value, and dom element (similar to MaskInputFn) to customize masking instead of decision maker of when to mask and introduce a simpler declarative API for what attributes to mask
* ???
This patch adds the necessary configuration around our rrweb fork to publish our own `@sentry-internal/rr*` packages. This includes:

- prefixing packages with `@sentry-internal`
- adjusting licences and the readme
- adding a craft config and a version bump script
- adding artifact upload to our build&test GHA
- adding the Sentry create release GHA
When this callback returns `false`, we skip handling the mutations
normally. It's up to the host app to do something with this then.
This is so input masking (maskAllInputs) is independent of `maskAllText`
This would allow you to broadly block elements and selectively unblock elements.
…as a textContent field and can be source of bugs
This would allow you to broadly block elements and selectively unblock elements.
@billyvg billyvg marked this pull request as ready for review September 20, 2023 15:58
@billyvg billyvg requested a review from mydea September 20, 2023 15:59
@billyvg
Copy link
Member Author

billyvg commented Sep 20, 2023

I renamed the old sentry-v2 branch and recreated it from master and made it the default branch. Will use this PR to squash changes to a single commit - I think that'll be easier to maintain in the long run.

Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

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

I didn't review this PR in detail now, but seems good to me, the picked changes are all relevant & good 👍

@billyvg billyvg merged commit 5f5c00d into sentry-v2 Sep 21, 2023
13 checks passed
@billyvg billyvg deleted the sentry-v2-changes branch September 21, 2023 14:26
billyvg added a commit that referenced this pull request Oct 20, 2023
Brings this library up to date w/ upstream. Includes additional commits for enhanced privacy and Sentry release workflows.

Cherry picks include the following upstream PRs:

* rrweb-io#1096
* rrweb-io#1155
* rrweb-io#1257
* rrweb-io#1262

Cherry picks from getsentry fork:
* #70
* #103
*
064d8c4
*
e274f88
*
cffefa2
* #20

---------

Co-authored-by: Michael Dellanoce <mdellanoce@pendo.io>
Co-authored-by: mdellanoce <mdellanoce@users.noreply.github.com>
Co-authored-by: Yun Feng <yun.feng0817@gmail.com>
Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
billyvg added a commit that referenced this pull request Jan 31, 2024
…stom elements (rrweb-io#1155) (#138)

cherry-picks rrweb-io#1155 which was
merged in our fork in #107 (prior
to rrweb-io#1155 being merged). This results in only 2 small stylistic changes.

Feat: Add support for replaying :defined pseudo-class of custom elements
rrweb-io#1155

Co-authored-by: Yun Feng <yun.feng0817@gmail.com>
Co-authored-by: Nafees Nehar <nafees87n@gmail.com>
Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
billyvg added a commit that referenced this pull request Apr 26, 2024
Brings this library up to date w/ upstream. Includes additional commits for enhanced privacy and Sentry release workflows.

Cherry picks include the following upstream PRs:

* rrweb-io#1096
* rrweb-io#1155
* rrweb-io#1257
* rrweb-io#1262

Cherry picks from getsentry fork:
* #70
* #103
*
064d8c4
*
e274f88
*
cffefa2
* #20

---------

Co-authored-by: Michael Dellanoce <mdellanoce@pendo.io>
Co-authored-by: mdellanoce <mdellanoce@users.noreply.github.com>
Co-authored-by: Yun Feng <yun.feng0817@gmail.com>
Co-authored-by: Francesco Novy <francesco.novy@sentry.io>
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
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.

5 participants