@fern-api/fern-api-dev 4.71.5-14-g00c61650782 → 4.71.5-4-g9eef2a61c61

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 +46 -62
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -621394,7 +621394,7 @@ var AccessTokenPosthogManager = class {
621394
621394
  properties: {
621395
621395
  ...event,
621396
621396
  ...event.properties,
621397
- version: "4.71.5-14-g00c61650782",
621397
+ version: "4.71.5-4-g9eef2a61c61",
621398
621398
  usingAccessToken: true
621399
621399
  }
621400
621400
  });
@@ -621448,7 +621448,7 @@ var UserPosthogManager = class {
621448
621448
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
621449
621449
  event: "CLI",
621450
621450
  properties: {
621451
- version: "4.71.5-14-g00c61650782",
621451
+ version: "4.71.5-4-g9eef2a61c61",
621452
621452
  ...event,
621453
621453
  ...event.properties,
621454
621454
  usingAccessToken: false,
@@ -838547,7 +838547,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
838547
838547
  var LOGS_FOLDER_NAME = "logs";
838548
838548
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
838549
838549
  function getCliSource() {
838550
- const version7 = "4.71.5-14-g00c61650782";
838550
+ const version7 = "4.71.5-4-g9eef2a61c61";
838551
838551
  return `cli@${version7}`;
838552
838552
  }
838553
838553
  var DebugLogger = class {
@@ -849794,7 +849794,7 @@ var LegacyDocsPublisher = class {
849794
849794
  previewId,
849795
849795
  disableTemplates: void 0,
849796
849796
  skipUpload,
849797
- cliVersion: "4.71.5-14-g00c61650782"
849797
+ cliVersion: "4.71.5-4-g9eef2a61c61"
849798
849798
  });
849799
849799
  if (taskContext.getResult() === TaskResult.Failure) {
849800
849800
  return { success: false };
@@ -924147,7 +924147,7 @@ var CliContext = class _CliContext {
924147
924147
  if (false) {
924148
924148
  this.logger.error("CLI_VERSION is not defined");
924149
924149
  }
924150
- return "4.71.5-14-g00c61650782";
924150
+ return "4.71.5-4-g9eef2a61c61";
924151
924151
  }
924152
924152
  getCliName() {
924153
924153
  if (false) {
@@ -926752,39 +926752,8 @@ function renderDocstringExamples(docstring, lines, renderCodeBlock2) {
926752
926752
  lines.push("");
926753
926753
  }
926754
926754
  }
926755
- var SAFE_TAG_PATTERN = /<(\/?)(?:sub|sup|br|em|strong|code)(\s[^>]*)?\/?>/gi;
926756
- function protectSafeTags(text9) {
926757
- const tags = [];
926758
- const replaced = text9.replace(SAFE_TAG_PATTERN, (match3) => {
926759
- const placeholder = `\0SAFE${tags.length}\0`;
926760
- tags.push(match3);
926761
- return placeholder;
926762
- });
926763
- return { text: replaced, tags };
926764
- }
926765
- function restoreSafeTags(text9, tags) {
926766
- let result = text9;
926767
- for (let i11 = 0; i11 < tags.length; i11++) {
926768
- const tag2 = tags[i11];
926769
- if (tag2 != null) {
926770
- result = result.replace(`\0SAFE${i11}\0`, tag2);
926771
- }
926772
- }
926773
- return result;
926774
- }
926775
- function escapeMdxText(text9) {
926776
- return text9.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\{/g, "&#123;").replace(/\}/g, "&#125;");
926777
- }
926778
926755
  function escapeTableCell(content5) {
926779
- const parts = content5.split(/(``[^`]*``|`[^`]*`)/);
926780
- return parts.map((part, i11) => {
926781
- if (i11 % 2 === 1) {
926782
- return part.replace(/\|/g, "\\|").replace(/\n/g, " ");
926783
- }
926784
- const protected_ = protectSafeTags(part);
926785
- const escaped = protected_.text.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\{/g, "&#123;").replace(/\}/g, "&#125;").replace(/\|/g, "\\|").replace(/\n/g, " ");
926786
- return restoreSafeTags(escaped, protected_.tags);
926787
- }).join("");
926756
+ return content5.replace(/\|/g, "\\|");
926788
926757
  }
926789
926758
 
926790
926759
  // ../library-docs-generator/lib/cpp/src/renderers/BadgeRenderer.js
@@ -927020,9 +926989,18 @@ function escapeRemainingMdxSpecials(text9) {
927020
926989
  if (i11 % 2 === 1) {
927021
926990
  return part;
927022
926991
  }
927023
- const protected_ = protectSafeTags(part);
927024
- const escaped = protected_.text.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\{/g, "&#123;").replace(/\}/g, "&#125;");
927025
- return restoreSafeTags(escaped, protected_.tags);
926992
+ const safeTags = [];
926993
+ let escaped = part;
926994
+ escaped = escaped.replace(/<(\/?)(?:sub|sup|br|em|strong|code)(\s[^>]*)?\/?>/gi, (match3) => {
926995
+ const placeholder = `\0SAFE${safeTags.length}\0`;
926996
+ safeTags.push({ placeholder, original: match3 });
926997
+ return placeholder;
926998
+ });
926999
+ escaped = escaped.replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\{/g, "&#123;").replace(/\}/g, "&#125;");
927000
+ for (const { placeholder, original } of safeTags) {
927001
+ escaped = escaped.replace(placeholder, original);
927002
+ }
927003
+ return escaped;
927026
927004
  }).join("");
927027
927005
  }
