Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

默认升级策略 #188

Closed
heimanba opened this issue Aug 27, 2021 · 3 comments
Closed

默认升级策略 #188

heimanba opened this issue Aug 27, 2021 · 3 comments

Comments

@heimanba
Copy link
Member

heimanba commented Aug 27, 2021

由于s工具是安装在客户本地,我们在修复一些重要的版本,无法通知到用户。这里需要默认升级策略

强制更新的策略为:

  1. 通过update-notifier中的版本和当前版本进行对比
  2. 根据semver(2[major].1[minor].3[patch]) 版本号策略,比如使用semver-diff模块进行更新。具体为
  • 如果有minor或者major版本的更新,一定要更新

强制更新的具体实现

  1. 在update-notifier的更新操作返回时候进行检查
  2. 找到当前devs工具的全局位置,通过命令 npm config get prefix获取。

注意通过yarn安装,pnpm安装,以及shell安装路径区别

  1. 通过daemon 进程进行下载
@anycodes
Copy link
Member

强制更新我是支持的,但是我担心的是兼容性问题。

@heimanba
Copy link
Member Author

heimanba commented Aug 30, 2021

因为core 每次下载的都是最新的版本,所以理论上S需要对应着新的版本。
还需要在发布上有些规范,每次发布的时候都必须在 patch 的小版本待上一段时间,才能发布最新的版本

@heimanba heimanba closed this as completed Sep 2, 2021
@heimanba
Copy link
Member Author

heimanba commented Sep 2, 2021

已经发布 >= 2.0.81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants