feat: registry cache, logging, and Changesets release flow#2
Merged
Conversation
Add an on-disk TTL cache for npm registry lookups so repeat audit runs avoid redundant network requests, and a logging module for diagnostic output. Registry/CLI/check wired to use them. Adopt Changesets for versioning and publishing: - @changesets/cli + .changeset config (access: public) - scripts: changeset, version-packages, release - Release workflow runs changesets/action on push to main, opening a "Version Packages" PR and publishing to npm on merge - Replaces the old release-triggered publish workflow Includes a changeset queuing the cache+logging feature as a minor bump. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mcmxcdev
marked this pull request as ready for review
June 30, 2026 21:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
src/cache.ts, default 1h) for npm registry lookups, wired into the registry/audit path so repeat runs skip redundant network requests.src/log.ts).Why
Repeat audit runs re-fetched the same registry data every time. Caching cuts that. Changesets gives a structured way to version local changes, generate CHANGELOG entries, and automate npm publishing.
Release flow
.github/workflows/release.ymlrunschangesets/actionon push tomain.pnpm changeset); the action opens a "Version Packages" PR that bumps the version + writes CHANGELOG; merging it publishes to npm.publish.yml.id-token: write+ npm ≥ 11.5.1.This PR includes a changeset queuing the cache + logging feature as a minor bump (0.1.0 → 0.2.0).
Reviewer notes
release.ymlas a Trusted Publisher, and repo Settings → Actions must allow GitHub Actions to create PRs.pnpm-lock.yamlgrows from the@changesets/clidevDep.🤖 Generated with Claude Code