@fern-api/fern-api-dev 5.23.0 → 5.23.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 +34 -12
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -227089,7 +227089,7 @@ var require_cross_spawn = __commonJS({
|
|
|
227089
227089
|
enoent.hookChildProcess(spawned, parsed);
|
|
227090
227090
|
return spawned;
|
|
227091
227091
|
}
|
|
227092
|
-
function
|
|
227092
|
+
function spawnSync8(command3, args, options2) {
|
|
227093
227093
|
const parsed = parse19(command3, args, options2);
|
|
227094
227094
|
const result = cp11.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
227095
227095
|
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
@@ -227097,7 +227097,7 @@ var require_cross_spawn = __commonJS({
|
|
|
227097
227097
|
}
|
|
227098
227098
|
module4.exports = spawn7;
|
|
227099
227099
|
module4.exports.spawn = spawn7;
|
|
227100
|
-
module4.exports.sync =
|
|
227100
|
+
module4.exports.sync = spawnSync8;
|
|
227101
227101
|
module4.exports._parse = parse19;
|
|
227102
227102
|
module4.exports._enoent = enoent;
|
|
227103
227103
|
}
|
|
@@ -357072,7 +357072,7 @@ Patches absorbed by generator (${buckets.absorbed.length}):`;
|
|
|
357072
357072
|
var import_promises210 = require("fs/promises");
|
|
357073
357073
|
var import_node_os22 = require("os");
|
|
357074
357074
|
var import_node_path310 = require("path");
|
|
357075
|
-
var
|
|
357075
|
+
var import_node_child_process8 = require("child_process");
|
|
357076
357076
|
init_HybridReconstruction();
|
|
357077
357077
|
function normalizeHunkBody(hunk) {
|
|
357078
357078
|
let contextC = 0;
|
|
@@ -357293,7 +357293,7 @@ Patches absorbed by generator (${buckets.absorbed.length}):`;
|
|
|
357293
357293
|
}
|
|
357294
357294
|
function runGitDiffNoIndex(beforePath, afterPath) {
|
|
357295
357295
|
return new Promise((resolve22, reject) => {
|
|
357296
|
-
const proc2 = (0,
|
|
357296
|
+
const proc2 = (0, import_node_child_process8.spawn)("git", ["diff", "--no-index", "--", beforePath, afterPath]);
|
|
357297
357297
|
let stdout = "";
|
|
357298
357298
|
let stderr = "";
|
|
357299
357299
|
proc2.stdout.on("data", (d5) => stdout += d5.toString());
|
|
@@ -491552,6 +491552,9 @@ var require_undici2 = __commonJS({
|
|
|
491552
491552
|
}
|
|
491553
491553
|
});
|
|
491554
491554
|
|
|
491555
|
+
// src/cli.ts
|
|
491556
|
+
var import_node_child_process7 = require("child_process");
|
|
491557
|
+
|
|
491555
491558
|
// ../../../node_modules/.pnpm/@bufbuild+protobuf@2.2.5/node_modules/@bufbuild/protobuf/dist/esm/is-message.js
|
|
491556
491559
|
function isMessage(arg, schema2) {
|
|
491557
491560
|
const isMessage2 = arg !== null && typeof arg == "object" && "$typeName" in arg && typeof arg.$typeName == "string";
|
|
@@ -661751,7 +661754,7 @@ var AccessTokenPosthogManager = class {
|
|
|
661751
661754
|
properties: {
|
|
661752
661755
|
...event,
|
|
661753
661756
|
...event.properties,
|
|
661754
|
-
version: "5.23.
|
|
661757
|
+
version: "5.23.1",
|
|
661755
661758
|
usingAccessToken: true,
|
|
661756
661759
|
...getRunIdProperties()
|
|
661757
661760
|
}
|
|
@@ -661806,7 +661809,7 @@ var UserPosthogManager = class {
|
|
|
661806
661809
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
661807
661810
|
event: "CLI",
|
|
661808
661811
|
properties: {
|
|
661809
|
-
version: "5.23.
|
|
661812
|
+
version: "5.23.1",
|
|
661810
661813
|
...event,
|
|
661811
661814
|
...event.properties,
|
|
661812
661815
|
usingAccessToken: false,
|
|
@@ -853086,7 +853089,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
853086
853089
|
var LOGS_FOLDER_NAME = "logs";
|
|
853087
853090
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
853088
853091
|
function getCliSource() {
|
|
853089
|
-
const version7 = "5.23.
|
|
853092
|
+
const version7 = "5.23.1";
|
|
853090
853093
|
return `cli@${version7}`;
|
|
853091
853094
|
}
|
|
853092
853095
|
var DebugLogger = class {
|
|
@@ -853445,6 +853448,7 @@ var STANDALONE_FOLDER_NAME = "standalone";
|
|
|
853445
853448
|
var LOCAL_STORAGE_FOLDER5 = ".fern-dev";
|
|
853446
853449
|
var INSTRUMENTATION_PATH = "packages/fern-docs/bundle/.next/server/instrumentation.js";
|
|
853447
853450
|
var COREPACK_MISSING_KEYID_ERROR_MESSAGE = 'Cannot find matching keyid: {"signatures":';
|
|
853451
|
+
var PNPM_IGNORED_BUILDS_ERROR = "ERR_PNPM_IGNORED_BUILDS";
|
|
853448
853452
|
function assertLongPathsEnabled(logger4) {
|
|
853449
853453
|
try {
|
|
853450
853454
|
const output2 = (0, import_child_process6.execSync)('reg query "HKLM\\SYSTEM\\CurrentControlSet\\Control\\FileSystem" /v LongPathsEnabled', { encoding: "utf-8", timeout: 5e3 });
|
|
@@ -853797,7 +853801,9 @@ async function downloadBundle({ bucketUrl, logger: logger4, preferCached, app =
|
|
|
853797
853801
|
});
|
|
853798
853802
|
} catch (error50) {
|
|
853799
853803
|
if (error50 instanceof Error) {
|
|
853800
|
-
if (typeof error50?.message === "string" && error50.message.includes(
|
|
853804
|
+
if (typeof error50?.message === "string" && error50.message.includes(PNPM_IGNORED_BUILDS_ERROR)) {
|
|
853805
|
+
logger4.debug("pnpm blocked esbuild build scripts (ERR_PNPM_IGNORED_BUILDS) \u2014 continuing, install-esbuild.js will handle binary setup");
|
|
853806
|
+
} else if (typeof error50?.message === "string" && error50.message.includes(COREPACK_MISSING_KEYID_ERROR_MESSAGE)) {
|
|
853801
853807
|
logger4.debug("Detected corepack missing keyid error. Attempting to upgrade corepack");
|
|
853802
853808
|
try {
|
|
853803
853809
|
await loggingExeca(logger4, "npm", ["install", "-g", "corepack@latest"], {
|
|
@@ -855123,8 +855129,14 @@ ${err.stack}`);
|
|
|
855123
855129
|
}
|
|
855124
855130
|
await cleanFernDocsCache(bundleRoot, context3);
|
|
855125
855131
|
const polyfillPath = writeNodePolyfillScript(bundleRoot);
|
|
855132
|
+
const nodeMajor = parseInt(process.versions.node.split(".")[0] ?? "0", 10);
|
|
855133
|
+
const needsIoUringWorkaround = process.platform === "linux" && nodeMajor >= 26;
|
|
855134
|
+
if (needsIoUringWorkaround) {
|
|
855135
|
+
context3.logger.debug(`Node.js v${process.versions.node} on Linux detected \u2014 disabling io_uring to avoid libuv busy-loop`);
|
|
855136
|
+
}
|
|
855126
855137
|
const env5 = {
|
|
855127
855138
|
...process.env,
|
|
855139
|
+
...needsIoUringWorkaround ? { UV_USE_IO_URING: "0" } : {},
|
|
855128
855140
|
PORT: port.toString(),
|
|
855129
855141
|
HOSTNAME: "0.0.0.0",
|
|
855130
855142
|
NEXT_PUBLIC_FDR_ORIGIN_PORT: backendPort.toString(),
|
|
@@ -865901,7 +865913,7 @@ var LegacyDocsPublisher = class {
|
|
|
865901
865913
|
previewId,
|
|
865902
865914
|
disableTemplates: void 0,
|
|
865903
865915
|
skipUpload,
|
|
865904
|
-
cliVersion: "5.23.
|
|
865916
|
+
cliVersion: "5.23.1",
|
|
865905
865917
|
loginCommand: "fern auth login"
|
|
865906
865918
|
});
|
|
865907
865919
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -940646,7 +940658,7 @@ var CliContext = class _CliContext {
|
|
|
940646
940658
|
if (false) {
|
|
940647
940659
|
this.logger.error("CLI_VERSION is not defined");
|
|
940648
940660
|
}
|
|
940649
|
-
return "5.23.
|
|
940661
|
+
return "5.23.1";
|
|
940650
940662
|
}
|
|
940651
940663
|
getCliName() {
|
|
940652
940664
|
if (false) {
|
|
@@ -959919,6 +959931,16 @@ function evaluateRuntime4() {
|
|
|
959919
959931
|
}
|
|
959920
959932
|
|
|
959921
959933
|
// src/cli.ts
|
|
959934
|
+
if (process.platform === "linux" && parseInt(process.versions.node.split(".")[0] ?? "0", 10) >= 26 && process.env.UV_USE_IO_URING !== "0") {
|
|
959935
|
+
const result = (0, import_node_child_process7.spawnSync)(process.execPath, process.argv.slice(1), {
|
|
959936
|
+
env: { ...process.env, UV_USE_IO_URING: "0" },
|
|
959937
|
+
stdio: "inherit"
|
|
959938
|
+
});
|
|
959939
|
+
if (result.signal) {
|
|
959940
|
+
process.kill(process.pid, result.signal);
|
|
959941
|
+
}
|
|
959942
|
+
process.exit(result.status ?? 1);
|
|
959943
|
+
}
|
|
959922
959944
|
void runCli();
|
|
959923
959945
|
async function runCli() {
|
|
959924
959946
|
const isCompletion = process.argv.includes("--get-yargs-completions");
|
|
@@ -960240,9 +960262,9 @@ function addDiffCommand(cli, cliContext) {
|
|
|
960240
960262
|
const fromSize = fs28.statSync(fromPath, { throwIfNoEntry: false })?.size ?? 0;
|
|
960241
960263
|
const toSize = fs28.statSync(toPath4, { throwIfNoEntry: false })?.size ?? 0;
|
|
960242
960264
|
if (fromSize > ONE_GB || toSize > ONE_GB) {
|
|
960243
|
-
const { spawnSync:
|
|
960265
|
+
const { spawnSync: spawnSync8 } = await import("child_process");
|
|
960244
960266
|
const HEAP_SIZE_MB = 8192;
|
|
960245
|
-
const child =
|
|
960267
|
+
const child = spawnSync8(
|
|
960246
960268
|
process.execPath,
|
|
960247
960269
|
[`--max-old-space-size=${HEAP_SIZE_MB}`, ...process.execArgv, ...process.argv.slice(1)],
|
|
960248
960270
|
{
|
package/package.json
CHANGED