@fern-api/fern-api-dev 5.23.3-1057-gd99539cc0cb → 5.23.3-1058-g28c14d9f01a

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.
Files changed (2) hide show
  1. package/cli.cjs +15 -14
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -459852,7 +459852,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
459852
459852
  navigationConfig: tabbed,
459853
459853
  parentSlug: slug
459854
459854
  }),
459855
- versioned: (versioned) => this.toVersionedNode(versioned, slug),
459855
+ versioned: (versioned) => this.toVersionedNode(versioned, slug, this.parsedDocsConfig.landingPage),
459856
459856
  productgroup: (productGroup) => this.toProductGroupNode({
459857
459857
  landingPageConfig: this.parsedDocsConfig.landingPage,
459858
459858
  productGroup,
@@ -459888,7 +459888,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
459888
459888
  const child = navigationConfig.type === "tabbed" ? await this.convertTabbedNavigation(id, navigationConfig.items, parentSlug) : await this.toSidebarRootNode(id, navigationConfig.items, parentSlug);
459889
459889
  return { type: "unversioned", id, collapsed: void 0, landingPage, child };
459890
459890
  }
459891
- async toVersionedNode(versioned, parentSlug) {
459891
+ async toVersionedNode(versioned, parentSlug, landingPage) {
459892
459892
  const id = this.#idgen.get("versioned");
459893
459893
  const defaultVersion = versioned.versions[0];
459894
459894
  if (defaultVersion?.hidden === true) {
@@ -459901,7 +459901,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
459901
459901
  const children2 = [];
459902
459902
  for (let i5 = 0; i5 < versioned.versions.length; i5 += BATCH_SIZE2) {
459903
459903
  const batch = versioned.versions.slice(i5, i5 + BATCH_SIZE2);
459904
- const batchResults = await Promise.all(batch.map((item, batchIdx) => this.toVersionNode(item, parentSlug, i5 + batchIdx === 0)));
459904
+ const batchResults = await Promise.all(batch.map((item, batchIdx) => this.toVersionNode(item, parentSlug, i5 + batchIdx === 0, landingPage)));
459905
459905
  children2.push(...batchResults);
459906
459906
  }
459907
459907
  return {
@@ -459932,7 +459932,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
459932
459932
  type: "unversioned",
459933
459933
  id: this.#idgen.get(product.product),
459934
459934
  collapsed: void 0,
459935
- landingPage: void 0,
459935
+ landingPage: product.landingPage != null ? this.toLandingPageNode(product.landingPage, slug) : void 0,
459936
459936
  child: await this.convertTabbedNavigation(this.#idgen.get(product.product), product.navigation.items, slug)
459937
459937
  };
459938
459938
  break;
@@ -459941,12 +459941,12 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
459941
459941
  type: "unversioned",
459942
459942
  id: this.#idgen.get(product.product),
459943
459943
  collapsed: void 0,
459944
- landingPage: void 0,
459944
+ landingPage: product.landingPage != null ? this.toLandingPageNode(product.landingPage, slug) : void 0,
459945
459945
  child: await this.toSidebarRootNode(this.#idgen.get(product.product), product.navigation.items, slug)
459946
459946
  };
459947
459947
  break;
459948
459948
  case "versioned":
459949
- child = await this.toVersionedNode(product.navigation, slug);
459949
+ child = await this.toVersionedNode(product.navigation, slug, product.landingPage ?? this.parsedDocsConfig.landingPage);
459950
459950
  break;
459951
459951
  default:
459952
459952
  assertNever(product.navigation);
@@ -459991,10 +459991,11 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
459991
459991
  };
459992
459992
  }
459993
459993
  }
459994
- async toVersionNode(version7, parentSlug, isDefault) {
459994
+ async toVersionNode(version7, parentSlug, isDefault, landingPage) {
459995
459995
  const id = this.#idgen.get(version7.version);
459996
459996
  const slug = parentSlug.setVersionSlug(version7.slug ?? kebabCase_default(version7.version));
459997
459997
  const child = version7.navigation.type === "tabbed" ? await this.convertTabbedNavigation(id, version7.navigation.items, slug) : await this.toSidebarRootNode(id, version7.navigation.items, slug);
459998
+ const resolvedLandingPage = version7.landingPage ?? landingPage;
459998
459999
  return {
459999
460000
  type: "version",
460000
460001
  id,
@@ -460006,7 +460007,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
460006
460007
  // TODO: the `default` property should be deprecated, and moved to the parent `versioned` node
460007
460008
  default: isDefault,
460008
460009
  availability: version7.availability != null ? convertAvailability5(version7.availability) : void 0,
460009
- landingPage: version7.landingPage ? this.toLandingPageNode(version7.landingPage, slug) : void 0,
460010
+ landingPage: resolvedLandingPage != null ? this.toLandingPageNode(resolvedLandingPage, slug) : void 0,
460010
460011
  hidden: version7.hidden,
460011
460012
  authed: void 0,
460012
460013
  viewers: version7.viewers,
@@ -686971,7 +686972,7 @@ var AccessTokenPosthogManager = class {
686971
686972
  properties: {
686972
686973
  ...event,
686973
686974
  ...event.properties,
686974
- version: "5.23.3-1057-gd99539cc0cb",
686975
+ version: "5.23.3-1058-g28c14d9f01a",
686975
686976
  usingAccessToken: true,
686976
686977
  ...getRunIdProperties()
686977
686978
  }
@@ -687037,7 +687038,7 @@ var UserPosthogManager = class {
687037
687038
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
687038
687039
  event: "CLI",
687039
687040
  properties: {
687040
- version: "5.23.3-1057-gd99539cc0cb",
687041
+ version: "5.23.3-1058-g28c14d9f01a",
687041
687042
  ...event,
687042
687043
  ...event.properties,
687043
687044
  usingAccessToken: false,
@@ -868132,7 +868133,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
868132
868133
  var LOGS_FOLDER_NAME = "logs";
868133
868134
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
868134
868135
  function getCliSource() {
868135
- const version7 = "5.23.3-1057-gd99539cc0cb";
868136
+ const version7 = "5.23.3-1058-g28c14d9f01a";
868136
868137
  return `cli@${version7}`;
868137
868138
  }
868138
868139
  var DebugLogger = class {
@@ -900613,7 +900614,7 @@ var LegacyDocsPublisher = class {
900613
900614
  previewId,
900614
900615
  disableTemplates: void 0,
900615
900616
  skipUpload,
900616
- cliVersion: "5.23.3-1057-gd99539cc0cb",
900617
+ cliVersion: "5.23.3-1058-g28c14d9f01a",
900617
900618
  loginCommand: "fern auth login"
900618
900619
  });
900619
900620
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -966882,7 +966883,7 @@ function getAutomationContextFromEnv() {
966882
966883
  config_branch: process.env.FERN_CONFIG_BRANCH,
966883
966884
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
966884
966885
  trigger: process.env.GITHUB_EVENT_NAME,
966885
- cli_version: "5.23.3-1057-gd99539cc0cb"
966886
+ cli_version: "5.23.3-1058-g28c14d9f01a"
966886
966887
  };
966887
966888
  }
966888
966889
  function isAutomationMode() {
@@ -967714,7 +967715,7 @@ var CliContext = class _CliContext {
967714
967715
  if (false) {
967715
967716
  this.logger.error("CLI_VERSION is not defined");
967716
967717
  }
967717
- return "5.23.3-1057-gd99539cc0cb";
967718
+ return "5.23.3-1058-g28c14d9f01a";
967718
967719
  }
967719
967720
  getCliName() {
967720
967721
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.23.3-1057-gd99539cc0cb",
2
+ "version": "5.23.3-1058-g28c14d9f01a",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",