@fern-api/fern-api-dev 5.44.8 → 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 +32 -9
  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.8",
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.8",
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)) {
@@ -856980,6 +856983,16 @@ function createDocsConfigFileAstVisitorForRules({ relativeFilepath, allRulesWith
856980
856983
  // ../yaml/docs-validator/lib/rules/no-non-component-refs/no-non-component-refs.js
856981
856984
  init_lib8();
856982
856985
  var import_promises84 = require("fs/promises");
856986
+
856987
+ // ../yaml/docs-validator/lib/rules/isInYamlComment.js
856988
+ function isInYamlComment(contents, matchIndex) {
856989
+ const lineStart = contents.lastIndexOf("\n", matchIndex - 1) + 1;
856990
+ const textBeforeMatch = contents.substring(lineStart, matchIndex);
856991
+ const withoutQuotes = textBeforeMatch.replace(/"[^"]*"|'[^']*'/g, "");
856992
+ return withoutQuotes.includes("#");
856993
+ }
856994
+
856995
+ // ../yaml/docs-validator/lib/rules/no-non-component-refs/no-non-component-refs.js
856983
856996
  var NoNonComponentRefsRule = {
856984
856997
  name: "no-non-component-refs",
856985
856998
  create: ({ ossWorkspaces, logger: logger4, workspace: docsWorkspace }) => {
@@ -857007,7 +857020,7 @@ var NoNonComponentRefsRule = {
857007
857020
  const refMatches = contents.matchAll(/["']?\$ref["']?\s*:\s*["']([^"']+)["']/g);
857008
857021
  for (const match3 of refMatches) {
857009
857022
  const ref2 = match3[1];
857010
- if (!ref2) {
857023
+ if (!ref2 || match3.index != null && isInYamlComment(contents, match3.index)) {
857011
857024
  continue;
857012
857025
  }
857013
857026
  if (ref2.startsWith("#/") && !ref2.startsWith("#/components/")) {
@@ -857263,7 +857276,7 @@ var ValidLocalReferencesRule = {
857263
857276
  const allRefs = /* @__PURE__ */ new Set();
857264
857277
  for (const match3 of refMatches) {
857265
857278
  const ref2 = match3[1];
857266
- if (ref2 && ref2.startsWith("#/")) {
857279
+ if (ref2 && ref2.startsWith("#/") && match3.index != null && !isInYamlComment(contents, match3.index)) {
857267
857280
  allRefs.add(ref2);
857268
857281
  }
857269
857282
  }
@@ -861312,7 +861325,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
861312
861325
  var LOGS_FOLDER_NAME = "logs";
861313
861326
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
861314
861327
  function getCliSource() {
861315
- const version7 = "5.44.8";
861328
+ const version7 = "5.44.10";
861316
861329
  return `cli@${version7}`;
861317
861330
  }
861318
861331
  var DebugLogger = class {
@@ -892404,7 +892417,7 @@ var LegacyDocsPublisher = class {
892404
892417
  previewId,
892405
892418
  disableTemplates: void 0,
892406
892419
  skipUpload,
892407
- cliVersion: "5.44.8",
892420
+ cliVersion: "5.44.10",
892408
892421
  loginCommand: "fern auth login"
892409
892422
  });
892410
892423
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -918343,6 +918356,7 @@ var BaseJavaCustomConfigSchema = external_exports2.object({
918343
918356
  "base-api-exception-class-name": external_exports2.string().optional(),
918344
918357
  "base-exception-class-name": external_exports2.string().optional(),
918345
918358
  "client-class-name": external_exports2.string().optional(),
918359
+ "exported-client-class-name": external_exports2.string().optional(),
918346
918360
  "inline-file-properties": external_exports2.boolean().optional(),
918347
918361
  "inline-path-parameters": external_exports2.boolean().optional(),
918348
918362
  "package-layout": external_exports2.enum(["flat", "nested"]).optional(),
@@ -920618,13 +920632,22 @@ var DynamicSnippetsGeneratorContext3 = class _DynamicSnippetsGeneratorContext ex
920618
920632
  }
920619
920633
  getRootClientClassReference() {
920620
920634
  return java_exports.classReference({
920621
- name: this.getRootClientClassName(),
920635
+ name: this.getRootClientClassNameForSnippets(),
920622
920636
  packageName: this.getRootPackageName()
920623
920637
  });
920624
920638
  }
920625
920639
  getRootClientClassName() {
920626
920640
  return this.customConfig?.["client-class-name"] ?? `${this.getBaseNamePrefix()}Client`;
920627
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
+ }
920628
920651
  getEnvironmentClassName() {
920629
920652
  return "Environment";
920630
920653
  }
@@ -957491,7 +957514,7 @@ function getAutomationContextFromEnv() {
957491
957514
  config_branch: process.env.FERN_CONFIG_BRANCH,
957492
957515
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
957493
957516
  trigger: process.env.GITHUB_EVENT_NAME,
957494
- cli_version: "5.44.8"
957517
+ cli_version: "5.44.10"
957495
957518
  };
957496
957519
  }
957497
957520
  function isAutomationMode() {
@@ -958317,7 +958340,7 @@ var CliContext = class _CliContext {
958317
958340
  if (false) {
958318
958341
  this.logger.error("CLI_VERSION is not defined");
958319
958342
  }
958320
- return "5.44.8";
958343
+ return "5.44.10";
958321
958344
  }
958322
958345
  getCliName() {
958323
958346
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.44.8",
2
+ "version": "5.44.10",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",