927028
927006
  function escapeMultilineMdxSpecials(text9) {
@@ -927125,9 +927103,9 @@ function renderBlock(block2, options2) {
927125
927103
  if (block2.title) {
927126
927104
  if (options2?.titledSectionHeadingLevel) {
927127
927105
  const hashes = "#".repeat(options2.titledSectionHeadingLevel);
927128
- lines.push(`${hashes} ${escapeMdxText(block2.title)}`);
927106
+ lines.push(`${hashes} ${block2.title}`);
927129
927107
  } else {
927130
- lines.push(`**${escapeMdxText(block2.title)}**`);
927108
+ lines.push(`**${block2.title}**`);
927131
927109
  }
927132
927110
  lines.push("");
927133
927111
  }
@@ -927777,6 +927755,9 @@ function findParamDescription(name2, docstring) {
927777
927755
  }
927778
927756
 
927779
927757
  // ../library-docs-generator/lib/cpp/src/renderers/MethodRenderer.js
927758
+ function escapeNameForHeading(name2) {
927759
+ return name2.replace(/</g, "&lt;");
927760
+ }
927780
927761
  function methodAnchorId(name2) {
927781
927762
  for (const [symbol3, safeName] of OPERATOR_SYMBOL_MAP) {
927782
927763
  if (name2 === symbol3) {
@@ -928403,7 +928384,7 @@ function renderSingleMethod(func2, ownerClass, ctx, options2) {
928403
928384
  return renderMethodContent(func2, ownerClass, ctx);
928404
928385
  }
928405
928386
  const lines = [];
928406
- const displayName = escapeMdxText(func2.name);
928387
+ const displayName = escapeNameForHeading(func2.name);
928407
928388
  lines.push(`### ${displayName} [#${methodAnchorId(func2.name)}]`);
928408
928389
  lines.push("");
928409
928390
  const content5 = renderMethodContent(func2, ownerClass, ctx);
@@ -928492,7 +928473,7 @@ function renderOverloadedMethod(funcs, ownerClass, ctx, options2 = {}) {
928492
928473
  return renderSingleMethod(nonDeletedFuncs[0], ownerClass, ctx, { skipHeading: options2.skipHeading });
928493
928474
  }
928494
928475
  const lines = [];
928495
- const displayName = escapeMdxText(funcs[0]?.name ?? "");
928476
+ const displayName = escapeNameForHeading(funcs[0]?.name ?? "");
928496
928477
  const commonQuals = getCommonQualifiers(funcs);
928497
928478
  if (!options2.skipHeading) {
928498
928479
  lines.push(`### ${displayName} [#${methodAnchorId(funcs[0]?.name ?? "")}]`);
@@ -928575,7 +928556,7 @@ function renderDestructor(func2, ownerClass, ctx) {
928575
928556
  const className = getShortName(ownerClass.path);
928576
928557
  lines.push("### Destructor [#destructor]");
928577
928558
  lines.push("");
928578
- lines.push(`### ~${escapeMdxText(className)}`);
928559
+ lines.push(`### ~${className}`);
928579
928560
  lines.push("");
928580
928561
  const content5 = renderMethodContent(func2, ownerClass, ctx);
928581
928562
  lines.push(content5);
@@ -928595,6 +928576,9 @@ function groupFunctionsByName(funcs) {
928595
928576
  }
928596
928577
 
928597
928578
  // ../library-docs-generator/lib/cpp/src/renderers/TableRenderer.js
928579
+ function escapeTableCell2(value) {
928580
+ return value.replace(/\|/g, "\\|").replace(/\n/g, " ");
928581
+ }
928598
928582
  function renderTypedefTable(typedefs) {
928599
928583
  if (typedefs.length === 0) {
928600
928584
  return "";
@@ -928613,8 +928597,8 @@ function renderTypedefTable(typedefs) {
928613
928597
  for (const td of typedefs) {
928614
928598
  const name2 = `\`${td.name}\``;
928615
928599
  const defDisplay = td.typeInfo ? renderTypeInfoDisplay(td.typeInfo) : "";
928616
- const definition3 = defDisplay ? escapeTableCell(`\`${defDisplay}\``) : "";
928617
- const description = td.docstring ? escapeTableCell(renderSegmentsTrimmed(td.docstring.summary)) : "";
928600
+ const definition3 = defDisplay ? escapeTableCell2(`\`${defDisplay}\``) : "";
928601
+ const description = td.docstring ? escapeTableCell2(renderSegmentsTrimmed(td.docstring.summary)) : "";
928618
928602
  const descCell = description ? ` ${description} ` : " ";
928619
928603
  lines.push(`| ${name2} | ${definition3} |${descCell}|`);
928620
928604
  }
@@ -928624,7 +928608,7 @@ function renderTypedefTable(typedefs) {
928624
928608
  for (const td of typedefs) {
928625
928609
  const name2 = `\`${td.name}\``;
928626
928610
  const defDisplay = td.typeInfo ? renderTypeInfoDisplay(td.typeInfo) : "";
928627
- const definition3 = defDisplay ? escapeTableCell(`\`${defDisplay}\``) : "";
928611
+ const definition3 = defDisplay ? escapeTableCell2(`\`${defDisplay}\``) : "";
928628
928612
  lines.push(`| ${name2} | ${definition3} |`);
928629
928613
  }
928630
928614
  }
@@ -928641,8 +928625,8 @@ function renderMemberVariableTable(variables, ownerPath) {
928641
928625
  const badges = getVariableBadges(v23);
928642
928626
  const badgeStr = badges.length > 0 ? " " + badges.map((b19) => renderBadge(b19)).join(" ") : "";
928643
928627
  const name2 = `\`${v23.name}\`${badgeStr}`;
928644
- const typeStr = v23.typeInfo ? escapeTableCell(renderTypeInfoForTable(v23.typeInfo, ownerPath)) : "";
928645
- const description = v23.docstring ? escapeTableCell(renderSegmentsTrimmed(v23.docstring.summary)) : "";
928628
+ const typeStr = v23.typeInfo ? escapeTableCell2(renderTypeInfoForTable(v23.typeInfo, ownerPath)) : "";
928629
+ const description = v23.docstring ? escapeTableCell2(renderSegmentsTrimmed(v23.docstring.summary)) : "";
928646
928630
  const descCell = description ? ` ${description} ` : " ";
928647
928631
  lines.push(`| ${name2} | ${typeStr} |${descCell}|`);
928648
928632
  }
@@ -928650,7 +928634,7 @@ function renderMemberVariableTable(variables, ownerPath) {
928650
928634
  }
928651
928635
  function renderInnerClass(innerClass, ownerPath) {
928652
928636
  const lines = [];
928653
- lines.push(`### ${escapeMdxText(innerClass.name)}`);
928637
+ lines.push(`### ${innerClass.name}`);
928654
928638
  lines.push("");
928655
928639
  const kindKeyword = innerClass.kind === "class" ? "class" : "struct";
928656
928640
  const sig = `${kindKeyword} ${innerClass.path}`;
@@ -928718,11 +928702,11 @@ function renderRelatedConceptsTable(seeAlso) {
928718
928702
  }
928719
928703
  const linkMatch = text9.match(/^(\[.*?\]\(.*?\))\s+(.*)/);
928720
928704
  if (linkMatch && linkMatch[1] != null && linkMatch[2] != null) {
928721
- const concept = escapeTableCell(linkMatch[1]);
928722
- const desc = escapeTableCell(linkMatch[2]);
928705
+ const concept = escapeTableCell2(linkMatch[1]);
928706
+ const desc = escapeTableCell2(linkMatch[2]);
928723
928707
  lines.push(`| ${concept} | ${desc} |`);
928724
928708
  } else {
928725
- lines.push(`| ${escapeTableCell(text9)} | |`);
928709
+ lines.push(`| ${escapeTableCell2(text9)} | |`);
928726
928710
  }
928727
928711
  }
928728
928712
  return lines.join("\n");
@@ -928732,7 +928716,7 @@ function renderEnum(enumIr) {
928732
928716
  return "";
928733
928717
  }
928734
928718
  const lines = [];
928735
- lines.push(`### ${escapeMdxText(enumIr.name)}`);
928719
+ lines.push(`### ${enumIr.name}`);
928736
928720
  lines.push("");
928737
928721
  if (enumIr.docstring) {
928738
928722
  const summary = renderSegmentsTrimmed(enumIr.docstring.summary);
@@ -928745,8 +928729,8 @@ function renderEnum(enumIr) {
928745
928729
  lines.push("|---|---|---|");
928746
928730
  for (const val of enumIr.values) {
928747
928731
  const name2 = `\`${val.name}\``;
928748
- const value = val.initializer ? escapeTableCell(`\`${val.initializer}\``) : "";
928749
- const desc = val.docstring ? escapeTableCell(renderSegmentsTrimmed(val.docstring.summary)) : "";
928732
+ const value = val.initializer ? escapeTableCell2(val.initializer) : "";
928733
+ const desc = val.docstring ? escapeTableCell2(renderSegmentsTrimmed(val.docstring.summary)) : "";
928750
928734
  const valueCell = value ? ` ${value} ` : " ";
928751
928735
  const descCell = desc ? ` ${desc} ` : " ";
928752
928736
  lines.push(`| ${name2} |${valueCell}|${descCell}|`);
@@ -929003,7 +928987,7 @@ function categorizeMethodSections(cls) {
929003
928987
  }
929004
928988
  function renderMethodSection(label, methods, cls, ctx) {
929005
928989
  const lines = [];
929006
- lines.push(`## ${escapeMdxText(label)}`);
928990
+ lines.push(`## ${label}`);
929007
928991
  lines.push("");
929008
928992
  const groups2 = groupFunctionsByName(methods);
929009
928993
  const groupEntries = Array.from(groups2.entries());
@@ -929343,7 +929327,7 @@ function renderValuesTable(values2) {
929343
929327
  function renderValuesExpanded(values2) {
929344
929328
  const sections = [];
929345
929329
  for (const v23 of values2) {
929346
- sections.push(`### ${escapeMdxText(v23.name)}`);
929330
+ sections.push(`### ${v23.name}`);
929347
929331
  sections.push("");
929348
929332
  if (v23.docstring?.summary) {
929349
929333
  const summary = renderSegmentsTrimmed(v23.docstring.summary);
@@ -930142,7 +930126,7 @@ function createFrontmatter(slug, title3) {
930142
930126
  parts.push("---");
930143
930127
  return parts.join("\n");
930144
930128
  }
930145
- function escapeTableCell2(text9) {
930129
+ function escapeTableCell3(text9) {
930146
930130
  return escapeJsxChars(text9.replace(/\|/g, "\\|").replace(/\n/g, " "));
930147
930131
  }
930148
930132
 
@@ -930735,7 +930719,7 @@ function renderModulePage(module4, ctx, parentPath = "") {
930735
930719
  lines.push("### Classes", "", "| Name | Description |", "|------|-------------|");
930736
930720
  for (const cls of module4.classes) {
930737
930721
  const anchorId = generateAnchorId(cls.path);
930738
- const description = cls.docstring?.summary ? escapeTableCell2(cls.docstring.summary) : "-";
930722
+ const description = cls.docstring?.summary ? escapeTableCell3(cls.docstring.summary) : "-";
930739
930723
  lines.push(`| [\`${cls.name}\`](#${anchorId}) | ${description} |`);
930740
930724
  }
930741
930725
  lines.push("");
@@ -930744,7 +930728,7 @@ function renderModulePage(module4, ctx, parentPath = "") {
930744
930728
  lines.push("### Functions", "", "| Name | Description |", "|------|-------------|");
930745
930729
  for (const func2 of module4.functions) {
930746
930730
  const anchorId = generateAnchorId(func2.path);
930747
- const description = func2.docstring?.summary ? escapeTableCell2(func2.docstring.summary) : "-";
930731
+ const description = func2.docstring?.summary ? escapeTableCell3(func2.docstring.summary) : "-";
930748
930732
  lines.push(`| [\`${func2.name}\`](#${anchorId}) | ${description} |`);
930749
930733
  }
930750
930734
  lines.push("");
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.71.5-14-g00c61650782",
2
+ "version": "4.71.5-4-g9eef2a61c61",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",