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

Rrweb sync alpha 14 #24

Closed
wants to merge 42 commits into from
Closed

Rrweb sync alpha 14 #24

wants to merge 42 commits into from

Commits on Jul 31, 2024

  1. 🐞 fix(web-extension): typo (rrweb-io#1307)

    Co-authored-by: Yun Feng <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    0c6db64 View commit details
    Browse the repository at this point in the history
  2. Pref: export eventWithTime (rrweb-io#1324)

    *  export eventWithTime for consumption in typescript code
    BelenLuo-tech authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    53b18a9 View commit details
    Browse the repository at this point in the history
  3. Fix linting issues (rrweb-io#1347)

    * Fix linting issues
    
    * Apply formatting changes
    Juice10 authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    8fa01a1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a5ef2a8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2398dd2 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    331e46b View commit details
    Browse the repository at this point in the history
  7. Added Gleap.io to "Who's using rrweb?" (rrweb-io#1332)

    Co-authored-by: Justin Halsall <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    c763478 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3bfcc54 View commit details
    Browse the repository at this point in the history
  9. Md create html document (rrweb-io#1321)

    * only call createHTMLDocument where it is needed
    
    * Perf: create the mutation document once as a 'singleton' as it can be reused
    
    ---------
    
    Co-authored-by: Michael Dellanoce <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    b29bfca View commit details
    Browse the repository at this point in the history
  10. Feat: Add support for replaying :defined pseudo-class of custom eleme…

    …nts (rrweb-io#1155)
    
    * Feat: Add support for replaying :defined pseudo-class of custom elements
    
    * add isCustom flag to serialized elements
    
    Applying Justin's review suggestion
    
    * fix code lint error
    
    * add custom element event
    
    * fix: tests (rrweb-io#1348)
    
    * Update packages/rrweb/src/record/observer.ts
    
    * Update packages/rrweb/src/record/observer.ts
    
    ---------
    
    Co-authored-by: Nafees Nehar <[email protected]>
    Co-authored-by: Justin Halsall <[email protected]>
    3 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    a1d5962 View commit details
    Browse the repository at this point in the history
  11. Masking: Avoid the repeated calls to closest when recursing through…

    … the DOM (rrweb-io#1349)
    
    * masking performance: avoid the repeated calls to `closest` when recursing through the DOM
     - needsMask===true means that an ancestor has tested positively for masking, and so this node and all descendents should be masked
     - needsMask===false means that no ancestors have tested positively for masking, we should check each node encountered
     - needsMask===undefined means that we don't know whether ancestors are masked or not (e.g. after a mutation) and should look up the tree
    * Add tests including an explicit characterData mutation tests 
    * Further performance improvement: avoid calls to `el.matches` when on a leaf node, e.g. a `<br/>`
    ---------
    
    Authored-by: eoghanmurray <[email protected]>
    Based on initial PR rrweb-io#1338 by Alexey Babik <[email protected]>
    eoghanmurray authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    ba7f3d5 View commit details
    Browse the repository at this point in the history
  12. Fix serialization and mutation of <textarea> elements (rrweb-io#1351)

    * Fix serialization and mutation of <textarea> elements taking account the duality that the value can be set in either the child node, or in the value _parameter_ (not attribute)
    
    * Backwards compatibility: Bug fix and regression test for rrweb-io#112
     - this is to fix up 'historical' recordings, as duplicate textarea content should no longer be being created at record time
     - new test shows what the snapshot generated by previous versions of rrweb used to look like, hence 'bad'
     - original 0efe23f fix either didn't work or no longer works due to childNodes being appended subsequent to this part of the code
     - during review, we also verified that the `_cssText` case should still be handled okay, as there's currently no scenario where csstext is present with css child nodes of a <style>
    
    * Masking: Fix that textarea values were being missed by the masking system if the value was recorded as a child node
     - I didn't notice that form.html was used in other tests, so lucky that I noticed that those tests also should have the 'pre value' masked out
    
    * Simplify by always storing the textarea value in the `.value` attribute (from it's DOM property) and not as a childNode. It should still be rebuilt as a childNode rather than a property
    ---------
    
    Authored-by: eoghanmurray <[email protected]>
    eoghanmurray authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    1fa5c13 View commit details
    Browse the repository at this point in the history
  13. chore: update linters (rrweb-io#1355)

    Co-authored-by: Justin Halsall <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    ec5e0ac View commit details
    Browse the repository at this point in the history
  14. perf(web-extension): conditional check (rrweb-io#1360)

    Co-authored-by: Yun Feng <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    d48125e View commit details
    Browse the repository at this point in the history
  15. [chore] Update changesets (rrweb-io#1362)

    Juice10 authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    a73a5b0 View commit details
    Browse the repository at this point in the history
  16. [chore] [ci] Update Node version to LTS (rrweb-io#1365)

    * Update Node version to LTS
    
    * Create silver-windows-float.md
    Juice10 authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    2cfc0fd View commit details
    Browse the repository at this point in the history
  17. Add UXWizz to Readme (rrweb-io#1371)

    * Add UXWizz to Readme (CN)
    
    * Add UXWizz to Readme
    
    * Create hip-worms-relax.md
    
    ---------
    
    Co-authored-by: Justin Halsall <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    4b6bf5a View commit details
    Browse the repository at this point in the history
  18. Docs: Add rrweb presentation + open to consulting (rrweb-io#1388)

    * Add rrweb presentation
    
    Add Justin Halsall open to rrweb consulting
    
    * Create few-rockets-travel.md
    
    * Update README.md
    
    * Update README.md
    
    * Fix alignment
    Juice10 authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    ccf2cd1 View commit details
    Browse the repository at this point in the history
  19. chore: export canvasMutation (rrweb-io#1383)

    * chore: export canvasMutation
    
    * add changeset
    daibhin authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    0c34ddd View commit details
    Browse the repository at this point in the history
  20. fix: console logger can serialize bigint values (rrweb-io#1403)

    * fix: console logger can serialize bigint values
    
    * teach test jsdom is present
    
    * add a changeset
    pauldambra authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    e9cfd9f View commit details
    Browse the repository at this point in the history
  21. Rrvideo receipe update (rrweb-io#1390)

    * Update export-to-video.md
    
    The file was pointing to the old Rrvideo repo The old repository soon is going to be closed as the Rrvideo was merged on Rrweb This change is pointing this recipe to the new and updated official doc.
    
    * Update export-to-video.zh_CN.md
    
    The file was pointing to the old Rrvideo repo The old repository soon is going to be closed as the Rrvideo was merged on Rrweb This change is pointing this recipe to the new and updated official doc.
    
    Chinese version
    patlopes authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    e08751d View commit details
    Browse the repository at this point in the history
  22. fix the test CI (rrweb-io#1405)

    * run tests without concurrency
    
    * do not use cache in rpt2 during test
    Yuyz0112 authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    858b952 View commit details
    Browse the repository at this point in the history
  23. Make properties x and y optional in mouseInteractionParam (rrweb-io#1375

    )
    
    * Make properties x and y optional in mouseInteractionParam
    
    The event representing a mouse interaction of focus an element does not include the properties x and y. Thus, they must be defined as optional.
    
    * Fix typings
    avillegasn authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    d24237e View commit details
    Browse the repository at this point in the history
  24. Capture stylesheets designated as rel="preload" (rrweb-io#1374)

    * feat(Snapshot): Capture stylesheets designated as `rel="preload"`
    
    * fix(Snapshot): Harden asset file extension matching
    
    * Add changeset
    
    * chore: Lint
    
    * Tweak regex, add try-catch block on URL constructor
    andrewpomeroy authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    ffdf49c View commit details
    Browse the repository at this point in the history
  25. fix guide doc (rrweb-io#1415)

    xujiujiu authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    da3899e View commit details
    Browse the repository at this point in the history
  26. fix: scrolling can be incorrect when fast-forwarding (rrweb-io#1352)

    * fix: scrolling can be incorrect when fast-forwarding
    
    * add test case
    
    * add changeset and remove duplicate diffProps process
    
    ---------
    
    Co-authored-by: Yun Feng <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    a880f6c View commit details
    Browse the repository at this point in the history
  27. Add HowdyGo to Who's using rrweb (rrweb-io#1423)

    * Add HowdyGo to Who's using rrweb
    
    * Create twenty-goats-kneel.md
    
    ---------
    
    Co-authored-by: Justin Halsall <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    ee01db7 View commit details
    Browse the repository at this point in the history
  28. Chore: Make inject script more robust on repl & stream (rrweb-io#1429)

    * try/catch injection of recording script in rrweb repl and stream
    
    * Add empty changesets
    Juice10 authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    b5642ea View commit details
    Browse the repository at this point in the history
  29. fix: createImageBitmap throws DOMException if source is 0 (rrweb-io#1422

    )
    
    * fix: createImageBitmap throws DOMException if source is 0
    
    * code review
    
    * fix
    
    * Create breezy-cats-heal.md
    
    * fix format
    
    ---------
    
    Co-authored-by: Justin Halsall <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    931a6bb View commit details
    Browse the repository at this point in the history
  30. protect against no parent node (rrweb-io#1445)

    * protect against a missing parent node during a mutation on an textNode
    daibhin authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    c400629 View commit details
    Browse the repository at this point in the history
  31. Expose constant SKIP_TIME_THRESHOLD as inactivePeriodThreshold in rep…

    …layer (rrweb-io#1408)
    
    Expose constant SKIP_TIME_THRESHOLD as `inactivePeriodThreshold` config setting in replayer
    avillegasn authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    9b580ae View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    3f0c4a1 View commit details
    Browse the repository at this point in the history
  33. Full overhawl of video & audio playback to make it more complete (rrw…

    …eb-io#1432)
    
    * Add support for capturing media attributes in rrweb-snapshot
    
    * Add loop to mediaInteractionParam
    
    * Add support for loop in RRMediaElement
    
    * Add support for recording loop attribute on media elements
    
    * Update video playback and fix bugs
    
    * Update cross-origin iframe media attributes and player state
    Juice10 authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    87cba12 View commit details
    Browse the repository at this point in the history
  34. Add "types" field to fix error when using "moduleResolution": "NodeNe…

    …xt" (rrweb-io#1369)
    
    * Add "types" field to fix error when using "moduleResolution": "NodeNext".
    
    * Add changeset.
    stefansundin authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    21278b5 View commit details
    Browse the repository at this point in the history
  35. perf: Avoid an extra function call and object clone during event emis…

    …sion (rrweb-io#1441)
    
    performance: remove a nested function call and an object clone during event emission
    
     - rename `event` to `eventWithoutTime`, but maintain backwards compatibility
     - `eventWithTime` (with time) could be renamed to `event` in a future version
    
    This is an extension of PR rrweb-io#1339 authored by: mydea <[email protected]>
    eoghanmurray authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    ac71f04 View commit details
    Browse the repository at this point in the history
  36. Ensure there is separation of timestamps (rrweb-io#1455)

    * Ensure there is separation of timestamps so mutations can be evaluated separately - was failing in the github build process probably due to higher perf
    
    * Remove space from test file
    
    * Create curvy-balloons-brake.md
    
    ---------
    
    Co-authored-by: Justin Halsall <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    81d826a View commit details
    Browse the repository at this point in the history
  37. perf(snapshot): avoid recreate element a every time (rrweb-io#1387)

    perf(snapshot): avoid costly generation of <a> element on each call to `getHref`, instead cache an anchor element and reuse it's href attributed
    
    ---------
    
    Co-authored-by: Eoghan Murray <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    f3e400a View commit details
    Browse the repository at this point in the history
  38. Fix that blob urls persist on the shared anchor element and can't be …

    …later modified (rrweb-io#1467)
    
    * Fix that blob urls persist on the shared anchor element and can't be later modified
    
    * Create nervous-kiwis-nail.md
    eoghanmurray authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    cb68263 View commit details
    Browse the repository at this point in the history
  39. yarn format - prettier improvements & add .editorconfig (rrweb-io#1471)

    Some dev improvements:
    * Add .editorconfig config file https://editorconfig.org/
    * move the singleQuote spec into .editorconfig and add old .changesets/*.md to .prettierignore so that we don't incorrectly reformat new changeset files to single quote from the double quote which they can be autogenerated with in github
    * .gitignore Ignore emacs chaff files
    * Add `yarn format:head` a convenience command to run prettier against just those files in the head commit
    * Some mention of `yarn format` in the docs
    * Fix some test html closing tags; authoring mistakes, rather than deliberately malformed html — picked up by an explicit `yarn prettier --write '**/*.html'`
    eoghanmurray authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    bb36c98 View commit details
    Browse the repository at this point in the history
  40. Fixup for background-clip replacement (rrweb-io#1476)

    * Fix that the `.replace()` function only replaces the first occurrence
    
    * This should have been included in rrweb-io#1174
    
    * Create fast-pets-exist.md
    eoghanmurray authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    d12234d View commit details
    Browse the repository at this point in the history
  41. Replace Array.from with clean implementation (rrweb-io#1464)

    This work is to try to provide support where rrweb might be included
    in applications with various tools that might override Array.from
    so that the 2nd parameter (the map function) will always work for
    rrweb.
    
    Co-authored-by: Michael Dellanoce <[email protected]>
    2 people authored and jxiwang committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    3138f21 View commit details
    Browse the repository at this point in the history
  42. Apply formatting changes

    jxiwang authored and github-actions[bot] committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    31e6744 View commit details
    Browse the repository at this point in the history