@fern-api/fern-api-dev 5.120.1 → 5.120.3
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 +71 -47
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -706738,7 +706738,7 @@ var AccessTokenPosthogManager = class {
|
|
|
706738
706738
|
properties: {
|
|
706739
706739
|
...event,
|
|
706740
706740
|
...event.properties,
|
|
706741
|
-
version: "5.120.
|
|
706741
|
+
version: "5.120.3",
|
|
706742
706742
|
usingAccessToken: true,
|
|
706743
706743
|
...getRunIdProperties()
|
|
706744
706744
|
}
|
|
@@ -706804,7 +706804,7 @@ var UserPosthogManager = class {
|
|
|
706804
706804
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
706805
706805
|
event: "CLI",
|
|
706806
706806
|
properties: {
|
|
706807
|
-
version: "5.120.
|
|
706807
|
+
version: "5.120.3",
|
|
706808
706808
|
...event,
|
|
706809
706809
|
...event.properties,
|
|
706810
706810
|
usingAccessToken: false,
|
|
@@ -859817,6 +859817,43 @@ async function visitDocsConfigFileYamlAst({ contents, visitor, absoluteFilepathT
|
|
|
859817
859817
|
await visitor.file?.({
|
|
859818
859818
|
config: contents
|
|
859819
859819
|
}, []);
|
|
859820
|
+
const visitVersion = async ({ version: version7, product, nodePath }) => {
|
|
859821
|
+
await visitor.version?.({ version: version7 }, nodePath);
|
|
859822
|
+
if (version7.path == null) {
|
|
859823
|
+
return;
|
|
859824
|
+
}
|
|
859825
|
+
const versionPath = version7.path;
|
|
859826
|
+
await visitFilepath({
|
|
859827
|
+
absoluteFilepathToConfiguration,
|
|
859828
|
+
rawUnresolvedFilepath: versionPath,
|
|
859829
|
+
visitor,
|
|
859830
|
+
nodePath,
|
|
859831
|
+
willBeUploaded: false
|
|
859832
|
+
});
|
|
859833
|
+
const absoluteFilepath = resolve6(dirname6(absoluteFilepathToConfiguration), versionPath);
|
|
859834
|
+
if (!await doesPathExist(absoluteFilepath)) {
|
|
859835
|
+
return;
|
|
859836
|
+
}
|
|
859837
|
+
const content5 = index_vite_proxy_tmp_default.load((await (0, import_promises84.readFile)(absoluteFilepath)).toString());
|
|
859838
|
+
await visitor.versionFile?.({
|
|
859839
|
+
path: versionPath,
|
|
859840
|
+
content: content5,
|
|
859841
|
+
version: version7,
|
|
859842
|
+
product
|
|
859843
|
+
}, [versionPath]);
|
|
859844
|
+
const parsedVersionFile = await validateVersionConfigFileSchema({ value: content5 });
|
|
859845
|
+
if (parsedVersionFile.type === "success") {
|
|
859846
|
+
await visitNavigationAst2({
|
|
859847
|
+
absolutePathToFernFolder,
|
|
859848
|
+
navigation: parsedVersionFile.contents.navigation,
|
|
859849
|
+
visitor,
|
|
859850
|
+
nodePath: ["navigation"],
|
|
859851
|
+
absoluteFilepathToConfiguration: absoluteFilepath,
|
|
859852
|
+
apiWorkspaces,
|
|
859853
|
+
context: context3
|
|
859854
|
+
});
|
|
859855
|
+
}
|
|
859856
|
+
};
|
|
859820
859857
|
await visitObjectAsync(contents, {
|
|
859821
859858
|
instances: noop2,
|
|
859822
859859
|
analytics: noop2,
|
|
@@ -860041,9 +860078,18 @@ async function visitDocsConfigFileYamlAst({ contents, visitor, absoluteFilepathT
|
|
|
860041
860078
|
if (await doesPathExist(absoluteFilepath)) {
|
|
860042
860079
|
await visitor.productFile?.({
|
|
860043
860080
|
path: product.path,
|
|
860044
|
-
content: content5
|
|
860081
|
+
content: content5,
|
|
860082
|
+
product
|
|
860045
860083
|
}, [product.path]);
|
|
860046
860084
|
}
|
|
860085
|
+
if (product.versions != null && product.versions.length > 0) {
|
|
860086
|
+
await Promise.all(product.versions.map((version7, versionIdx) => visitVersion({
|
|
860087
|
+
version: version7,
|
|
860088
|
+
product,
|
|
860089
|
+
nodePath: ["products", `${idx}`, "versions", `${versionIdx}`]
|
|
860090
|
+
})));
|
|
860091
|
+
return;
|
|
860092
|
+
}
|
|
860047
860093
|
const parsedProductFile = await validateProductConfigFileSchema({ value: content5 });
|
|
860048
860094
|
if (parsedProductFile.type === "success") {
|
|
860049
860095
|
await visitNavigationAst2({
|
|
@@ -860112,40 +860158,7 @@ async function visitDocsConfigFileYamlAst({ contents, visitor, absoluteFilepathT
|
|
|
860112
860158
|
}
|
|
860113
860159
|
const versionsStart = performance.now();
|
|
860114
860160
|
context3.logger.debug(`[docs-ast] Processing ${versions.length} versions...`);
|
|
860115
|
-
await Promise.all(versions.map(
|
|
860116
|
-
await visitor.version?.({ version: version7 }, ["versions", `${idx}`]);
|
|
860117
|
-
if (version7.path == null) {
|
|
860118
|
-
return;
|
|
860119
|
-
}
|
|
860120
|
-
const versionPath = version7.path;
|
|
860121
|
-
await visitFilepath({
|
|
860122
|
-
absoluteFilepathToConfiguration,
|
|
860123
|
-
rawUnresolvedFilepath: versionPath,
|
|
860124
|
-
visitor,
|
|
860125
|
-
nodePath: ["versions", `${idx}`],
|
|
860126
|
-
willBeUploaded: false
|
|
860127
|
-
});
|
|
860128
|
-
const absoluteFilepath = resolve6(dirname6(absoluteFilepathToConfiguration), versionPath);
|
|
860129
|
-
const content5 = index_vite_proxy_tmp_default.load((await (0, import_promises84.readFile)(absoluteFilepath)).toString());
|
|
860130
|
-
if (await doesPathExist(absoluteFilepath)) {
|
|
860131
|
-
await visitor.versionFile?.({
|
|
860132
|
-
path: version7.path,
|
|
860133
|
-
content: content5
|
|
860134
|
-
}, [version7.path]);
|
|
860135
|
-
}
|
|
860136
|
-
const parsedVersionFile = await validateVersionConfigFileSchema({ value: content5 });
|
|
860137
|
-
if (parsedVersionFile.type === "success") {
|
|
860138
|
-
await visitNavigationAst2({
|
|
860139
|
-
absolutePathToFernFolder,
|
|
860140
|
-
navigation: parsedVersionFile.contents.navigation,
|
|
860141
|
-
visitor,
|
|
860142
|
-
nodePath: ["navigation"],
|
|
860143
|
-
absoluteFilepathToConfiguration: absoluteFilepath,
|
|
860144
|
-
apiWorkspaces,
|
|
860145
|
-
context: context3
|
|
860146
|
-
});
|
|
860147
|
-
}
|
|
860148
|
-
}));
|
|
860161
|
+
await Promise.all(versions.map((version7, idx) => visitVersion({ version: version7, nodePath: ["versions", `${idx}`] })));
|
|
860149
860162
|
context3.logger.debug(`[docs-ast] Versions processing complete in ${(performance.now() - versionsStart).toFixed(0)}ms`);
|
|
860150
860163
|
},
|
|
860151
860164
|
roles: noop2,
|
|
@@ -861482,27 +861495,38 @@ var ValidChangelogSlugRule = {
|
|
|
861482
861495
|
];
|
|
861483
861496
|
return violationsForLocations(locations);
|
|
861484
861497
|
},
|
|
861485
|
-
versionFile: async ({ path: path124, content: content5 }) => {
|
|
861498
|
+
versionFile: async ({ path: path124, content: content5, version: version7, product }) => {
|
|
861486
861499
|
const parseResult = await validateVersionConfigFileSchema({ value: content5 });
|
|
861487
861500
|
if (parseResult.type !== "success") {
|
|
861488
861501
|
return [];
|
|
861489
861502
|
}
|
|
861490
861503
|
const versionConfig = parseResult.contents;
|
|
861504
|
+
const versionSegments = [
|
|
861505
|
+
...product != null ? ancestorSlugSegments({ slug: product.slug, displayName: product.displayName }) : [],
|
|
861506
|
+
...ancestorSlugSegments({ slug: version7.slug, displayName: version7.displayName })
|
|
861507
|
+
];
|
|
861491
861508
|
const locations = [
|
|
861492
|
-
...collectFromNavigation(versionConfig.navigation, versionConfig.tabs, `version "${path124}" navigation`,
|
|
861493
|
-
...collectFromTabs(versionConfig.tabs, `version "${path124}" tabs`,
|
|
861509
|
+
...collectFromNavigation(versionConfig.navigation, versionConfig.tabs, `version "${path124}" navigation`, versionSegments),
|
|
861510
|
+
...collectFromTabs(versionConfig.tabs, `version "${path124}" tabs`, versionSegments)
|
|
861494
861511
|
];
|
|
861495
861512
|
return violationsForLocations(locations);
|
|
861496
861513
|
},
|
|
861497
|
-
productFile: async ({ path: path124, content: content5 }) => {
|
|
861514
|
+
productFile: async ({ path: path124, content: content5, product }) => {
|
|
861515
|
+
if (product.versions != null && product.versions.length > 0) {
|
|
861516
|
+
return [];
|
|
861517
|
+
}
|
|
861498
861518
|
const parseResult = await validateProductConfigFileSchema({ value: content5 });
|
|
861499
861519
|
if (parseResult.type !== "success") {
|
|
861500
861520
|
return [];
|
|
861501
861521
|
}
|
|
861502
861522
|
const productConfig = parseResult.contents;
|
|
861523
|
+
const productSegments = ancestorSlugSegments({
|
|
861524
|
+
slug: product.slug,
|
|
861525
|
+
displayName: product.displayName
|
|
861526
|
+
});
|
|
861503
861527
|
const locations = [
|
|
861504
|
-
...collectFromNavigation(productConfig.navigation, productConfig.tabs, `product "${path124}" navigation`,
|
|
861505
|
-
...collectFromTabs(productConfig.tabs, `product "${path124}" tabs`,
|
|
861528
|
+
...collectFromNavigation(productConfig.navigation, productConfig.tabs, `product "${path124}" navigation`, productSegments),
|
|
861529
|
+
...collectFromTabs(productConfig.tabs, `product "${path124}" tabs`, productSegments)
|
|
861506
861530
|
];
|
|
861507
861531
|
return violationsForLocations(locations);
|
|
861508
861532
|
}
|
|
@@ -888483,7 +888507,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
888483
888507
|
var LOGS_FOLDER_NAME = "logs";
|
|
888484
888508
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
888485
888509
|
function getCliSource() {
|
|
888486
|
-
const version7 = "5.120.
|
|
888510
|
+
const version7 = "5.120.3";
|
|
888487
888511
|
return `cli@${version7}`;
|
|
888488
888512
|
}
|
|
888489
888513
|
var DebugLogger = class {
|
|
@@ -915831,7 +915855,7 @@ var LegacyDocsPublisher = class {
|
|
|
915831
915855
|
previewId,
|
|
915832
915856
|
disableTemplates: void 0,
|
|
915833
915857
|
skipUpload,
|
|
915834
|
-
cliVersion: "5.120.
|
|
915858
|
+
cliVersion: "5.120.3",
|
|
915835
915859
|
loginCommand: "fern auth login"
|
|
915836
915860
|
});
|
|
915837
915861
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -983249,7 +983273,7 @@ function getAutomationContextFromEnv() {
|
|
|
983249
983273
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
983250
983274
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
983251
983275
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
983252
|
-
cli_version: "5.120.
|
|
983276
|
+
cli_version: "5.120.3"
|
|
983253
983277
|
};
|
|
983254
983278
|
}
|
|
983255
983279
|
function isAutomationMode() {
|
|
@@ -984081,7 +984105,7 @@ var CliContext = class _CliContext {
|
|
|
984081
984105
|
if (false) {
|
|
984082
984106
|
this.logger.error("CLI_VERSION is not defined");
|
|
984083
984107
|
}
|
|
984084
|
-
return "5.120.
|
|
984108
|
+
return "5.120.3";
|
|
984085
984109
|
}
|
|
984086
984110
|
getCliName() {
|
|
984087
984111
|
if (false) {
|
package/package.json
CHANGED