Skip to content

Jg merge master to pendo main 042925#45

Merged
pendo-ops merged 25 commits intopendo-mainfrom
jg-merge-master-to-pendo-main-042925
May 7, 2025
Merged

Jg merge master to pendo main 042925#45
pendo-ops merged 25 commits intopendo-mainfrom
jg-merge-master-to-pendo-main-042925

Conversation

@guntherjh
Copy link

No description provided.

pauldambra and others added 23 commits December 6, 2024 09:50
* fix: angular wrapped mutationobserver detection

* add change set

* fix

* prettier

* following posthog prod

* manually prettier

* Update .changeset/moody-experts-build.md

Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>

---------

Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
* chore: update types

* small typing change

* fix typing issue

* typed node

* add extra lint skip

* add changeset

---------

Co-authored-by: Eoghan Murray <eoghan@getthere.ie>
Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix: remove the permission not needed and update the player style link

* fix: change the way of importing worker script

* improve the extension version

* build: add process env to disable inline worker import

* improve style file

* upgrade svelte2tsx

* disable eslint check for that line

* merge the extension-release action into release action

---------

Co-authored-by: YunFeng0817 <YunFeng0817@users.noreply.github.com>
- Fix bug where the right split point was not being picked for the 3rd section onwards
- Fix that it wasn't able to find a split when both halves were identical
- Add test to put splitCssText through it's paces with a large file
- Introduce a limit on the iteration which causes the 'efficiently' test to fail
- Fix poor 'crawling' performance in the 'matching' algorithm for large css texts - e.g. for a (doubled) benchmark.css, we were running `normalizeCssText` 9480 times before `k` got to the right place
- Further algorithm efficiency: need to take larger jumps; use the scaling factor to make better guess at how big a jump to make
* fix: remote CSS does not get rebuilt properly

This fixes an issue where inlined CSS from a remotely loaded `<link>` does not get applied properly due to object reference mutation.

* add changeset

* ci-cd on ubuntu-22.04 instead of latest

* keep mirror meta synced
* refactor: improved tab recording to improve stability

* feat: enable to import session

* improve stability

* feat: enable to edit session name

* prevent duplicate rrweb player in the dev mode
* Add eslint rule to flag up me forgetting to camelCase - I'd say I introduced all the snake_cases that are fixed here
* Allow some dubious snake cases for now; we could examine again whether they can be converted to `camelCase['snake_var']` if we need to maintain backwards compatibility of output
* add ESLINT_USE_FLAT_CONFIG against eslint v8.57.0 in order to continue using the deprecated .eslintrc.js method
…n with `isAttachIframe`' test (rrweb-io#1636)

- it was working for me when the test was run in isolation (`-t` option), but when the entire cross-origin-iframes test was run, the change of iframe contents didn't seem to happen in time
* update actions/upload-artifact to v4

---------

Co-authored-by: Eoghan Murray <eoghan@getthere.ie>
* [chore] Cache yarn packages for CI

* Cache yarn in release.yml

