Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.83 KB

File metadata and controls

42 lines (31 loc) · 1.83 KB

@react-code-view/unplugin

3.1.0

Minor Changes

  • 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

Patch Changes

  • Updated dependencies
    • @react-code-view/core@3.1.0

3.0.0

Major Changes

  • Major refactor for v3.0.0:

    • Hook: stabilize useCodeExecution (refs-based options, stable execute(), updateCode alias)
    • 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:

    • useCodeExecution effect behavior stabilized; consumers relying on previous implicit re-execution may need to explicitly update code or pass dependencies
    • Package structure reorganized across packages/*; import paths may need updates according to exports
    • Imports: Use @react-code-view/react for 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-loader is removed; migrate to unified @react-code-view/unplugin for Vite/Webpack/Rollup/esbuild/Rspack
    • Tooling: Minimum requirements updated to Node >=18 and PNPM >=8 for the monorepo/dev workflow

Patch Changes

  • Updated dependencies
    • @react-code-view/core@3.0.0