Release v0.2.0
Minor Changes
-
e1d4106: Add client-side
<Md />component and refactor core utilities.-
Client-side
<Md />component:- New entrypoints
@m2d/react-markdown/clientand@m2d/react-markdown/dist/clientfor a memoized, client-optimized Markdown renderer. - uses memoization for client side optimizations
- Supports full JSX children, SSR-safe, and dynamic and optimized reactivity.
- New entrypoints
-
Refactor core utilities:
- Move all shared types and helpers (e.g.,
ComponentProps,AstRef,Markdown,uuid, etc.) tolib/src/utils.tsx. - Remove duplicated code and unify server/client logic.
- Move all shared types and helpers (e.g.,
-
Testing:
- Add comprehensive tests for the client
<Md />component.
- Add comprehensive tests for the client
-
Package exports:
- Update
lib/package.jsonto expose new client entrypoints and dependencies.
- Update
-
Other:
- Update coverage exclusions in
vitest.config.mts. - Minor internal cleanups and improved type safety.
- Update coverage exclusions in
This release introduces a modern, SSR-safe, and client-optimized Markdown renderer with unified logic and improved maintainability.
-
What's Changed
- Client side optimization by @mayank1513 in #1
New Contributors
- @mayank1513 made their first contribution in #1
Full Changelog: 0.1.1...0.2.0