From 2dbf795b0548269185d56e21fb1037f75798ed79 Mon Sep 17 00:00:00 2001 From: Bertrand GRESSIER Date: Sun, 4 Oct 2026 19:37:20 +0200 Subject: [PATCH 1/2] fix: support @tanstack/markdown 1.x - widen peer range to >=0.0.13 <2.0.0 (1.0.0 verified: additive API only) - bump devDependency to 1.0.0 - validated against 0.0.15, 0.0.16 and 1.0.0 (typecheck, 88 tests, build) --- package.json | 4 ++-- pnpm-lock.yaml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 8472a86..768d906 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "prepublishOnly": "pnpm run build" }, "peerDependencies": { - "@tanstack/markdown": ">=0.0.13 <0.1.0", + "@tanstack/markdown": ">=0.0.13 <2.0.0", "katex": ">=0.16", "react": ">=18" }, @@ -46,7 +46,7 @@ } }, "devDependencies": { - "@tanstack/markdown": "0.0.15", + "@tanstack/markdown": "1.0.0", "@types/katex": "^0.16.7", "@types/react": "^19.0.0", "@types/react-dom": "^19.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fcb90ff..2017124 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: devDependencies: '@tanstack/markdown': - specifier: 0.0.15 - version: 0.0.15(react@19.3.0) + specifier: 1.0.0 + version: 1.0.0(react@19.3.0) '@types/katex': specifier: ^0.16.7 version: 0.16.8 @@ -335,8 +335,8 @@ packages: cpu: [x64] os: [win32] - '@tanstack/markdown@0.0.15': - resolution: {integrity: sha512-8hZFgCxGzYcBogffndvOm/prhdDt8nATQ4jzd9b0ziU0j4ofW/5guC1sknO2JyBNSXPgeLrrdXlJA8sbb1zw8w==} + '@tanstack/markdown@1.0.0': + resolution: {integrity: sha512-zE07RepFMbSQlHdnE82twgiVOKy50rP6a/X9UPOOBt8Z8x9lzaPvGpn2zioCnjXMvNt/IQkW5sSalXQ25C/FKw==} peerDependencies: octane: '>=0.1.12' react: '>=18' @@ -871,7 +871,7 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.63.1': optional: true - '@tanstack/markdown@0.0.15(react@19.3.0)': + '@tanstack/markdown@1.0.0(react@19.3.0)': optionalDependencies: react: 19.3.0 From 59f08cacc07663688c3cea46e68ecb69703ea57b Mon Sep 17 00:00:00 2001 From: Bertrand GRESSIER Date: Sun, 4 Oct 2026 19:40:56 +0200 Subject: [PATCH 2/2] ci: add peer-range matrix for @tanstack/markdown (0.0.15, 0.0.16, 1.0.0) --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8aeca34..b7841fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,3 +18,23 @@ jobs: - run: pnpm install --frozen-lockfile - run: pnpm run typecheck - run: pnpm test + + peer-matrix: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + # supported @tanstack/markdown versions with inlineComponent nodes (>= 0.0.15); + # 0.0.13/0.0.14 still satisfy the peer range but only support 'html' output mode + markdown: ['0.0.15', '0.0.16', '1.0.0'] + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + - run: pnpm install --no-frozen-lockfile + - run: pnpm add -D @tanstack/markdown@${{ matrix.markdown }} + - run: pnpm run typecheck + - run: pnpm test