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

refactor!: better cross runtime support #97

Merged
merged 89 commits into from
Jul 20, 2022
Merged

refactor!: better cross runtime support #97

merged 89 commits into from
Jul 20, 2022

Commits on Jul 11, 2022

  1. refactor: remove dependancies

    removes node-forge and uuid in favor of Web APIs
    Wykerd committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    0569933 View commit details
    Browse the repository at this point in the history
  2. refactor!: commonjs to es6

    To aid with #93 I will make all my changes in TypeScript instead.
    This is the first step into making that happen.
    
    Used: https://github.com/wessberg/cjstoesm
    Wykerd committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    34cb9da View commit details
    Browse the repository at this point in the history
  3. refactor!: NToken and Signature TS files

    Bring this PR up to speed with #93
    Wykerd committed Jul 11, 2022
    Configuration menu
    Copy the full SHA
    1e7a6f0 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2022

  1. feat: cross platform cache (WIP)

    this is untested!
    should remove idb as dependecy.
    Wykerd committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    6f4d96f View commit details
    Browse the repository at this point in the history
  2. feat: EventEmitter polyfill

    Wykerd committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    f622448 View commit details
    Browse the repository at this point in the history
  3. refactor: remove events

    Wykerd committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    29fe937 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5035172 View commit details
    Browse the repository at this point in the history
  5. refactor!: parsers refactor (WIP)

    Initial TS support for parsers as per #93
    
    This adds several type safety checks to the parser which'll help to
    ensure valid data is returned by the parser.
    Wykerd committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    27965ec View commit details
    Browse the repository at this point in the history
  6. refactor!: parsers refactor (WIP)

    Bring more in line with the existing implementations & make less verbose
    Wykerd committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    3726359 View commit details
    Browse the repository at this point in the history
  7. refactor!: parser refactor

    I was overcomplicating things, this is much simpler and compatible with
    the existing JS API
    Wykerd committed Jul 12, 2022
    Configuration menu
    Copy the full SHA
    dd207df View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    37b8f70 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    189f152 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2022

  1. Configuration menu
    Copy the full SHA
    ac83bad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    53515fb View commit details
    Browse the repository at this point in the history
  3. refactor: VideoInfo download with fetch & TS (WIP)

    Again, this also does some work for #93
    Wykerd committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    5a2e465 View commit details
    Browse the repository at this point in the history
  4. fix: LiveChat in VideoInfo

    Wykerd committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    8fb1924 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    76d19b4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5c49385 View commit details
    Browse the repository at this point in the history
  7. refactor!: player and session refactors

    - Remove the Player class' dependance on Session.
    - Add additional context to the Session.
    Wykerd committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    8f873a5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    0392751 View commit details
    Browse the repository at this point in the history
  9. refactor: TS port for Actions and Innertube

    My fingers hurt from typing out all those types :-P
    Wykerd committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    23258dc View commit details
    Browse the repository at this point in the history
  10. refactor: NavigationEndpoint TS

    this is still a WIP and should be improved.
    NavigationEndpoint should probably be refactored further.
    Wykerd committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    fc1a403 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c9db56f View commit details
    Browse the repository at this point in the history
  12. chore: delete old player

    Wykerd committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    e265305 View commit details
    Browse the repository at this point in the history
  13. fix: import errors

    It compiles and runs!!
    Wykerd committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    e1cae96 View commit details
    Browse the repository at this point in the history
  14. fix: Utils import fixes

    Wykerd committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    882f471 View commit details
    Browse the repository at this point in the history
  15. fix: several runtime errors

    Wykerd committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    093aebc View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2022

  1. fix: video streaming

    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    42577ae View commit details
    Browse the repository at this point in the history
  2. chore: remove console.log debugging

    Whoops, forgot to remove these before I pushed the previous commit
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    a851516 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    98d318a View commit details
    Browse the repository at this point in the history
  4. fix: typescript errors

    Now emitting declarations and source maps
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    59be455 View commit details
    Browse the repository at this point in the history
  5. refactor: TS feed

    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    297c856 View commit details
    Browse the repository at this point in the history
  6. chore: delete old Feed

    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    8cb28ad View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    40cb10a View commit details
    Browse the repository at this point in the history
  8. refactor: AccountManager TS

    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    558027b View commit details
    Browse the repository at this point in the history
  9. refactor: FilterableFeed to TS

    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    8586626 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1d60d72 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    061903d View commit details
    Browse the repository at this point in the history
  12. refactor: TabbedFeed to TS

    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    ba9e349 View commit details
    Browse the repository at this point in the history
  13. refactor: Music to TS (WIP)

    more work to be done, see TODO comments
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    29046f7 View commit details
    Browse the repository at this point in the history
  14. fix: getting the tests to pass (6/12)

    YouTube.js Tests
        Search
          ✓ Should search on YouTube (1152 ms)
          ✕ Should search on YouTube Music (705 ms)
          ✕ Should retrieve YouTube search suggestions (722 ms)
          ✓ Should retrieve YouTube Music search suggestions (233 ms)
        Comments
          ✓ Should retrieve comments (585 ms)
          ✕ Should retrieve next batch of comments (221 ms)
          ✕ Should retrieve comment replies (1 ms)
        General
          ✕ Should retrieve playlist with YouTube (732 ms)
          ✓ Should retrieve home feed (838 ms)
          ✓ Should retrieve trending content (543 ms)
          ✓ Should retrieve video info (639 ms)
          ✕ Should download video (5 ms)
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    3f04c3f View commit details
    Browse the repository at this point in the history
  15. fix: tests (7/12)

    YouTube.js Tests
        Search
          ✓ Should search on YouTube (1984 ms)
          ✕ Should search on YouTube Music (1139 ms)
          ✕ Should retrieve YouTube search suggestions (1433 ms)
          ✓ Should retrieve YouTube Music search suggestions (529 ms)
        Comments
          ✓ Should retrieve comments (324 ms)
          ✓ Should retrieve next batch of comments (395 ms)
          ✕ Should retrieve comment replies
        General
          ✕ Should retrieve playlist with YouTube (653 ms)
          ✓ Should retrieve home feed (1085 ms)
          ✓ Should retrieve trending content (513 ms)
          ✓ Should retrieve video info (921 ms)
          ✕ Should download video (3 ms)
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    50d6ee8 View commit details
    Browse the repository at this point in the history
  16. fix: download tests (8/12)

    YouTube.js Tests
        Search
          ✓ Should search on YouTube (1293 ms)
          ✕ Should search on YouTube Music (927 ms)
          ✕ Should retrieve YouTube search suggestions (1250 ms)
          ✓ Should retrieve YouTube Music search suggestions (258 ms)
        Comments
          ✓ Should retrieve comments (803 ms)
          ✓ Should retrieve next batch of comments (511 ms)
          ✕ Should retrieve comment replies
        General
          ✕ Should retrieve playlist with YouTube (528 ms)
          ✓ Should retrieve home feed (1047 ms)
          ✓ Should retrieve trending content (548 ms)
          ✓ Should retrieve video info (825 ms)
          ✓ Should download video (1779 ms)
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    4a11ea8 View commit details
    Browse the repository at this point in the history
  17. fix: tests (9/12)

    YouTube.js Tests
        Search
          ✓ Should search on YouTube (1276 ms)
          ✕ Should search on YouTube Music (955 ms)
          ✓ Should retrieve YouTube search suggestions (661 ms)
          ✓ Should retrieve YouTube Music search suggestions (491 ms)
        Comments
          ✓ Should retrieve comments (624 ms)
          ✓ Should retrieve next batch of comments (353 ms)
          ✕ Should retrieve comment replies
        General
          ✕ Should retrieve playlist with YouTube (672 ms)
          ✓ Should retrieve home feed (1277 ms)
          ✓ Should retrieve trending content (999 ms)
          ✓ Should retrieve video info (1106 ms)
          ✓ Should download video (2514 ms)
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    21a37ad View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    b0b4117 View commit details
    Browse the repository at this point in the history
  19. fix: comments tests pass (10/12)

    YouTube.js Tests
        Search
          ✓ Should search on YouTube (938 ms)
          ✕ Should search on YouTube Music (850 ms)
          ✓ Should retrieve YouTube search suggestions (528 ms)
          ✓ Should retrieve YouTube Music search suggestions (224 ms)
        Comments
          ✓ Should retrieve comments (518 ms)
          ✓ Should retrieve next batch of comments (337 ms)
          ✓ Should retrieve comment replies (358 ms)
        General
          ✕ Should retrieve playlist with YouTube (466 ms)
          ✓ Should retrieve home feed (1051 ms)
          ✓ Should retrieve trending content (623 ms)
          ✓ Should retrieve video info (863 ms)
          ✓ Should download video (2656 ms)
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    e429471 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    4b7aa96 View commit details
    Browse the repository at this point in the history
  21. fix: playlist tests pass (11/12)

    YouTube.js Tests
        Search
          ✓ Should search on YouTube (991 ms)
          ✕ Should search on YouTube Music (924 ms)
          ✓ Should retrieve YouTube search suggestions (606 ms)
          ✓ Should retrieve YouTube Music search suggestions (225 ms)
        Comments
          ✓ Should retrieve comments (393 ms)
          ✓ Should retrieve next batch of comments (284 ms)
          ✓ Should retrieve comment replies (252 ms)
        General
          ✓ Should retrieve playlist with YouTube (578 ms)
          ✓ Should retrieve home feed (1148 ms)
          ✓ Should retrieve trending content (541 ms)
          ✓ Should retrieve video info (799 ms)
          ✓ Should download video (1419 ms)
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    21b87a3 View commit details
    Browse the repository at this point in the history
  22. fix: all tests pass for node 🎉

    YouTube.js Tests
        Search
          ✓ Should search on YouTube (1053 ms)
          ✓ Should search on YouTube Music (761 ms)
          ✓ Should retrieve YouTube search suggestions (453 ms)
          ✓ Should retrieve YouTube Music search suggestions (221 ms)
        Comments
          ✓ Should retrieve comments (627 ms)
          ✓ Should retrieve next batch of comments (412 ms)
          ✓ Should retrieve comment replies (268 ms)
        General
          ✓ Should retrieve playlist with YouTube (565 ms)
          ✓ Should retrieve home feed (775 ms)
          ✓ Should retrieve trending content (498 ms)
          ✓ Should retrieve video info (875 ms)
          ✓ Should download video (1364 ms)
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    c7240db View commit details
    Browse the repository at this point in the history
  23. build: working Deno bundle

    Still need to test whether this bundle works in the browser
    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    4741b3e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    e888cb5 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    e4b62b2 View commit details
    Browse the repository at this point in the history
  26. docs: TSDoc for Parser helpers

    Wykerd committed Jul 14, 2022
    Configuration menu
    Copy the full SHA
    5c532ce View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    10a96ad View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    f597f57 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    0f64611 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2022

  1. Configuration menu
    Copy the full SHA
    d051511 View commit details
    Browse the repository at this point in the history
  2. fix: merge conflicts

    Wykerd committed Jul 15, 2022
    Configuration menu
    Copy the full SHA
    4863c1c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b3b5f21 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9701b92 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f39e73f View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2022

  1. 1 Configuration menu
    Copy the full SHA
    6507ad2 View commit details
    Browse the repository at this point in the history
  2. feat: fetch debugger

    Wykerd committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    0bafe05 View commit details
    Browse the repository at this point in the history
  3. fix: OAuth login

    Wykerd committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    51bf764 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cab9b6c View commit details
    Browse the repository at this point in the history
  5. refactor: build scripts

    Wykerd committed Jul 16, 2022
    Configuration menu
    Copy the full SHA
    559eacd View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2022

  1. fix: CustomEvent on node

    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    9124854 View commit details
    Browse the repository at this point in the history
  2. fix: LiveChat

    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    f6ff7c2 View commit details
    Browse the repository at this point in the history
  3. fix: linting

    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    0a37abb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2eee3e1 View commit details
    Browse the repository at this point in the history
  5. chore: update test workflow

    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    679b827 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a8a4d7f View commit details
    Browse the repository at this point in the history
  7. fix: codacy complaints

    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    76b9927 View commit details
    Browse the repository at this point in the history
  8. docs: update to reflect changes

    Definitly needs more work but its a start
    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    77d985d View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1b2570f View commit details
    Browse the repository at this point in the history
  10. fix: browser example

    - Remove user-agent before making request.
    - Fix cache on browsers
    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    79c6ca8 View commit details
    Browse the repository at this point in the history
  11. fix: cache on node

    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    55b983f View commit details
    Browse the repository at this point in the history
  12. fix: stupid mistake

    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    d51271b View commit details
    Browse the repository at this point in the history
  13. refactor: Session#signIn to wait untill success

    This also splits the 'auth' event up into 3 distinct events:
    - 'auth' -> fired on success
    - 'auth-pending' -> fired when pending authentication
    - 'auth-error' -> fired when an error occurred
    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    fa7d414 View commit details
    Browse the repository at this point in the history
  14. refactor: freeze Constants

    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    682261a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    9682676 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    6b8249b View commit details
    Browse the repository at this point in the history
  17. chore: lint

    Wykerd committed Jul 17, 2022
    Configuration menu
    Copy the full SHA
    f4be045 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. refactor: replace jsdoc with tsdoc eslint plugin

    remove @param annotations without descriptions
    Wykerd committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    1873f5a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    14be811 View commit details
    Browse the repository at this point in the history
  3. refactor: better inference on YTNode#is

    As suggested by @MasterOfBob777
    Wykerd committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    3854d81 View commit details
    Browse the repository at this point in the history
  4. fix: linting warnings

    Wykerd committed Jul 18, 2022
    Configuration menu
    Copy the full SHA
    e772b86 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2022

  1. revert: undici import

    Wykerd committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    96e3ed7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4974a06 View commit details
    Browse the repository at this point in the history