Skip to content

Releases: Jonny-china/3router

0.2.5

Choose a tag to compare

@Jonny-china Jonny-china released this 22 Jun 13:02

修复

  • 修复 npx 3router start 误报"等待 3router 启动超时(15000ms)"的假超时isPortInUse/waitForPort 端口探测地址改为与 daemon 实际监听地址(resolveHost,默认 127.0.0.1)对齐。此前提交 466ee6f 把 daemon 默认监听从 0.0.0.0 收紧到 127.0.0.1 后,探测仍用 0.0.0.0(wildcard),macOS SO_REUSEADDR 下 wildcard bind 不与 specific bind 冲突,误判端口空闲,导致 verifyStartup 15s 假超时——而服务实际已正常 LISTEN、HTTP 200。

内部

  • 同步 pnpm-lock.yaml@3router/* 至 0.2.4(缓解 CI 发版回写 package.json 但不回写 lockfile 的结构性落后)
  • release skill 补充坑 5(lockfile 结构性落后)文档与预检项

0.2.4

Choose a tag to compare

@Jonny-china Jonny-china released this 21 Jun 16:28

🐛 修复

  • 二进制版本号内联错误:release.yml 编译二进制时根 package.json 仍是上一版本号,cli.ts 经 import attribute 把旧版本内联进 --compile 二进制,导致 @3router/<plat>@X.Y.Z 的二进制报上一版本(0.2.3 包内联 0.2.2,npx 3router status 显示 v0.2.2,重装无效)。编译前增加「写主包版本号」步骤。
  • 默认监听 127.0.0.1:收紧本地代理暴露面。

🔧 重构

  • 代码质量与冗余精简
  • Bun 规范对齐(spawnSync / import.meta / 去 consola cast)

✨ 其他

  • 新增 release-3router 发布 skill + .claude 入库
  • 同步 pnpm-lock.yaml(@3router/* 0.2.2→0.2.3)

0.2.3

Choose a tag to compare

@Jonny-china Jonny-china released this 20 Jun 17:22

📦 0.2.3

本次发版为 CI / 分发基础设施修复,对终端用户无功能变化。修复 0.2.2 发布时 lockfile 未同步导致 CI 失败的问题,优化 release workflow,并修复子包 npm provenance 验证。

Fixes

  • 同步 pnpm-lock.yaml:0.2.2 同步 package.json(optionalDependencies 0.2.2 + 移除 tsdown)时未更新 lockfile,导致 CI pnpm install --frozen-lockfile specifiers 不一致直接失败。重新解析,移除 tsdown 依赖树、补齐 @3router/*@0.2.2。
  • 子包补 repository 字段:@3router/* 5 个子包 package.json 缺 repository 字段,CI OIDC publish 时 sigstore provenance 验证 repository.url 为空 → E422。加 repository {type,url,directory},url 与主包一致。

CI

  • optionalDependencies 改精确版本:与 CI 动态写入行为统一
  • publish-main 回写 main 前加 git pull --rebase origin main:避免 non-fast-forward 失败
  • build job pnpm install--no-optional:跳过装冗余的 @3router/linux-x64(95M)子包

安装

npm i -g 3router

v0.2.1

Choose a tag to compare

@Jonny-china Jonny-china released this 19 Jun 04:25

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@Jonny-china Jonny-china released this 18 Jun 00:46