@fern-api/fern-api-dev 5.110.0 → 5.110.1
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.
- package/cli.cjs +31 -10
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -374121,6 +374121,8 @@ var init_OSSWorkspace = __esm({
|
|
|
374121
374121
|
// This avoids running buf generate twice when both toFernWorkspace() and
|
|
374122
374122
|
// validateOSSWorkspace() need the same OpenAPI specs.
|
|
374123
374123
|
openApiSpecsCache = /* @__PURE__ */ new Map();
|
|
374124
|
+
/** Guards the orphaned-`auth-schemes` warning so one command warns once. */
|
|
374125
|
+
hasWarnedOrphanedAuthSchemes = false;
|
|
374124
374126
|
constructor({ allSpecs, specs, ...superArgs }) {
|
|
374125
374127
|
const openapiSpecs = specs.filter((spec) => spec.type === "openapi" && spec.source.type === "openapi");
|
|
374126
374128
|
super({
|
|
@@ -374260,10 +374262,7 @@ var init_OSSWorkspace = __esm({
|
|
|
374260
374262
|
const specs = await this.getOpenAPISpecsCached({ context: context3 });
|
|
374261
374263
|
const documents = await this.loader.loadDocuments({ context: context3, specs });
|
|
374262
374264
|
let authOverrides = this.generatorsConfiguration?.api?.auth != null ? { ...this.generatorsConfiguration?.api } : void 0;
|
|
374263
|
-
|
|
374264
|
-
if (orphanedAuthSchemeWarning != null) {
|
|
374265
|
-
context3.logger.warn(orphanedAuthSchemeWarning);
|
|
374266
|
-
}
|
|
374265
|
+
this.warnOnOrphanedAuthSchemes(context3);
|
|
374267
374266
|
if (authOverrides == null) {
|
|
374268
374267
|
authOverrides = await getAuthFromOverrideFiles(specs);
|
|
374269
374268
|
}
|
|
@@ -374442,7 +374441,29 @@ var init_OSSWorkspace = __esm({
|
|
|
374442
374441
|
}
|
|
374443
374442
|
return results;
|
|
374444
374443
|
}
|
|
374444
|
+
/**
|
|
374445
|
+
* Emit the orphaned-`auth-schemes` warning, at most once per workspace.
|
|
374446
|
+
*
|
|
374447
|
+
* Called from BOTH `toFernWorkspace` and `getIntermediateRepresentation`,
|
|
374448
|
+
* because they are different entry points: `fern generate` and plain
|
|
374449
|
+
* `fern check` go through the former, and only `fern check --from-openapi`
|
|
374450
|
+
* reaches the latter (see `validateWorkspaces.ts`, where that branch is
|
|
374451
|
+
* gated on `directFromOpenapi`). Warning from only one of them meant the
|
|
374452
|
+
* customer who hits this bug — silently, on `fern generate` — saw nothing,
|
|
374453
|
+
* which is the entire failure mode.
|
|
374454
|
+
*/
|
|
374455
|
+
warnOnOrphanedAuthSchemes(context3) {
|
|
374456
|
+
if (this.hasWarnedOrphanedAuthSchemes) {
|
|
374457
|
+
return;
|
|
374458
|
+
}
|
|
374459
|
+
const warning = getOrphanedAuthSchemeWarning(this.generatorsConfiguration?.api);
|
|
374460
|
+
if (warning != null) {
|
|
374461
|
+
this.hasWarnedOrphanedAuthSchemes = true;
|
|
374462
|
+
context3.logger.warn(warning);
|
|
374463
|
+
}
|
|
374464
|
+
}
|
|
374445
374465
|
async toFernWorkspace({ context: context3 }, settings, specsOverride) {
|
|
374466
|
+
this.warnOnOrphanedAuthSchemes(context3);
|
|
374446
374467
|
if (specsOverride != null) {
|
|
374447
374468
|
return this.createWorkspaceWithSpecsOverride({ context: context3 }, specsOverride, settings);
|
|
374448
374469
|
}
|
|
@@ -705301,7 +705322,7 @@ var AccessTokenPosthogManager = class {
|
|
|
705301
705322
|
properties: {
|
|
705302
705323
|
...event,
|
|
705303
705324
|
...event.properties,
|
|
705304
|
-
version: "5.110.
|
|
705325
|
+
version: "5.110.1",
|
|
705305
705326
|
usingAccessToken: true,
|
|
705306
705327
|
...getRunIdProperties()
|
|
705307
705328
|
}
|
|
@@ -705367,7 +705388,7 @@ var UserPosthogManager = class {
|
|
|
705367
705388
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
705368
705389
|
event: "CLI",
|
|
705369
705390
|
properties: {
|
|
705370
|
-
version: "5.110.
|
|
705391
|
+
version: "5.110.1",
|
|
705371
705392
|
...event,
|
|
705372
705393
|
...event.properties,
|
|
705373
705394
|
usingAccessToken: false,
|
|
@@ -887041,7 +887062,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
887041
887062
|
var LOGS_FOLDER_NAME = "logs";
|
|
887042
887063
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
887043
887064
|
function getCliSource() {
|
|
887044
|
-
const version7 = "5.110.
|
|
887065
|
+
const version7 = "5.110.1";
|
|
887045
887066
|
return `cli@${version7}`;
|
|
887046
887067
|
}
|
|
887047
887068
|
var DebugLogger = class {
|
|
@@ -914005,7 +914026,7 @@ var LegacyDocsPublisher = class {
|
|
|
914005
914026
|
previewId,
|
|
914006
914027
|
disableTemplates: void 0,
|
|
914007
914028
|
skipUpload,
|
|
914008
|
-
cliVersion: "5.110.
|
|
914029
|
+
cliVersion: "5.110.1",
|
|
914009
914030
|
loginCommand: "fern auth login"
|
|
914010
914031
|
});
|
|
914011
914032
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -980925,7 +980946,7 @@ function getAutomationContextFromEnv() {
|
|
|
980925
980946
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
980926
980947
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
980927
980948
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
980928
|
-
cli_version: "5.110.
|
|
980949
|
+
cli_version: "5.110.1"
|
|
980929
980950
|
};
|
|
980930
980951
|
}
|
|
980931
980952
|
function isAutomationMode() {
|
|
@@ -981757,7 +981778,7 @@ var CliContext = class _CliContext {
|
|
|
981757
981778
|
if (false) {
|
|
981758
981779
|
this.logger.error("CLI_VERSION is not defined");
|
|
981759
981780
|
}
|
|
981760
|
-
return "5.110.
|
|
981781
|
+
return "5.110.1";
|
|
981761
981782
|
}
|
|
981762
981783
|
getCliName() {
|
|
981763
981784
|
if (false) {
|
package/package.json
CHANGED