Repository navigation
--port has no upper bound: b4 start --port 70000 crashes with Node's ERR_SOCKET_BAD_PORT instead of Invalid port (#1047) - #1062
Merged
Conversation
… with Node's `ERR_SOCKET_BAD_PORT` instead of `Invalid port` Refs #1047 Work order wo-f5fea70dc61c255a, bundle 6b8ed3e4e23fb662dd635c901ec9975c8b872ebab93a22389166f4252fedaa13.
…e's `ERR_SOCKET_BAD_PORT` instead of `Invalid port` (#1047) Adopted from the factory's draft PR #1050 (work order wo-f5fea70dc61c255a): the delivered commit, cherry-picked, plus a changeset (.changeset/factory-wo-f5fea70dc61c255a.md) and the factory's independent check as packages/cli/test/port-parse.test.ts. Closes #1047
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
blove
added a commit
that referenced
this pull request
Oct 22, 2026
…ers' checks (#1075) Follow-up polish to #1062 from the review of #1050: - Fold the digits-only check and the range check into one condition in both parsers. After `/^\d+$/`, Number() can only return a non-negative integer or Infinity, so the separate `Number.isInteger` guard was redundant. - An invalid `--port` now says what is accepted: `1 to 65535` for b4 dev and b4 inspect, `0 to 65535` for b4 start. - Fix the stale "dev.ts's parsePort" comment in start.ts; the shared parser lives in lib/dev/parse-port.ts. - Update the message assertions and cover `parsePort("0")`. Co-authored-by: Claude Opus 5.5 <[email protected]>
This branch was successfully deployed
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.
Adopts the software factory's draft PR #1050 (work order
wo-f5fea70dc61c255a) for #1047.The first commit is the factory's, cherry-picked unchanged: the candidate a person approved as bundle
6b8ed3e4e23fb662dd635c901ec9975c8b872ebab93a22389166f4252fedaa13(receiptrc-6be47ec5-38cd-4276-8f26-5fea54e4d863, verifierdocker:b55af4c0a42e71485017db422dc6da02e46b8b291619b56d756415835bb80593), verified in the target's image at the pin and re-verified at approval.The second commit is the adopter's: a changeset (
.changeset/factory-wo-f5fea70dc61c255a.md) and the factory's independent check, promoted topackages/cli/test/port-parse.test.ts(translated from node:test; this PR's CI is its first run).Closes #1047