@fern-api/fern-api-dev 3.53.1-27-g7365dab0957 → 3.53.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 +12 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -1632216,11 +1632216,17 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
1632216
1632216
  if (defaultVersion?.hidden === true) {
1632217
1632217
  throw new Error(`The default version "${defaultVersion.version}" cannot be hidden. Please set a non-hidden version as the first version in your versions list, or remove the hidden flag from the default version.`);
1632218
1632218
  }
1632219
+ const BATCH_SIZE2 = 5;
1632220
+ const children2 = [];
1632221
+ for (let i11 = 0; i11 < versioned.versions.length; i11 += BATCH_SIZE2) {
1632222
+ const batch = versioned.versions.slice(i11, i11 + BATCH_SIZE2);
1632223
+ const batchResults = await Promise.all(batch.map((item, batchIdx) => this.toVersionNode(item, parentSlug, i11 + batchIdx === 0)));
1632224
+ children2.push(...batchResults);
1632225
+ }
1632219
1632226
  return {
1632220
1632227
  id: id2,
1632221
1632228
  type: "versioned",
1632222
- // TODO: should the first version always be default? We should make this configurable.
1632223
- children: await Promise.all(versioned.versions.map((item, idx) => this.toVersionNode(item, parentSlug, idx === 0)))
1632229
+ children: children2
1632224
1632230
  };
1632225
1632231
  }
1632226
1632232
  async toProductGroupNode({ productGroup, landingPageConfig, parentSlug }) {
@@ -1652491,7 +1652497,7 @@ var AccessTokenPosthogManager = class {
1652491
1652497
  properties: {
1652492
1652498
  ...event,
1652493
1652499
  ...event.properties,
1652494
- version: "3.53.1-27-g7365dab0957",
1652500
+ version: "3.53.2",
1652495
1652501
  usingAccessToken: true
1652496
1652502
  }
1652497
1652503
  });
@@ -1652541,7 +1652547,7 @@ var UserPosthogManager = class {
1652541
1652547
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1652542
1652548
  event: "CLI",
1652543
1652549
  properties: {
1652544
- version: "3.53.1-27-g7365dab0957",
1652550
+ version: "3.53.2",
1652545
1652551
  ...event,
1652546
1652552
  ...event.properties,
1652547
1652553
  usingAccessToken: false,
@@ -1685683,7 +1685689,7 @@ var CliContext = class {
1685683
1685689
  if (false) {
1685684
1685690
  this.logger.error("CLI_VERSION is not defined");
1685685
1685691
  }
1685686
- return "3.53.1-27-g7365dab0957";
1685692
+ return "3.53.2";
1685687
1685693
  }
1685688
1685694
  getCliName() {
1685689
1685695
  if (false) {
@@ -1688796,7 +1688802,7 @@ var import_path54 = __toESM(require("path"), 1);
1688796
1688802
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1688797
1688803
  var LOGS_FOLDER_NAME = "logs";
1688798
1688804
  function getCliSource() {
1688799
- const version7 = "3.53.1-27-g7365dab0957";
1688805
+ const version7 = "3.53.2";
1688800
1688806
  return `cli@${version7}`;
1688801
1688807
  }
1688802
1688808
  var DebugLogger = class {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.53.1-27-g7365dab0957",
2
+ "version": "3.53.2",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",