Skip to content

Commit

Permalink
correctly dedupe versions
Browse files Browse the repository at this point in the history
  • Loading branch information
leonitousconforti committed May 10, 2024
1 parent d385d2c commit 6d4b6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fount/src/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const getSemanticVersionsByRelativeVersions = (
ReadonlyArray.map(([_x, y, z]) => Tuple.make(y as SemanticVersion, z)),

// If there are spillover versions somehow between the pages, get rid of them
ReadonlyArray.dedupeAdjacent,
ReadonlyArray.dedupeWith((x, y) => x[0] === y[0] && x[1] === y[1]),

// Regex / array index could have returned undefined, so let's convert
// to options and then zip the while object to an options as long as both
Expand Down

1 comment on commit 6d4b6bb

@vercel
Copy link

@vercel vercel bot commented on 6d4b6bb May 10, 2024

Choose a reason for hiding this comment

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

Please sign in to comment.