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

DevTools: Show hook names based on variable usage #21641

Merged
merged 25 commits into from
Jul 1, 2021

Commits on Jul 1, 2021

  1. Initial work to support hook variable names in devtools extension.

    Co-authored-by: Brian Vaughn <[email protected]>
    Co-authored-by: Saphal Patro <[email protected]>
    Co-authored-by: VibhorCodecianGupta <[email protected]>
    4 people committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    d75814c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3dd1247 View commit details
    Browse the repository at this point in the history
  3. Moved hook names parsing behind user setting

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    48632b7 View commit details
    Browse the repository at this point in the history
  4. Moved feature flag override logic into test helper

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    6a1eecd View commit details
    Browse the repository at this point in the history
  5. Added compiled test sources to Git repo

    Compiled source is not linted or formatted.
    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    f502611 View commit details
    Browse the repository at this point in the history
  6. Test script auto-compiles all source files

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    cb80fba View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    81770cd View commit details
    Browse the repository at this point in the history
  8. Removed injectHookVariableNames-test in favor of less hard-coded pars…

    …eHookNames-test
    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    d508c43 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    75d2256 View commit details
    Browse the repository at this point in the history
  10. Remove hard-coded mappings.wasm file from source

    Do a just-in-time copy from node_modules as part of the build process for the browser extension builds
    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    8075462 View commit details
    Browse the repository at this point in the history
  11. Reorganized tests slightly

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    7f3af1c View commit details
    Browse the repository at this point in the history
  12. Fixed stack trace errors. Added additional tests

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    49dd494 View commit details
    Browse the repository at this point in the history
  13. Prevent Jest from configuring Error source-maps

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    f91e8d8 View commit details
    Browse the repository at this point in the history
  14. Account for Error stack frames having source maps already applied

    Refactored code to account for the fact that, in some environments, Error stack frames will already have source maps applied (so the code does not need to re-map line and column numbers).
    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    43bd1b2 View commit details
    Browse the repository at this point in the history
  15. Refactored AST utils slightly

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    475ef1b View commit details
    Browse the repository at this point in the history
  16. Fixed timeout logic error in hook names cache

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    9b7d709 View commit details
    Browse the repository at this point in the history
  17. Map hook to hook name (rather than array) for sub hooks

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    57f15ac View commit details
    Browse the repository at this point in the history
  18. Added DEBUG logging to parseHookNames util

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    064da9e View commit details
    Browse the repository at this point in the history
  19. Updated hook names tests to account for map vs array

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    6222d7f View commit details
    Browse the repository at this point in the history
  20. Added option to lazily parse hook names for only the currently inspec…

    …ted component
    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    615d8e4 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    9f7a22f View commit details
    Browse the repository at this point in the history
  22. Enabled external hooks test

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    73fafbe View commit details
    Browse the repository at this point in the history
  23. Error source map stack frame check is now lazy instead of during modu…

    …le init
    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    8c4fcb9 View commit details
    Browse the repository at this point in the history
  24. Styled custom hook names too

    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    3bf7311 View commit details
    Browse the repository at this point in the history
  25. Reverted files that were accidentally modified from main branch

    Probably as a result of master -> main rename
    Brian Vaughn committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    401b94e View commit details
    Browse the repository at this point in the history