@fern-api/fern-api-dev 5.44.9 → 5.44.10

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 +20 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -669562,7 +669562,7 @@ var AccessTokenPosthogManager = class {
669562
669562
  properties: {
669563
669563
  ...event,
669564
669564
  ...event.properties,
669565
- version: "5.44.9",
669565
+ version: "5.44.10",
669566
669566
  usingAccessToken: true,
669567
669567
  ...getRunIdProperties()
669568
669568
  }
@@ -669626,7 +669626,7 @@ var UserPosthogManager = class {
669626
669626
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
669627
669627
  event: "CLI",
669628
669628
  properties: {
669629
- version: "5.44.9",
669629
+ version: "5.44.10",
669630
669630
  ...event,
669631
669631
  ...event.properties,
669632
669632
  usingAccessToken: false,
@@ -834353,6 +834353,9 @@ function findRemovedSlugs(publishedEntries, localPageIdToSlugs) {
834353
834353
  }
834354
834354
  const removed = [];
834355
834355
  for (const publishedEntry of publishedEntries) {
834356
+ if (publishedEntry.slug.trim() === "") {
834357
+ continue;
834358
+ }
834356
834359
  const localSlugs = localPageIdToSlugs.get(publishedEntry.pageId);
834357
834360
  if (localSlugs == null) {
834358
834361
  if (activeSlugs.has(publishedEntry.slug)) {
@@ -861322,7 +861325,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
861322
861325
  var LOGS_FOLDER_NAME = "logs";
861323
861326
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
861324
861327
  function getCliSource() {
861325
- const version7 = "5.44.9";
861328
+ const version7 = "5.44.10";
861326
861329
  return `cli@${version7}`;
861327
861330
  }
861328
861331
  var DebugLogger = class {
@@ -892414,7 +892417,7 @@ var LegacyDocsPublisher = class {
892414
892417
  previewId,
892415
892418
  disableTemplates: void 0,
892416
892419
  skipUpload,
892417
- cliVersion: "5.44.9",
892420
+ cliVersion: "5.44.10",
892418
892421
  loginCommand: "fern auth login"
892419
892422
  });
892420
892423
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -918353,6 +918356,7 @@ var BaseJavaCustomConfigSchema = external_exports2.object({
918353
918356
  "base-api-exception-class-name": external_exports2.string().optional(),
918354
918357
  "base-exception-class-name": external_exports2.string().optional(),
918355
918358
  "client-class-name": external_exports2.string().optional(),
918359
+ "exported-client-class-name": external_exports2.string().optional(),
918356
918360
  "inline-file-properties": external_exports2.boolean().optional(),
918357
918361
  "inline-path-parameters": external_exports2.boolean().optional(),
918358
918362
  "package-layout": external_exports2.enum(["flat", "nested"]).optional(),
@@ -920628,13 +920632,22 @@ var DynamicSnippetsGeneratorContext3 = class _DynamicSnippetsGeneratorContext ex
920628
920632
  }
920629
920633
  getRootClientClassReference() {
920630
920634
  return java_exports.classReference({
920631
- name: this.getRootClientClassName(),
920635
+ name: this.getRootClientClassNameForSnippets(),
920632
920636
  packageName: this.getRootPackageName()
920633
920637
  });
920634
920638
  }
920635
920639
  getRootClientClassName() {
920636
920640
  return this.customConfig?.["client-class-name"] ?? `${this.getBaseNamePrefix()}Client`;
920637
920641
  }
920642
+ /**
920643
+ * The client class name surfaced in documentation snippets (dynamic snippets, README, reference.md).
920644
+ * Customers may export the generated root client under a different, hand-written class name; this
920645
+ * accessor reflects that exported name. Falls back to the internal client class name when unset, so
920646
+ * output is unchanged for users who have not configured `exported-client-class-name`.
920647
+ */
920648
+ getRootClientClassNameForSnippets() {
920649
+ return this.customConfig?.["exported-client-class-name"] ?? this.getRootClientClassName();
920650
+ }
920638
920651
  getEnvironmentClassName() {
920639
920652
  return "Environment";
920640
920653
  }
@@ -957501,7 +957514,7 @@ function getAutomationContextFromEnv() {
957501
957514
  config_branch: process.env.FERN_CONFIG_BRANCH,
957502
957515
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
957503
957516
  trigger: process.env.GITHUB_EVENT_NAME,
957504
- cli_version: "5.44.9"
957517
+ cli_version: "5.44.10"
957505
957518
  };
957506
957519
  }
957507
957520
  function isAutomationMode() {
@@ -958327,7 +958340,7 @@ var CliContext = class _CliContext {
958327
958340
  if (false) {
958328
958341
  this.logger.error("CLI_VERSION is not defined");
958329
958342
  }
958330
- return "5.44.9";
958343
+ return "5.44.10";
958331
958344
  }
958332
958345
  getCliName() {
958333
958346
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.44.9",
2
+ "version": "5.44.10",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",