0.0.28
Main changes
-
Added preliminary Windows support (closes #7)
-
next-contentlayer
now ships with full MDX support out of the box (usingmdx-bundler
under the hood - closes #5). This means you no longer needmdx-bundler
as part of yourpackage.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 fortype: 'date'
values. (closes #9)// ... export default makeSource({ contentDirPath: 'content', documentTypes: [Doc], date: { timezone: 'America/New_York' }, })
Note:
[email protected]
requires Next.js12.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