Releases: web-infra-dev/rspress
Releases · web-infra-dev/rspress
v2.0.0-alpha.1
What's Changed
Bug Fixes 🐞
- fix: remove outdated hero default values by @chenjiahan in #1927
- fix: Revert "fix: display outline correctly on >=960px <=1280px screen width (#1914)" by @SoonIter in #1929
Other Changes
- chore(plugin-algolia): correct peer dependency version by @chenjiahan in #1925
- chore: use pnpm instead of npx by @JounQin in #1921
- chore(deps): update dependency @rsbuild/core to v1.2.16 by @renovate in #1926
- Release v2.0.0-alpha.1 by @SoonIter in #1931
Full Changelog: v2.0.0-alpha.0...v2.0.0-alpha.1
v1.43.2
v2.0.0-alpha.0
What's Changed
Breaking Changes 🚨
-
Use named export instead of default export in customizing theme (#1873)
If you want to customize theme, please use named export as below:
before
Layout
HomeLayout
setup
DocLayout
use default export,other components use named export
import Theme from 'rspress/theme'; const Layout = () => <Theme.Layout beforeNavTitle={<div>some content</div>} />; export default { ...Theme, Layout, }; export * from 'rspress/theme';
after
all the components use named export
import { Layout as BasicLayout } from 'rspress/theme'; const Layout = () => <BasicLayout beforeNavTitle={<div>some content</div>} />; // use named export, no need to `export default` export { Layout }; export * from 'rspress/theme';
New Features 🎉
- feat(nav): improve dropdown menu interaction by @chenjiahan in #1910
- feat(theme)!: use named export instead of default export, for circular imports by @SoonIter in #1873
Performance 🚀
- perf(search): add index async to avoid blocking the main thread by @chenjiahan in #1892
- perf(search): remove group calculation by @chenjiahan in #1893
- perf: use
matchPath
rather thanmatchRoutes
, remove unused group.title by @SoonIter in #1895 - perf(search): improve initialization and prefetching logic by @chenjiahan in #1899
Bug Fixes 🐞
- fix(plugin-api-docgen): add Russian support by @liamli-0822 in #1890
- fix(search): should use
index.searchAsync
by @chenjiahan in #1898 - fix: display outline correctly on >=960px <=1280px screen width by @JounQin in #1914
Document 📖
- docs: improve Rsbuild plugin guides by @chenjiahan in #1900
- docs: enhance runtime API with types and dark mode usages by @chenjiahan in #1906
- docs: replace generic framework references with Rspress by @chenjiahan in #1907
Other Changes
- chore(deps): update dependency rimraf to v6 by @renovate in #1804
- chore(deps): update all patch dependencies by @renovate in #1902
- chore(deps): update dependency @changesets/cli to ^2.28.1 by @renovate in #1903
- chore(deps): update dependency @microsoft/api-extractor to ^7.51.1 by @renovate in #1904
- chore(deps): update all patch dependencies by @renovate in #1908
- Release v2.0.0-alpha.0 by @SoonIter in #1917
New Contributors
- @liamli-0822 made their first contribution in #1890
Full Changelog: v1.43.0...v2.0.0-alpha.0
v1.43.1
What's Changed
Bug Fixes 🐞
- fix: display outline correctly on >=960px <=1280px screen width by @JounQin in #1918
- fix(plugin-api-docgen): add Russian support (by @liamli-0822 #1890) cherry-picked by @SoonIter in #1919
Other Changes
- chore: update workflows to support 1.x branch by @chenjiahan in #1913
- Release v1.43.1 by @SoonIter in #1920
Full Changelog: v1.43.0...v1.43.1
v1.43.0
What's Changed
New Features 🎉
- feat(nav): improve dropdown menu interaction by @chenjiahan in #1910
Performance 🚀
- perf(search): add index async to avoid blocking the main thread by @chenjiahan in #1892
- perf(search): remove group calculation by @chenjiahan in #1893
- perf: use
matchPath
rather thanmatchRoutes
, remove unused group.title by @SoonIter in #1895 - perf(search): improve initialization and prefetching logic by @chenjiahan in #1899
Bug Fixes 🐞
- fix(search): should use
index.searchAsync
by @chenjiahan in #1898
Full Changelog: v1.42.1...v1.43.0
v1.42.1
What's Changed
Performance 🚀
Bug Fixes 🐞
- fix(search): should search JSX element code block by @SoonIter in #1867
- fix(search): for #1867, search codeBlock: false should work by @SoonIter in #1868
- fix: shim
_dirname
in esm output by @9aoy in #1874 - fix: support custom anchor id in title by @JounQin in #1876
- fix(globalUIComponents): fix package.json files #1878 by @SoonIter in #1883
Other Changes
- test(infra): use path-serializer by @SoonIter in #1869
- refactor: remove all unnecessary any types, extend PageIndexInfo interface by @JounQin in #1877
- refactor(tsconfig): migrate tsconfig to @rspress/config/tsconfig by @SoonIter in #1879
- refactor(infra/tsconfig): turn on "noUnusedLocals" by @SoonIter in #1880
- chore(deps): bump Rslib v0.5.2 and modify some build configurations by @Timeless0911 in #1881
- refactor(types): turn on
"strict": true
for @rspress/core by @SoonIter in #1882 - Release v1.42.1 by @SoonIter in #1885
Full Changelog: v1.42.0...v1.42.1
v1.42.0
What's Changed
Bug Fixes 🐞
Other Changes
- chore(plugin-shiki): Add completion by @markH5 in #1857
- refactor(infra): 🔥remove some useless code by @SoonIter in #1860
- refactor(theme):
Sidebar
isActive algorithm should be same withRoute
match by @SoonIter in #1863 - Release v1.42.0 by @SoonIter in #1866
New Contributors
Full Changelog: v1.41.3...v1.42.0
v1.41.3
What's Changed
New Features 🎉
Bug Fixes 🐞
- fix(core): search json path is incorrect when config.outDir is absolute by @liuwenzhuang in #1844
- fix(core):
route.extensions
should work by @SoonIter in #1846 - fix(theme): text in button should center by @Timeless0911 in #1847
- fix(core): supersede require with import statement in ESM output by @fi3ework in #1848
- fix(ui): SwitchApperance CLS, a flash when switching to dark mode by @SoonIter in #1853
- fix(mdxjs): toc item including "emphasis" and "delete" should generate by @SoonIter in #1855
- fix(ui): when click the url, calculating hash in real time by @SoonIter in #1856
- fix(ui): for TOC highlight, revert
setTimeout
set unbinding changes by @SoonIter in #1858
Document 📖
Other Changes
- refactor: should emit the detailed error stack by @SoonIter in #1850
- Release v1.41.3 by @SoonIter in #1859
New Contributors
Full Changelog: v1.41.2...v1.41.3
v1.41.2
What's Changed
New Features 🎉
- style(theme-default): adjust layout and media query breakpoints by @chenjiahan in #1836
Bug Fixes 🐞
- fix(search): improve search index fetching with error handling by @chenjiahan in #1826
- fix: sidebar always matches "/" by @SoonIter in #1825
- fix(runtime): determine virtual routes by config file by @fi3ework in #1829
Document 📖
- docs: update README and introduction files by @chenjiahan in #1835
- docs: fix error of using custom search component by @Timeless0911 in #1837
Other Changes
- refactor(theme): new sidebar match algorithm and export
SidebarList
UI only component by @SoonIter in #1780 - chore: update Node.js install in CONTRIBUTING.md by @Timeless0911 in #1821
- refactor(deps): migrate chalk to picocolors by @SoonIter in #1822
- chore: remove benchmarking chapter in CONTRIBUTING.md by @Timeless0911 in #1823
- build: move some packages to be built by Rslib by @fi3ework in #1824
- chore(infra/test): migrate to vitest workspace by @SoonIter in #1827
- build(theme-default): use Rslib to build the package by @fi3ework in #1830
- chore(infra): svgr config modification by @SoonIter in #1832
- build(core): use Rslib to build the package by @fi3ework in #1831
- chore: clean @modern-js/module-tools usage by @fi3ework in #1833
- chore(core): clean Rslib config by @fi3ework in #1838
- Release v1.41.2 by @SoonIter in #1841
Full Changelog: v1.41.1...v1.41.2
v1.41.1
What's Changed
New Features 🎉
- feat: preload search index when page is idle by @chenjiahan in #1811
- feat: improve tabbed code block style by @chenjiahan in #1819
Bug Fixes 🐞
Other Changes
- refactor: remove prebundle package's
.d.ts
by @SoonIter in #1809 - refactor: use esm mdx-loader rather than cjs by @SoonIter in #1816
- chore(workflow): use nx default cache directory by @chenjiahan in #1817
- Release v1.41.1 by @chenjiahan in #1820
Full Changelog: v1.41.0...v1.41.1