* [chore] Update deprecated download artifact on CI (rrweb-io#1647)

* I'm merging even though ESLint is stlll failing in Github Actions as I believe it's running actions _without_ this PR applied yet
* chore(ci): track bundle size

---------

Co-authored-by: pauldambra <pauldambra@users.noreply.github.com>
Fix for rrweb-io#1575 where postcss was raising an exception

* adapt the entire CSS as a whole in one pass with postcss, rather than adapting each split part separately
* break up the postcss output again and assign to individual text nodes (kind of inverse of splitCssText at record side)
* impose an upper bound of 30 iterations on the substring searches to preempt possible pathological behavior
* add tests to demonstrate the scenario and prevent regression

More technical details:
* Fix algorithm; checks against `ix_end` within loop were incorrect when `ix_start` was bigger than zero.  
* Fix that length check against wrong array was causing 'should record style mutations with multiple child nodes and replay them correctly' test to fail. 
Note on last point: I haven't looked into things more deeply than that the test was complaining about missing .length after `replayer.pause(1000);`
* postcss was introduced in rrweb-io#1458 for use within adaptCssForReplay
* rrweb-io#1600 fixes the main case where invalid css could be introduced when if valid css from the output of `sheet.cssRules` was split according to how it was split across text nodes of the <style>
* the guard introduced here is still useful as we likely in future will switch to capturing the raw stylesheet contents (both <style> and <link>), at which point we will be much less confident of getting valid css
Fixes a browser 'lock up' at record time due to a presence of large amounts of css in <style> elements, which are split over multiple text nodes, which triggers the new code added in rrweb-io#1437 (see that PR for full explanation of why this all exists).  rrweb-io#1437 was not written with performance in mind as it was believed to be an edge case, but things like Grammarly browser extension (rrweb-io#1603) among other scenarios were triggering pathological behavior, some of which was solved in rrweb-io#1615.
See also rrweb-io#1640 (comment) for further discussion.

* Fix the case when there are multiple matches and we end up not finding a unique one - just go with the best guess when there are many splits by looking at the previous chunk's size
* Also add '0px' -> '0' stylesheet normalization, which also fixes the sample problem in a different way
* Add new test and modify it so that it can trigger a failure in the absence of the '0px' normalization; there may be other unknown ways of triggering a similar bug, so ensure that the primary 'best guess' method doesn't suffer a regression
* Leverage the 'best guess' method so that we can quit after 100 iterations trying to find a unique substring; hopefully this bit along with the `iterLimit` already added will prevent any future pathological cases.

Failing example extracted from large files identified by Paul D'Ambra (Posthog) ... see comment from MartinWorkfully: PostHog/posthog-js#1668
* fix: move patch function into utils to improve bundling

---------

Co-authored-by: pauldambra <pauldambra@users.noreply.github.com>
Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
* Remove cache consumption in release workflow.

* Tighten style-check.yml permissions

* Tighten permissions in test workflow that consumes cache.

* Use stricter permissions where possible

---------

Co-authored-by: Justin Halsall <Juice10@users.noreply.github.com>
* `link[rel="modulepreload"]` doesn't require `as="script"` which is tied to rel="preload" only
* extract file extension properly when examining `rel="prefetch"` to disregard URL parameters correctly

Co-authored-by: Eoghan Murray <eoghan@getthere.ie>
…u 24.04 (rrweb-io#1657)

--disable-setuid-sandbox deemed acceptable by Yun as it's for Github Actions only
@kode-toad
Copy link

kode-toad bot commented Apr 29, 2025

Failed pendo.io/jira-ref check. Please correct Jira references in the following commits:

bd9eb70
5a78938
1db7a99
4fd55c0
52842ba
dc20cd4
79837ac
24f5fd9
83c66c4
1f22bfc
fb0f8f1
9cd28b7
f18fead
965b0a9
a95b3e8
a6893f7
47a7c3f
3e9e42f
88ea2d0
dfb2991
6f4e691
fd9d274

@kode-toad
Copy link

kode-toad bot commented Apr 29, 2025

Failed pendo.io/jira-ref check. Please correct Jira references in the following commits:

bd9eb70
5a78938
1db7a99
4fd55c0
52842ba
dc20cd4
79837ac
24f5fd9
83c66c4
1f22bfc
fb0f8f1
9cd28b7
f18fead
965b0a9
a95b3e8
a6893f7
47a7c3f
3e9e42f
88ea2d0
dfb2991
6f4e691
fd9d274
62e9a1f

@kode-toad
Copy link

kode-toad bot commented Apr 29, 2025

Failed pendo.io/jira-ref check. Please correct Jira references in the following commits:

bd9eb70
5a78938
1db7a99
4fd55c0
52842ba
dc20cd4
79837ac
24f5fd9
83c66c4
1f22bfc
fb0f8f1
9cd28b7
f18fead
965b0a9
a95b3e8
a6893f7
47a7c3f
3e9e42f
88ea2d0
dfb2991
6f4e691
fd9d274
62e9a1f
a5671e1

@guntherjh guntherjh requested a review from dkindel May 7, 2025 13:14
Copy link

@dkindel dkindel left a comment

Choose a reason for hiding this comment

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

[merge]

Reviewed 4 of 129 files at r1, all commit messages.
Reviewable status: 4 of 129 files reviewed, all discussions resolved

@pendo-ops pendo-ops merged commit 53e15c4 into pendo-main May 7, 2025
1 of 2 checks passed
@kode-toad
Copy link

kode-toad bot commented May 7, 2025

Branch jg-merge-master-to-pendo-main-042925 deleted

@kode-toad kode-toad bot deleted the jg-merge-master-to-pendo-main-042925 branch May 7, 2025 13:45
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.