Skip to content

0.0.28

Compare
Choose a tag to compare
@schickling schickling released this 08 Nov 12:22
· 462 commits to main since this release
27fc312

Main changes

  • Added preliminary Windows support (closes #7)

  • next-contentlayer now ships with full MDX support out of the box (using mdx-bundler under the hood - closes #5). This means you no longer need mdx-bundler as part of your package.json dependencies. Here is a simple example:

    import { useMDXComponent } from 'next-contentlayer/hooks'
    
    const DocPage: React.FC = ({ doc }) => {
      const MDXContent = useMDXComponent(doc.body.code)
  • contentlayer/source-files added timezone support for type: 'date' values. (closes #9)

    // ...
    export default makeSource({
      contentDirPath: 'content',
      documentTypes: [Doc],
      date: { timezone: 'America/New_York' },
    })

Note: [email protected] requires Next.js 12.x.

Other improvements

  • Allow esbuild 0.13.x in peerDependencies (esbuild is still an optional dependency)
  • Turned "effect-ts"-related packages into optional peer dependencies. (closes #6)
  • Bug fix: Calling the CLI with --clearCache no longer fails when no cache exists