-
Notifications
You must be signed in to change notification settings - Fork 632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[unstable] BREAKING(semver): remove comparator.semver field #4533
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! One nit.
semver/test_range.ts
Outdated
const major = comparator.major; | ||
const minor = comparator.minor; | ||
const patch = comparator.patch; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: maybe destructure with const { prerelease } = comparator;
above?
Also, can you please include context and background in the initial comment so users can trace? |
…220/deno_std into feat/expect-addSnapshotSerializer * 'feat/expect-addSnapshotSerializer' of github.com:eryue0220/deno_std: deprecation(crypto): rename an export to match style guide, deprecating original and two other obsolete imports (denoland#4525) chore: add `--allow-dirty` flag to publish dry run (denoland#4535) [unstable] BREAKING(semver): remove comparator.semver field (denoland#4533) chore(crypto): upgrade dependencies (denoland#4530) 0.221.0 (denoland#4531) docs(fs): polish documentation (denoland#4526) fix(fs): `SubdirectoryMoveError` extends `Error` correctly (denoland#4528) chore(fs): remove `test.ts` (denoland#4527)
We decided to migrate
Comparator
type from:To:
as part of #4161. This reduces the nesting structure of
Range
type one level.Currently we have the below comparator type for supporting both types in transition period:
This PR removes
semver?
field from the existing Comparator type to end the support of the old Comparator type.