@kirchdev/duxt 0.1.1-dev.19-efe898e → 0.1.1-dev.20-23ef74a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45,6 +45,8 @@ export function versionChoices(
45
45
  // from the URL segment.
46
46
  if (configured?.length) return configured;
47
47
 
48
+ const editions = new Set<string>();
49
+
48
50
  return sources
49
51
  .filter(
50
52
  (source) =>
@@ -52,6 +54,14 @@ export function versionChoices(
52
54
  source.repo === current?.repo &&
53
55
  sameArtefact(source, current)
54
56
  )
57
+ .filter((source) => {
58
+ // Repository and artefact are scoped above; translations share the
59
+ // edition's version and target, while keeping separate collections.
60
+ const edition = JSON.stringify([source.version, source.prefix || '/']);
61
+ if (editions.has(edition)) return false;
62
+ editions.add(edition);
63
+ return true;
64
+ })
55
65
  .map((source) => ({
56
66
  label: source.version!,
57
67
  to: source.prefix || '/',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package.json",
3
3
  "name": "@kirchdev/duxt",
4
- "version": "0.1.1-dev.19-efe898e",
4
+ "version": "0.1.1-dev.20-23ef74a",
5
5
  "description": "Nuxt documentation layer on Content v3 — multi-repo, versioned docs from one compact source list.",
6
6
  "keywords": [
7
7
  "content-v3",