@fern-api/fern-api-dev 5.64.2 → 5.64.3

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 +21 -15
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -460106,7 +460106,14 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
460106
460106
  navigationConfig: tabbed,
460107
460107
  parentSlug: slug
460108
460108
  }),
460109
- versioned: (versioned) => this.toVersionedNode(versioned, slug, this.parsedDocsConfig.landingPage),
460109
+ // NOTE: the top-level landing page is intentionally NOT propagated
460110
+ // into versioned navigation. Cloning it into every version node
460111
+ // creates landingPage nodes that shadow real pages sharing the
460112
+ // landing slug (they are visited first during slug collection),
460113
+ // which strips the sidebar from those pages at render time. This
460114
+ // matches the legacy (< 5.58.0) publish behavior that live docs
460115
+ // sites were authored against.
460116
+ versioned: (versioned) => this.toVersionedNode(versioned, slug),
460110
460117
  productgroup: (productGroup) => this.toProductGroupNode({
460111
460118
  landingPageConfig: this.parsedDocsConfig.landingPage,
460112
460119
  productGroup,
@@ -460142,7 +460149,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
460142
460149
  const child = navigationConfig.type === "tabbed" ? await this.convertTabbedNavigation(id, navigationConfig.items, parentSlug) : await this.toSidebarRootNode(id, navigationConfig.items, parentSlug);
460143
460150
  return { type: "unversioned", id, collapsed: void 0, landingPage, child };
460144
460151
  }
460145
- async toVersionedNode(versioned, parentSlug, landingPage) {
460152
+ async toVersionedNode(versioned, parentSlug) {
460146
460153
  const id = this.#idgen.get("versioned");
460147
460154
  const defaultVersion = versioned.versions[0];
460148
460155
  if (defaultVersion?.hidden === true) {
@@ -460155,7 +460162,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
460155
460162
  const children2 = [];
460156
460163
  for (let i5 = 0; i5 < versioned.versions.length; i5 += BATCH_SIZE2) {
460157
460164
  const batch = versioned.versions.slice(i5, i5 + BATCH_SIZE2);
460158
- const batchResults = await Promise.all(batch.map((item, batchIdx) => this.toVersionNode(item, parentSlug, i5 + batchIdx === 0, landingPage)));
460165
+ const batchResults = await Promise.all(batch.map((item, batchIdx) => this.toVersionNode(item, parentSlug, i5 + batchIdx === 0)));
460159
460166
  children2.push(...batchResults);
460160
460167
  }
460161
460168
  return {
@@ -460186,7 +460193,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
460186
460193
  type: "unversioned",
460187
460194
  id: this.#idgen.get(product.product),
460188
460195
  collapsed: void 0,
460189
- landingPage: product.landingPage != null ? this.toLandingPageNode(product.landingPage, slug) : void 0,
460196
+ landingPage: void 0,
460190
460197
  child: await this.convertTabbedNavigation(this.#idgen.get(product.product), product.navigation.items, slug)
460191
460198
  };
460192
460199
  break;
@@ -460195,12 +460202,12 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
460195
460202
  type: "unversioned",
460196
460203
  id: this.#idgen.get(product.product),
460197
460204
  collapsed: void 0,
460198
- landingPage: product.landingPage != null ? this.toLandingPageNode(product.landingPage, slug) : void 0,
460205
+ landingPage: void 0,
460199
460206
  child: await this.toSidebarRootNode(this.#idgen.get(product.product), product.navigation.items, slug)
460200
460207
  };
460201
460208
  break;
460202
460209
  case "versioned":
460203
- child = await this.toVersionedNode(product.navigation, slug, product.landingPage ?? this.parsedDocsConfig.landingPage);
460210
+ child = await this.toVersionedNode(product.navigation, slug);
460204
460211
  break;
460205
460212
  default:
460206
460213
  assertNever(product.navigation);
@@ -460245,11 +460252,10 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
460245
460252
  };
460246
460253
  }
460247
460254
  }
460248
- async toVersionNode(version7, parentSlug, isDefault, landingPage) {
460255
+ async toVersionNode(version7, parentSlug, isDefault) {
460249
460256
  const id = this.#idgen.get(version7.version);
460250
460257
  const slug = parentSlug.setVersionSlug(version7.slug ?? kebabCase_default(version7.version));
460251
460258
  const child = version7.navigation.type === "tabbed" ? await this.convertTabbedNavigation(id, version7.navigation.items, slug) : await this.toSidebarRootNode(id, version7.navigation.items, slug);
460252
- const resolvedLandingPage = version7.landingPage ?? landingPage;
460253
460259
  return {
460254
460260
  type: "version",
460255
460261
  id,
@@ -460261,7 +460267,7 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
460261
460267
  // TODO: the `default` property should be deprecated, and moved to the parent `versioned` node
460262
460268
  default: isDefault,
460263
460269
  availability: version7.availability != null ? convertAvailability5(version7.availability) : void 0,
460264
- landingPage: resolvedLandingPage != null ? this.toLandingPageNode(resolvedLandingPage, slug) : void 0,
460270
+ landingPage: version7.landingPage ? this.toLandingPageNode(version7.landingPage, slug) : void 0,
460265
460271
  hidden: version7.hidden,
460266
460272
  authed: void 0,
460267
460273
  viewers: version7.viewers,
@@ -687227,7 +687233,7 @@ var AccessTokenPosthogManager = class {
687227
687233
  properties: {
687228
687234
  ...event,
687229
687235
  ...event.properties,
687230
- version: "5.64.2",
687236
+ version: "5.64.3",
687231
687237
  usingAccessToken: true,
687232
687238
  ...getRunIdProperties()
687233
687239
  }
@@ -687293,7 +687299,7 @@ var UserPosthogManager = class {
687293
687299
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
687294
687300
  event: "CLI",
687295
687301
  properties: {
687296
- version: "5.64.2",
687302
+ version: "5.64.3",
687297
687303
  ...event,
687298
687304
  ...event.properties,
687299
687305
  usingAccessToken: false,
@@ -868388,7 +868394,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
868388
868394
  var LOGS_FOLDER_NAME = "logs";
868389
868395
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
868390
868396
  function getCliSource() {
868391
- const version7 = "5.64.2";
868397
+ const version7 = "5.64.3";
868392
868398
  return `cli@${version7}`;
868393
868399
  }
868394
868400
  var DebugLogger = class {
@@ -900905,7 +900911,7 @@ var LegacyDocsPublisher = class {
900905
900911
  previewId,
900906
900912
  disableTemplates: void 0,
900907
900913
  skipUpload,
900908
- cliVersion: "5.64.2",
900914
+ cliVersion: "5.64.3",
900909
900915
  loginCommand: "fern auth login"
900910
900916
  });
900911
900917
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -967213,7 +967219,7 @@ function getAutomationContextFromEnv() {
967213
967219
  config_branch: process.env.FERN_CONFIG_BRANCH,
967214
967220
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
967215
967221
  trigger: process.env.GITHUB_EVENT_NAME,
967216
- cli_version: "5.64.2"
967222
+ cli_version: "5.64.3"
967217
967223
  };
967218
967224
  }
967219
967225
  function isAutomationMode() {
@@ -968045,7 +968051,7 @@ var CliContext = class _CliContext {
968045
968051
  if (false) {
968046
968052
  this.logger.error("CLI_VERSION is not defined");
968047
968053
  }
968048
- return "5.64.2";
968054
+ return "5.64.3";
968049
968055
  }
968050
968056
  getCliName() {
968051
968057
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.64.2",
2
+ "version": "5.64.3",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",