@fern-api/fern-api-dev 5.120.1 → 5.120.2

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 -14
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -706738,7 +706738,7 @@ var AccessTokenPosthogManager = class {
706738
706738
  properties: {
706739
706739
  ...event,
706740
706740
  ...event.properties,
706741
- version: "5.120.1",
706741
+ version: "5.120.2",
706742
706742
  usingAccessToken: true,
706743
706743
  ...getRunIdProperties()
706744
706744
  }
@@ -706804,7 +706804,7 @@ var UserPosthogManager = class {
706804
706804
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
706805
706805
  event: "CLI",
706806
706806
  properties: {
706807
- version: "5.120.1",
706807
+ version: "5.120.2",
706808
706808
  ...event,
706809
706809
  ...event.properties,
706810
706810
  usingAccessToken: false,
@@ -860041,7 +860041,8 @@ async function visitDocsConfigFileYamlAst({ contents, visitor, absoluteFilepathT
860041
860041
  if (await doesPathExist(absoluteFilepath)) {
860042
860042
  await visitor.productFile?.({
860043
860043
  path: product.path,
860044
- content: content5
860044
+ content: content5,
860045
+ product
860045
860046
  }, [product.path]);
860046
860047
  }
860047
860048
  const parsedProductFile = await validateProductConfigFileSchema({ value: content5 });
@@ -860130,7 +860131,8 @@ async function visitDocsConfigFileYamlAst({ contents, visitor, absoluteFilepathT
860130
860131
  if (await doesPathExist(absoluteFilepath)) {
860131
860132
  await visitor.versionFile?.({
860132
860133
  path: version7.path,
860133
- content: content5
860134
+ content: content5,
860135
+ version: version7
860134
860136
  }, [version7.path]);
860135
860137
  }
860136
860138
  const parsedVersionFile = await validateVersionConfigFileSchema({ value: content5 });
@@ -861482,27 +861484,32 @@ var ValidChangelogSlugRule = {
861482
861484
  ];
861483
861485
  return violationsForLocations(locations);
861484
861486
  },
861485
- versionFile: async ({ path: path124, content: content5 }) => {
861487
+ versionFile: async ({ path: path124, content: content5, version: version7 }) => {
861486
861488
  const parseResult = await validateVersionConfigFileSchema({ value: content5 });
861487
861489
  if (parseResult.type !== "success") {
861488
861490
  return [];
861489
861491
  }
861490
861492
  const versionConfig = parseResult.contents;
861493
+ const versionSegments = ancestorSlugSegments({ slug: version7.slug, displayName: version7.displayName });
861491
861494
  const locations = [
861492
- ...collectFromNavigation(versionConfig.navigation, versionConfig.tabs, `version "${path124}" navigation`, []),
861493
- ...collectFromTabs(versionConfig.tabs, `version "${path124}" tabs`, [])
861495
+ ...collectFromNavigation(versionConfig.navigation, versionConfig.tabs, `version "${path124}" navigation`, versionSegments),
861496
+ ...collectFromTabs(versionConfig.tabs, `version "${path124}" tabs`, versionSegments)
861494
861497
  ];
861495
861498
  return violationsForLocations(locations);
861496
861499
  },
861497
- productFile: async ({ path: path124, content: content5 }) => {
861500
+ productFile: async ({ path: path124, content: content5, product }) => {
861498
861501
  const parseResult = await validateProductConfigFileSchema({ value: content5 });
861499
861502
  if (parseResult.type !== "success") {
861500
861503
  return [];
861501
861504
  }
861502
861505
  const productConfig = parseResult.contents;
861506
+ const productSegments = ancestorSlugSegments({
861507
+ slug: product.slug,
861508
+ displayName: product.displayName
861509
+ });
861503
861510
  const locations = [
861504
- ...collectFromNavigation(productConfig.navigation, productConfig.tabs, `product "${path124}" navigation`, []),
861505
- ...collectFromTabs(productConfig.tabs, `product "${path124}" tabs`, [])
861511
+ ...collectFromNavigation(productConfig.navigation, productConfig.tabs, `product "${path124}" navigation`, productSegments),
861512
+ ...collectFromTabs(productConfig.tabs, `product "${path124}" tabs`, productSegments)
861506
861513
  ];
861507
861514
  return violationsForLocations(locations);
861508
861515
  }
@@ -888483,7 +888490,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
888483
888490
  var LOGS_FOLDER_NAME = "logs";
888484
888491
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
888485
888492
  function getCliSource() {
888486
- const version7 = "5.120.1";
888493
+ const version7 = "5.120.2";
888487
888494
  return `cli@${version7}`;
888488
888495
  }
888489
888496
  var DebugLogger = class {
@@ -915831,7 +915838,7 @@ var LegacyDocsPublisher = class {
915831
915838
  previewId,
915832
915839
  disableTemplates: void 0,
915833
915840
  skipUpload,
915834
- cliVersion: "5.120.1",
915841
+ cliVersion: "5.120.2",
915835
915842
  loginCommand: "fern auth login"
915836
915843
  });
915837
915844
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -983249,7 +983256,7 @@ function getAutomationContextFromEnv() {
983249
983256
  config_branch: process.env.FERN_CONFIG_BRANCH,
983250
983257
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
983251
983258
  trigger: process.env.GITHUB_EVENT_NAME,
983252
- cli_version: "5.120.1"
983259
+ cli_version: "5.120.2"
983253
983260
  };
983254
983261
  }
983255
983262
  function isAutomationMode() {
@@ -984081,7 +984088,7 @@ var CliContext = class _CliContext {
984081
984088
  if (false) {
984082
984089
  this.logger.error("CLI_VERSION is not defined");
984083
984090
  }
984084
- return "5.120.1";
984091
+ return "5.120.2";
984085
984092
  }
984086
984093
  getCliName() {
984087
984094
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.120.1",
2
+ "version": "5.120.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",