Skip to content

feat(node): warn when SDK updates are available#193

Merged
decker-dev merged 2 commits into
mainfrom
feature/sdk-update-warning
Jul 20, 2026
Merged

feat(node): warn when SDK updates are available#193
decker-dev merged 2 commits into
mainfrom
feature/sdk-update-warning

Conversation

@fjalil7

@fjalil7 fjalil7 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • check the npm latest dist-tag once per process when @commet/node initializes in local development
  • warn without blocking startup when the installed SDK is behind, with CI, production, and COMMET_NO_UPDATE_CHECK=1 excluded
  • handle stable and prerelease SemVer ordering, registry failures, and mixed CJS/ESM loading
  • document the behavior and add a minor changeset

Verification

  • pnpm --filter @commet/node test — 119 passed
  • packaged smoke test with the SDK temporarily built as 7.1.0 against the real npm registry (7.7.0) — exact warning emitted once while loading both CJS and ESM builds
  • current 7.7.0 development build — no warning
  • production build — no warning
  • pnpm build
  • pnpm typecheck
  • pnpm lint
  • read-only code review — no findings after prerelease and CJS/ESM deduplication fixes

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
balance-ai Ready Ready Preview, Comment Jul 20, 2026 6:51pm
balance-fixed Ready Ready Preview, Comment Jul 20, 2026 6:51pm
credits Ready Ready Preview, Comment Jul 20, 2026 6:51pm
fixed Ready Ready Preview, Comment Jul 20, 2026 6:51pm
metered Ready Ready Preview, Comment Jul 20, 2026 6:51pm
quota Ready Ready Preview, Comment Jul 20, 2026 6:51pm
seats Ready Ready Preview, Comment Jul 20, 2026 6:51pm
webhooks Ready Ready Preview, Comment Jul 20, 2026 6:51pm

Request Review

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.

2 participants