Skip to content
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

feat: VersionSlice supporting sort and search #53

Merged
merged 1 commit into from
Oct 27, 2021
Merged

Conversation

cmars
Copy link
Contributor

@cmars cmars commented Oct 26, 2021

Introducing a new VersionSlice type which exports Version sorting and
searching capabilities for library reuse.

Search is implemented as a binary search over a sorted slice for
high-performance applications that need to resolve a larger collection
of versions -- routing middleware, for example.

Existing Spec and Resource APIs have been updated to use VersionSlice
which breaks compatibility; this change will require a major semver bump
when released.

@cmars cmars requested a review from a team as a code owner October 26, 2021 22:20
Copy link
Contributor

@Todai88 Todai88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

I left two small comments, that are mostly questions that may possibly increase readibility (at least for me!).

version.go Outdated Show resolved Hide resolved
version.go Outdated Show resolved Hide resolved
Introducing a new VersionSlice type which exports Version sorting and
searching capabilities for library reuse.

Search is implemented as a binary search over a sorted slice for
high-performance applications that need to resolve a larger collection
of versions -- routing middleware, for example.

Existing Spec and Resource APIs have been updated to use VersionSlice
which breaks compatibility; this change will require a major semver bump
when released.
@cmars cmars merged commit f7dca42 into main Oct 27, 2021
@cmars cmars deleted the feat/version-slice branch October 27, 2021 14:12
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.

3 participants