Releases: web-infra-dev/rspress
Releases · web-infra-dev/rspress
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
v1.41.0
What's Changed
New Features 🎉
- feat: support for searching code blocks by @chenjiahan in #1797
- feat(theme)!: unify socialLinks to "@iconify-json/simple-icons", smaller style and size by @SoonIter in #1808
Performance 🚀
- perf: include social icons on demand by @chenjiahan in #1789
Bug Fixes 🐞
- fix(theme-default): remove unused twitter icon by @chenjiahan in #1788
Other Changes
- chore: migrate packages building with Rslib by @fi3ework in #1770
- refactor: replace globby with tinyglob, govern execa, chalk by @SoonIter in #1773
- chore(deps): update dependency fs-extra to v11.3.0 by @renovate in #1776
- chore(deps): update all patch dependencies by @renovate in #1775
- chore(deps): update dependency postcss to v8.5.1 by @renovate in #1778
- chore(deps): update dependency lint-staged to ~15.4.2 by @renovate in #1777
- chore(deps): update modern-js to v2.64.0 by @renovate in #1779
- chore(deps): update all patch dependencies by @renovate in #1781
- chore(deps): update dependency framer-motion to v12 by @renovate in #1784
- chore(shared): remove unused
execa.ts
module by @chenjiahan in #1787 - chore(infra): implement click to reference by tsconfig.reference by @SoonIter in #1790
- chore(deps): update dependency @rslib/core to v0.4.0 by @renovate in #1793
- chore(deps): update dependency @rstack-dev/doc-ui to v1.6.0 by @renovate in #1794
- chore(deps): update dependency nx to v20.4.0 by @renovate in #1796
- chore(deps): update dependency create-rstack to v1.2.0 by @renovate in #1795
- ci(corepack): fix corepack key id mismatch by @Timeless0911 in #1800
- chore(deps): update dependency react-router-dom to ^6.29.0 by @renovate in #1799
- chore(deps): update all patch dependencies by @renovate in #1798
- chore(deps): update dependency vitest to v2.1.9 [security] by @renovate in #1806
- refactor: remove fs-extra in @rspress/shared by @SoonIter in #1805
- chore(deps): update pnpm v10.2.0 and Node.js v23.7.0 for development by @Timeless0911 in #1807
- Release v1.41.0 by @SoonIter in #1810
Full Changelog: v1.40.2...v1.41.0
v1.40.2
What's Changed
Bug Fixes 🐞
Other Changes
- chore: update Rslib description in README.md by @Timeless0911 in #1769
- refactor(theme): open tsconfig strict: true by @SoonIter in #1768
- Release v1.40.2 by @SoonIter in #1771
Full Changelog: v1.40.1...v1.40.2