Skip to content

2.1.0

Compare
Choose a tag to compare
@brkalow brkalow released this 06 Jan 20:27

This release adds support for wrapping the MDX content with custom providers! You can now pass a provider to both renderToString and hydrate:

renderToString(source, { provider: { component: MyProvider, props: { my: 'prop' } } });
hydrate(mdxSource, { provider: { component: MyProvider, props: { my: 'prop' } } });

Check out the README section on using providers for more information.

Big thanks to all who contributed to this release, either through direct contributions or testing:

  • @devrsi0n for getting the custom provider work started
  • @ynnoj for testing out the custom provider functionality in his project and identifying a bug in the initial implementation!
  • @marcofranssen for updating our react peer dependencies

And a thanks to everyone who participated in the discussion, we appreciate all of your contributions! 🙏

Minor Changes

  • Support custom Providers (#35)
  • Fix peer dependencies to include react 17.0.1 (#91)