Skip to content

v8.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Nov 03:58
· 37 commits to main since this release
6a8b3a7

8.0.0 (2021-11-18)

Features

BREAKING CHANGES

  • The first argument to bundleMDX has been removed in favor of a source and file option.
const mdxSource = `
---
title: foo
---

Some content
`

// old
bundleMDX(mdxSource, {
  // some options
})

// new
bundleMDX({
  source: mdxSource,
  // some options
})

const filePath = path.join(process.cwd(), 'sample.mdx')

//old
bundleMDXFile(fiilePath, {
  // some options
})

// new
bundleMDX({
  file: filePath,
  // some options
})