Skip to content

chore(deps): bump youtube-po-token-generator to 0.6.0#51

Merged
jzstern merged 1 commit into
mainfrom
chore/bump-po-token-generator
Apr 23, 2026
Merged

chore(deps): bump youtube-po-token-generator to 0.6.0#51
jzstern merged 1 commit into
mainfrom
chore/bump-po-token-generator

Conversation

@jzstern
Copy link
Copy Markdown
Owner

@jzstern jzstern commented Apr 23, 2026

Summary

  • Bumps youtube-po-token-generator from ^0.5.0 to ^0.6.0 in services/yt-token/package.json and regenerates services/yt-token/package-lock.json.
  • Root package.json / bun.lock were already on ^0.6.0 on main (from unrelated prior work), so no change was needed there.

0.5.0 -> 0.6.0 changelog

No runtime code change. The upstream diff between the two tags is solely:

  • package.json: "version": "0.5.0" -> "0.6.0"
  • Swap of the in-package package-lock.json for npm-shrinkwrap.json (version bumped to match)

See the compare view here (the 0.6.0 tag commit). The generate() export still takes zero args and returns { poToken, visitorData }. No peer-dep changes (jsdom@^26.0.0, global-agent@^3.0.0 unchanged). Both call-sites (src/lib/yt-token.ts and services/yt-token/index.js) remain compatible without modification.

Lockfile diff note

Running npm install in services/yt-token/ legitimately removed a batch of stale "extraneous": true flags from transitive deps inside the nested shrinkwrap. Those flags were incorrect in the previously-committed lockfile - the marked packages are actually required by the global-agent / jsdom subtrees. No installed versions changed.

Local verification

  • bun run check -> 0 errors, 0 warnings
  • bun run test:run -> 16 files, 221 tests passing
  • bun run lint -> 6 pre-existing warnings (baseline unchanged), 0 errors

PR-preview verification

  • dub-rip PR preview (https://dub-rip-pr-51.up.railway.app) is live and healthy (/api/health -> 200).
  • End-to-end download via /api/download-stream?url=<Rick Astley> on the preview succeeds in ~9s, produces a 7.1 MB MP3 with full ID3 metadata. This exercises the in-process youtube-po-token-generator@0.6.0 path via src/lib/yt-token.ts.
  • The original PR docs(cobalt): version-pinning rationale + 0-byte tunnel runbook #50 repro URL (dSA1oUhCdy8) still fails with "This video requires authentication" on the PR preview - that's the known pre-existing Cobalt/yt-dlp auth issue from PR docs(cobalt): version-pinning rationale + 0-byte tunnel runbook #50, not a regression from this bump. Confirmed by the fact that Rick Astley downloads cleanly on the same preview.

Caveat: yt-token microservice is NOT exercised by the PR preview

.github/workflows/railway-pr.yml only runs railway up --service dub-rip. The yt-token service is inherited from production via railway environment new --copy production, which means the PR env's yt-token is still running youtube-po-token-generator@0.5.0. The bump to 0.6.0 for the microservice only takes effect once main triggers deploy-yt-token.yml (which rebuilds the Docker image from services/yt-token/).

Because 0.6.0 is byte-identical to 0.5.0 at the runtime-code level (only the version string and lockfile format changed), post-merge behavior for the microservice is expected to be identical. But the full end-to-end validation of yt-token-service @ 0.6.0 will only happen after the image rebuild fires on main.

Merge handshake

Draft per the production-change protocol. Ready for merge review. If a reviewer wants stronger confidence on the microservice path before merging, one option is to rebuild the yt-token image from this branch manually (e.g. gh workflow run deploy-yt-token.yml --ref chore/bump-po-token-generator) and point the PR env at that image - but given 0.5.0 == 0.6.0 at the code level, I don't think that's warranted.


Coordination note: No open PR touches services/yt-token/ or proposes swapping to bgutil-ytdlp-pot-provider. Open PRs are #44 (MusicBrainz metadata) and #50 (Cobalt docs) - neither conflicts with this one.


Note

Low Risk
Low risk dependency bump confined to services/yt-token; no application logic changes, but behavior could still shift if the upstream package has unanticipated runtime differences.

Overview
Updates the yt-token-service dependency on youtube-po-token-generator from ^0.5.0 to ^0.6.0.

Regenerates services/yt-token/package-lock.json to reflect the new resolved version and updated lockfile metadata for the dependency’s transitive tree (including cleanup of previously recorded extraneous flags).

Reviewed by Cursor Bugbot for commit fe337fb. Bugbot is set up for automated code reviews on this repo. Configure here.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 23, 2026

Warning

Rate limit exceeded

@jzstern has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 24 minutes and 41 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 24 minutes and 41 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f46915b1-2ec3-4bca-84b3-2c868a9976c4

📥 Commits

Reviewing files that changed from the base of the PR and between 56c1975 and fe337fb.

⛔ Files ignored due to path filters (1)
  • services/yt-token/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • services/yt-token/package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/bump-po-token-generator

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…vice

0.5.0 -> 0.6.0 contains no runtime code changes: the diff is solely a
version bump plus swapping package-lock.json for npm-shrinkwrap.json in
the package itself. The exported API (generate() returning
{poToken, visitorData}) is unchanged, so no call-site changes are
needed in services/yt-token/index.js.

The root package.json was already on ^0.6.0 (from unrelated prior
work); only the yt-token microservice lockfile needed syncing. Running
npm install in services/yt-token/ also clears stale "extraneous: true"
flags on transitive deps inside the nested shrinkwrap - those flags
were incorrect (the packages are actually required by the global-agent
and jsdom subtrees) and did not affect runtime behavior either way.
@jzstern jzstern force-pushed the chore/bump-po-token-generator branch from a449667 to fe337fb Compare April 23, 2026 02:18
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

🚂 Railway Preview Deployment

Environment Status
pr-51 ✅ Cleaned up

The preview environment has been deleted.


Managed by Railway

@jzstern jzstern marked this pull request as ready for review April 23, 2026 02:40
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@jzstern jzstern merged commit fed6f7b into main Apr 23, 2026
7 checks passed
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