@fern-api/fern-api-dev 4.101.0 → 4.103.0-1-gfec71c15de9

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 +9 -23
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -510215,23 +510215,7 @@ var ProgrammingLanguage = external_exports.enum([
510215
510215
  "ts",
510216
510216
  "js"
510217
510217
  ]);
510218
- var Language = external_exports.enum([
510219
- "en",
510220
- "es",
510221
- "fr",
510222
- "de",
510223
- "it",
510224
- "pt",
510225
- "ja",
510226
- "zh",
510227
- "ko",
510228
- "el",
510229
- "no",
510230
- "pl",
510231
- "ru",
510232
- "sv",
510233
- "tr"
510234
- ]);
510218
+ var Language = external_exports.string().regex(/^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{1,8})*$/, "Language must be a valid BCP 47 language tag (e.g. 'en', 'ja', 'ja-JP', 'pt-BR', 'zh-Hans-CN')");
510235
510219
  var PageActionOption = external_exports.enum([
510236
510220
  "copy-page",
510237
510221
  "view-as-markdown",
@@ -620933,7 +620917,7 @@ var AccessTokenPosthogManager = class {
620933
620917
  properties: {
620934
620918
  ...event,
620935
620919
  ...event.properties,
620936
- version: "4.101.0",
620920
+ version: "4.103.0-1-gfec71c15de9",
620937
620921
  usingAccessToken: true
620938
620922
  }
620939
620923
  });
@@ -620987,7 +620971,7 @@ var UserPosthogManager = class {
620987
620971
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
620988
620972
  event: "CLI",
620989
620973
  properties: {
620990
- version: "4.101.0",
620974
+ version: "4.103.0-1-gfec71c15de9",
620991
620975
  ...event,
620992
620976
  ...event.properties,
620993
620977
  usingAccessToken: false,
@@ -798922,6 +798906,7 @@ var DocsDefinitionResolver = class {
798922
798906
  }),
798923
798907
  typographyV2: this.convertDocsTypographyConfiguration(),
798924
798908
  layout: this.parsedDocsConfig.layout,
798909
+ // @ts-expect-error -- BCP 47: Language type widened to string, @fern-api/fdr-sdk not yet updated
798925
798910
  settings: this.parsedDocsConfig.settings,
798926
798911
  css: this.parsedDocsConfig.css,
798927
798912
  js: this.convertJavascriptConfiguration(),
@@ -798938,6 +798923,7 @@ var DocsDefinitionResolver = class {
798938
798923
  value: DocsV1Write_exports.Url(footerLink.value)
798939
798924
  })),
798940
798925
  defaultLanguage: this.parsedDocsConfig.defaultLanguage,
798926
+ // @ts-expect-error -- BCP 47: Language[] widened to string[], @fern-api/fdr-sdk not yet updated
798941
798927
  languages: this.parsedDocsConfig.languages,
798942
798928
  translations: this.getDocsTranslationsConfig(),
798943
798929
  analyticsConfig: {
@@ -806099,7 +806085,7 @@ var TranslationDirectoriesExistRule = {
806099
806085
  if (translations == null || translations.length === 0) {
806100
806086
  return violations;
806101
806087
  }
806102
- const defaultLocale = translations.find((t3) => t3.default === true)?.lang;
806088
+ const defaultLocale = (translations.find((t3) => t3.default === true) ?? translations[0])?.lang;
806103
806089
  const translationsDir = join8(workspace.absoluteFilePath, RelativeFilePath2.of("translations"));
806104
806090
  const translationsDirExists = await doesPathExist(translationsDir);
806105
806091
  const missingDirs = [];
@@ -832279,7 +832265,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
832279
832265
  var LOGS_FOLDER_NAME = "logs";
832280
832266
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
832281
832267
  function getCliSource() {
832282
- const version7 = "4.101.0";
832268
+ const version7 = "4.103.0-1-gfec71c15de9";
832283
832269
  return `cli@${version7}`;
832284
832270
  }
832285
832271
  var DebugLogger = class {
@@ -844635,7 +844621,7 @@ var LegacyDocsPublisher = class {
844635
844621
  previewId,
844636
844622
  disableTemplates: void 0,
844637
844623
  skipUpload,
844638
- cliVersion: "4.101.0",
844624
+ cliVersion: "4.103.0-1-gfec71c15de9",
844639
844625
  loginCommand: "fern auth login"
844640
844626
  });
844641
844627
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -918726,7 +918712,7 @@ var CliContext = class _CliContext {
918726
918712
  if (false) {
918727
918713
  this.logger.error("CLI_VERSION is not defined");
918728
918714
  }
918729
- return "4.101.0";
918715
+ return "4.103.0-1-gfec71c15de9";
918730
918716
  }
918731
918717
  getCliName() {
918732
918718
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.101.0",
2
+ "version": "4.103.0-1-gfec71c15de9",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",