@fern-api/fern-api-dev 5.120.0 → 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 +23 -15
  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.0",
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.0",
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.0";
888493
+ const version7 = "5.120.2";
888487
888494
  return `cli@${version7}`;
888488
888495
  }
888489
888496
  var DebugLogger = class {
@@ -910240,6 +910247,7 @@ var MAX_RUNTIME_BUNDLE_COMPRESSED_BYTES = 5 * 1024 * 1024;
910240
910247
  var MAX_PAYLOAD_BYTES = 25 * 1024 * 1024;
910241
910248
  var MAX_TOTAL_RUNTIME_BUNDLE_COMPRESSED_BYTES = 25 * 1024 * 1024;
910242
910249
  var MAX_TOTAL_PAYLOAD_BYTES = 100 * 1024 * 1024;
910250
+ var MAX_RUNTIME_BUNDLE_DECOMPRESSED_BYTES = MAX_TOTAL_PAYLOAD_BYTES;
910243
910251
  var MAX_TOTAL_UPLOAD_FILE_BYTES = 50 * 1024 * 1024;
910244
910252
  var MAX_REQUEST_FIELD_BYTES = 1024 * 1024;
910245
910253
  var MAX_MULTIPART_BODY_BYTES = 60 * 1024 * 1024;
@@ -910864,7 +910872,7 @@ function validateProtocolInputs(participants, first3) {
910864
910872
  for (const [index3, participant] of participants.entries()) {
910865
910873
  totalPayloadBytes += participant.payload.payloadKind === "fern-runtime-bundle" ? getBoundedGzipSize({
910866
910874
  buffer: participant.payload.body,
910867
- maxBytes: MAX_PAYLOAD_BYTES,
910875
+ maxBytes: MAX_RUNTIME_BUNDLE_DECOMPRESSED_BYTES,
910868
910876
  label: payloadLabel(participant, index3),
910869
910877
  context: first3.context
910870
910878
  }) : participant.payload.body.length;
@@ -915830,7 +915838,7 @@ var LegacyDocsPublisher = class {
915830
915838
  previewId,
915831
915839
  disableTemplates: void 0,
915832
915840
  skipUpload,
915833
- cliVersion: "5.120.0",
915841
+ cliVersion: "5.120.2",
915834
915842
  loginCommand: "fern auth login"
915835
915843
  });
915836
915844
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -983248,7 +983256,7 @@ function getAutomationContextFromEnv() {
983248
983256
  config_branch: process.env.FERN_CONFIG_BRANCH,
983249
983257
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
983250
983258
  trigger: process.env.GITHUB_EVENT_NAME,
983251
- cli_version: "5.120.0"
983259
+ cli_version: "5.120.2"
983252
983260
  };
983253
983261
  }
983254
983262
  function isAutomationMode() {
@@ -984080,7 +984088,7 @@ var CliContext = class _CliContext {
984080
984088
  if (false) {
984081
984089
  this.logger.error("CLI_VERSION is not defined");
984082
984090
  }
984083
- return "5.120.0";
984091
+ return "5.120.2";
984084
984092
  }
984085
984093
  getCliName() {
984086
984094
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.120.0",
2
+ "version": "5.120.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",