Releases: web-infra-dev/rspress
v2.0.0-beta.3
Highlights ✨
Support dynamic TOC generation
related PR: #2018
It brings the application of the mdx component to a new level, ships lots of features and closes lots of issues
1. Support mdx with <Tabs />

2. Support the <Badge />
in Title
e.g:
// foo.mdx
## Title <Badge>Required</Badge>


What's Changed
New Features 🎉
Bug Fixes 🐞
Document 📖
Other Changes
- chore(deps): update all patch dependencies by @renovate in #2103
- chore(deps): update dependency @changesets/cli to ^2.29.2 by @renovate in #2104
- chore(deps): update dependency @rstack-dev/doc-ui to v1.8.0 by @renovate in #2106
- chore(deps): update dependency create-rstack to v1.4.0 by @renovate in #2107
- chore(deps): update playwright monorepo to v1.52.0 by @renovate in #1782
- refactor(mdx-loader): remove flattenMdxContent in loader by @SoonIter in #2101
- chore(plugin-llms): reduce pkg size by external deps by @SoonIter in #2110
- chore(deps): migrate react-helmet-async to @dr.pogodin/react-helmet by @SoonIter in #2111
- Release v2.0.0-beta.3 by @SoonIter in #2112
New Contributors
Full Changelog: v2.0.0-beta.2...v2.0.0-beta.3
v1.43.12
v2.0.0-beta.2
Highlights✨
@rspress/plugin-llms
Generate llms.txt related files for your Rspress site, allowing large language models to better understand your documentation site.
What's Changed
New Features 🎉
Other Changes
- chore(plugin-llms): adjust the llms-full.txt format and add url frontmatter by @SoonIter in #2095
- Release v2.0.0-beta.2 by @SoonIter in #2096
Full Changelog: v2.0.0-beta.1...v2.0.0-beta.2
v2.0.0-beta.1
Breaking Changes 🚨
Remove mdxRs
options
related PR: #2087
The core process of Rspress 2.0 will be handled by mdxjs with shiki, facilitating feature iteration. MdxRs would only handle some meta data generation. After a period of iteration, consideration may be given to mdxRs
Drop support for Node 16
related PR: #2085
Node16 has reached EOL on September 11th, 2023, see https://nodejs.org/en/blog/announcements/nodejs16-eol
Rspress 2.0 will drop support for Node 16 and the minimum supported Node version is 18.
Highlights✨
Migrate all the packages to "type: module" and pure esm with publint
related PR: #2084
What's Changed
New Features 🎉
- feat: migrate all the packages to "type: module" and pure esm with publint by @SoonIter in #2084
- feat!: drop support for Node 16 by @chenjiahan in #2085
- feat(plugin-llms): init @rspress/plugin-llms by @SoonIter in #2034
Bug Fixes 🐞
- fix: remove useless peerDependencies and pin react-router-dom version by @SoonIter in #2083
- fix: reduce react-router-dom bundle size by @SoonIter in #2086
- fix(style): change flex to rp-flex by @LonelySnowman in #2088
Other Changes
- refactor!: remove mdxRs temporarily by @SoonIter in #2087
- Release v2.0.0-beta.1 by @SoonIter in #2090
Full Changelog: v2.0.0-beta.0...v2.0.0-beta.1
v2.0.0-beta.0
Breaking Changes 🚨
Upgrade to react@19 and react-dom@19
related PR: #2073
What's Changed
New Features 🎉
Document 📖
Other Changes
- chore(infra): add pkg.pr.new by @SoonIter in #2076
- chore(infra): fix the exclude filter does not work by @SoonIter in #2078
- refactor(virtual-module): migrate more virtualModule to rsbuild-virtual-module by @SoonIter in #2075
- chore(deps): update actions/setup-node digest to 49933ea by @renovate in #2080
- chore(deps): update all patch dependencies by @renovate in #2081
- Release v2.0.0-beta.0 by @SoonIter in #2082
Full Changelog: v2.0.0-alpha.12...v2.0.0-beta.0
v2.0.0-alpha.12
What's Changed
New Features 🎉
- feat(ssg): add printFileSize to SSG, and refactor renderPages to a rsbuildPluginSSG by @SoonIter in #2065
Document 📖
- docs: correct meta tags generation example by @chenjiahan in #2071
Other Changes
- refactor(core): client root should be hmr friendly by @SoonIter in #2070
- chore: move ssg type and rename a variable by @SoonIter in #2072
- Release v2.0.0-alpha.12 by @SoonIter in #2074
Full Changelog: v2.0.0-alpha.11...v2.0.0-alpha.12
v2.0.0-alpha.11
What's Changed
New Features 🎉
- feat: plugin preview add custom entry option by @LonelySnowman in #2043
Bug Fixes 🐞
- fix: wrong hydration, hydrate twice by @SoonIter in #2063
- fix(ssg): the hydration error when using typeof window === undefined by @SoonIter in #2066
Other Changes
- chore(deps): update dependency @shikijs/transformers to ^3.2.2 by @renovate in #2062
- chore(deps): update all patch dependencies by @renovate in #2061
- Release v2.0.0-alpha.11 by @SoonIter in #2067
Full Changelog: v2.0.0-alpha.10...v2.0.0-alpha.11
v2.0.0-alpha.10
What's Changed
New Features 🎉
- feat(theme-default): add beforeHeroActions and afterHeroActions by @SoonIter in #2057
- feat(ssg)!: remove ssg fallback and add
ssg: false
hint by @SoonIter in #2055
Bug Fixes 🐞
Other Changes
- chore: remove @modern-js/tsconfig by @SoonIter in #2059
- Release v2.0.0-alpha.10 by @SoonIter in #2058
Full Changelog: v2.0.0-alpha.9...v2.0.0-alpha.10
v2.0.0-alpha.9
Breaking Changes 🚨
Update unified@11 and mdx related pkgs
related PR: #2017
If you are using your own rehype or remark plugin in Rspress, you also need to upgrade to a version compatible with unified@11
.
@rspress/plugin-shiki migrate to native @shikijs/rehype
related PR: #2046
All options will be the same as @shikijs/rehype
import { defineConfig } from 'rspress/config';
+ import { pluginShiki, transformerLineNumber } from '@rspress/plugin-shiki';
- import { pluginShiki, createTransformerLineNumber } from '@rspress/plugin-shiki';
+ import {
+ transformerNotationDiff,
+ transformerNotationErrorLevel,
+ transformerNotationFocus,
+ transformerNotationHighlight,
+ } from '@shikijs/transformers';
export default defineConfig({
plugins: [
pluginShiki({
transformers: [
- // createTransformerLineNumber(),
- // createTransformerDiff(),
- // createTransformerErrorLevel(),
- // createTransformerHighlight(),
- // createTransformerFocus(),
+ transformerLineNumber(),
+ // transformerNotationDiff(),
+ // transformerNotationErrorLevel(),
+ // transformerNotationHighlight(),
+ // transformerNotationFocus(),
],
}),
],
});
What's Changed
New Features 🎉
- feat(plugin-shiki): improve line diff colors by @chenjiahan in #2042
Bug Fixes 🐞
- fix(plugin-container): incorrect trimming in some cases by @chenjiahan in #2044
- fix(plugin-container): avoid unexpected line breaks by @chenjiahan in #2049
- fix(plugin-shiki): no code title by @SoonIter in #2050
Other Changes
- chore(deps)!: update unified@11 and mdx related pkgs by @SoonIter in #2017
- refactor(hmr): root component should be hmr friendly by @SoonIter in #2033
- refactor(virtual-module): i18n.json restart -> reload/hmr by @SoonIter in #2019
- chore(deps): update all patch dependencies by @renovate in #2038
- chore(deps): update dependency @modern-js/tsconfig to v2.67.0 by @renovate in #2039
- refactor(plugin-shiki)!: migrate to native @shikijs/rehype by @SoonIter in #2046
- Release v2.0.0-alpha.9 by @SoonIter in #2051
Full Changelog: v2.0.0-alpha.8...v2.0.0-alpha.9