Commit Graph

167 Commits

Author SHA1 Message Date
Hayden Bleasel 8f3e5c62b5 Small fix 2026-01-18 21:05:19 -08:00
Hayden Bleasel 169d5b6e9a Docs fixes 2026-01-18 12:40:44 -08:00
Hayden Bleasel 482c586f75 Update core example 2026-01-17 19:01:05 -08:00
Hayden Bleasel 5a06a01385 Resolves #305 2026-01-17 18:02:04 -08:00
Hayden Bleasel 1569c47e0b Remove defaultRehypePlugins.katex 2026-01-17 17:51:49 -08:00
Hayden Bleasel add8edaeab Resolves #301 2026-01-17 16:59:58 -08:00
Hayden Bleasel 337625516c Resolves #332 2026-01-17 15:06:24 -08:00
Hayden Bleasel 8cfb2628ec Update refs 2026-01-17 14:49:21 -08:00
Hayden Bleasel cbf4febef5 Rename plugin exports, update docs 2026-01-17 14:45:55 -08:00
Hayden Bleasel 0b80aed583 Switch to plugin architecture (#352)
* Plugin trial

* Update docs and tests

* Update homepage add new section

* Update usage.tsx

* Split out CJK plugin

* Extract plugins into new packages

* Misc fixes

* Fix lint / formatting

* Fix: The Streamdown component's memo comparison doesn't compare the plugins prop, preventing re-renders when plugins change while other props stay the same

Co-authored-by: haydenbleasel <hello@haydenbleasel.com>

* Fix: TypeScript type mismatch at line 89 in `index.ts`: the visitor function's `index` parameter is typed as `number | undefined`, but the `visit` function expects `number | null`. The `undefined` type is not assignable to `number | null`.

This commit fixes the issue reported at /vercel/path0/packages/streamdown-cjk/index.ts:89

## TypeScript type incompatibility in visitor callback

**What fails:** TypeScript compiler fails during DTS (type definitions) build in `packages/streamdown-cjk/index.ts` at line 89

**How to reproduce:**
```bash
cd packages/streamdown-cjk
pnpm build
```

**Result:**
```
index.ts(89,3): error TS2769: No overload matches this call.
  Overload 1 of 2, '(tree: Root, check: "link", visitor: BuildVisitor<Root, "link">, reverse?: boolean | null | undefined): undefined', gave the following error.
    Argument of type '(node: Link, index: number | null, parent?: Parent) => number | undefined' is not assignable to parameter of type 'BuildVisitor<Root, "link">'.
      Types of parameters 'index' and 'index' are incompatible.
        Type 'number | undefined' is not assignable to type 'number | null'.
          Type 'undefined' is not assignable to type 'number | null'.
```

**Root cause:** The visitor callback function passed to the `visit()` function from `unist-util-visit` was declaring the `index` parameter as `number | null`, but the visitor can also receive `undefined` as the index value. The `BuildVisitor` type signature expects the callback to accept `number | null | undefined` to properly match the library's API.

**Fix:** Updated the `index` parameter type annotation on line 89 from `number | null` to `number | null | undefined` to match the actual possible values that the visitor receives and the expected `BuildVisitor` type signature.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Co-authored-by: haydenbleasel <hello@haydenbleasel.com>

* Fix tests

* Remove CDN paths

* Fix tests

* More cleanup

* Remove shiki from main bundle

* Update index.ts

* Cleanup test repo

* Cleanup website

* Delete next-env files

* Update .gitignore

* Fix lockfile

* Upgrade Next and React

* Simplify themes

* Update test site

* Misc fixes

* Type fixes

* Create perky-cobras-punch.md

---------

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2026-01-17 14:38:20 -08:00
Hayden Bleasel 61b368512d Fix Streamdown URL 2026-01-11 21:06:59 -08:00
Hayden Bleasel 4b93626c5a Add caret demo 2026-01-09 14:47:24 -08:00
Hayden Bleasel 010c1b3132 Full fixes 2026-01-09 14:26:43 -08:00
Hayden Bleasel 2509917b77 Run Ultracite 2026-01-09 14:24:07 -08:00
Hayden Bleasel 5e39418bc4 Rename offline mode to self-hosting cdn 2026-01-09 14:07:03 -08:00
dependabot[bot] ec4a34a456 Bump the npm_and_yarn group across 1 directory with 2 updates (#335)
Bumps the npm_and_yarn group with 1 update in the / directory: [@modelcontextprotocol/sdk](https://github.com/modelcontextprotocol/typescript-sdk).


Updates `@modelcontextprotocol/sdk` from 1.24.3 to 1.25.2
- [Release notes](https://github.com/modelcontextprotocol/typescript-sdk/releases)
- [Commits](https://github.com/modelcontextprotocol/typescript-sdk/compare/1.24.3...v1.25.2)

Updates `qs` from 6.14.0 to 6.14.1
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ljharb/qs/compare/v6.14.0...v6.14.1)

---
updated-dependencies:
- dependency-name: "@modelcontextprotocol/sdk"
  dependency-version: 1.25.2
  dependency-type: direct:production
  dependency-group: npm_and_yarn
- dependency-name: qs
  dependency-version: 6.14.1
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-08 19:34:07 -08:00
Hayden Bleasel b4d9e7c35c Fix lang rewrite 2026-01-06 17:10:48 -08:00
Hayden Bleasel 5d26a1eea2 Fix CDN 2026-01-06 16:52:52 -08:00
Hayden Bleasel 2b26070ebc Fix CDN implementation 2026-01-06 16:29:58 -08:00
Hayden Bleasel 9334ef87c2 Fix logos 2026-01-06 15:25:33 -08:00
Hayden Bleasel d21ac293e0 Load Mermaid from CDN when required 2026-01-06 15:03:13 -08:00
Hayden Bleasel 20c7755bb5 Fix bundled themes, load alternate ones dynamically 2026-01-06 14:51:40 -08:00
Hayden Bleasel b25c8a1022 Add logos 2026-01-06 14:16:56 -08:00
Hayden Bleasel 2d2cb43610 Flip installer commands 2026-01-06 13:39:21 -08:00
vercel[bot] 029ee2cb47 Fix React Server Components CVE vulnerabilities (#309)
Updated dependencies to fix Next.js and React CVE vulnerabilities.

The fix-react2shell-next tool automatically updated the following packages to their secure versions:
- next
- react-server-dom-webpack
- react-server-dom-parcel  
- react-server-dom-turbopack

All package.json files have been scanned and vulnerable versions have been patched to the correct fixed versions based on the official React advisory.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2025-12-11 20:32:36 -08:00
vercel[bot] 1110b0a709 Fix React Server Components CVE vulnerabilities (#308)
Updated dependencies to fix Next.js and React CVE vulnerabilities.

The fix-react2shell-next tool automatically updated the following packages to their secure versions:
- next
- react-server-dom-webpack
- react-server-dom-parcel  
- react-server-dom-turbopack

All package.json files have been scanned and vulnerable versions have been patched to the correct fixed versions based on the official React advisory.

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
2025-12-11 14:14:12 -08:00
Hayden Bleasel a6e6bc5410 Bump deps 2025-12-11 11:06:24 -08:00
Hayden Bleasel 104798e8ac Resolves #303 2025-12-11 10:38:37 -08:00
Hayden Bleasel b8c8c79639 302 various completion issues (#307)
* Fix issue 1

* Fix issue 3

* Fix issue 4

* Fix issue 2

* Create hungry-jars-search.md

* Update package.json

* Fix lint / format issues

* Update hungry-jars-search.md
2025-12-11 10:31:47 -08:00
Hayden Bleasel 1275862379 Update db.ts 2025-12-10 08:46:14 -08:00
Hayden Bleasel 34b56ae92c Run updater 2025-12-10 08:28:21 -08:00
Hayden Bleasel e67550068a Update mdx-components.tsx 2025-12-09 18:42:41 -08:00
Hayden Bleasel 57a4c3c523 Run Geistdocs updater 2025-12-09 15:09:27 -08:00
Hayden Bleasel ee12ec8179 Resolves #297 2025-12-08 14:54:08 -08:00
Hayden Bleasel 6bd211de4e Resolves #299 2025-12-08 13:54:31 -08:00
Hayden Bleasel 00541893b4 Merge Static into Usage 2025-12-08 00:19:35 -08:00
Hayden Bleasel fad2238437 Docs fixes 2025-12-08 00:07:41 -08:00
Hayden Bleasel 68011eb7e8 Update sidebar.tsx 2025-12-07 23:54:55 -08:00
Hayden Bleasel 75faa2ed26 Reduce bundle size by 98%, create Streamdown CDN (#295)
* Bundle minimal languages, load excess from CDN

* Update cdn-loader.ts

* Proxy rewrite CDN urls

* Create bold-worms-enjoy.md

* Update code-blocks.mdx

* Delete unused pages

* Add new CDN unit tests

* Run Ultracite

* Manual fixes

* Update sidebar.tsx
2025-12-07 22:16:45 -08:00
Hayden Bleasel 078c1b238f Delete toc.tsx 2025-12-07 20:51:31 -08:00
Hayden Bleasel 0a732fec47 Update Ultracite 2025-12-07 10:41:01 -08:00
Hayden Bleasel e0fa5756eb Ultracite fixes 2025-12-07 10:08:35 -08:00
Hayden Bleasel 8f3e0ede4b Run fix 2025-12-06 23:35:51 -08:00
Hayden Bleasel 73c3b61bdd Bump deps 2025-12-06 23:34:57 -08:00
Hayden Bleasel 1c752e3873 Update docs 2025-12-06 23:33:36 -08:00
Hayden Bleasel 219e9070da Update chat.tsx 2025-12-06 20:53:10 -08:00
Hayden Bleasel 1fa232ef62 Test app fixes 2025-12-06 20:42:31 -08:00
Hayden Bleasel 13b91d8032 Add support for carets (#291)
* Add support for carets

* Create caret.test.tsx

* Update sixty-owls-film.md
2025-12-06 20:12:35 -08:00
Hayden Bleasel 6b5de3c4ca Update column.tsx 2025-12-04 21:47:00 -08:00
Hayden Bleasel 5dbb7c765a Upgrade React and Next.js 2025-12-04 21:08:39 -08:00