Skip to content

feat: registry cache, logging, and Changesets release flow#2

Merged
mcmxcdev merged 1 commit into
mainfrom
feat/registry-cache-logging-changesets
Jun 30, 2026
Merged

feat: registry cache, logging, and Changesets release flow#2
mcmxcdev merged 1 commit into
mainfrom
feat/registry-cache-logging-changesets

Conversation

@mcmxcdev

Copy link
Copy Markdown
Owner

What

  • Registry cache — on-disk TTL cache (src/cache.ts, default 1h) for npm registry lookups, wired into the registry/audit path so repeat runs skip redundant network requests.
  • Logging — small diagnostic logging module (src/log.ts).
  • Changesets — adopt Changesets for versioning + publishing.

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.yml runs changesets/action on push to main.
  • PRs add a changeset (pnpm changeset); the action opens a "Version Packages" PR that bumps the version + writes CHANGELOG; merging it publishes to npm.
  • Replaces the old release-triggered publish.yml.
  • Publishing uses npm Trusted Publishing (OIDC, provenance) — 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

  • Before the release flow works end-to-end: npm package must list release.yml as a Trusted Publisher, and repo Settings → Actions must allow GitHub Actions to create PRs.
  • pnpm-lock.yaml grows from the @changesets/cli devDep.
  • All 84 tests pass; typecheck + biome clean.

🤖 Generated with Claude Code

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
mcmxcdev marked this pull request as ready for review June 30, 2026 21:34
@mcmxcdev
mcmxcdev merged commit c66180e into main Jun 30, 2026
2 checks passed
@mcmxcdev
mcmxcdev deleted the feat/registry-cache-logging-changesets branch June 30, 2026 22:01
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