chore(release): v1.4.3

- `Innertube#actions` and `Innertube#oauth` are now public classes so power users can have more control over the instance.
- Implemented all endpoints reverse engineered from the YouTube APK.
- The player script is now cached in the OS tmp folder to avoid permission problems.
- Added support for almost all YouTube search filters.
- Added support for editing channel name and description.
- Added support for retrieving Time Watched and basic channel analytics.
- Added support for comment translation.
- Typings are now generated directly from jsdocs.
- The initial Innertube configuration is now extracted from `/sw.js_data` and the visitor data is generated by the library.
- Refactored the entire library to improve maintainability and performance.
This commit is contained in:
LuanRT
2022-05-28 04:46:30 -03:00
parent c7c0ac8b54
commit 15437e3937
4 changed files with 365 additions and 427 deletions

776
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
{
"name": "youtubei.js",
"version": "1.4.2",
"description": "A full-featured library that allows you to get detailed info about any video, subscribe, unsubscribe, like, dislike, comment, search, download videos/music and much more!",
"version": "1.4.3",
"description": "A full-featured wrapper around YouTube's private API. Allows you to retrieve info about any video, subscribe, unsubscribe, like, dislike, comment, search, download videos/music and much more!",
"main": "index.js",
"author": "LuanRT <luan.lrt4@gmail.com> (https://github.com/LuanRT)",
"funding": "https://ko-fi.com/luanrt",
@@ -45,11 +45,12 @@
"homepage": "https://github.com/LuanRT/YouTube.js#readme",
"keywords": [
"yt",
"dl"
"ytdl",
"youtube",
"youtube-downloader",
"youtube-dl",
"youtubedl",
"youtube-dl",
"youtube-downloader",
"innertube",
"innertubeapi",
"unofficial",
@@ -62,6 +63,5 @@
"music",
"like",
"api",
"dl"
]
}

View File

@@ -165,7 +165,7 @@ declare class Actions {
*
* @returns {Promise.<{ success: boolean; status_code: number; data: object; }>}
*/
notifications(action: string, args: {
notifications(action: string, args?: {
pref?: string;
channel_id?: string;
ctoken?: string;

View File

@@ -2,10 +2,10 @@ export = SessionBuilder;
/** @namespace */
declare class SessionBuilder {
/**
* @param {string} config
* @param {object} config
* @constructor
*/
constructor(config: string);
constructor(config: object);
build(): Promise<SessionBuilder>;
/** @readonly */
readonly get key(): any;