Commit Graph

1521 Commits

Author SHA1 Message Date
dependabot[bot]
2b4befbc36 chore(deps-dev): bump vite in /examples/browser/web (#964)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.18 to 5.4.19.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.19/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.19/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.19
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-07-18 10:59:34 -03:00
Dave Nicolson
42bcf197bc feat(Parser): Add ToggleFormField node (#902)
* Add ToggleFormField node

* chore: clean up & lint

---------

Co-authored-by: Luan <luan.lrt4@gmail.com>
2025-07-18 10:40:22 -03:00
Luan
4a4b87afe0 chore: Update esbuild to version 0.25.6 2025-07-18 10:39:08 -03:00
lovegaoshi
8f81d54e40 chore(ReactNative): Change deprecated assert to with (#972) 2025-07-18 10:27:09 -03:00
ChunkyProgrammer
dfaf1501c9 fix(Channel): Use new URL for community tab (#986) 2025-07-18 10:23:59 -03:00
shinray
bc386db6ba feat(Parser): Add SectionHeaderView and GridShelfView (#988)
* feat(parser): add sectionheaderview and gridshelfview

* style: direct import instead of from ytnodes namespace

* chore: clean up

---------

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
Co-authored-by: Luan <luan.lrt4@gmail.com>
2025-07-18 10:23:15 -03:00
Fea
2996ebb334 fix: Make "deno" conditional export have higher precedence than "node" (#983) 2025-07-18 10:13:55 -03:00
Fea
e94ef3748e feat(Parser): Add DismissableDialog and DismissableDialogContentSection nodes (#997)
* feat(Parser): Add `DismissableDialogContentSection` node

* feat(Parser): Add `DismissableDialog` node

* chore: clean up

---------

Co-authored-by: Luan <luan.lrt4@gmail.com>
2025-07-18 10:06:05 -03:00
ChunkyProgrammer
e9d6483e5a fix(Innertube#getPost): Update protobuf schema (#987)
* Update get post

* Remove leftover debug code
2025-07-18 09:59:31 -03:00
Ankush Sarkar
64f995585f fix(Artist): getAllSongs not finding target shelf (#999) 2025-07-18 09:55:45 -03:00
wukko
2196afbc37 chore: update node target to 20 & undici to latest 6.x version (#985)
* chore: update node target to 20

node 16 & 18 have reached EOL, 20 is the oldest supported LTS version

* chore: update undici to latest 6.x version

this allows for use of https proxies via `EnvHttpProxyAgent` among other useful things
2025-07-18 08:26:38 -03:00
Luan
3fcf987aec fix(MediaInfo): Remove unused parameters from toDash method 2025-07-18 08:20:54 -03:00
Luan
c16feee065 refactor(HTTPClient): Send configInfo only if using WEB 2025-06-22 20:01:07 -03:00
Ryuu Mitsuki
638697696f feat(parser-classes): Add CompositeVideoPrimaryInfo parser class (#984)
* feat(parser-classes): Add `CompositeVideoPrimaryInfo` parser class

* refactor(parser-classes): Remove `data` property from instance class

* chore: shorten import path

---------

Co-authored-by: Luan <luan.lrt4@gmail.com>
2025-06-22 14:59:15 -03:00
Luan
7ae4ccf70a feat(DashManifest): Add DRM infos to MPD
Required in newer versions of Shaka (for playback of protected content).
2025-06-21 03:58:44 -03:00
Luan
76504c0d08 fix(Session): Incorrect session client logic 2025-06-19 13:01:16 -03:00
ChunkyProgrammer
d6f13e20ac feat(CommentsView): parse voice_reply_transcript (#981)
* Parse the VoiceReplyContainer instead of just parsing the text
2025-06-17 13:26:50 -03:00
github-actions[bot]
1705470558 chore(main): release 14.0.0 (#956)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v14.0.0
2025-06-09 11:44:19 -03:00
Luan
60137e6a0e chore: Fix typo 2025-06-08 14:34:03 -03:00
Luan
505e21eeb2 chore: Update auth docs 2025-06-08 14:33:10 -03:00
Luan
147efd0614 chore: gen docs [skip ci] 2025-06-08 13:53:02 -03:00
Luan
f87b5af98c chore: gen docs [skip ci] 2025-06-08 13:48:03 -03:00
Luan
e1650e1297 refactor: Clean up HTTPClient code 2025-06-08 13:45:03 -03:00
Luan
b15f623dab fix(Constants): Add TVHTML5_SIMPLY to CLIENT_NAME_IDS 2025-06-08 13:44:01 -03:00
Fijxu
689fb0b90e fix: add missing TV_SIMPLY parts on some files (#975) 2025-06-08 12:42:44 -03:00
Luan
056b12c3db chore: merge 2025-06-08 09:51:21 -03:00
Luan
8cf658151f feat: Add TV_SIMPLY client 2025-06-08 09:51:06 -03:00
Konstantin
065e9a4e7c feat(MediaInfo): Add updateWatchTime (#874)
* feat: add watch time update function for VideoInfos classes

* chore: Improve naming

* chore: fix ts error

---------

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
Co-authored-by: Luan <luan.lrt4@gmail.com>
2025-06-08 08:25:54 -03:00
lovegaoshi
bb022e8285 fix(Session): Initialize client version based on provided client name (#971)
* fix(Session): Fix client init when using cached sessions

---------

Co-authored-by: Luan <luan.lrt4@gmail.com>
2025-06-08 07:51:53 -03:00
Suhun Han
876e94ad03 feat(VideoInfo): implement MacroMarkersListEntity parser for heatmap (#973)
* refactor(video-info): rewrite heat-map extraction

* fix(parser): Ensure heatmap mutations are processed only if mutations exist

---------

Co-authored-by: Luan <luan.lrt4@gmail.com>
2025-06-08 07:32:50 -03:00
absidue
698121ab8f fix: Handle CommandExecutorCommand in NavigationEndpoint.call (#968)
Co-authored-by: Luan <luan.lrt4@gmail.com>
2025-06-08 07:12:26 -03:00
absidue
11c419a96c chore(build): Add source mappings for enums (#966) 2025-06-08 07:03:38 -03:00
Luan
561e60b934 feat(StreamingInfoOptions)!: Add is_sabr option (#974)
Returns a manifest suitable for use in SABR player implementations.
2025-06-08 07:02:10 -03:00
Luan
f202bcdeb7 chore(test): Update comment test case with a new video ID 2025-06-08 06:59:48 -03:00
Luan
f6fa735ac1 Merge branch 'main' of https://github.com/LuanRT/YouTube.js 2025-06-07 13:02:55 -03:00
absidue
09718a717f refactor(Actions): Use Response.json instead of JSON.parse + Response.text (#967) 2025-05-26 20:27:32 -03:00
absidue
0f1fd7223c fix(getBasicInfo): Add racyCheckOk and contentCheckOk to payload (#961) 2025-05-01 08:29:25 -03:00
ChunkyProgrammer
92b8623374 fix(Innertube): Properly encoded params in getPostComments() (#955) 2025-04-24 01:09:03 -03:00
github-actions[bot]
a10c6a1c23 chore(main): release 13.4.0 (#945)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
v13.4.0
2025-04-23 09:33:09 -03:00
Luan
6ee21c5d24 Merge branch 'main' of https://github.com/LuanRT/YouTube.js 2025-04-23 09:31:36 -03:00
dependabot[bot]
b4981ca1fd chore(deps-dev): bump vite in /examples/browser/web (#954)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.12 to 5.4.18.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.18/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.18/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.18
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-23 09:31:15 -03:00
Luan
7c97350785 Merge branch 'main' of https://github.com/LuanRT/YouTube.js 2025-04-23 09:29:02 -03:00
Luan
7f1eeb6b5b fix(Player): Use global var to find signature algorithm (#953)
* chore: Update jintr to version 3.3.1

* fix(Player): Use global var to find signature algorithm

This change allows matching code such as:
```
// "Y" is the global var.

r = r[Y[14]](Y[19]);
q3[Y[8]](r, 30);
q3[Y[8]](r, 65);
q3[Y[8]](r, 2);
```

TODO:
Maybe consider removing the regex (it's too fragile) and instead use the AST walker, like we already do for `nsig` and the global lookup variable.
2025-04-23 09:28:42 -03:00
Paul
5e665e8f0b feat(Session): Add option to override Player ID (#951)
Co-authored-by: Paul <paul@piltd.io>
Co-authored-by: Luan <luan.lrt4@gmail.com>
2025-04-23 09:23:41 -03:00
Luan
677d4db19a chore: Update jintr to version 3.3.1 2025-04-23 08:49:14 -03:00
Dave Nicolson
ff1aa67b8b feat(Parser): Add OpenOnePickAddVideoModalCommand node (#901) 2025-04-20 10:25:50 -03:00
Luan
dce51cdc4a feat(RichShelf): Add icon_type property
Useful for identifying Short content shelves.
2025-04-16 15:59:00 -03:00
Luan
4808d2e13a feat(Session): Add retrieve_innertube_config option (#949)
* feat(Session): Add `retrieve_innertube_config` option

This makes a call to `/config` to fetch hot/cold hash data, as well as config needed for certain requests and encryption (useful for "onesie" requests.)

Note: This is enabled by default. If you don't have any cache configured, the additional request will make session creation slightly slower!

* chore: Update config headers
2025-04-16 15:28:08 -03:00
Luan
98a2ba8c46 chore(parser): Fix types 2025-04-16 14:16:17 -03:00
Luan
a1fd51fbb5 chore: Copy over some types from youtubei-dts
Needed for hot config retrieval.
2025-04-16 14:09:32 -03:00