Skip to content

v0.2.1

Choose a tag to compare

@jcoder-stack jcoder-stack released this 06 Sep 13:36
· 22 commits to main since this release

纯依赖升级,跟住 TanStack 上游。零源码改动,无破坏性变更。

依赖升级

@tanstack/react-table 9.1.2 9.2.4
@tanstack/react-router 1.170.24 1.170.32
@tanstack/react-start 1.168.41 1.168.49
@tanstack/react-query 5.101.2 5.102.8
@tanstack/react-form 1.33.2 1.33.5
@tanstack/react-router-ssr-query 1.167.1 1.167.2
router-plugin / router-cli 1.168.28 / 1.167.21 1.168.35 / 1.167.33
react-devtools / devtools-vite 0.10.8 / 0.8.1 0.10.12 / 0.8.5

对使用者的实际影响

registry.json 里块依赖清单的 react-table9.1.2 提到 9.2.4——这是 jc-abp add 写进你项目的版本,所以 data-table / abp-table / admin-pages 三个块装出来会带新版。已有项目不受影响,重装或新装才会拿到。

升级真正吃到的是 router 那段,每次导航都走:

  • 1.170.28 重访已解析的代码分割路由时复用已加载组件,不再多闪一次 pending;同版避免了 SSR/水合期把可能渲染 <html> 的根组件包进 Suspense
  • 1.170.30 pending UI 跨保留路由不丢
  • 1.170.32 reload 期间 context 不被清掉

react-table 9.1.2 → 9.2.4 对本项目是空转:两个补丁只碰层级 flatRows 排序与 worker 行模型,而 table-core.ts 只注册 sorting / pagination / visibility / selection,进不到执行路径。升它是为了跟住上游。

@tanstack/react-query 5.102.0 修了 queryOptions 返回类型泄漏内部 tag symbol 导致声明文件生成失败——对要出 .d.ts@jcoder-stack/abp-react 是白捡的。

检查过但未踩到的上游移除

  • Link 上未文档化的 isTransitioning 状态与 data-transitioning 属性(router 1.170.26 移除)——全仓库含 CSS 无引用
  • Query 的实验性 render-time prefetch 与查询结果上的 promise(5.102.0 移除)——未使用
  • router 1.170.26 新增「在 pending/error/not-found 组件里渲染 Outlet 会告警」——shell-boundarysection-boundary 都没有 Outlet

@tanstack/react-form 1.33.5 仍未修复 submit 字段级错误不自清的死锁,useAppFormclearServerSubmitErrors patch 保留;中英两份 forms 指南的版本事实已同步。

维护

scripts/regenerate-example.sh 的重放 pin 表随 starter manifest 同步(docs/releasing.md 列为升级依赖时的必改项);漏改会让下次重放把 TanStack 依赖悄悄打回旧版,而 bun install 与测试都看不见。