From 6d4b6bb940a8e25e1fbcb473b02ba51409d80f96 Mon Sep 17 00:00:00 2001 From: Leo Conforti Date: Fri, 10 May 2024 10:08:59 +0000 Subject: [PATCH] correctly dedupe versions --- packages/fount/src/versions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fount/src/versions.ts b/packages/fount/src/versions.ts index 0ce7477..7106775 100644 --- a/packages/fount/src/versions.ts +++ b/packages/fount/src/versions.ts @@ -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