@fern-api/fern-api-dev 4.39.0 → 4.40.0

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 +8 -9
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -482356,7 +482356,6 @@ var ApiDefinitionSettingsSchema = schemas_exports8.object({
482356
482356
  "wrap-references-to-nullable-in-optional": schemas_exports8.boolean().optional(),
482357
482357
  "coerce-optional-schemas-to-nullable": schemas_exports8.boolean().optional(),
482358
482358
  "group-environments-by-host": schemas_exports8.boolean().optional(),
482359
- "infer-default-environment": schemas_exports8.boolean().optional(),
482360
482359
  "remove-discriminants-from-schemas": RemoveDiscriminantsFromSchemas2.optional(),
482361
482360
  "path-parameter-order": PathParameterOrder2.optional()
482362
482361
  });
@@ -482422,11 +482421,11 @@ var BaseApiSettingsSchema = schemas_exports8.object({
482422
482421
  "wrap-references-to-nullable-in-optional": schemas_exports8.boolean().optional(),
482423
482422
  "coerce-optional-schemas-to-nullable": schemas_exports8.boolean().optional(),
482424
482423
  "group-environments-by-host": schemas_exports8.boolean().optional(),
482425
- "infer-default-environment": schemas_exports8.boolean().optional(),
482426
482424
  "remove-discriminants-from-schemas": RemoveDiscriminantsFromSchemas2.optional(),
482427
482425
  "path-parameter-order": PathParameterOrder2.optional(),
482428
482426
  "resolve-schema-collisions": schemas_exports8.boolean().optional(),
482429
482427
  "infer-forward-compatible": schemas_exports8.boolean().optional(),
482428
+ "infer-default-environment": schemas_exports8.boolean().optional(),
482430
482429
  "coerce-consts-to": CoerceConstsTo2.optional()
482431
482430
  });
482432
482431
 
@@ -513538,8 +513537,8 @@ async function getFrontmatterTitle({ absolutePath, readFileFn = (path90, encodin
513538
513537
  async function buildNavigationForDirectory({ directoryPath, titleSource, getDir = getDirectoryContents, readFileFn = (path90, encoding) => (0, import_promises13.readFile)(path90, encoding) }) {
513539
513538
  const contents = await getDir(directoryPath);
513540
513539
  const useFrontmatterTitles = titleSource === "frontmatter";
513541
- const markdownFiles = contents.filter((item) => item.type === "file" && (item.name.toLowerCase().endsWith(".md") || item.name.toLowerCase().endsWith(".mdx")));
513542
- const subdirectories = contents.filter((item) => item.type === "directory");
513540
+ const markdownFiles = contents.filter((item) => item.type === "file" && !item.name.startsWith("_") && (item.name.toLowerCase().endsWith(".md") || item.name.toLowerCase().endsWith(".mdx")));
513541
+ const subdirectories = contents.filter((item) => item.type === "directory" && !item.name.startsWith("_"));
513543
513542
  const [pagePositions, pageTitles] = await Promise.all([
513544
513543
  Promise.all(markdownFiles.map((file4) => getFrontmatterPosition({ absolutePath: file4.absolutePath, readFileFn }))),
513545
513544
  useFrontmatterTitles ? Promise.all(markdownFiles.map((file4) => getFrontmatterTitle({ absolutePath: file4.absolutePath, readFileFn }))) : Promise.resolve(markdownFiles.map(() => void 0))
@@ -581652,7 +581651,7 @@ var AccessTokenPosthogManager = class {
581652
581651
  properties: {
581653
581652
  ...event,
581654
581653
  ...event.properties,
581655
- version: "4.39.0",
581654
+ version: "4.40.0",
581656
581655
  usingAccessToken: true
581657
581656
  }
581658
581657
  });
@@ -581703,7 +581702,7 @@ var UserPosthogManager = class {
581703
581702
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
581704
581703
  event: "CLI",
581705
581704
  properties: {
581706
- version: "4.39.0",
581705
+ version: "4.40.0",
581707
581706
  ...event,
581708
581707
  ...event.properties,
581709
581708
  usingAccessToken: false,
@@ -787806,7 +787805,7 @@ var import_path51 = __toESM(require("path"), 1);
787806
787805
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
787807
787806
  var LOGS_FOLDER_NAME = "logs";
787808
787807
  function getCliSource() {
787809
- const version8 = "4.39.0";
787808
+ const version8 = "4.40.0";
787810
787809
  return `cli@${version8}`;
787811
787810
  }
787812
787811
  var DebugLogger = class {
@@ -798617,7 +798616,7 @@ var LegacyDocsPublisher = class {
798617
798616
  previewId: void 0,
798618
798617
  disableTemplates: void 0,
798619
798618
  skipUpload,
798620
- cliVersion: "4.39.0"
798619
+ cliVersion: "4.40.0"
798621
798620
  });
798622
798621
  if (taskContext.getResult() === TaskResult.Failure) {
798623
798622
  return { success: false };
@@ -871224,7 +871223,7 @@ var CliContext = class {
871224
871223
  if (false) {
871225
871224
  this.logger.error("CLI_VERSION is not defined");
871226
871225
  }
871227
- return "4.39.0";
871226
+ return "4.40.0";
871228
871227
  }
871229
871228
  getCliName() {
871230
871229
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.39.0",
2
+ "version": "4.40.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",