Skip to content

fix(create-email): validate npm registry response and exit on invalid version - #3741

Open
Tyagiquamar wants to merge 1 commit into
resend:canaryfrom
Tyagiquamar:fix/create-email-validate-npm-response
Open

Tyagiquamar wants to merge 1 commit into
resend:canaryfrom
Tyagiquamar:fix/create-email-validate-npm-response

Conversation

@Tyagiquamar

@Tyagiquamar Tyagiquamar commented Sep 12, 2026

Copy link
Copy Markdown

Check response.ok when querying npm registry in getLatestVersionOfTag inside create-email. Immediately exit with error status if the npm HTTP request fails, tag is not found, or the version format is invalid/empty, preventing create-email from silently writing undefined versions into starter package.json.


Summary by cubic

Fixes create-email to validate the npm registry response and exit with an error when the request fails or the version is empty/invalid, instead of silently writing undefined into the starter package.json.

Written for commit b334d41. Summary will update on new commits.

Review in cubic

… version

Signed-off-by: Tyagiquamar <mohdquamartyagi@gmail.com>
@vercel

vercel Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

@Tyagiquamar is attempting to deploy a commit to the resend Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Sep 12, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b334d41

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the linear-synced PR has been synced to Linear label Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linear-synced PR has been synced to Linear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant