@fern-api/fern-api-dev 5.15.2-1-gaec6c39ff35 → 5.15.3-1-g64791175799

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 +16 -7
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -311768,7 +311768,12 @@ var require_AutoVersionStep = __commonJS({
311768
311768
  async handleNormalFlow(params2) {
311769
311769
  const { prepared, service, language, mappedMagicVersion, previousGenerationSha } = params2;
311770
311770
  const rawDiff = this.gitDiff(previousGenerationSha, prepared.currentGenerationSha);
311771
- const previousVersion = await this.resolvePreviousVersion({ service, rawDiff, mappedMagicVersion });
311771
+ const previousVersion = await this.resolvePreviousVersion({
311772
+ service,
311773
+ rawDiff,
311774
+ mappedMagicVersion,
311775
+ baseVersion: this.config.baseVersion
311776
+ });
311772
311777
  if (previousVersion == null) {
311773
311778
  return await this.handleFirstGeneration({ service, language, mappedMagicVersion });
311774
311779
  }
@@ -311895,7 +311900,11 @@ var require_AutoVersionStep = __commonJS({
311895
311900
  };
311896
311901
  }
311897
311902
  async resolvePreviousVersion(params2) {
311898
- const { service, rawDiff, mappedMagicVersion } = params2;
311903
+ const { service, rawDiff, mappedMagicVersion, baseVersion } = params2;
311904
+ if (baseVersion != null && (0, index_1.isValidSemver)(baseVersion)) {
311905
+ this.logger.debug(`AutoVersionStep: previous version from pipeline baseVersion: ${baseVersion}`);
311906
+ return this.normalizeVersionPrefix(baseVersion, mappedMagicVersion);
311907
+ }
311899
311908
  try {
311900
311909
  const extracted = service.extractPreviousVersion(rawDiff, mappedMagicVersion);
311901
311910
  if (extracted != null) {
@@ -623609,7 +623618,7 @@ var AccessTokenPosthogManager = class {
623609
623618
  properties: {
623610
623619
  ...event,
623611
623620
  ...event.properties,
623612
- version: "5.15.2-1-gaec6c39ff35",
623621
+ version: "5.15.3-1-g64791175799",
623613
623622
  usingAccessToken: true
623614
623623
  }
623615
623624
  });
@@ -623663,7 +623672,7 @@ var UserPosthogManager = class {
623663
623672
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
623664
623673
  event: "CLI",
623665
623674
  properties: {
623666
- version: "5.15.2-1-gaec6c39ff35",
623675
+ version: "5.15.3-1-g64791175799",
623667
623676
  ...event,
623668
623677
  ...event.properties,
623669
623678
  usingAccessToken: false,
@@ -848614,7 +848623,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
848614
848623
  var LOGS_FOLDER_NAME = "logs";
848615
848624
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
848616
848625
  function getCliSource() {
848617
- const version7 = "5.15.2-1-gaec6c39ff35";
848626
+ const version7 = "5.15.3-1-g64791175799";
848618
848627
  return `cli@${version7}`;
848619
848628
  }
848620
848629
  var DebugLogger = class {
@@ -861422,7 +861431,7 @@ var LegacyDocsPublisher = class {
861422
861431
  previewId,
861423
861432
  disableTemplates: void 0,
861424
861433
  skipUpload,
861425
- cliVersion: "5.15.2-1-gaec6c39ff35",
861434
+ cliVersion: "5.15.3-1-g64791175799",
861426
861435
  loginCommand: "fern auth login"
861427
861436
  });
861428
861437
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -935947,7 +935956,7 @@ var CliContext = class _CliContext {
935947
935956
  if (false) {
935948
935957
  this.logger.error("CLI_VERSION is not defined");
935949
935958
  }
935950
- return "5.15.2-1-gaec6c39ff35";
935959
+ return "5.15.3-1-g64791175799";
935951
935960
  }
935952
935961
  getCliName() {
935953
935962
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.15.2-1-gaec6c39ff35",
2
+ "version": "5.15.3-1-g64791175799",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",