@fern-api/fern-api-dev 5.65.6 → 5.65.8

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 +41 -39
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -233556,17 +233556,9 @@ function parseLibrariesConfiguration(libraries) {
233556
233556
  }
233557
233557
  const result = {};
233558
233558
  for (const [name2, config5] of Object.entries(libraries)) {
233559
- if (!isGitLibraryInput(config5.input)) {
233560
- throw new CliError({
233561
- message: `Library '${name2}' uses 'path' input which is not yet supported. Please use 'git' input.`,
233562
- code: CliError.Code.ConfigError
233563
- });
233564
- }
233559
+ const input3 = isGitLibraryInput(config5.input) ? { type: "git", git: config5.input.git, subpath: config5.input.subpath } : { type: "path", path: config5.input.path };
233565
233560
  result[name2] = {
233566
- input: {
233567
- git: config5.input.git,
233568
- subpath: config5.input.subpath
233569
- },
233561
+ input: input3,
233570
233562
  output: {
233571
233563
  path: config5.output.path
233572
233564
  },
@@ -688639,7 +688631,7 @@ var AccessTokenPosthogManager = class {
688639
688631
  properties: {
688640
688632
  ...event,
688641
688633
  ...event.properties,
688642
- version: "5.65.6",
688634
+ version: "5.65.8",
688643
688635
  usingAccessToken: true,
688644
688636
  ...getRunIdProperties()
688645
688637
  }
@@ -688705,7 +688697,7 @@ var UserPosthogManager = class {
688705
688697
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
688706
688698
  event: "CLI",
688707
688699
  properties: {
688708
- version: "5.65.6",
688700
+ version: "5.65.8",
688709
688701
  ...event,
688710
688702
  ...event.properties,
688711
688703
  usingAccessToken: false,
@@ -841880,8 +841872,8 @@ __export(rules_exports, {
841880
841872
  CHANGELOG_FEED_ALLOWED_SLUGS: () => CHANGELOG_FEED_ALLOWED_SLUGS,
841881
841873
  FilepathsExistRule: () => FilepathsExistRule,
841882
841874
  MissingRedirectsRule: () => MissingRedirectsRule,
841875
+ NavigationConflicts: () => NavigationConflicts,
841883
841876
  NoCircularRedirectsRule: () => NoCircularRedirectsRule,
841884
- OnlyVersionedNavigation: () => OnlyVersionedNavigation,
841885
841877
  TabWithHrefRule: () => TabWithHrefRule,
841886
841878
  TranslationDirectoriesExistRule: () => TranslationDirectoriesExistRule,
841887
841879
  ValidChangelogSlugRule: () => ValidChangelogSlugRule,
@@ -842747,6 +842739,31 @@ function makeSkipVisitor(fetchResult) {
842747
842739
  }
842748
842740
  }
842749
842741
 
842742
+ // ../yaml/docs-validator/lib/rules/navigation-conflicts/navigation-conflicts.js
842743
+ var NavigationConflicts = {
842744
+ name: "navigation-conflicts",
842745
+ create: () => {
842746
+ return {
842747
+ file: async ({ config: config5 }) => {
842748
+ const violations = [];
842749
+ if (config5.navigation != null && config5.versions != null) {
842750
+ violations.push({
842751
+ severity: "fatal",
842752
+ message: "Cannot contain both navigation and versions. If you want versioned docs, use versions. Otherwise use navigation."
842753
+ });
842754
+ }
842755
+ if (config5.navigation != null && config5.products != null) {
842756
+ violations.push({
842757
+ severity: "fatal",
842758
+ message: "Cannot contain both navigation and products. If you want multi-product docs, define navigation inside each product file. Otherwise use navigation."
842759
+ });
842760
+ }
842761
+ return violations;
842762
+ }
842763
+ };
842764
+ }
842765
+ };
842766
+
842750
842767
  // ../yaml/docs-validator/lib/rules/no-circular-redirects/no-circular-redirects.js
842751
842768
  function normalizeRedirectPath(path119) {
842752
842769
  if (path119 !== "/" && path119.endsWith("/")) {
@@ -842844,26 +842861,6 @@ var NoCircularRedirectsRule = {
842844
842861
  }
842845
842862
  };
842846
842863
 
842847
- // ../yaml/docs-validator/lib/rules/only-versioned-navigation/only-versioned-navigation.js
842848
- var OnlyVersionedNavigation = {
842849
- name: "only-versioned-navigation",
842850
- create: () => {
842851
- return {
842852
- file: async ({ config: config5 }) => {
842853
- if (config5.navigation != null && config5.versions != null) {
842854
- return [
842855
- {
842856
- severity: "fatal",
842857
- message: "Cannot contain both navigation and versions. If you want versioned docs, use versions. Otherwise use navigation."
842858
- }
842859
- ];
842860
- }
842861
- return [];
842862
- }
842863
- };
842864
- }
842865
- };
842866
-
842867
842864
  // ../yaml/docs-validator/lib/rules/tab-with-href/index.js
842868
842865
  var TabWithHrefRule = {
842869
842866
  name: "tab-with-href",
@@ -865977,7 +865974,7 @@ var allRules = [
865977
865974
  // Check non-component references (will skip v2 files)
865978
865975
  ValidLocalReferencesRule,
865979
865976
  // Validate that local references actually exist
865980
- OnlyVersionedNavigation,
865977
+ NavigationConflicts,
865981
865978
  ValidateVersionFileRule,
865982
865979
  ValidateProductFileRule,
865983
865980
  ValidInstanceUrlRule,
@@ -869801,7 +869798,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
869801
869798
  var LOGS_FOLDER_NAME = "logs";
869802
869799
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
869803
869800
  function getCliSource() {
869804
- const version7 = "5.65.6";
869801
+ const version7 = "5.65.8";
869805
869802
  return `cli@${version7}`;
869806
869803
  }
869807
869804
  var DebugLogger = class {
@@ -902363,7 +902360,7 @@ var LegacyDocsPublisher = class {
902363
902360
  previewId,
902364
902361
  disableTemplates: void 0,
902365
902362
  skipUpload,
902366
- cliVersion: "5.65.6",
902363
+ cliVersion: "5.65.8",
902367
902364
  loginCommand: "fern auth login"
902368
902365
  });
902369
902366
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -952320,7 +952317,9 @@ var TypescriptCustomConfigSchema = external_exports2.strictObject({
952320
952317
  bundle: external_exports2.optional(external_exports2.boolean()),
952321
952318
  allowCustomFetcher: external_exports2.optional(external_exports2.boolean()),
952322
952319
  generateWebSocketClients: external_exports2.optional(external_exports2.boolean()),
952323
- defaultTimeoutInSeconds: external_exports2.optional(external_exports2.union([external_exports2.literal("infinity"), external_exports2.number()])),
952320
+ // Default request timeout, expressed in milliseconds (idiomatic for JS/TS, e.g.
952321
+ // `setTimeout` / `AbortSignal.timeout(ms)`). Use "infinity" to disable the timeout.
952322
+ defaultTimeout: external_exports2.optional(external_exports2.union([external_exports2.literal("infinity"), external_exports2.number()])),
952324
952323
  skipResponseValidation: external_exports2.optional(external_exports2.boolean()),
952325
952324
  extraDependencies: external_exports2.optional(external_exports2.record(external_exports2.string())),
952326
952325
  extraDevDependencies: external_exports2.optional(external_exports2.record(external_exports2.string())),
@@ -952384,6 +952383,9 @@ var TypescriptCustomConfigSchema = external_exports2.strictObject({
952384
952383
  skipNpmPkgFix: external_exports2.optional(external_exports2.boolean()),
952385
952384
  experimentalGenerateReadWriteOnlyTypes: external_exports2.optional(external_exports2.boolean()),
952386
952385
  // deprecated
952386
+ // @deprecated Use `defaultTimeout` (milliseconds) instead. Converted to milliseconds (× 1000).
952387
+ defaultTimeoutInSeconds: external_exports2.optional(external_exports2.union([external_exports2.literal("infinity"), external_exports2.number()])),
952388
+ // @deprecated Use `defaultTimeout` (milliseconds) instead. Converted to milliseconds (× 1000).
952387
952389
  timeoutInSeconds: external_exports2.optional(external_exports2.union([external_exports2.literal("infinity"), external_exports2.number()])),
952388
952390
  includeApiReference: external_exports2.optional(external_exports2.boolean()),
952389
952391
  // @deprecated Use generateWebSocketClients instead
@@ -968687,7 +968689,7 @@ function getAutomationContextFromEnv() {
968687
968689
  config_branch: process.env.FERN_CONFIG_BRANCH,
968688
968690
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
968689
968691
  trigger: process.env.GITHUB_EVENT_NAME,
968690
- cli_version: "5.65.6"
968692
+ cli_version: "5.65.8"
968691
968693
  };
968692
968694
  }
968693
968695
  function isAutomationMode() {
@@ -969519,7 +969521,7 @@ var CliContext = class _CliContext {
969519
969521
  if (false) {
969520
969522
  this.logger.error("CLI_VERSION is not defined");
969521
969523
  }
969522
- return "5.65.6";
969524
+ return "5.65.8";
969523
969525
  }
969524
969526
  getCliName() {
969525
969527
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.65.6",
2
+ "version": "5.65.8",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",