Open
fix: 纠正版本基线错误 #27
myxuan475Add on Aug 7
fix: 纠正版本基线错误 #27
Open
Total: 4 files changed+6-6
| @@ -3,7 +3,7 @@ | |||
| 3 | "Name": "react-native-create-thumbnail", | 3 | "Name": "react-native-create-thumbnail", |
| 4 | "License": "MIT License", | 4 | "License": "MIT License", |
| 5 | "License File": "https://github.com/souvik-ghosh/react-native-create-thumbnail/blob/master/LICENSE", | 5 | "License File": "https://github.com/souvik-ghosh/react-native-create-thumbnail/blob/master/LICENSE", |
| 6 | - "Version Number": "2.0.1", | 6 | + "Version Number": "2.2.0", |
| 7 | "Owner" : "xiafeng@huawei.com", | 7 | "Owner" : "xiafeng@huawei.com", |
| 8 | "Upstream URL": "https://github.com/souvik-ghosh/react-native-create-thumbnail", | 8 | "Upstream URL": "https://github.com/souvik-ghosh/react-native-create-thumbnail", |
| 9 | "Description": "iOS/Android thumbnail generator with support for both local and remote videos" | 9 | "Description": "iOS/Android thumbnail generator with support for both local and remote videos" |
| @@ -9,8 +9,8 @@ | |||
| 9 | | 三方库名称 | 三方库版本 | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | npm地址 | | 9 | | 三方库名称 | 三方库版本 | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | npm地址 | |
| 10 | | ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | | 10 | | ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | |
| 11 | | @react-native-ohos/react-native-create-thumbnail | [~ 2.2.0 (开发中)](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/master) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.82.* | 是 | API12+ | 2.2.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | | 11 | | @react-native-ohos/react-native-create-thumbnail | [~ 2.2.0 (开发中)](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/master) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.82.* | 是 | API12+ | 2.2.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | |
| 12 | -| @react-native-ohos/react-native-create-thumbnail | [~ 2.1.0](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/br_rnoh0.77) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.77.* | 否 | API12+ | 2.1.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | | 12 | +| @react-native-ohos/react-native-create-thumbnail | [~ 2.1.0](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/br_rnoh0.77) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.77.* | 否 | API12+ | 2.0.1 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | |
| 13 | -| @react-native-ohos/react-native-create-thumbnail | [~ 2.0.1](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/br_rnoh0.72) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.72.* | 是 | API12+ | 2.0.1 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | | 13 | +| @react-native-ohos/react-native-create-thumbnail | [~ 2.0.1](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/br_rnoh0.72) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.72.* | 是 | API12+ | 2.0.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | |
| 14 | | @react-native-oh-tpl/react-native-create-thumbnail | <= 2.0.0-0.0.4@deprecated | [GitHub Releases(deprecated)](https://github.com/react-native-oh-library/react-native-create-thumbnail/releases) | 0.72 | 否 | API12+ | 2.0.0 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/react-native-create-thumbnail) | | 14 | | @react-native-oh-tpl/react-native-create-thumbnail | <= 2.0.0-0.0.4@deprecated | [GitHub Releases(deprecated)](https://github.com/react-native-oh-library/react-native-create-thumbnail/releases) | 0.72 | 否 | API12+ | 2.0.0 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/react-native-create-thumbnail) | |
| 15 | 15 | ||
| 16 | ## 简介 | 16 | ## 简介 |
| @@ -9,8 +9,8 @@ This third-party library has been migrated to Gitcode and is now available for d | |||
| 9 | | Name | Version | Release Information | Supported RN Version | Supported Autolink | Compile API Version | Community Baseline Version | npm Address | | 9 | | Name | Version | Release Information | Supported RN Version | Supported Autolink | Compile API Version | Community Baseline Version | npm Address | |
| 10 | | ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | | 10 | | ------------ | ------------ | ------------------------------ | ------------- | ------------- |------------------------ | ------------- | ------------- | |
| 11 | | @react-native-ohos/react-native-create-thumbnail | [~ 2.2.0 (In development)](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/master) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.82.* | Yes | API12+ | 2.2.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | | 11 | | @react-native-ohos/react-native-create-thumbnail | [~ 2.2.0 (In development)](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/master) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.82.* | Yes | API12+ | 2.2.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | |
| 12 | -| @react-native-ohos/react-native-create-thumbnail | [~ 2.1.0](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/br_rnoh0.77) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.77.* | No | API12+ | 2.1.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | | 12 | +| @react-native-ohos/react-native-create-thumbnail | [~ 2.1.0](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/br_rnoh0.77) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.77.* | No | API12+ | 2.0.1 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | |
| 13 | -| @react-native-ohos/react-native-create-thumbnail | [~ 2.0.1](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/br_rnoh0.72) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.72.* | Yes | API12+ | 2.0.1 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | | 13 | +| @react-native-ohos/react-native-create-thumbnail | [~ 2.0.1](https://gitcode.com/CPF-RN/rntpc_react-native-create-thumbnail/tree/br_rnoh0.72) | [Gitcode Releases](https://gitcode.com/openharmony-sig/rntpc_react-native-create-thumbnail/releases) | 0.72.* | Yes | API12+ | 2.0.0 | [Npm Address](https://www.npmjs.com/package/@react-native-ohos/react-native-create-thumbnail) | |
| 14 | | @react-native-oh-tpl/react-native-create-thumbnail | <= 2.0.0-0.0.4@deprecated | [GitHub Releases(deprecated)](https://github.com/react-native-oh-library/react-native-create-thumbnail/releases) | 0.72 | No | API12+ | 2.0.0 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/react-native-create-thumbnail) | | 14 | | @react-native-oh-tpl/react-native-create-thumbnail | <= 2.0.0-0.0.4@deprecated | [GitHub Releases(deprecated)](https://github.com/react-native-oh-library/react-native-create-thumbnail/releases) | 0.72 | No | API12+ | 2.0.0 | [Npm Address](https://www.npmjs.com/package/@react-native-oh-tpl/react-native-create-thumbnail) | |
| 15 | 15 | ||
| 16 | ## Introduction | 16 | ## Introduction |
【AI-Review】【一般】【基础代码问题】【代码逻辑错误】README.OpenSource Version Number 与 master 分支 package.json peerDependencies 不一致
● 问题:PR 将 README.OpenSource 的 "Version Number" 从 "2.0.1" 改为 "2.2.0",但 master 分支(本 PR 目标分支)的 package.json 中 peerDependencies.react-native-create-thumbnail 声明为 "2.0.1"。README.OpenSource 的 "Name" 字段为上游项目名 "react-native-create-thumbnail","Upstream URL" 指向上游仓库 https://github.com/souvik-ghosh/react-native-create-thumbnail,因此 "Version Number" 应表示上游社区基线版本号,应与 package.json 的 peerDependencies.react-native-create-thumbnail 保持一致。修改前 "Version Number" 为 "2.0.1",与 package.json 一致;修改后为 "2.2.0",与 package.json 矛盾。
本 PR 对 br_rnoh0.77 和 br_rnoh0.72 分支的"社区基线版本"修改逻辑是正确的——分别改为 2.0.1 和 2.0.0,与各自分支 package.json 的 peerDependencies.react-native-create-thumbnail(br_rnoh0.77 为 "2.0.1",br_rnoh0.72 为 "2.0.0")对齐。但对 master 分支的 README.OpenSource 却采用了不同逻辑:未对齐 master 的 package.json peerDependencies(2.0.1),而是对齐 README.md 中 master 行的"社区基线版本"(2.2.0)。而 README.md 中 master 行的"社区基线版本"(2.2.0)本身与 master 的 package.json peerDependencies(2.0.1)不一致,本 PR 将该错误值同步到了 README.OpenSource。
● 影响:README.OpenSource 是 OpenHarmony 三方库元数据文件,用户和工具链依据其 "Version Number" 判断上游社区基线版本。修改后该值为 2.2.0,而 master 分支 package.json 声明的 peer 依赖为 2.0.1,两者矛盾。用户安装 @react-native-ohos/react-native-create-thumbnail 时,npm 按 package.json peerDependencies(2.0.1)校验上游依赖,与文档声称的 2.2.0 不一致,造成版本信息混乱。
● 建议:两种修复方案任选其一: