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 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