mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 23:49:51 +00:00
Undo version packages
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
---
|
||||
'next-docs-zeta': minor
|
||||
'next-docs-ui': minor
|
||||
---
|
||||
|
||||
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.
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'next-docs-ui': patch
|
||||
---
|
||||
|
||||
Fix sidebar opening issue
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
'next-docs-zeta': major
|
||||
---
|
||||
|
||||
Create `PageTreeBuilder` API
|
||||
|
||||
The old `buildPageTree` function provided by 'next-docs-zeta/contentlayer' is now removed. Please use new API directly, or use the built-in `createContentlayer` utility instead.
|
||||
|
||||
```diff
|
||||
- import { buildPageTree } from 'next-docs-zeta/contentlayer'
|
||||
+ import { createPageTreeBuilder } from 'next-docs-zeta/server'
|
||||
```
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'next-docs-ui': minor
|
||||
---
|
||||
|
||||
Support Server Component usage for MDX default components
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "next-docs-mdx",
|
||||
"description": "The library for using native Next.js MDX features in Next Docs",
|
||||
"version": "4.0.0",
|
||||
"version": "3.0.0",
|
||||
"homepage": "https://next-docs-zeta.vercel.app",
|
||||
"author": "Fuma Nama",
|
||||
"repository": "github:fuma-nama/next-docs",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "next-docs-ui",
|
||||
"description": "The framework for building a documentation website in Next.js",
|
||||
"version": "4.0.0",
|
||||
"version": "3.0.0",
|
||||
"homepage": "https://next-docs-zeta.vercel.app",
|
||||
"author": "Fuma Nama",
|
||||
"repository": "github:fuma-nama/next-docs",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "next-docs-zeta",
|
||||
"description": "The library for building a documentation website in Next.js",
|
||||
"version": "4.0.0",
|
||||
"version": "3.0.0",
|
||||
"homepage": "https://next-docs-zeta.vercel.app",
|
||||
"author": "Fuma Nama",
|
||||
"repository": "github:fuma-nama/next-docs",
|
||||
|
||||
Reference in New Issue
Block a user