- Comprehensive Test Suite: Added full test coverage (0% → 100%, 52/52 tests passing)
- utils.test.ts: Options normalization and file filtering
- transform.test.ts: Markdown transformation (native & HTML modes)
- core.test.ts: Plugin creation and build tool integration
- Codecov Integration: Added coverage reporting with lcov format
- Bug Fixes: Fixed TypeScript type errors in test files
- Updated dependencies
- @react-code-view/core@3.1.0
-
Major refactor for v3.0.0:
- Hook: stabilize
useCodeExecution(refs-based options, stableexecute(),updateCodealias) - Tests: fix TypeScript matcher types and marked renderer signature; remove unused vars
- Docs: update README with requirements, hook example, CI/CD notes
- CI: Node 18 + PNPM, caching; gh-pages publishes
docs/dist - Publish: adopt Changesets + npm provenance (OIDC), drop
NODE_AUTH_TOKEN - Config: align workspace tsconfig/turbo/vite
BREAKING CHANGES:
useCodeExecutioneffect behavior stabilized; consumers relying on previous implicit re-execution may need to explicitly updatecodeor passdependencies- Package structure reorganized across
packages/*; import paths may need updates according to exports - Imports: Use
@react-code-view/reactfor all React components;import { CodeView } from '@react-code-view/react' - Styles: Less entries were removed; switch to
import '@react-code-view/react/styles' - Build integration: Legacy
webpack-md-loaderis removed; migrate to unified@react-code-view/unpluginfor Vite/Webpack/Rollup/esbuild/Rspack - Tooling: Minimum requirements updated to Node >=18 and PNPM >=8 for the monorepo/dev workflow
- Hook: stabilize
- Updated dependencies
- @react-code-view/core@3.0.0