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

V2 - Major changes! #65

Closed
LuanRT opened this issue Jun 1, 2022 · 4 comments
Closed

V2 - Major changes! #65

LuanRT opened this issue Jun 1, 2022 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@LuanRT
Copy link
Owner

LuanRT commented Jun 1, 2022

I'm happy to announce that v2 is now on NPM! Finally :)

Installation:

# NPM
npm install youtubei.js@latest

# Yarn
yarn add youtubei.js@latest

Note that you can always roll back to v1 (unmaintained) if you think you're not ready to switch:

npm install youtubei.js@stable-v1

Documentation:
Updated documentation can be found here.

Examples:
Here.

A simple project that uses YouTube.js: ApodYT


For contributors & the curious:
The parser and its documentation can be found here.

@LuanRT LuanRT added enhancement New feature or request priority: high labels Jun 1, 2022
@LuanRT LuanRT self-assigned this Jun 1, 2022
LuanRT added a commit that referenced this issue Jun 6, 2022
Things were getting a bit complicated and slow with the old parser so I decided to continue #44's work on the main codebase.
@LuanRT
Copy link
Owner Author

LuanRT commented Jun 6, 2022

The new parser can be found here. For development updates, see #44 and this issue.

@LuanRT
Copy link
Owner Author

LuanRT commented Jun 10, 2022

d167a0b — YouTube Music search has been refactored to behave the same way the official app does. Now also supporting filters and continuations.

@LuanRT LuanRT changed the title Refactor parser Refactor parser (major changes!) Jun 13, 2022
@LuanRT
Copy link
Owner Author

LuanRT commented Jun 13, 2022

Note:

Innertube#getDetails(video_id: string) will be deprecated and replaced by Innertube#getInfo(video_id: string). There will also be a Innertube#getBasicInfo(video_id: string) method as suggested by some people.

Edit 1:
And all YouTube Music related methods were moved to Innertube#music.

Edit 2:
Updated documentation can be found here (WIP).

LuanRT added a commit that referenced this issue Jul 11, 2022
Finally! :)

This removes all code related to the old parser.

#65
@Wykerd Wykerd added this to the v2 milestone Jul 13, 2022
@LuanRT LuanRT removed their assignment Jul 23, 2022
@LuanRT LuanRT changed the title Refactor parser (major changes!) V2 - Major changes! Jul 31, 2022
@github-actions
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants