v10.52.3
English
v10.52.2 was tagged but never reached npm — its publish run failed in prepack, so v10.52.3 supersedes it and also carries its content. The previous version on npm is v10.52.1.
Fix: type errors on React Native 0.87+
The package ships its TypeScript sources, so React Native's own typings are type-checked against them in every consumer project. Three of ours broke on React Native 0.87's generated types (types_generated/, used under moduleResolution: "bundler"):
NativeEventEmitter/DeviceEventEmitterare now generic and type listeners as(...args: readonly Object[]) => unknown, which a(data: ProgressData) => voidcallback is not assignable to. The download-progress listeners now take the raw event and narrow it internally.PermissionsAndroidStaticis no longer exported; the web/non-native shim derives the shape from the exported value instead (typeof PermissionsAndroid).Linking.getInitialURL()widened tostring | null | undefined, soparseLinkingaccepts an optional URL.
All three spellings compile on both old and new React Native typings — verified against React Native 0.73 and 0.87 — so the minimum React Native version does not change.
Pushy: additional API endpoints
1-4.rnupdate.online are added to the Pushy preset's main endpoints, alongside update.react-native.cn and update.reactnative.cn.
No native Android, iOS, or HarmonyOS changes are included in this release.
中文
v10.52.2 虽已创建 tag,但从未发布到 npm——其发布流程在 prepack 阶段失败,因此 v10.52.3 取代该版本并包含其全部内容。此前 npm 上的最新版本为 v10.52.1。
修复 React Native 0.87+ 类型错误
本包会发布 TypeScript 源码,因此每个使用方项目都会使用 React Native 自身的类型定义对其进行类型检查。React Native 0.87 生成的新类型(types_generated/,在 moduleResolution: "bundler" 下使用)使以下三处代码无法通过检查:
NativeEventEmitter/DeviceEventEmitter现在是泛型,并将监听器定义为(...args: readonly Object[]) => unknown,因此(data: ProgressData) => void回调无法直接赋值。下载进度监听器现在会接收原始事件,并在内部收窄类型。PermissionsAndroidStatic不再导出;Web/非原生 shim 改为从导出的值推导类型(typeof PermissionsAndroid)。Linking.getInitialURL()的返回类型扩大为string | null | undefined,因此parseLinking现在接受可选 URL。
以上三处写法均已在 React Native 0.73 与 0.87 的类型定义下验证通过,因此最低 React Native 版本不变。
Pushy:新增 API 端点
Pushy preset 的主要端点新增 1-4.rnupdate.online,与 update.react-native.cn 和 update.reactnative.cn 一同使用。
本版本不包含 Android、iOS 或 HarmonyOS 原生代码变更。