@fern-api/fern-api-dev 4.106.1 → 4.106.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 +87 -74
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -621199,7 +621199,7 @@ var AccessTokenPosthogManager = class {
621199
621199
  properties: {
621200
621200
  ...event,
621201
621201
  ...event.properties,
621202
- version: "4.106.1",
621202
+ version: "4.106.2",
621203
621203
  usingAccessToken: true
621204
621204
  }
621205
621205
  });
@@ -621253,7 +621253,7 @@ var UserPosthogManager = class {
621253
621253
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
621254
621254
  event: "CLI",
621255
621255
  properties: {
621256
- version: "4.106.1",
621256
+ version: "4.106.2",
621257
621257
  ...event,
621258
621258
  ...event.properties,
621259
621259
  usingAccessToken: false,
@@ -832894,7 +832894,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
832894
832894
  var LOGS_FOLDER_NAME = "logs";
832895
832895
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
832896
832896
  function getCliSource() {
832897
- const version7 = "4.106.1";
832897
+ const version7 = "4.106.2";
832898
832898
  return `cli@${version7}`;
832899
832899
  }
832900
832900
  var DebugLogger = class {
@@ -834643,26 +834643,30 @@ async function runAppPreviewServer({ initialProject, reloadProject, validateProj
834643
834643
  }
834644
834644
  }
834645
834645
  for (const [pagePath, rawMarkdown] of Object.entries(localePages)) {
834646
- const basePage = translatedPages[pagePath];
834647
- let processedMarkdown = stripMdxComments(rawMarkdown);
834648
- const absolutePathToMarkdownFile = resolve6(docsWorkspacePath, RelativeFilePath2.of(pagePath));
834649
- processedMarkdown = replaceImagePathsAndUrls(
834650
- processedMarkdown,
834651
- collectedFileIds,
834652
- {},
834653
- // markdownFilesToPathName not needed for translations
834654
- {
834655
- absolutePathToMarkdownFile,
834656
- absolutePathToFernFolder: docsWorkspacePath
834657
- },
834658
- context3
834659
- );
834660
- translatedPages[pagePath] = {
834661
- markdown: processedMarkdown,
834662
- rawMarkdown: processedMarkdown,
834663
- editThisPageUrl: basePage?.editThisPageUrl,
834664
- editThisPageLaunch: basePage?.editThisPageLaunch
834665
- };
834646
+ try {
834647
+ const basePage = translatedPages[pagePath];
834648
+ let processedMarkdown = stripMdxComments(rawMarkdown);
834649
+ const absolutePathToMarkdownFile = resolve6(docsWorkspacePath, RelativeFilePath2.of(pagePath));
834650
+ processedMarkdown = replaceImagePathsAndUrls(
834651
+ processedMarkdown,
834652
+ collectedFileIds,
834653
+ {},
834654
+ // markdownFilesToPathName not needed for translations
834655
+ {
834656
+ absolutePathToMarkdownFile,
834657
+ absolutePathToFernFolder: docsWorkspacePath
834658
+ },
834659
+ context3
834660
+ );
834661
+ translatedPages[pagePath] = {
834662
+ markdown: processedMarkdown,
834663
+ rawMarkdown: processedMarkdown,
834664
+ editThisPageUrl: basePage?.editThisPageUrl,
834665
+ editThisPageLaunch: basePage?.editThisPageLaunch
834666
+ };
834667
+ } catch (pageError) {
834668
+ context3.logger.warn(`Failed to process translated page "${pagePath}" for locale "${locale}": ${String(pageError)}. Falling back to base page.`);
834669
+ }
834666
834670
  }
834667
834671
  let updatedRoot = applyTranslatedFrontmatterToNavTree(docsDefinition.config.root, localePages, context3);
834668
834672
  const localeNavOverlay = translationNavigationOverlays?.[locale];
@@ -835142,26 +835146,30 @@ async function runPreviewServer({ initialProject, reloadProject, validateProject
835142
835146
  }
835143
835147
  }
835144
835148
  for (const [pagePath, rawMarkdown] of Object.entries(localePages)) {
835145
- const basePage = translatedPages[pagePath];
835146
- let processedMarkdown = stripMdxComments(rawMarkdown);
835147
- const absolutePathToMarkdownFile = resolve6(docsWorkspacePath, RelativeFilePath2.of(pagePath));
835148
- processedMarkdown = replaceImagePathsAndUrls(
835149
- processedMarkdown,
835150
- collectedFileIds,
835151
- {},
835152
- // markdownFilesToPathName not needed for translations
835153
- {
835154
- absolutePathToMarkdownFile,
835155
- absolutePathToFernFolder: docsWorkspacePath
835156
- },
835157
- context3
835158
- );
835159
- translatedPages[pagePath] = {
835160
- markdown: processedMarkdown,
835161
- rawMarkdown: processedMarkdown,
835162
- editThisPageUrl: basePage?.editThisPageUrl,
835163
- editThisPageLaunch: basePage?.editThisPageLaunch
835164
- };
835149
+ try {
835150
+ const basePage = translatedPages[pagePath];
835151
+ let processedMarkdown = stripMdxComments(rawMarkdown);
835152
+ const absolutePathToMarkdownFile = resolve6(docsWorkspacePath, RelativeFilePath2.of(pagePath));
835153
+ processedMarkdown = replaceImagePathsAndUrls(
835154
+ processedMarkdown,
835155
+ collectedFileIds,
835156
+ {},
835157
+ // markdownFilesToPathName not needed for translations
835158
+ {
835159
+ absolutePathToMarkdownFile,
835160
+ absolutePathToFernFolder: docsWorkspacePath
835161
+ },
835162
+ context3
835163
+ );
835164
+ translatedPages[pagePath] = {
835165
+ markdown: processedMarkdown,
835166
+ rawMarkdown: processedMarkdown,
835167
+ editThisPageUrl: basePage?.editThisPageUrl,
835168
+ editThisPageLaunch: basePage?.editThisPageLaunch
835169
+ };
835170
+ } catch (pageError) {
835171
+ context3.logger.warn(`Failed to process translated page "${pagePath}" for locale "${locale}": ${String(pageError)}. Falling back to base page.`);
835172
+ }
835165
835173
  }
835166
835174
  let updatedRoot = applyTranslatedFrontmatterToNavTree(docsDefinition.config.root, localePages, context3);
835167
835175
  const localeNavOverlay = translationNavigationOverlays?.[locale];
@@ -844529,36 +844537,41 @@ ${JSON.stringify(errorDetails, void 0, 2)}`);
844529
844537
  const translatedPages = {
844530
844538
  ...docsDefinition.pages,
844531
844539
  ...Object.fromEntries(Object.entries(localePages).map(([path105, rawMarkdown]) => {
844532
- const basePage = docsDefinition.pages[path105];
844533
- let processedMarkdown = stripMdxComments(rawMarkdown);
844534
- const absolutePathToMarkdownFile = resolve6(docsWorkspacePath, RelativeFilePath2.of(path105));
844535
- processedMarkdown = replaceImagePathsAndUrls(
844536
- processedMarkdown,
844537
- collectedFileIds,
844538
- {},
844539
- // markdownFilesToPathName not needed for translations
844540
- {
844541
- absolutePathToMarkdownFile,
844542
- absolutePathToFernFolder: docsWorkspacePath
844543
- },
844544
- context3
844545
- );
844546
- let editThisPageUrl = basePage?.editThisPageUrl;
844547
- if (editThisPageUrl != null) {
844548
- const fernPathPattern = `/fern/${path105}`;
844549
- const translatedPath = `/fern/translations/${locale}/${path105}`;
844550
- editThisPageUrl = editThisPageUrl.replace(fernPathPattern, translatedPath);
844551
- }
844552
- return [
844553
- path105,
844554
- {
844555
- markdown: processedMarkdown,
844556
- rawMarkdown: processedMarkdown,
844557
- editThisPageUrl,
844558
- editThisPageLaunch: basePage?.editThisPageLaunch
844540
+ try {
844541
+ const basePage = docsDefinition.pages[path105];
844542
+ let processedMarkdown = stripMdxComments(rawMarkdown);
844543
+ const absolutePathToMarkdownFile = resolve6(docsWorkspacePath, RelativeFilePath2.of(path105));
844544
+ processedMarkdown = replaceImagePathsAndUrls(
844545
+ processedMarkdown,
844546
+ collectedFileIds,
844547
+ {},
844548
+ // markdownFilesToPathName not needed for translations
844549
+ {
844550
+ absolutePathToMarkdownFile,
844551
+ absolutePathToFernFolder: docsWorkspacePath
844552
+ },
844553
+ context3
844554
+ );
844555
+ let editThisPageUrl = basePage?.editThisPageUrl;
844556
+ if (editThisPageUrl != null) {
844557
+ const fernPathPattern = `/fern/${path105}`;
844558
+ const translatedPath = `/fern/translations/${locale}/${path105}`;
844559
+ editThisPageUrl = editThisPageUrl.replace(fernPathPattern, translatedPath);
844559
844560
  }
844560
- ];
844561
- }))
844561
+ return [
844562
+ path105,
844563
+ {
844564
+ markdown: processedMarkdown,
844565
+ rawMarkdown: processedMarkdown,
844566
+ editThisPageUrl,
844567
+ editThisPageLaunch: basePage?.editThisPageLaunch
844568
+ }
844569
+ ];
844570
+ } catch (pageError) {
844571
+ context3.logger.warn(`Failed to process translated page "${path105}" for locale "${locale}": ${String(pageError)}. Falling back to base page.`);
844572
+ return void 0;
844573
+ }
844574
+ }).filter((entry) => entry != null))
844562
844575
  };
844563
844576
  let updatedRoot = applyTranslatedFrontmatterToNavTree(
844564
844577
  docsDefinition.config.root,
@@ -845290,7 +845303,7 @@ var LegacyDocsPublisher = class {
845290
845303
  previewId,
845291
845304
  disableTemplates: void 0,
845292
845305
  skipUpload,
845293
- cliVersion: "4.106.1",
845306
+ cliVersion: "4.106.2",
845294
845307
  loginCommand: "fern auth login"
845295
845308
  });
845296
845309
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -919391,7 +919404,7 @@ var CliContext = class _CliContext {
919391
919404
  if (false) {
919392
919405
  this.logger.error("CLI_VERSION is not defined");
919393
919406
  }
919394
- return "4.106.1";
919407
+ return "4.106.2";
919395
919408
  }
919396
919409
  getCliName() {
919397
919410
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.106.1",
2
+ "version": "4.106.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",