@markless/router

中文文档
0.11.0发布于 2026/11/02MITTypeScriptESM + CJS构建来源已验证

Markless router: client-side navigation with SSR streaming and build-time preload maps.

原始使用文档

@markless/router

Markless router: client-side navigation with SSR streaming and build-time preload maps. Used through @markless/core/router and the @markless/router/vite plugin.

See the repository for documentation: https://github.com/compiled-run/markless

版本与发布记录

@markless/router 共发布 17 个版本,首次发布于 2026/07/09;过去 12 个月发布了 17 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.11.0latest2026/11/021 天前
0.10.02026/10/295 天前
0.9.02026/10/2212 天前
0.8.02026/10/2113 天前
0.7.02026/10/2014 天前
0.6.02026/10/2014 天前

关于 @markless/router 的常见问题

@markless/router 是什么?

无标记路由器:客户端导航与SSR流和构建时预加载地图。

如何安装 @markless/router?

在项目目录运行 npm install @markless/router,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:typescript(^5.9.3)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@markless/router 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@markless/router 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@markless/router 可以商用吗?

@markless/router 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@markless/router 还在维护吗?

最新版本 0.11.0 发布于 2026/11/02(1 天前);至今共发布 17 个版本,其中过去 12 个月发布了 17 个;首次发布于 2026/07/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。