Skip to content

Update README examples; bump version & license#7

Open
7Mik wants to merge 1 commit into
mainfrom
developer
Open

Update README examples; bump version & license#7
7Mik wants to merge 1 commit into
mainfrom
developer

Conversation

@7Mik

@7Mik 7Mik commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Refresh README: update docs link text and replace old utility-based examples with new Client-based usage (search, getVideo with comments, and playlist pagination) to match the public API and documentation. Also bump package.json version to 1.1.0 and change license from PolyForm-Small-Business-1.0.0 to AGPL-3.0-only.

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have read the CONTRIBUTING.md guide.
  • My PR targets the developer branch.
  • My code adheres to the project's core philosophy (zero-dependency, lightweight, client-side optimized).
  • I have run a local build using npm run build and verified it compiles without errors.
  • I have run local tests using npm test and verified all tests pass.

LLM Review

  • I understand that my PR will be automatically analyzed by an LLM assistant. I agree to review its feedback, fix any legitimate issues, or comment explaining why they are not applicable.

Summary by cubic

Refresh README to use the new Client-based API examples (search, getVideo with comments, playlist pagination) and update the docs link text. Bump tubezero to 1.1.0 and change the license to AGPL-3.0-only.

  • Migration
    • License changed from PolyForm-Small-Business-1.0.0 to AGPL-3.0-only. Confirm compatibility before upgrading.
    • No API changes. Examples now match the public API.

Written for commit 0808b78. Summary will update on new commits.

Review in cubic

Refresh README: update docs link text and replace old utility-based examples with new Client-based usage (search, getVideo with comments, and playlist pagination) to match the public API and documentation. Also bump package.json version to 1.1.0 and change license from PolyForm-Small-Business-1.0.0 to AGPL-3.0-only.
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the README.md documentation to reflect the new Client class API, replacing outdated examples with search, video, and playlist retrieval snippets. Additionally, package.json is updated to bump the version to 1.1.0 and change the license to AGPL-3.0-only. Feedback is provided to use optional chaining in the README's search example to prevent a potential runtime error when no results are returned.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread README.md
console.log("Watch Later:", userFeeds.wlEntries);
console.log("Custom Playlists:", userFeeds.customPlaylistsData);
const results = await youtube.search("Rick Astley", { type: "video" });
console.log(results.items[0].title); // "Rick Astley - Never Gonna Give You Up"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Accessing results.items[0].title directly can cause a runtime TypeError if the search returns no results. It is safer to use optional chaining (results.items[0]?.title) to prevent potential crashes in user code.

Suggested change
console.log(results.items[0].title); // "Rick Astley - Never Gonna Give You Up"
console.log(results.items[0]?.title); // "Rick Astley - Never Gonna Give You Up"

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="README.md">

<violation number="1" location="README.md:91">
P1: `playlist.videos.hasMore` doesn't exist — pagination never executes. Use `playlist.videos.continuation` instead (truthy when more pages available).</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread README.md
console.log(`[${segment.start}s - ${segment.duration}s]: ${segment.text}`);
});
// Load all pages
while (playlist.videos.hasMore) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: playlist.videos.hasMore doesn't exist — pagination never executes. Use playlist.videos.continuation instead (truthy when more pages available).

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At README.md, line 91:

<comment>`playlist.videos.hasMore` doesn't exist — pagination never executes. Use `playlist.videos.continuation` instead (truthy when more pages available).</comment>

<file context>
@@ -45,50 +45,54 @@ Add `"type": "module"` in your `package.json` to enable loading of ES modules.
-    console.log(`[${segment.start}s - ${segment.duration}s]: ${segment.text}`);
-});
+// Load all pages
+while (playlist.videos.hasMore) {
+    await playlist.videos.next();
+}
</file context>
Suggested change
while (playlist.videos.hasMore) {
while (playlist.videos.continuation) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant