From e90178997acfde26ce751b89eaefcaa7a2777beb Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sat, 25 Jul 2026 14:36:14 +0530 Subject: [PATCH] chore: remove the @types/mdurl patch It worked around rollup-plugin-dts mis-emitting mdurl's Url type when markdown-it's types were bundled into dist (#3935). The dts build now keeps markdown-it and its subpaths external, and the generated type bundles are byte-identical without the patch. Co-Authored-By: Claude Fable 5 --- patches/@types__mdurl@2.0.0.patch | 19 ------------------- pnpm-lock.yaml | 9 ++------- pnpm-workspace.yaml | 3 --- 3 files changed, 2 insertions(+), 29 deletions(-) delete mode 100644 patches/@types__mdurl@2.0.0.patch diff --git a/patches/@types__mdurl@2.0.0.patch b/patches/@types__mdurl@2.0.0.patch deleted file mode 100644 index d128d01c..00000000 --- a/patches/@types__mdurl@2.0.0.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/lib/parse.d.mts b/lib/parse.d.mts -index 2e0d8f2ea00a06c0971a68d34946e797b7f8152d..f61d4dd05c1b181bc6d2d8683153abcd10fe9ab9 100644 ---- a/lib/parse.d.mts -+++ b/lib/parse.d.mts -@@ -1,4 +1,4 @@ --declare class Url { -+declare class _Url { - protocol: string; - slashes: string; - auth: string; -@@ -14,5 +14,7 @@ declare class Url { - parseHost(host: string): void; - } - -+type Url = _Url; -+ - export default function parse(url: string | Url, slashesDenoteHost?: boolean): Url; --export type { Url }; -+export { Url }; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 138dd9bb..4b08d508 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,11 +7,6 @@ settings: overrides: ora>string-width: ^5 -patchedDependencies: - '@types/mdurl@2.0.0': - hash: 3460e7d18ce390685cf4b8d8237fb20df9ad952c1336f479995a508a6395bfa4 - path: patches/@types__mdurl@2.0.0.patch - importers: .: @@ -3590,13 +3585,13 @@ snapshots: '@types/markdown-it@14.1.2': dependencies: '@types/linkify-it': 5.0.0 - '@types/mdurl': 2.0.0(patch_hash=3460e7d18ce390685cf4b8d8237fb20df9ad952c1336f479995a508a6395bfa4) + '@types/mdurl': 2.0.0 '@types/mdast@4.0.4': dependencies: '@types/unist': 3.0.3 - '@types/mdurl@2.0.0(patch_hash=3460e7d18ce390685cf4b8d8237fb20df9ad952c1336f479995a508a6395bfa4)': {} + '@types/mdurl@2.0.0': {} '@types/minimist@1.2.5': {} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 1ca32ca7..105a2504 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -14,7 +14,4 @@ onlyBuiltDependencies: overrides: ora>string-width: ^5 -patchedDependencies: - '@types/mdurl@2.0.0': patches/@types__mdurl@2.0.0.patch - shellEmulator: true