Rehype React Versions Save

plugin to transform to preact, react, vue, etc

8.0.0

8 months ago

Change

  • 579589b Change to support preact, solid, svelte, vue, too migrate: change import {Fragment, createElement} from 'react' -> import * as production from 'react/jsx-runtime', then change .use(rehypeReact, {Fragment, createElement}) -> .use(rehypeReact, production), and change the option fixTableCellAlign -> tableCellAlignToStyle
  • 73c4fb0 Update @types/hast, unified, utilities, etc migrate: update too
  • f9c640b Change to require Node.js 16 migrate: update too
  • fb00d7b Change to use exports migrate: don’t use private APIs

Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.2.0...8.0.0

7.2.0

1 year ago

7.1.2

1 year ago

Fix

Misc

  • 32b5e83 Fix types for TS 4.9

Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.1.1...7.1.2

7.1.1

2 years ago
  • 1695437 Fix to add back support for @types/react 17

Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.1.0...7.1.1

7.1.0

2 years ago
  • 8db0631 Update for React 18

Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.0.4...7.1.0

7.0.4

2 years ago

7.0.3

2 years ago
  • Fix missing *.d.ts files

Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.0.2...7.0.3

7.0.2

2 years ago

Full Changelog: https://github.com/rehypejs/rehype-react/compare/7.0.1...7.0.2

7.0.1

2 years ago
  • dac20e2 Fix to correctly compile intrinsic types

7.0.0

2 years ago
  • 864e455 Use ESM
    • Change:

      // From CommonJS
      var rehypeReact = require('rehype-react')
      
      // To ESM
      import rehypeReact from 'rehype-react'
      

      Learn more about ESM in this guide

  • 7b7f1b6 Add improved types (potentially breaking if you use TS, see commit for more info)