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

assets + stylesheet assets #1475

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

Commits on Oct 14, 2024

  1. Configuration menu
    Copy the full SHA
    2b58e8d View commit details
    Browse the repository at this point in the history
  2. Add test to prove player works

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    7acc779 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    608ba0e View commit details
    Browse the repository at this point in the history
  4. Document assetCapture config

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    b20c8d5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ad775d8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1294549 View commit details
    Browse the repository at this point in the history
  7. WIP asset manager for replay

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0b18d21 View commit details
    Browse the repository at this point in the history
  8. Add placeholder tests

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2a92a9f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    150396a View commit details
    Browse the repository at this point in the history
  10. Update path in tsconfig.json

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    4a0dd26 View commit details
    Browse the repository at this point in the history
  11. Fix asset loading in Replayer

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    08114ee View commit details
    Browse the repository at this point in the history
  12. Add todo tests

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    bee80ed View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c65dd0d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9e5fb47 View commit details
    Browse the repository at this point in the history
  15. Fix syntax error

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d8ae854 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    e2b181a View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    a49cc54 View commit details
    Browse the repository at this point in the history
  18. NodeType was moved to @rrweb/types

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a5097a7 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    f33f8ab View commit details
    Browse the repository at this point in the history
  20. Add check types

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    dff274b View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    3802bd5 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    5436839 View commit details
    Browse the repository at this point in the history
  23. Fix rrdom build

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    60d1b42 View commit details
    Browse the repository at this point in the history
  24. Fix deprecated test

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    561dcda View commit details
    Browse the repository at this point in the history
  25. Rename assetCapture to captureAssets

    Also deprecate a couple inlineImages tests
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    973222b View commit details
    Browse the repository at this point in the history
  26. Remove console.log statements from AssetManager

    class
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ee56ec5 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    e96793e View commit details
    Browse the repository at this point in the history
  28. Check if url is of cacheable origin

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    15eda9b View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    33030bc View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    f21787b View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    69d0ade View commit details
    Browse the repository at this point in the history
  32. Fix asset caching bug

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    b076708 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    60b8bb1 View commit details
    Browse the repository at this point in the history
  34. Fix asset URLs in events file

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    20cd37e View commit details
    Browse the repository at this point in the history
  35. Update deprecated inlineImages option to use

    captureAssets directly
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    23f046c View commit details
    Browse the repository at this point in the history
  36. Deprecate inlineImage config

    option.
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a66e901 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    ec55646 View commit details
    Browse the repository at this point in the history
  38. Make test less flaky

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3bdc6c3 View commit details
    Browse the repository at this point in the history
  39. Cache attribute support for BODY, TABLE,

    TD, TR, TH, TBODY, THEAD, image, feImage, and
    cursor elements
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3f45acb View commit details
    Browse the repository at this point in the history
  40. Remove unused 'inlineImages' option

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    fa109af View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    dcb6d87 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    36dd426 View commit details
    Browse the repository at this point in the history
  43. Refactor reset method signature to accept optional

    config parameter
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2509e61 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    2d49f2a View commit details
    Browse the repository at this point in the history
  45. Apply formatting changes

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    40d0513 View commit details
    Browse the repository at this point in the history
  46. Fix asset manager to only load assets from

    cacheable origins
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    6201623 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    4f2c30d View commit details
    Browse the repository at this point in the history
  48. Make test more reliable

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    66a8438 View commit details
    Browse the repository at this point in the history
  49. Add failing test for src attribute

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    f723f72 View commit details
    Browse the repository at this point in the history
  50. Remove failed asset event

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0dc35d4 View commit details
    Browse the repository at this point in the history
  51. Add support for asset manager in rrdom

    And remove attribute while asset is loading
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a75c8c6 View commit details
    Browse the repository at this point in the history
  52. Change asset manager path

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ffb6daf View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    25184e7 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    83a3ed1 View commit details
    Browse the repository at this point in the history
  55. Make assetManager optional

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    be1b471 View commit details
    Browse the repository at this point in the history
  56. upgrade rrdom-nodejs to jest 29

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    480f99c View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    ba20659 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    53f448b View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    1491719 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    f689be1 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    43d4256 View commit details
    Browse the repository at this point in the history
  62. Add support for updating srcset attribute in

    AssetManager
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    bf3e0fe View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    9b27177 View commit details
    Browse the repository at this point in the history
  64. Drop support for caching xlink:href attributes

    xlink:href is deprecated
    Most modern browsers rewrite `xlink:href` to `href` which is currently supported
    Tested in Firefox, Safari & Chrome
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0bd373c View commit details
    Browse the repository at this point in the history
  65. Remove console.log statement in

    AssetManager.manageAttribute
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    6ffcc67 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    04d806e View commit details
    Browse the repository at this point in the history
  67. Remove syntax error

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    6b09ff3 View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    6b9353a View commit details
    Browse the repository at this point in the history
  69. Changeset: Added support for Asset Event and capturing many

    different types of assets (not just img#src)
    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    7b8358e View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    b45b5cf View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    ebe0d25 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    e678f46 View commit details
    Browse the repository at this point in the history
  73. Make test more robust

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2181c25 View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    548bd24 View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    968f4fe View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    6fd25a2 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    3b8b974 View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    eb39d08 View commit details
    Browse the repository at this point in the history
  79. Update packages/rrweb/src/replay/asset-manager/index.ts

    Co-authored-by: Eoghan Murray <[email protected]>
    Juice10 and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    68e7815 View commit details
    Browse the repository at this point in the history
  80. Delay call until all attributes are present on the new node, in case …

    …the AssetManager needs to interrogate other attributes to determine how to manage, e.g. <link with href depending on rel="stylesheet"
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    4d3ba68 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    8ca75f8 View commit details
    Browse the repository at this point in the history
  82. Apply formatting changes

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    8de02d1 View commit details
    Browse the repository at this point in the history
  83. Apply formatting changes

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    af547a3 View commit details
    Browse the repository at this point in the history
  84. Apply formatting changes

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    f9c4f6c View commit details
    Browse the repository at this point in the history
  85. Trigger CI again

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    00cd080 View commit details
    Browse the repository at this point in the history
  86. Apply formatting changes

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    c833878 View commit details
    Browse the repository at this point in the history
  87. Need to import NodeType directly, not working after some combination …

    …of this moving location & change to vitest
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    c7eeb1e View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    6f02664 View commit details
    Browse the repository at this point in the history
  89. Make test less flaky

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    1f55cee View commit details
    Browse the repository at this point in the history
  90. add @types/prettier dependency

    Juice10 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    4d884d6 View commit details
    Browse the repository at this point in the history
  91. Indicate the presence of deferred assets using new rr_captured_* at…

    …tributes instead of storing config on the Meta event
    
     - a better approach as discussed with Justin and Yanzhen
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    8fc8837 View commit details
    Browse the repository at this point in the history
  92. Revert attributes in non-live mode and ensure this happens when we ca…

    …n determine that Assets won't be arriving later
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    9556922 View commit details
    Browse the repository at this point in the history
  93. Only record certain iframes as assets as we don't want to override th…

    …e existing nested iframe mechanism
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    7c5beef View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    a561c33 View commit details
    Browse the repository at this point in the history
  95. Ensure we correctly distinguish between html <iframes> and other exot…

    …ic types that inline images or pdfs
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    134374f View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    ed0d5ab View commit details
    Browse the repository at this point in the history
  97. Add an asset type which includes the element; a bit of prep work fo…

    …r handling stylesheet assets
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d3534be View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    8a06c49 View commit details
    Browse the repository at this point in the history
  99. Refactor and prepare for some changes: Deal with the difference betwe…

    …en `srcset` and other url attributes in one place
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    bb33dba View commit details
    Browse the repository at this point in the history
  100. Configuration menu
    Copy the full SHA
    cae9720 View commit details
    Browse the repository at this point in the history
  101. Configuration menu
    Copy the full SHA
    e39ee96 View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    4429182 View commit details
    Browse the repository at this point in the history
  103. Don't rename attrs of assets which will be refused according to initi…

    …al recording config, i.e. the origins don't match. Should make the 'refused' status redundant
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2ada9a1 View commit details
    Browse the repository at this point in the history
  104. New config option inlineStylesheet='all' in order to fetch stylesheet…

    …s (that are otherwise blocked due to e.g. CORs issues) as assets
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    7e17722 View commit details
    Browse the repository at this point in the history
  105. Configuration menu
    Copy the full SHA
    77d8a83 View commit details
    Browse the repository at this point in the history
  106. Don't double capture blobs as _cssText and an asset. Fixes test 'capt…

    …ures stylesheets with `blob:` url'
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3254dec View commit details
    Browse the repository at this point in the history
  107. Prefer to inlineStylesheets using Assets so that we can take advantag…

    …e of requestIdleCallback and not block the main thread during snapshotting
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    f4a88f5 View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    1c78feb View commit details
    Browse the repository at this point in the history
  109. Configuration menu
    Copy the full SHA
    bbec8e8 View commit details
    Browse the repository at this point in the history
  110. Capture <style> element css via an asset event to avoid main thread p…

    …rocessing cost during initial snapshotting
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    50d4953 View commit details
    Browse the repository at this point in the history
  111. Configuration menu
    Copy the full SHA
    578bcdf View commit details
    Browse the repository at this point in the history
  112. Configuration menu
    Copy the full SHA
    7bc516d View commit details
    Browse the repository at this point in the history
  113. Add setting to control how quickly stylesheet assets get emitted - so…

    …lves real problem in 'can record style text mutations' where we need to have the asset events emitted so that we can replay correctly
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d03a53c View commit details
    Browse the repository at this point in the history
  114. Don't queue up asset callbacks twice; was happening after `replayer.p…

    …ause` in 'can record style text mutations' test
    
     - actual fix is to skip in `applyEventsSynchronously` as the event has already been handled by preloadAllAssets on FullSnapshot event
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3fcbc79 View commit details
    Browse the repository at this point in the history
  115. We can rebuild styles immediately without the async/promise delay tha…

    …t is necessary for images. This fixes the 'can record style text mutations' test where we are scrubbing around the replayer synchronously and expect the DOM to keep up
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    396dd0c View commit details
    Browse the repository at this point in the history
  116. When we rebuild styles immediately from a snapshot, ensure we are cor…

    …rectly using cssTextSplits by applying to the serializedNode rather than the DOM node. Another fix the 'can record style text mutations' test
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    84618b7 View commit details
    Browse the repository at this point in the history
  117. Didn't realize we can use the 'as' keyword to treat an rrdom element …

    …as a real element - otherwise rrweb-snapshot would need to import RRStyleElement which would create a cyclic dependency
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    91a1e1d View commit details
    Browse the repository at this point in the history
  118. Configuration menu
    Copy the full SHA
    d555c09 View commit details
    Browse the repository at this point in the history
  119. Restore inlineImages as a first class config option which bypasses …

    …the `origins` mechanism to attempt to inline all images. The previous method will still be used in standalone snapshots
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ada0769 View commit details
    Browse the repository at this point in the history
  120. Remove tests that are duplicated minus the 'if inlineImages is on' pa…

    …rt - they are basically testing the same thing as the iframe versions still have <img> elements. These tests were also previously marked DEPRECATED due to association with older inlineImages setting
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    6554bf1 View commit details
    Browse the repository at this point in the history
  121. Don't emit style mutations if we haven't serialized the style sheet y…

    …et - the asset event will include the final content anyway
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a6b520b View commit details
    Browse the repository at this point in the history
  122. Configuration menu
    Copy the full SHA
    8f3c65d View commit details
    Browse the repository at this point in the history
  123. Configuration menu
    Copy the full SHA
    eaa0f09 View commit details
    Browse the repository at this point in the history
  124. Configuration menu
    Copy the full SHA
    a912e16 View commit details
    Browse the repository at this point in the history
  125. Configuration menu
    Copy the full SHA
    dea66b5 View commit details
    Browse the repository at this point in the history
  126. Configuration menu
    Copy the full SHA
    2482503 View commit details
    Browse the repository at this point in the history
  127. Configuration menu
    Copy the full SHA
    b1e7ab4 View commit details
    Browse the repository at this point in the history
  128. Idea from Justin: Store cssText as an array rather than with the extr…

    …a `splits` parameter when it is an asset so that there's a uniform way of processing it
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    61e5fba View commit details
    Browse the repository at this point in the history
  129. Allow usage of requestIdleCallback to be turned off altogether by set…

    …ting a zero or negative value for `config.processStylesheetsWithin`
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    a57bc5c View commit details
    Browse the repository at this point in the history
  130. Configuration menu
    Copy the full SHA
    019b44e View commit details
    Browse the repository at this point in the history
  131. Simplify by passing the inlineStylesheets config setting around as pa…

    …rt of the captureAssets config where possible
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    0a42bdc View commit details
    Browse the repository at this point in the history
  132. Configuration menu
    Copy the full SHA
    cdb2363 View commit details
    Browse the repository at this point in the history
  133. Transfer the legacy default setting into a special 'without-fetch' in…

    … config.stylesheets, as I want that to match inlineImages in that `true` will attempt to fetch all stylesheets
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    9fa0289 View commit details
    Browse the repository at this point in the history
  134. Configuration menu
    Copy the full SHA
    433e93c View commit details
    Browse the repository at this point in the history
  135. Add a setting to enable turning off of assets for smaller stylesheets…

    … (in terms of outer rules)
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    703b7f9 View commit details
    Browse the repository at this point in the history
  136. Configuration menu
    Copy the full SHA
    44542a3 View commit details
    Browse the repository at this point in the history
  137. Configuration menu
    Copy the full SHA
    5ebe721 View commit details
    Browse the repository at this point in the history
  138. Apply formatting changes

    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    999cc32 View commit details
    Browse the repository at this point in the history
  139. Satisfy eslint

    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    18c44eb View commit details
    Browse the repository at this point in the history
  140. Satisfy typescript by creating an Interface to acknowledge the extra …

    …synthetic property on the style element
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    92dbf7f View commit details
    Browse the repository at this point in the history
  141. Configuration menu
    Copy the full SHA
    6911010 View commit details
    Browse the repository at this point in the history
  142. Prefer waitForRAF over timeout as the latter operates in puppeteer ra…

    …ther than browser context
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ed4fb11 View commit details
    Browse the repository at this point in the history
  143. Update assets.zh_CN.md

    Thanks for adding this document. I tested that even the translation result of Chatgpt4 is not good enough.
    So I changed some words to make the doc more readable for Chinese users.
    YunFeng0817 authored and eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    e0327f0 View commit details
    Browse the repository at this point in the history
  144. Configuration menu
    Copy the full SHA
    5e43f37 View commit details
    Browse the repository at this point in the history
  145. Configuration menu
    Copy the full SHA
    ad7ce45 View commit details
    Browse the repository at this point in the history
  146. Configuration menu
    Copy the full SHA
    157a256 View commit details
    Browse the repository at this point in the history
  147. Configuration menu
    Copy the full SHA
    6763c08 View commit details
    Browse the repository at this point in the history
  148. Extra pause needed after switch from jest to vitest, when running tes…

    …ts in parallel - not needed when running test by itself
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    6bd9b47 View commit details
    Browse the repository at this point in the history
  149. Configuration menu
    Copy the full SHA
    f3fa35d View commit details
    Browse the repository at this point in the history
  150. fixup! Caught a case where a text mutation, which bypasses _cssText

    …, wasn't getting rebuilt with `adaptCssForReplay`
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    ec60cef View commit details
    Browse the repository at this point in the history
  151. This was removed in single-style-capture but 'reintroduced' in this h…

    …istory via asset-event branch
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    2d5afc4 View commit details
    Browse the repository at this point in the history
  152. Fix that the false default on shouldIgnoreAssets should have been…

    … a `true` (ignore by default) - an empty (or maybe partial) captureAssets config where origins was unspecified was producing the error
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    8aa7388 View commit details
    Browse the repository at this point in the history
  153. Configuration menu
    Copy the full SHA
    c71393e View commit details
    Browse the repository at this point in the history
  154. Honour the 'omits css contents for asset managed stylesheet' test:

        // presence of onAssetDetected means we should get
        // rr_captured_href (with contents promised later - i.e. using rrweb/record)
    
    Not sure when this test started failing
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    c12e649 View commit details
    Browse the repository at this point in the history
  155. Configuration menu
    Copy the full SHA
    403313c View commit details
    Browse the repository at this point in the history
  156. Apply formatting changes

    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d1ca7ac View commit details
    Browse the repository at this point in the history
  157. Prior to this PR, we weren't previously storing blank _cssText; could…

    … be a fixup to 'Capture <style> element css via an asset event...'
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    7f4aaca View commit details
    Browse the repository at this point in the history
  158. Improve test reliability

    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3faa4de View commit details
    Browse the repository at this point in the history
  159. Think we need tighter processing for the tests to pass in the CI - pr…

    …esume that as the machines are quicker there, the tests complete before stylesheets are processed
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    084bf88 View commit details
    Browse the repository at this point in the history
  160. Configuration menu
    Copy the full SHA
    9cad5cb View commit details
    Browse the repository at this point in the history
  161. Configuration menu
    Copy the full SHA
    b73ad96 View commit details
    Browse the repository at this point in the history
  162. Configuration menu
    Copy the full SHA
    30ffbfb View commit details
    Browse the repository at this point in the history
  163. Configuration menu
    Copy the full SHA
    7a87075 View commit details
    Browse the repository at this point in the history
  164. Configuration menu
    Copy the full SHA
    27cab92 View commit details
    Browse the repository at this point in the history
  165. Configuration menu
    Copy the full SHA
    f86f182 View commit details
    Browse the repository at this point in the history
  166. Apply formatting changes

    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    c7edb29 View commit details
    Browse the repository at this point in the history
  167. Add a queueing mechanism so that in Live Mode we don't render full sn…

    …apshots until we receive the stylesheet assets to avoid a flash of unstyled content (fouc)
    eoghanmurray committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    faad2d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. assetCount would not suffice if multiple FullSnapshots were present i…

    …n the recording, and the ordering of asset arrival in the replayer was not regular. This change also means we only wait for stylesheets (which have a `timeout` associate with their status), which is good as other assets can be handled asyncrounously by the replayer asset manager without any negative effects (images get a placeholder image, whereas a missing stylesheet affect the entire page rendering)
    eoghanmurray committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    8aa60b6 View commit details
    Browse the repository at this point in the history
  2. Satisfy typings

    eoghanmurray committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    8f82519 View commit details
    Browse the repository at this point in the history
  3. Apply formatting changes

    eoghanmurray committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    b42878b View commit details
    Browse the repository at this point in the history
  4. Mark where I think the assetManager resets were supposed to happen as…

    … I'm about to remove the reset in favour of keeping assets around
    eoghanmurray committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    ab90b43 View commit details
    Browse the repository at this point in the history
  5. More accurate setting of 'allAdded' based on how asset urls compare t…

    …o that specified in the full snapshot
    eoghanmurray committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    ba28b86 View commit details
    Browse the repository at this point in the history
  6. Allow duplicate assets to only be sent once per recording (e.g. in a …

    …multi-page session).
    
     - instead of resetting between FullSnapshots, we instead record assets against a timestamp
     - prefer assets with timestamps subseqent to a snapshot (as if a reset happened)
     - if none can be found, find the most recent prior asset for a url
    
    The asset manager now requires a rudimentary idea of where the replayer is at prior to applying an asset
    eoghanmurray committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    b130837 View commit details
    Browse the repository at this point in the history
  7. buildNodeWithSN still lives in rrweb-snapshot - correction for 'Mov…

    …e types from rrweb-snapshot to @rrweb/types' but I don't know why it wasn't needed before
    eoghanmurray committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    08415f4 View commit details
    Browse the repository at this point in the history
  8. Fixup test: this test doesn't use the stylesheet assets so make sure …

    …that we don't delay fullsnapshot rendering awaiting for them
    eoghanmurray committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    a79f253 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2641cde View commit details
    Browse the repository at this point in the history