Closed ernestognw closed 1 day ago
Latest commit: 04624b4f96de64b775bddecadbf7921bd579bddc
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.
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
I think it's easier to fix both M-02 and M-01 within the same PR. The implementation adds an extra check that begin <= end
in tryParseUint
. I think this is the right direction, though. Otherwise it would be inconsistent that for invalid ranges the tryParseUint
function returns (true, 0)
whereas their counterparts return (false, 0)
.
Using the new private functions seemed like a good middleground IMO and we're not extending the interface
Fixes M-01 and M-02
PR Checklist
npx changeset add
)