LuanRT
257bd475a0
refactor: clean up parser and tests ( #387 )
...
* tests: improve coverage
* refactor: clean up nodes
* chore: lint
* feat(parser): ignore `BrandVideoShelf`
Seems to be used for ads.
* feat(parser): ignore `BrandVideoSingleton` too
2023-04-23 06:37:33 -03:00
LuanRT
f933cb45bc
feat(VideoSecondaryInfo): add support for attributed descriptions ( #325 )
2023-02-26 16:47:47 -03:00
LuanRT
eb72c2f6ef
refactor(parser): improve typings and do some refactoring ( #305 )
...
* dev: add response types
* dev: refactor `Parser#parseResponse()`
* dev: update YouTube parsers
* dev: update YouTube Music classes
* dev: update YouTube Kids classes
* dev: update core classes
* dev(Parser): fix some inconsistencies
* chore: update docs
* chore: update docs x2
* fix: export response types
* chore(docs): update parser example
2023-02-12 07:04:17 -03:00
Daniel Wykerd
2ccbe2ce62
refactor!: cleanup platform support ( #306 )
...
* refactor!: cleanup platform support
* chore: lint
* fix: web platform
* feat: provide UniversalCache
Provide UniversalCache as a wrapper around Platform.shim.Cache.
* fix: invalid import
* refactor: remove isolated-vm support
* fix: type info
* refactor: cleanup exports
* fix: mark jintr as external dependency
In the bundled CJS node build, mark jintr as external.
* chore: add additional exports
web exports provide a way to select web implementation manually without
relying on the bundler to select it correctly from the "exports" field
web points to src/platform/web.js
web.bundle points to bundle/browser.js
web.bundle.browser points to bundle/browser.min.js
agnostic exports provide users of the library to provide their own
platform implementation without first importing the default one.
agnostic points to src/platform/lib.ts
* fix: toDash on web
* revert: eval is synchronous
* fix: use serializeDOM in FormatUtils
* ci: automate releases with `release-please`
* chore: clean up workflow files
* ci: fix NPM publish action
---------
Co-authored-by: LuanRT <luan.lrt4@gmail.com >
2023-02-12 04:21:44 -03:00
Daniel Wykerd
e82e23dfbb
feat(parser): Text#toHTML ( #300 )
...
Added support to render Text nodes as HTML for use in web applications.
2023-02-01 16:27:59 -03:00
LuanRT
f7c1e0f249
fix(Music): search endpoint missing
...
Related: #242
2022-11-23 20:04:24 -03:00
LuanRT
aa334aacbd
refactor: clean up, fix & remove outdated code ( #228 )
...
* dev: refactor and remove redundant code
* docs(music): update `Library` API ref
* docs: update examples
* chore: update lock file
2022-11-06 03:32:16 -03:00
Akazawa Daisuke
2f56c15ecc
feat(LiveChat): add support for moderation & more ( #202 )
...
* Live Chat - Implement moderation
* Live Chat - Implement class ItemMenu
* fix moderation method
Co-authored-by: LuanRT <luan.lrt4@gmail.com >
2022-10-02 02:00:24 -03:00
LuanRT
f2f48af1bc
feat(Music): add automix support and other minor improvements ( #184 )
...
* dev(NavigationEndpoint): add `/player` endpoint
* dev: add AudioOnlyPlayability, BrowserMediaSession and MusicDownloadStateBadge
* dev: allow endpoints to be overridden
* dev: minor parser changes
* dev(TrackInfo): add `<info>#getTab(title?)`
* dev: allow `Music#getInfo()` to accept list items
* dev: revert a few changes, I probably overcomplicated this.
* dev: add tests
* dev: add `TrackInfo#getUpNext()`, `TrackInfo#getRelated()` and `TrackInfo#getLyrics()`
* docs: update API ref
* fix(docs): formatting inconsistencies
2022-09-13 02:26:13 -03:00
LuanRT
85fc468cc9
feat: add music#getRecap() ( #165 )
...
* dev: add recap renderer parsers
* dev: finish implementation ✨
* docs: update YouTube Music API ref
2022-09-05 18:08:34 -03:00
Patrick Kan
53cb26546e
chore: minor fixes ( #159 )
...
* fix: add `params` to `watch_playlist` endpoint
* fix: continuation in `PlaylistPanelContinuation`
2022-09-02 14:24:36 -03:00
LuanRT
13a86cb4e7
feat: add settings page parser ( #154 )
...
* feat: add settings page parsers
* fix(AccountManager): small ts error
* feat: add `CopyLink` & `SettingsCheckbox`
* deps: remove “flat” dependency
2022-08-28 05:11:11 -03:00
Patrick Kan
6fe4d235ff
feat: add MusicSortFilterButton ( #151 )
2022-08-25 02:06:52 -03:00
LuanRT
34281e2445
refactor: migrate parsers to TS ( #133 )
...
* dev: finish top-level parsers TS migration
* dev: migrate menu renderers to TS
* chore: fix ts errors
* dev: finish ts migration 🎉
2022-08-20 03:18:17 -03:00
Patrick Kan
f6a2a418be
feat(ytmusic): implement music#Library ( #136 )
...
* feat: add ItemSectionTab and related parsers
* feat: add `continuation` to `Grid`parser class
* feat (ytmusic): implement music#getLibrary()
* Improve album fetch in `MusicResponsiveListItem`
* music#Library: return [] for empty results
* feat: add `Dropdown` & `DropdownItem` parsers
* feat: add `CreatePlaylistDialog` parser
* feat: add `create_playlist` to NavigationEndpoint
* feat: add `AutomixPreviewVideo` parser
* feat: improve parsing of items
* fix: `PlaylistPanel` continuation
* feat: more args in `Actions#next`
* feat: add `PlaylistPanelContinuation` to `Parser`
* chore: update parser-map
* music#Library: refactor + add shuffle songs opt
* feat: add `endpoint` to `DropdownItem`
* feat: add `end_items` to `ItemSectionTabbedHeader`
* feat(ytmusic): add `sort_by` to `music#Library`
2022-08-13 17:39:35 -03:00
LuanRT
d6398296c3
docs: update examples
2022-08-03 17:06:00 -03:00
LuanRT
adae925367
refactor!: rewrite Analytics to TypeScript ( #122 )
...
* refactor: migrate all analytics’ classes to TypeScript
Also, add AnalyticsShortsCarouselCard and AnalyticsRoot.
2022-07-29 05:39:34 -03:00
LuanRT
7ba09a66d8
refactor: migrate NotificationsMenu to TypeScript
2022-07-29 01:00:56 -03:00
LuanRT
60e6326402
style: format code
2022-07-21 03:51:28 -03:00
LuanRT
6a5ebeb8ee
chore: clean up build steps
2022-07-20 16:28:51 -03:00