Skip to content

Conversation

@mayank1513
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jun 22, 2025

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment

Thanks for integrating Codecov - We've got you covered ☂️

"@m2d/react-markdown": minor
---

Add client-side `<Md />` component and refactor core utilities.

- **Client-side `<Md />` component**:
  - New entrypoints `@m2d/react-markdown/client` and `@m2d/react-markdown/dist/client` for a memoized, client-optimized Markdown renderer.
  - Supports full JSX children, SSR-safe, and dynamic reactivity.

- **Refactor core utilities**:
  - Move all shared types and helpers (e.g., `ComponentProps`, `AstRef`, `Markdown`, `uuid`, etc.) to `lib/src/utils.tsx`.
  - Remove duplicated code and unify server/client logic.

- **Testing**:
  - Add comprehensive tests for the client `<Md />` component.

- **Package exports**:
  - Update `lib/package.json` to expose new client entrypoints and dependencies.

- **Other**:
  - Update coverage exclusions in `vitest.config.mts`.
  - Minor internal cleanups and improved type safety.

---

This release introduces a modern, SSR-safe, and client-optimized Markdown renderer with unified logic and improved maintainability.
Releases:
  @m2d/react-markdown@0.2.0
  @repo/shared@0.0.3
@mayank1513 mayank1513 self-assigned this Jun 22, 2025
@mayank1513 mayank1513 merged commit 2ee05c6 into main Jun 22, 2025
6 checks passed
@mayank1513 mayank1513 deleted the client-side-optimization branch June 22, 2025 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants