zqj-pics
v4.3.1
Published
图片链接
Downloads
174
Readme
pics
图片链接
https://cdn.jsdelivr.net/npm/zqj-pics/vue2/:file-name
web-gis
https://cdn.jsdelivr.net/npm/zqj-pics/web-gis/Globe-Earth-land-distortion-projection-Mercator-latitudes.webp
测试日志
破坏性变更
"Breaking change"(翻译为“破坏性变更”)是指在软件开发中对现有功能或接口进行的修改,这种修改可能导致现有的代码、功能或者接口无法与之前的版本兼容。这种变更可能会打破依赖于原有行为的代码,因此称之为“破坏性变更”。
可能引发破坏性变更的情况
- API 的删除或者修改: 删除或者修改了原有的 API,导致原有的代码无法正常运行。
- 功能变更: 修改了原有的功能,导致原有的代码无法正常运行。
- 配置项变更: 对配置项的修改,可能需要用户重新配置应用程序或服务。
- 数据结构变更: 对数据模型或数据库结构的修改,可能导致之前的数据不再兼容,需要进行迁移或转换。
如何谨慎的处理破坏性变更
引入破坏性变更是一种危险的行为,会导致系统不稳定和不可预测的行为,可能会导致用户的不满或者损失。因此,在进行破坏性变更时,需要谨慎处理,避免对用户造成不必要的困扰。
发布破坏性变更之前,需要以下操作确保用户能尽可能平滑的升级:
- 提供兼容性支持: 在发布破坏性变更之前,至少提供一个兼容版本,确保用户能够平滑的升级。
- 更新文档: 更新文档,说明破坏性变更的原因和影响,以及如何进行升级。
- 提供迁移指南: 提供迁移指南,帮助用户进行升级。
- 提前通知用户: 提前通知用户,告知他们即将发布破坏性变更,以便用户做好准备。