forked from rrweb-io/rrweb
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Merge upstream commits up to 46f1b25 #214
Merged
billyvg
merged 11 commits into
develop
from
develop-update-e96f668c86bd0ab5dc190bb2957a170271bb2ebc
Aug 27, 2024
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
f1e6a51
Ensure there is separation of timestamps (#1455)
eoghanmurray 5e7943d
perf(snapshot): avoid recreate element `a` every time (#1387)
H4ad e96f668
Fix that blob urls persist on the shared anchor element and can't be …
eoghanmurray 26c331b
yarn format - prettier improvements & add .editorconfig (#1471)
eoghanmurray cbbd1e5
Fixup for background-clip replacement (#1476)
eoghanmurray 03b5216
Replace Array.from with clean implementation (#1464)
colingm 46f1b25
Fix and test for bug #1457 (#1481)
eoghanmurray 2c1c4c1
Merge commit 'e96f668c86bd0ab5dc190bb2957a170271bb2ebc' into develop-…
billyvg 4c7820b
Merge commit '26c331b' into develop-update-e96f668c86bd0ab5dc190bb295…
billyvg a393c16
Merge commit 'cbbd1e5' into develop-update-e96f668c86bd0ab5dc190bb295…
billyvg f5c1874
Merge commit '46f1b25' into develop-update-e96f668c86bd0ab5dc190bb295…
billyvg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
'rrweb-snapshot': patch | ||
'rrweb': patch | ||
"rrweb-snapshot": patch | ||
"rrweb": patch | ||
--- | ||
|
||
better support for coexistence with older libraries (e.g. MooTools & Prototype.js) which modify the in-built `Array.from` function |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"rrweb-snapshot": patch | ||
"rrweb": patch | ||
--- | ||
|
||
Fix and test for bug #1457 which was affecting replay of complex tailwind css |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"rrweb-snapshot": patch | ||
"rrweb": patch | ||
--- | ||
|
||
Fixup for multiple background-clip replacement |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
'rrweb-snapshot': patch | ||
--- | ||
|
||
Avoid recreating the same element every time, instead, we cache and we just update the element. | ||
|
||
Before: 779k ops/s | ||
After: 860k ops/s | ||
|
||
Benchmark: https://jsbench.me/ktlqztuf95/1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'rrweb-snapshot': patch | ||
'rrweb': patch | ||
--- | ||
|
||
Bugfix after #1434 perf improvements: fix that blob urls persist on the shared anchor element and can't be later modified |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
root = true | ||
|
||
# initialized from https://prettier.io/docs/en/configuration.html#editorconfig | ||
[*] | ||
charset = utf-8 | ||
insert_final_newline = true | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 2 | ||
max_line_length = 80 | ||
quote_type = single | ||
|
||
[.changeset/*.md] | ||
quote_type = double |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# list of old changeset files that were mutated to use single quotes by a previous version of prettier: | ||
.changeset/attribute-text-reductions.md | ||
.changeset/avoid-costly-createlement.md | ||
.changeset/brave-numbers-joke.md | ||
.changeset/breezy-cats-heal.md | ||
.changeset/breezy-mice-breathe.md | ||
.changeset/calm-bulldogs-speak.md | ||
.changeset/calm-oranges-sin.md | ||
.changeset/chatty-cherries-train.md | ||
.changeset/clean-plants-play.md | ||
.changeset/clean-shrimps-lay.md | ||
.changeset/cold-eyes-hunt.md | ||
.changeset/cold-hounds-teach.md | ||
.changeset/controller-finish-flag.md | ||
.changeset/cool-grapes-hug.md | ||
.changeset/cuddly-readers-warn.md | ||
.changeset/curvy-apples-lay.md | ||
.changeset/curvy-balloons-brake.md | ||
.changeset/date-now-guard.md | ||
.changeset/dirty-rules-dress.md | ||
.changeset/eight-terms-hunt.md | ||
.changeset/empty-bikes-cheer.md | ||
.changeset/event-single-wrap.md | ||
.changeset/fair-dragons-greet.md | ||
.changeset/fast-chefs-smell.md | ||
.changeset/few-rockets-travel.md | ||
.changeset/few-turkeys-reflect.md | ||
.changeset/five-peas-lay.md | ||
.changeset/fluffy-planes-retire.md | ||
.changeset/forty-elephants-attack.md | ||
.changeset/fresh-cars-impress.md | ||
.changeset/fresh-spoons-drive.md | ||
.changeset/friendly-numbers-leave.md | ||
.changeset/gold-apples-joke.md | ||
.changeset/gold-terms-look.md | ||
.changeset/grumpy-ways-own.md | ||
.changeset/hip-worms-relax.md | ||
.changeset/hungry-dodos-taste.md | ||
.changeset/itchy-dryers-double.md | ||
.changeset/khaki-dots-bathe.md | ||
.changeset/large-ants-prove.md | ||
.changeset/lazy-squids-draw.md | ||
.changeset/lazy-toes-confess.md | ||
.changeset/lemon-lamps-switch.md | ||
.changeset/light-fireants-exercise.md | ||
.changeset/little-radios-thank.md | ||
.changeset/little-suits-leave.md | ||
.changeset/loud-seals-raise.md | ||
.changeset/lovely-pears-cross.md | ||
.changeset/lovely-students-boil.md | ||
.changeset/mean-tips-impress.md | ||
.changeset/mighty-ads-worry.md | ||
.changeset/mighty-bulldogs-begin.md | ||
.changeset/mighty-frogs-sparkle.md | ||
.changeset/modern-doors-watch.md | ||
.changeset/moody-dots-refuse.md | ||
.changeset/nervous-buses-pump.md | ||
.changeset/nervous-kiwis-nail.md | ||
.changeset/nervous-mirrors-perform.md | ||
.changeset/nervous-poets-grin.md | ||
.changeset/nervous-tables-travel.md | ||
.changeset/new-snakes-call.md | ||
.changeset/nice-pugs-reply.md | ||
.changeset/old-dryers-hide.md | ||
.changeset/polite-olives-wave.md | ||
.changeset/pretty-plums-rescue.md | ||
.changeset/pretty-schools-remember.md | ||
.changeset/proud-experts-jam.md | ||
.changeset/rare-adults-sneeze.md | ||
.changeset/README.md | ||
.changeset/real-masks-explode.md | ||
.changeset/real-trains-switch.md | ||
.changeset/rich-crews-protect.md | ||
.changeset/rich-dots-lay.md | ||
.changeset/rich-jars-remember.md | ||
.changeset/rotten-spies-enjoy.md | ||
.changeset/serious-ants-juggle.md | ||
.changeset/silver-pots-sit.md | ||
.changeset/silver-windows-float.md | ||
.changeset/sixty-impalas-laugh.md | ||
.changeset/small-olives-arrive.md | ||
.changeset/smart-ears-refuse.md | ||
.changeset/smart-geckos-cover.md | ||
.changeset/smooth-papayas-boil.md | ||
.changeset/smooth-poems-bake.md | ||
.changeset/spotty-bees-destroy.md | ||
.changeset/stupid-ghosts-help.md | ||
.changeset/swift-dancers-rest.md | ||
.changeset/swift-peas-film.md | ||
.changeset/thin-vans-applaud.md | ||
.changeset/thirty-baboons-punch.md | ||
.changeset/three-baboons-bow.md | ||
.changeset/tidy-swans-repair.md | ||
.changeset/tidy-yaks-joke.md | ||
.changeset/tiny-buckets-love.md | ||
.changeset/tiny-candles-whisper.md | ||
.changeset/tiny-chairs-build.md | ||
.changeset/tricky-panthers-guess.md | ||
.changeset/twenty-goats-kneel.md | ||
.changeset/twenty-lies-switch.md | ||
.changeset/twenty-planets-repeat.md | ||
.changeset/violet-melons-itch.md | ||
.changeset/violet-zebras-cry.md | ||
.changeset/wise-spiders-jog.md | ||
.changeset/witty-kids-talk.md | ||
.changeset/yellow-mails-cheat.md | ||
.changeset/young-timers-grow.md |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
!cssText.includes(' -webkit-background-clip: text;') | ||
) { | ||
cssText = cssText.replace( | ||
' background-clip: text;', | ||
/\sbackground-clip:\s*text;/g, | ||
' -webkit-background-clip: text; background-clip: text;', | ||
); | ||
} | ||
|
@@ -71,7 +71,7 @@ | |
* Browsers sometimes incorrectly escape `@import` on `.cssText` statements. | ||
* This function tries to correct the escaping. | ||
* more info: https://bugs.chromium.org/p/chromium/issues/detail?id=1472259 | ||
* @param cssImportRule | ||
Check warning on line 74 in packages/rrweb-snapshot/src/utils.ts GitHub Actions / ESLint Report Analysispackages/rrweb-snapshot/src/utils.ts#L74
|
||
* @returns `cssText` with browser inconsistencies fixed, or null if not applicable. | ||
*/ | ||
export function escapeImportStatement(rule: CSSImportRule): string { | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.
Oops, something went wrong.
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.
Check warning
Code scanning / CodeQL
DOM text reinterpreted as HTML Medium