TypeScript
perf(mobile): bound streaming markdown cache and pending work (#24263)
Julius Marmingeba006f2dfa68
diff --git a/apps/mobile/deps/README.md b/apps/mobile/deps/README.mdindex f9af134ff22..46b0539e5c9 100644--- a/apps/mobile/deps/README.md+++ b/apps/mobile/deps/README.md@@ -1,3 +1,3 @@-The Enriched Markdown tarball comes from Julius's [`fork/t3-mobile` branch](https://github.com/pingdotgg/enriched-markdown/tree/fork/t3-mobile). Its `t3-fork.json` records the exact source commit and upstream base. React block renderers and signed image sources (`renderers`, `resolveImageSource`) are upstream. The fork carries only changes with an open upstream PR: the `onLinksChange` link list that link pills and iOS link menus read ([#1088](https://github.com/software-mansion/enriched-markdown/pull/1088)), Android inline image alignment ([#1089](https://github.com/software-mansion/enriched-markdown/pull/1089)), clipboard link metadata ([#962](https://github.com/software-mansion/enriched-markdown/pull/962)), and development-host autolinks ([#961](https://github.com/software-mansion/enriched-markdown/pull/961)).+The Enriched Markdown tarball comes from Julius's [`fork/t3-mobile` branch](https://github.com/pingdotgg/enriched-markdown/tree/fork/t3-mobile). Its `t3-fork.json` records the exact source commit and upstream base. React block renderers and signed image sources (`renderers`, `resolveImageSource`) are upstream. The fork carries native streaming memory bounds (an 8 MiB measurement-key budget and coalesced pending renders), plus changes with an open upstream PR: the `onLinksChange` link list that link pills and iOS link menus read ([#1088](https://github.com/software-mansion/enriched-markdown/pull/1088)), Android inline image alignment ([#1089](https://github.com/software-mansion/enriched-markdown/pull/1089)), clipboard link metadata ([#962](https://github.com/software-mansion/enriched-markdown/pull/962)), and development-host autolinks ([#961](https://github.com/software-mansion/enriched-markdown/pull/961)).To replace it, commit the fork changes, run `yarn install --immutable` and `yarn workspace react-native-enriched-markdown prepare` in the fork checkout, then `node scripts/pack-t3.mjs /path/to/t3code/apps/mobile/deps`. Keep the package version aligned with Julius's `fork/t3-mobile` branch. Rename the archive to include the first eight characters of the source commit, such as `react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz`, so each build has a distinct dependency path without version bumps. Update the tarball path in `apps/mobile/package.json` and `pnpm-workspace.yaml`'s `allowBuilds`, and run `vp i` to update the lockfile. Native clients need rebuilding when this dependency changes.diff --git a/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgz b/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgznew file mode 100644index 00000000000..3cf77c4adf9Binary files /dev/null and b/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgz differdiff --git a/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz b/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgzdeleted file mode 100644index 1dc70ba39f3..00000000000Binary files a/apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz and /dev/null differdiff --git a/apps/mobile/package.json b/apps/mobile/package.jsonindex 2206592f5b2..b595178d8d3 100644--- a/apps/mobile/package.json+++ b/apps/mobile/package.json@@ -126,7 +126,7 @@"react-dom": "catalog:","react-native": "0.88.0","react-native-blob-util": "0.25.1",- "react-native-enriched-markdown": "file:deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz",+ "react-native-enriched-markdown": "file:deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgz","react-native-gesture-handler": "~3.3.0","react-native-image-viewing": "^0.2.2","react-native-keyboard-controller": "1.22.7",diff --git a/apps/mobile/src/lib/markdownDocument.ts b/apps/mobile/src/lib/markdownDocument.tsindex 91c447401ca..af8fe2d02a1 100644--- a/apps/mobile/src/lib/markdownDocument.ts+++ b/apps/mobile/src/lib/markdownDocument.ts@@ -6,6 +6,25 @@ import remarkGfm from "remark-gfm";const parser = unified().use(remarkParse).use(remarkGfm);export type MarkdownNode = Root | RootContent;+interface MarkdownEdit {+ readonly start: number;+ readonly end: number;+ readonly content: string;+}++function applyMarkdownEdits(markdown: string, edits: MarkdownEdit[]): string {+ if (edits.length === 0) return markdown;+ const parts: string[] = [];+ let offset = 0;+ // AST traversal emits disjoint edits in source order.+ for (const edit of edits) {+ parts.push(markdown.slice(offset, edit.start), edit.content);+ offset = edit.end;+ }+ parts.push(markdown.slice(offset));+ return parts.join("");+}+function decodeCodePoint(codePoint: number, entity: string): string {if (!Number.isInteger(codePoint) || codePoint < 0 || codePoint > 0x10ffff) {return entity;@@ -261,35 +280,82 @@ export function markdownWithHtml(markdown: string): string {return markdown;}-const INLINE_CODE_SPAN = /`+([^`\r\n]+)`+/g;+// Start only at the beginning of a backtick run to avoid retrying every suffix.+const INLINE_CODE_SPAN = /(?<!`)`+([^`\r\n]+)`+/g;export function markdownWithInlineFileLinks(markdown: string, fileLink: RegExp): string {- if (![...markdown.matchAll(INLINE_CODE_SPAN)].some(([, code]) => fileLink.test(code!.trim())))- return markdown;- const edits: Array<{ start: number; end: number; content: string }> = [];+ return transformNativeMarkdown(markdown, fileLink, false);+}++function transformNativeMarkdown(+ markdown: string,+ fileLink: RegExp | undefined,+ tableBreaks: boolean,+): string {+ const breakTables = tableBreaks && mayHaveTableUnderText(markdown);+ let linkFiles = false;+ if (fileLink) {+ for (const [, code] of markdown.matchAll(INLINE_CODE_SPAN)) {+ if (fileLink.test(code!.trim())) {+ linkFiles = true;+ break;+ }+ }+ }+ if (!linkFiles && !breakTables) return markdown;+ const edits: MarkdownEdit[] = [];+ const fileEdits: MarkdownEdit[] = [];+ let rewritesPipe = false;const visit = (node: MarkdownNode) => {- if (node.type === "inlineCode") {+ if (linkFiles && node.type === "inlineCode") {const start = node.position?.start.offset;const end = node.position?.end.offset;const escaped = node.value.replace(/[\\[\]&]/g, "\\$&");if (start !== undefined &&end !== undefined &&- fileLink.test(node.value) &&+ fileLink?.test(node.value) &&!/[<>]/.test(node.value)- )- edits.push({+ ) {+ const edit = {start,end,content: `[${escaped}](<${escaped}>)`,- });+ };+ edits.push(edit);+ fileEdits.push(edit);+ if (node.value.includes("|")) rewritesPipe = true;+ }} else if (node.type !== "link" && node.type !== "linkReference" && "children" in node)- node.children.forEach(visit);+ node.children.forEach((child, index) => {+ const previous = node.children[index - 1];+ const start = child.position?.start;+ if (+ breakTables &&+ child.type === "table" &&+ previous?.type === "paragraph" &&+ start?.offset !== undefined &&+ previous.position?.end.line === start.line - 1+ ) {+ let lineStart = start.offset;+ while (lineStart > 0 && !/[\r\n]/.test(markdown[lineStart - 1]!)) lineStart -= 1;+ // Replace only the container prefix, leaving cell edits disjoint from the table break.+ const [, header = "", , ending = "\n", markers = ""] =+ /^([ \t>]*)([^\r\n]*)(\r\n|\r|\n)([ \t>]*)/.exec(markdown.slice(lineStart)) ?? [];+ edits.push({+ start: lineStart,+ end: lineStart + header.length,+ content: `${markers.trimEnd()}${ending}${markers}`,+ });+ }+ visit(child);+ });};visit(parser.parse(markdown));- for (const edit of edits.reverse())- markdown = markdown.slice(0, edit.start) + edit.content + markdown.slice(edit.end);- return markdown;+ // Rewritten pipes can change table structure, so preserve the original pass ordering.+ if (breakTables && rewritesPipe)+ return markdownWithTableBreaks(applyMarkdownEdits(markdown, fileEdits));+ return applyMarkdownEdits(markdown, edits);}// A delimiter row such as `|---|:--:|`, possibly inside a blockquote or list item.@@ -313,45 +379,18 @@ function mayHaveTableUnderText(markdown: string): boolean {/** md4c starts tables only at paragraph starts; insert breaks to match GFM. */export function markdownWithTableBreaks(markdown: string): string {- if (!mayHaveTableUnderText(markdown)) return markdown;- const lineStarts: number[] = [];- const visit = (node: MarkdownNode) => {- if (!("children" in node)) return;- node.children.forEach((child, index) => {- const previous = node.children[index - 1];- const start = child.position?.start;- if (- child.type === "table" &&- previous?.type === "paragraph" &&- start?.offset !== undefined &&- previous.position?.end.line === start.line - 1- )- lineStarts.push(- Math.max(- markdown.lastIndexOf("\n", start.offset - 1),- markdown.lastIndexOf("\r", start.offset - 1),- ) + 1,- );- visit(child);- });- };- visit(parser.parse(markdown));- for (const lineStart of lineStarts.reverse()) {- // Lazy headers can lack container markers; copy the delimiter's markers to the header and blank line.- const [, header = "", cells = "", ending = "\n", markers = ""] =- /^([ \t>]*)([^\r\n]*)(\r\n|\r|\n)([ \t>]*)/.exec(markdown.slice(lineStart)) ?? [];- markdown =- markdown.slice(0, lineStart) +- `${markers.trimEnd()}${ending}${markers}${cells}` +- markdown.slice(lineStart + header.length + cells.length);- }- return markdown;+ return transformNativeMarkdown(markdown, undefined, true);}export function parseMarkdownDocument(markdown: string): Root {return parser.parse(markdownWithHtml(markdown));}+export function markdownForNativeRendering(markdown: string, fileLink: RegExp): string {+ // HTML wrappers can expose Markdown that wasn't in the first AST, so normalize them first.+ return transformNativeMarkdown(markdownWithHtml(markdown), fileLink, true);+}+/** Native media slots only cover standalone images; nested file embeds must become links. */export function markdownWithFileEmbeds(markdown: string,diff --git a/apps/mobile/src/lib/markdownInlineFileLinks.test.ts b/apps/mobile/src/lib/markdownInlineFileLinks.test.tsindex fe9cddb2938..540ce6b8901 100644--- a/apps/mobile/src/lib/markdownInlineFileLinks.test.ts+++ b/apps/mobile/src/lib/markdownInlineFileLinks.test.ts@@ -1,11 +1,74 @@import { describe, expect, it } from "vite-plus/test";+import { unified } from "unified";+import remarkParse from "remark-parse";+import remarkGfm from "remark-gfm";+import type { Root, RootContent } from "mdast";import { ENRICHED_INLINE_FILE_LINK_REGEX } from "./enrichedLinkPresentation";-import { markdownWithInlineFileLinks, parseMarkdownDocument } from "./markdownDocument";+import {+ markdownForNativeRendering,+ markdownWithInlineFileLinks,+ parseMarkdownDocument,+ markdownWithHtml,+} from "./markdownDocument";const rewrite = (markdown: string) =>markdownWithInlineFileLinks(markdown, ENRICHED_INLINE_FILE_LINK_REGEX);describe("inline code that names a file", () => {+ it.each([+ [+ "file links",+ "See `src/math.ts:2`, `C:\\repo\\a.ts`, `./src/a©.ts`, and [`./README.md`](readme).",+ ],+ [+ "tables",+ "Intro `src/math.ts:2`\n| `./README.md` | Fit |\n|---|---|\n| `./a.ts` | A |\n\nMore\n| a |\n|---|\n| b |",+ ],+ ["escaped pipe in file header", "Intro text\n| `./a\\|b.ts` | c |\n|---|---|\n| a | b |"],+ ["escaped pipe in file body", "Intro text\n| a | c |\n|---|---|\n| `./a\\|b.ts` | b |"],+ [+ "escaped pipe after a normal file span",+ "Intro `./normal.ts`\n| `./a\\|b.ts` | c |\n|---|---|\n| a | b |",+ ],+ [+ "unmatched delimiter before escaped pipe in header",+ "Intro `./normal.ts`\n| `x``./a\\|b.ts`` | c |\n|---|---|\n|a|b|",+ ],+ [+ "unmatched delimiter before escaped pipe in body",+ "Intro `./normal.ts`\n| a | c |\n|---|---|\n| `x``./a\\|b.ts`` | b |",+ ],+ ["tabbed quote header", ">\tIntro `./a.ts`\n>\t| `./b.ts` | c |\n>\t|---|---|\n>\t| a | b |"],+ ["lazy quote header", "> Intro\n`./README.md` | file\n> | - | - |\n> | ok | yes |"],+ ["lazy list header", "- Intro\n`./README.md` | file\n | - | - |\n | ok | yes |"],+ [+ "HTML",+ '<details>\n<summary>Files</summary>\n\nSee `src/math.ts:2`\n| `./README.md` |\n|---|\n| ok |\n<img alt="A & B" src="https://example.com/a.png?a=1&b=2">\n</details>',+ ],+ [+ "nested fences",+ '> - Example\n> ````md\n> ```ts\n> `src/math.ts:2`\n> <img src="literal.png">\n> | a |\n> |---|\n> ```\n> ````\n\nSee `./README.md`.',+ ],+ [+ "HTML fences",+ '<details>\n<summary>Example</summary>\n\n````md\n```html\n<img src="literal.png">\n```\n`src/math.ts`\n````\n\nSee `./README.md`\n</details>',+ ],+ ])("preserves the two-pass output for every streamed prefix: %s", (_name, fixture) => {+ for (const ending of ["\n", "\r\n", "\r"]) {+ const document = fixture.replaceAll("\n", ending);+ for (let length = 0; length <= document.length; length++) {+ const prefix = document.slice(0, length);+ const expected = previousTableBreaks(+ previousFileLinks(markdownWithHtml(prefix), ENRICHED_INLINE_FILE_LINK_REGEX),+ );+ expect(+ markdownForNativeRendering(prefix, ENRICHED_INLINE_FILE_LINK_REGEX),+ JSON.stringify(prefix),+ ).toBe(expected);+ }+ }+ });+it("becomes a link to the same path", () => {expect(rewrite("See `src/math.ts:2` and `./README.md`.")).toBe("See [src/math.ts:2](<src/math.ts:2>) and [./README.md](<./README.md>).",@@ -33,3 +96,99 @@ describe("inline code that names a file", () => {}});});++// Freeze the pre-optimization passes so shared transform regressions cannot change the oracle.+const parser = unified().use(remarkParse).use(remarkGfm);+type MarkdownNode = Root | RootContent;+const INLINE_CODE_SPAN = /`+([^`\r\n]+)`+/g;++function previousFileLinks(markdown: string, fileLink: RegExp): string {+ if (![...markdown.matchAll(INLINE_CODE_SPAN)].some(([, code]) => fileLink.test(code!.trim())))+ return markdown;+ const edits: Array<{ start: number; end: number; content: string }> = [];+ const visit = (node: MarkdownNode) => {+ if (node.type === "inlineCode") {+ const start = node.position?.start.offset;+ const end = node.position?.end.offset;+ const escaped = node.value.replace(/[\\[\]&]/g, "\\$&");+ if (+ start !== undefined &&+ end !== undefined &&+ fileLink.test(node.value) &&+ !/[<>]/.test(node.value)+ )+ edits.push({+ start,+ end,+ content: `[${escaped}](<${escaped}>)`,+ });+ } else if (node.type !== "link" && node.type !== "linkReference" && "children" in node)+ node.children.forEach(visit);+ };+ visit(parser.parse(markdown));+ for (const edit of edits.toReversed())+ markdown = markdown.slice(0, edit.start) + edit.content + markdown.slice(edit.end);+ return markdown;+}++// A delimiter row such as `|---|:--:|`, possibly inside a blockquote or list item.+function isTableDelimiterRow(line: string): boolean {+ if (!line.includes("-")) return false;+ const row = line.replace(/^[ \t>]+/, "").trim();+ return row+ .replace(/^\||\|$/g, "")+ .split("|")+ .every((cell) => /^:?-+:?$/.test(cell.trim()));+}++// Cheap pre-check for a delimiter row two lines below text, so most messages skip the parse.+function mayHaveTableUnderText(markdown: string): boolean {+ if (!markdown.includes("|")) return false;+ const lines = markdown.split(/\r\n|\r|\n/);+ for (let index = 2; index < lines.length; index += 1) {+ if (isTableDelimiterRow(lines[index]!) && /[^\s>]/.test(lines[index - 2]!)) return true;+ }+ return false;+}++/**+ * GFM lets a table interrupt a paragraph, but the native parser (md4c) only starts a table+ * on a paragraph's first line, so a table right under a line of text renders as one+ * run-on paragraph. Insert the blank line md4c needs before each such table.+ */+function previousTableBreaks(markdown: string): string {+ if (!mayHaveTableUnderText(markdown)) return markdown;+ const lineStarts: number[] = [];+ const visit = (node: MarkdownNode) => {+ if (!("children" in node)) return;+ node.children.forEach((child, index) => {+ const previous = node.children[index - 1];+ const start = child.position?.start;+ if (+ child.type === "table" &&+ previous?.type === "paragraph" &&+ start?.offset !== undefined &&+ previous.position?.end.line === start.line - 1+ )+ lineStarts.push(+ Math.max(+ markdown.lastIndexOf("\n", start.offset - 1),+ markdown.lastIndexOf("\r", start.offset - 1),+ ) + 1,+ );+ visit(child);+ });+ };+ visit(parser.parse(markdown));+ for (const lineStart of lineStarts.toReversed()) {+ // The header row may be a lazy line without its container markers (`>` or list indent),+ // so copy the delimiter row's markers onto the blank line and the header row.+ const [, header = "", cells = "", ending = "\n", markers = ""] =+ /^([ \t>]*)([^\r\n]*)(\r\n|\r|\n)([ \t>]*)/.exec(markdown.slice(lineStart)) ?? [];+ markdown =+ markdown.slice(0, lineStart) ++ `${markers.trimEnd()}${ending}${markers}${cells}` ++ markdown.slice(lineStart + header.length + cells.length);+ }+ return markdown;+}diff --git a/apps/mobile/src/native/EnrichedMarkdownText.tsx b/apps/mobile/src/native/EnrichedMarkdownText.tsxindex c3ee0dc3e37..e3887fdb859 100644--- a/apps/mobile/src/native/EnrichedMarkdownText.tsx+++ b/apps/mobile/src/native/EnrichedMarkdownText.tsx@@ -5,6 +5,7 @@ import {formatComposerContextReference,} from "@t3tools/shared/composerContextReferences";import {+ markdownForNativeRendering,markdownWithFileEmbeds,markdownWithHtml,markdownWithInlineFileLinks,@@ -157,13 +158,17 @@ export function MobileEnrichedMarkdownText(props: SelectableMarkdownTextProps) {const { renderImage, resolveImageSource, fileEmbedLabel } = props;const { themeAppearance, mathRenderingEnabled } = useAppearancePreferences();const { markdown, fileHrefs } = useMemo(() => {+ if (!fileEmbedLabel) {+ return {+ markdown: markdownForNativeRendering(props.markdown, ENRICHED_INLINE_FILE_LINK_REGEX),+ fileHrefs: new Set<string>(),+ };+ }const content = markdownWithInlineFileLinks(markdownWithHtml(props.markdown),ENRICHED_INLINE_FILE_LINK_REGEX,);- const files = fileEmbedLabel- ? markdownWithFileEmbeds(content, fileEmbedLabel)- : { markdown: content, fileHrefs: new Set<string>() };+ const files = markdownWithFileEmbeds(content, fileEmbedLabel);return { ...files, markdown: markdownWithTableBreaks(files.markdown) };}, [props.markdown, fileEmbedLabel]);const [parsedLinkUrls, setParsedLinkUrls] = useState<ReadonlyArray<string>>([]);diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6776ca3dc5f..976fb153fef 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -739,8 +739,8 @@ importers:specifier: 0.25.1version: 0.25.1([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])react-native-enriched-markdown:- specifier: file:deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz- version: file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])+ specifier: file:deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgz+ version: file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgz([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])react-native-gesture-handler:specifier: 3.3.0version: 3.3.0(patch_hash=abe20e1d1c23549297cbbc818e14fe479b41455930d9663135d6b40fe359b626)([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected])@@ -10656,8 +10656,8 @@ packages:react: '*'react-native: '*'- react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz:- resolution: {integrity: sha512-3eYvMd4EGUboGP4GoPLf5TF/hWqhPpbCB3AX/z1eQrEdiceizGNKszqGwoLV4M1KyGyWOf2UPNbviZoT21S+8g==, tarball: file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz}+ react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgz:+ resolution: {integrity: sha512-Dl8Raid4175mHijMpsIRLB3yXBZ1s04YxaQoIdHwy64KPHBVdt26x2OYRhYyjMM3VEo4U24AAYNXUh271zYDQw==, tarball: file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgz}version: 1.2.0-t3.16peerDependencies:katex: '>=0.16.0'@@ -21260,7 +21260,7 @@ snapshots:react: 19.3.0react-native: 0.88.0(@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected])- react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]):+ react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgz([email protected])([email protected](@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]):dependencies:react: 19.3.0react-native: 0.88.0(@babel/[email protected]([email protected]))(@react-native/[email protected](@babel/[email protected]([email protected]))([email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])([email protected])diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 2c990c203df..d2094740bf3 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -22,7 +22,7 @@ allowBuilds:node-pty: true# Ships N-API prebuilds; its install script only rebuilds from source.objc-js: false- "react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-8d2f84a8.tgz": true+ "react-native-enriched-markdown@file:apps/mobile/deps/react-native-enriched-markdown-1.2.0-t3.16-558767d9.tgz": truesharp: true"@tsc-rs/typescript": trueutf-8-validate: false