diff --git a/.changeset/afraid-foxes-deny.md b/.changeset/afraid-foxes-deny.md deleted file mode 100644 index f24b137917..0000000000 --- a/.changeset/afraid-foxes-deny.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'nextra-theme-docs': minor ---- - -content width could be configured via CSS `--nextra-content-width` variable diff --git a/.changeset/afraid-pens-teach.md b/.changeset/afraid-pens-teach.md deleted file mode 100644 index 21c211627c..0000000000 --- a/.changeset/afraid-pens-teach.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"nextra-theme-docs": patch ---- - -fix mobile nav position diff --git a/.changeset/afraid-yaks-kick.md b/.changeset/afraid-yaks-kick.md deleted file mode 100644 index 690ce2350e..0000000000 --- a/.changeset/afraid-yaks-kick.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'nextra-theme-blog': major -'nextra-theme-docs': major -'nextra': major ---- - -remove `"typesVersions"` field from `package.json`. You need to set `"moduleResolution": "bundler"` in your `tsconfig.json` if you are using TypeScript diff --git a/.changeset/angry-books-remember.md b/.changeset/angry-books-remember.md deleted file mode 100644 index 618646f4e8..0000000000 --- a/.changeset/angry-books-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'nextra': patch ---- - -improve `generatePageMap` types diff --git a/.changeset/beige-owls-drum.md b/.changeset/beige-owls-drum.md deleted file mode 100644 index 490699f51b..0000000000 --- a/.changeset/beige-owls-drum.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"nextra-theme-blog": patch -"nextra-theme-docs": patch -"nextra": patch ---- - -search tweaks diff --git a/.changeset/big-nails-end.md b/.changeset/big-nails-end.md deleted file mode 100644 index c8fa0f3de2..0000000000 --- a/.changeset/big-nails-end.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"nextra": patch -"nextra-theme-blog": patch -"nextra-theme-docs": patch ---- - -fix steps background on dark mode -fix headings anchor link color on dark mode diff --git a/.changeset/blue-crabs-deny.md b/.changeset/blue-crabs-deny.md deleted file mode 100644 index dd79c8bc16..0000000000 --- a/.changeset/blue-crabs-deny.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"nextra-theme-blog": patch -"nextra-theme-docs": patch -"nextra": patch ---- - -setup `@typescript-eslint/no-unnecessary-condition` rule and fix warnings diff --git a/.changeset/blue-sloths-play.md b/.changeset/blue-sloths-play.md deleted file mode 100644 index 330e13fc04..0000000000 --- a/.changeset/blue-sloths-play.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"nextra": patch -"nextra-theme-blog": patch -"nextra-theme-docs": patch ---- - -Don't focus search input on `Ctrl + k` on non Mac devices. -Don't focus search input on `⌘ + Shift + k` or `Ctrl + Shift + k`. diff --git a/.changeset/calm-dolphins-swim.md b/.changeset/calm-dolphins-swim.md deleted file mode 100644 index 453de5f603..0000000000 --- a/.changeset/calm-dolphins-swim.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'nextra-theme-blog': patch -'nextra-theme-docs': patch -'nextra': patch ---- - -add helpful error message about not available search on development mode diff --git a/.changeset/calm-knives-shave.md b/.changeset/calm-knives-shave.md deleted file mode 100644 index d01872ca03..0000000000 --- a/.changeset/calm-knives-shave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'nextra-theme-blog': patch ---- - -remove `react-cusdis` dependency, use https://cusdis.com/doc#/advanced/sdk directly diff --git a/.changeset/calm-lemons-poke.md b/.changeset/calm-lemons-poke.md deleted file mode 100644 index b1e8beba8e..0000000000 --- a/.changeset/calm-lemons-poke.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'nextra-theme-blog': major -'nextra-theme-docs': major -'nextra': major ---- - -move ``, `
`, ``, ``, `SkipNavLink`, `` and `` from `nextra-theme-docs` to `nextra/components` +- 283320f: remove ``, `` and `` exports (since they should be always used with `` component) + + ```diff + - import { Table, Th, Tr, Td } from 'nextra/components' + + import { Table } from 'nextra/components' + + // ... + + - + + + - ` and `
+ + + -
+ + + ``` + +- 283320f: make `compileMdx` from `nextra/compile` return a `string` instead of an `object` +- 283320f: remove `BlogMetadata.draft`, support \_meta files for `nextra-theme-blog` +- 283320f: remove `export const title` from generated mdx pages +- 283320f: The initial version which supports App Router instead of Pages Router, something may be broken, check https://github.com/shuding/nextra/tree/v4-v2/examples for the migration guide +- 283320f: migrate search from Flexsearch to Pagefind +- 283320f: - add root `_meta.global.{js,jsx,ts,tsx}` file + > See [working example](https://github.com/shuding/nextra/blob/v4-v2/docs/app/_meta.global.ts) based on https://nextra.site website + - `getPageMap` now receive only 1 argument `root?: string = '/'` instead of 2 `lang?: string, route?: string = '/'` + - remove `createCatchAllMeta` from `nextra/catch-all` + - remove `collectCatchAllRoutes` + - remove `normalizePageRoute` + - add `mergeMetaWithPageMap` to `nextra/page-map` + - move adding `metadata.filePath`, `metadata.title` and `metadata.readingTime` in remark plugin + - refactor recma rewrite plugin and add tests + - remove `recmaRewriteJsx` + - remove `recmaRewriteFunctionBody` + - make `convertPageMapToJs` sync +- 283320f: improve performance on projects without Turbopack enabled +- 283320f: release Nextra rc.0 +- 283320f: - migrate to tailwind css v4.beta2 + - refactor builtin CSS classes from `_` prefix to `x:` prefix + - remove `color-primary-750` theme color variant +- 283320f: replace `export const useTOC = () = [/* your headings */]` by `export const toc = [/* your headings */]` +- 283320f: move `` component in `nextra/components` +- 283320f: remove `nextra-theme-blog/cusdis` export, export `` component from `nextra-theme-blog` directly (because `peerDependency` of `react-cusdis` was removed) +- 283320f: require Next.js minimum v14 +- 283320f: - add `nextra/components` to `experimental.optimizePackageImports` to optimize `nextra/components` by default + - remove `` from `nextra/components` + - rename `` to `MDXRemote` and move to `nextra/mdx-remote` + +### Minor Changes + +- 283320f: add `nextThemes` prop in `` component +- 283320f: - use ReactIcon for code blocks with `jsx`, `tsx` language + - add JsonIcon for `json` language + - parse language from filename if exist when `diff` language is specified + - use JavaScript icon for `cjs` and `mjs` + - use TypeScript icon for `cts` and `mts` +- 283320f: use `next-view-transitions` for transition in `nextra-theme-blog` +- 283320f: replace `useContentDir` with `contentDirBasePath` option which configure `content` directory under a catch-all subdirectory +- 283320f: move TOC logic from `recma-rewrite-jsx` plugin to `rehype-extract-toc-content` plugin +- 283320f: make `page.{jsx,tsx,mdx}` pages and `_meta` files from `app` dir, and also `content` folder files - + all add to `pageMap`, but ignore dynamic pages `[[` +- e11dbe0: set `content` value for `` based on background value for light and dark themes + +### Patch Changes + +- 283320f: search tweaks +- fdd2c6a: fix steps background on dark mode + fix headings anchor link color on dark mode +- 283320f: setup `@typescript-eslint/no-unnecessary-condition` rule and fix warnings +- aca79fa: Don't focus search input on `Ctrl + k` on non Mac devices. + Don't focus search input on `⌘ + Shift + k` or `Ctrl + Shift + k`. +- 283320f: add helpful error message about not available search on development mode +- 283320f: remove `react-cusdis` dependency, use https://cusdis.com/doc#/advanced/sdk directly +- 283320f: add `getPageMap` helper function to `nextra/page-map` +- 283320f: Fixes when Turbopack is enabled: `Module not found: Can't resolve '@theguild/remark-mermaid/mermaid'` +- 283320f: add `whiteListTagsStyling` nextra config option +- 283320f: fix unable to select text and `::selection` style +- 283320f: - allow override/add additional icons for code blocks + - remove `nextraConfig.mdxOptions.providerImportSource` option in favour of `mdx-components` file +- 283320f: - Use Tailwind CSS CLI because CSS processing by `tsup` produce different, weird and broken result + - Patch react-compiler with some fixes which isn't fixed +- 283320f: use `Date.now()` for last edit time on development and git last commit time on production +- 283320f: move `pagefind` output to `public/_pagefind` directory https://github.com/shuding/nextra/pull/3517 +- 283320f: initialize `transformerTwoslash` only 1 time outside of loader +- 283320f: fix edit on github and last updated at for catch all routes +- 283320f: simplify `generatePageMap` +- 283320f: add `banner` prop for `` component +- 283320f: sync with nextra 3.1.0 +- 283320f: Cache the result of `repository.getFileLatestModifiedDateAsync` because it can slow down Fast Refresh for uncommitted files. +- 283320f: reduce bundle size of bundled website by compiling svg icons in separated files +- 283320f: enable page reload of catch-all routes `app/[[...slug]].jsx` on content change +- 283320f: remove false positive warnings on projects without `content/` directory + + ``` + ⚠ Compiled with warnings + + ../packages/nextra/dist/client/pages.js + Module not found: Can't resolve 'private-next-root-dir/content' in '/Users/dmytro/Desktop/nextra/packages/nextra/dist/client' + ``` + +- 283320f: - sync with nextra 3.0.15 + + - bump to Next 15 + - remove importing of `style.css` in themes, you need to import now manually by + + ```js + import "nextra-theme-docs/style.css"; // for docs theme + import "nextra-theme-blog/style.css"; // for blog theme + ``` + +- 283320f: add support for turbopack `next dev --turbopack` +- 283320f: fix `colorSchema` for HEX format with 4 chars, e.g. `#111` +- 283320f: fix external svg icon was added for span in `` +- 283320f: make nextThemes optional prop, to avoid ts errors +- 283320f: sync with nextra 3.0.10 +- 283320f: defer pagefind results update for prioritizing the user input state +- 283320f: make Nextra works with `src/app` and `src/content` directories +- 283320f: - fix missing tailwind class for `json` icon in code blocks + - capitalize folders in sidebar even without index pages + - sync with nextra 3.2.4 +- 283320f: add ↗ char for external links +- 283320f: sync with nextra 3.0.3 +- 283320f: fix injecting mdx-components into headings and injecting into toc +- 283320f: - add `disabled` prop for `` component when `open` prop was set (to disable click event and remove `cursor: pointer`) + - allow `
` and `
` tags be used with `` + - fix Webpack module rebuild for pageMap when new files where added or removed in `app` dir or `content` dir +- 283320f: Use `primaryColor` for `::selection` styles +- 283320f: replace `nextraConfig.mdxBaseDir: string` by `useContentDir: boolean` +- 283320f: support `GitHub Alert Syntax` +- 283320f: fix search, didn't work with Next.js' `basePath` set +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [fdd2c6a] +- Updated dependencies [283320f] +- Updated dependencies [aca79fa] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [e11dbe0] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] +- Updated dependencies [283320f] + - nextra@4.0.0 + ## 4.0.0-rc.0 ### Major Changes @@ -1519,19 +1739,19 @@ and `nextra-theme-docs` ```js - import { Card, Cards } from 'nextra/components' + import { Card, Cards } from "nextra/components"; ``` ```js - import { Tab, Tabs } from 'nextra/components' + import { Tab, Tabs } from "nextra/components"; ``` ```js - import { Steps } from 'nextra/components' + import { Steps } from "nextra/components"; ``` ```js - import { FileTree } from 'nextra/components' + import { FileTree } from "nextra/components"; ``` ### Patch Changes diff --git a/packages/nextra-theme-blog/package.json b/packages/nextra-theme-blog/package.json index 2b269a2e09..39c7c30768 100644 --- a/packages/nextra-theme-blog/package.json +++ b/packages/nextra-theme-blog/package.json @@ -1,6 +1,6 @@ { "name": "nextra-theme-blog", - "version": "4.0.0-rc.0", + "version": "4.0.0", "description": "A Nextra theme for blogs.", "repository": "https://github.com/shuding/nextra", "author": "Shu Ding ", diff --git a/packages/nextra-theme-docs/CHANGELOG.md b/packages/nextra-theme-docs/CHANGELOG.md index 5f8b793fc1..8d8d65d7c0 100644 --- a/packages/nextra-theme-docs/CHANGELOG.md +++ b/packages/nextra-theme-docs/CHANGELOG.md @@ -1,5 +1,318 @@ # nextra-theme-docs +## 4.0.0 + +### Major Changes + +- 283320f: remove `"typesVersions"` field from `package.json`. You need to set `"moduleResolution": "bundler"` in your `tsconfig.json` if you are using TypeScript +- 283320f: move ``, `
`, ``, ``, `SkipNavLink`, `
`, `
` exports (since they should be always used with `` component) + + ```diff + - import { Table, Th, Tr, Td } from 'nextra/components' + + import { Table } from 'nextra/components' + + // ... + + - + + + - ` and `
+ + + -
+ + + ``` + +- 283320f: make `compileMdx` from `nextra/compile` return a `string` instead of an `object` +- 283320f: remove `i18n.direction` option +- 283320f: remove `export const title` from generated mdx pages +- 283320f: The initial version which supports App Router instead of Pages Router, something may be broken, check https://github.com/shuding/nextra/tree/v4-v2/examples for the migration guide +- 283320f: fix focusing on first search result item +- 283320f: remove `navbar` and `footer` props, pass `` and ``, `
` exports (since they should be always used with `` component) + + ```diff + - import { Table, Th, Tr, Td } from 'nextra/components' + + import { Table } from 'nextra/components' + + // ... + + - + + + -
+ + + -
+ + + ``` + +- 283320f: make `compileMdx` from `nextra/compile` return a `string` instead of an `object` +- 283320f: remove `export const title` from generated mdx pages +- 283320f: The initial version which supports App Router instead of Pages Router, something may be broken, check https://github.com/shuding/nextra/tree/v4-v2/examples for the migration guide +- 283320f: fix focusing on first search result item +- 283320f: rename `nextra/mdx` to `nextra/mdx-components` +- 283320f: migrate search from Flexsearch to Pagefind +- 283320f: remove `nextra/remote`, `nextra/schemas` and `nextra/remark-plugins` +- 283320f: - add root `_meta.global.{js,jsx,ts,tsx}` file + > See [working example](https://github.com/shuding/nextra/blob/v4-v2/docs/app/_meta.global.ts) based on https://nextra.site website + - `getPageMap` now receive only 1 argument `root?: string = '/'` instead of 2 `lang?: string, route?: string = '/'` + - remove `createCatchAllMeta` from `nextra/catch-all` + - remove `collectCatchAllRoutes` + - remove `normalizePageRoute` + - add `mergeMetaWithPageMap` to `nextra/page-map` + - move adding `metadata.filePath`, `metadata.title` and `metadata.readingTime` in remark plugin + - refactor recma rewrite plugin and add tests + - remove `recmaRewriteJsx` + - remove `recmaRewriteFunctionBody` + - make `convertPageMapToJs` sync +- 283320f: improve performance on projects without Turbopack enabled +- 283320f: release Nextra rc.0 +- 283320f: - migrate to tailwind css v4.beta2 + - refactor builtin CSS classes from `_` prefix to `x:` prefix + - remove `color-primary-750` theme color variant +- 283320f: replace `export const useTOC = () = [/* your headings */]` by `export const toc = [/* your headings */]` +- 283320f: move `` component in `nextra/components` +- 283320f: remove `renderComponent` and `renderString` +- 283320f: require Next.js minimum v14 +- 283320f: - add `nextra/components` to `experimental.optimizePackageImports` to optimize `nextra/components` by default + - remove `` from `nextra/components` + - rename `` to `MDXRemote` and move to `nextra/mdx-remote` + +### Minor Changes + +- 283320f: - use ReactIcon for code blocks with `jsx`, `tsx` language + - add JsonIcon for `json` language + - parse language from filename if exist when `diff` language is specified + - use JavaScript icon for `cjs` and `mjs` + - use TypeScript icon for `cts` and `mts` +- 283320f: replace `useContentDir` with `contentDirBasePath` option which configure `content` directory under a catch-all subdirectory +- 283320f: move TOC logic from `recma-rewrite-jsx` plugin to `rehype-extract-toc-content` plugin +- 283320f: make `page.{jsx,tsx,mdx}` pages and `_meta` files from `app` dir, and also `content` folder files - + all add to `pageMap`, but ignore dynamic pages `[[` +- e11dbe0: set `content` value for `` based on background value for light and dark themes +- 283320f: compile `nextra/components`, `nextra/hooks`, `nextra-theme-docs` and `nextra-theme-blog` source code with react-compiler + +### Patch Changes + +- 283320f: improve `generatePageMap` types +- 283320f: search tweaks +- fdd2c6a: fix steps background on dark mode + fix headings anchor link color on dark mode +- 283320f: setup `@typescript-eslint/no-unnecessary-condition` rule and fix warnings +- aca79fa: Don't focus search input on `Ctrl + k` on non Mac devices. + Don't focus search input on `⌘ + Shift + k` or `Ctrl + Shift + k`. +- 283320f: add helpful error message about not available search on development mode +- 283320f: add `getPageMap` helper function to `nextra/page-map` +- 283320f: Fixes when Turbopack is enabled: `Module not found: Can't resolve '@theguild/remark-mermaid/mermaid'` +- 283320f: add `whiteListTagsStyling` nextra config option +- 283320f: fix unable to select text and `::selection` style +- 283320f: - allow override/add additional icons for code blocks + - remove `nextraConfig.mdxOptions.providerImportSource` option in favour of `mdx-components` file +- 283320f: - Use Tailwind CSS CLI because CSS processing by `tsup` produce different, weird and broken result + - Patch react-compiler with some fixes which isn't fixed +- 283320f: use `Date.now()` for last edit time on development and git last commit time on production +- 283320f: move `pagefind` output to `public/_pagefind` directory https://github.com/shuding/nextra/pull/3517 +- 283320f: initialize `transformerTwoslash` only 1 time outside of loader +- 283320f: remove `NextraConfig.transformPageMap` +- 283320f: - remove `nextra/context` + - remove `type NextraThemeLayoutProps` +- 283320f: Export Meta type from schemas +- 283320f: fix edit on github and last updated at for catch all routes +- 283320f: simplify `generatePageMap` +- 283320f: add icons for `javascript and `typescript langs +- 283320f: - parse and transform `_meta` files with zod + - remove `_meta` `newWindow` field +- 283320f: sync with nextra 3.1.0 +- 283320f: Cache the result of `repository.getFileLatestModifiedDateAsync` because it can slow down Fast Refresh for uncommitted files. +- 283320f: add `bottomContent` prop for `` component, e.g. to put some content after pagination in `nextra-theme-docs` +- 283320f: select tab with active hash and scroll to right heading +- 283320f: adjust RegEx for folder groups in app router +- 283320f: - do not treat `content/page.{mdx,md}` as index page + - skip visiting directories which starts with underscore for `app` directory +- 283320f: reduce bundle size of bundled website by compiling svg icons in separated files +- 283320f: enable page reload of catch-all routes `app/[[...slug]].jsx` on content change +- 283320f: move `createCatchAllMeta` from `nextra/catch-all` to `nextra/page-map` +- 283320f: remove false positive warnings on projects without `content/` directory + + ``` + ⚠ Compiled with warnings + + ../packages/nextra/dist/client/pages.js + Module not found: Can't resolve 'private-next-root-dir/content' in '/Users/dmytro/Desktop/nextra/packages/nextra/dist/client' + ``` + +- 283320f: Fix `MetaRecord` type so it's no longer `unknown` +- 283320f: fix error goes from `playground.js` file when your `mdx-components` file contain server-only components + + ``` + ./app/layout.tsx + 'client-only' cannot be imported from a Server Component module. It should only be used from a Client Component. + + Import trace for requested module: + ../packages/components/dist/index.js + ./mdx-components.js + ../node_modules/.pnpm/nextra@4.0.0-app-router.20_@types+react@18.3.12_acorn@8.14.0_next@15.0.2_@babel+core@7.26.0_r_73lkrljx3r7g5vsm2cmbm3erma/node_modules/nextra/dist/client/components/remote-content.js + ../node_modules/.pnpm/nextra@4.0.0-app-router.20_@types+react@18.3.12_acorn@8.14.0_next@15.0.2_@babel+core@7.26.0_r_73lkrljx3r7g5vsm2cmbm3erma/node_modules/nextra/dist/client/components/playground.js + ``` + +- 283320f: - sync with nextra 3.0.15 + + - bump to Next 15 + - remove importing of `style.css` in themes, you need to import now manually by + + ```js + import "nextra-theme-docs/style.css"; // for docs theme + import "nextra-theme-blog/style.css"; // for blog theme + ``` + +- 283320f: add `normalizePagesResult.activeMetadata` to get value of front matter or exported metadata from page +- 283320f: add support for turbopack `next dev --turbopack` +- 283320f: fix `colorSchema` for HEX format with 4 chars, e.g. `#111` +- 283320f: fix external svg icon was added for span in `` +- 283320f: remove `NormalizedResult.flatDirectories` + + remove `Item.withIndexPage`, use `'frontMatter' in Item` + +- 283320f: sync with nextra 3.0.10 +- 283320f: optimize compiled svg icons with react-compiler +- 283320f: - simplify `generatePageMapFromFilepaths` + - sync with nextra 3.2.0 +- 283320f: defer pagefind results update for prioritizing the user input state +- 283320f: make Nextra works with `src/app` and `src/content` directories +- 283320f: - fix missing tailwind class for `json` icon in code blocks + - capitalize folders in sidebar even without index pages + - sync with nextra 3.2.4 +- 283320f: add ↗ char for external links +- 283320f: remove check for filepaths outside cwd in `compileMdx` +- 283320f: sync with nextra 3.0.3 +- 283320f: fix injecting mdx-components into headings and injecting into toc +- 283320f: - add `disabled` prop for `` component when `open` prop was set (to disable click event and remove `cursor: pointer`) + - allow `
` and `
` tags be used with `` + - fix Webpack module rebuild for pageMap when new files where added or removed in `app` dir or `content` dir +- 283320f: fix TypeError: Cannot read properties of undefined (reading 'id') when importing partial MDX +- 283320f: `firstChildRoute` should return "index" route as first +- 283320f: Use `primaryColor` for `::selection` styles +- 283320f: replace `nextraConfig.mdxBaseDir: string` by `useContentDir: boolean` +- 283320f: support `GitHub Alert Syntax` +- 283320f: fix search, didn't work with Next.js' `basePath` set +- 283320f: make `` as server component +- 283320f: Allow `type: 'separator'` item as `items` for `type: 'menu'` + ## 4.0.0-rc.0 ### Major Changes @@ -1314,7 +1488,7 @@ while importing ```js - import filterRouteLocale from 'nextra/filter-route-locale' + import filterRouteLocale from "nextra/filter-route-locale"; ``` - 4dd720ad: remove `font-weight: 500;` from styles of code blocks since it gives @@ -1360,19 +1534,19 @@ and `nextra-theme-docs` ```js - import { Card, Cards } from 'nextra/components' + import { Card, Cards } from "nextra/components"; ``` ```js - import { Tab, Tabs } from 'nextra/components' + import { Tab, Tabs } from "nextra/components"; ``` ```js - import { Steps } from 'nextra/components' + import { Steps } from "nextra/components"; ``` ```js - import { FileTree } from 'nextra/components' + import { FileTree } from "nextra/components"; ``` ### Patch Changes diff --git a/packages/nextra/package.json b/packages/nextra/package.json index cbb4a2ff78..53928c8eec 100644 --- a/packages/nextra/package.json +++ b/packages/nextra/package.json @@ -1,6 +1,6 @@ { "name": "nextra", - "version": "4.0.0-rc.0", + "version": "4.0.0", "type": "module", "description": "Next.js and MDX based site generator.", "repository": "https://github.com/shuding/nextra",