github fuma-nama/fumadocs next-docs-ui@4.0.0

latest releases: create-fumadocs-app@15.7.10, fumadocs-typescript@4.0.8, fumadocs-core@15.7.10...
22 months ago

Minor Changes

  • 6c4a782: Improve CommonJS/ESM compatibility

    Since this release, all server utilities will be CommonJS by default unless
    they have referenced ESM modules in the code. For instance,
    next-docs-zeta/middleware is now a CommonJS file. However, some modules,
    such as next-docs-zeta/server requires ESM-only package, hence, they remain
    a ESM file.

    Notice that the extension of client-side files is now .js instead of .mjs,
    but they're still ESM.

    Why?

    After migrating to .mjs Next.js config file, some imports stopped to work.
    The built-in Next.js bundler seems can't resolve these next imports in
    external packages, causing errors when modules have imported Next.js itself
    (e.g. next/image) in the code.

    By changing client-side files extension to .mjs and using CommonJS for
    server-side files, this error is solved.

  • 6c4a782: Support Server Component usage for MDX default components

Patch Changes

  • b2112e8: Improve default codeblock
  • 6c4a782: Fix sidebar opening issue
  • Updated dependencies [6c4a782]
  • Updated dependencies [6c4a782]
    • next-docs-zeta@4.0.0

Don't miss a new fumadocs release

NewReleases is sending notifications on new releases.