Skip to content

Commit d599ec2

Browse files
sunnylqmclaude
andcommitted
chore: release 10.58.1
Bump package.json and harmony/pushy/oh-package.json5 together for the React Native 0.87 TypeScript fix. No runtime changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent f6fe2a3 commit d599ec2

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

‎.github/releases/v10.58.1.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## English
2+
3+
### TypeScript fix for React Native 0.87
4+
5+
- Fixed TypeScript errors in projects on React Native 0.87. The package ships its TypeScript source, so `tsc` in the app also checks this library, and `skipLibCheck` does not skip it. 10.58.0 failed there in three places:
6+
- `client.ts:980` (`AbortSignal` in the update check): failed when the project also loads DOM-style fetch types, such as `@types/bun`.
7+
- `setTimeout(resolve)` in `client.ts`: RN 0.87 types the timer callback as taking no arguments.
8+
- `global` in `core.ts`: RN 0.87's typings no longer declare it.
9+
- Checked with `tsc` on React Native 0.87.1, react-native-tvos 0.87.1-1 and an Expo SDK 58 preview project (the template tsconfig, with `types` set to `["bun"]` or `["jest", "node"]`, and with the DOM lib).
10+
- No runtime behavior changes. Upgrading the JS package is enough; no native rebuild is needed.
11+
12+
[Full changelog](https://github.com/reactnativecn/react-native-update/compare/v10.58.0...v10.58.1)
13+
14+
## 中文
15+
16+
### React Native 0.87 的 TypeScript 修复
17+
18+
- 修复在 React Native 0.87 工程中出现的 TypeScript 报错。本库以 TypeScript 源码发布,所以应用里运行 `tsc` 时也会检查本库,`skipLibCheck` 不会跳过它。10.58.0 在三处会报错:
19+
- `client.ts:980`(检查更新时的 `AbortSignal`):工程同时加载了 DOM 风格的 fetch 类型(例如 `@types/bun`)时报错。
20+
- `client.ts` 里的 `setTimeout(resolve)`:RN 0.87 把定时器回调声明为不带参数。
21+
- `core.ts` 里的 `global`:RN 0.87 的类型声明里已经没有它了。
22+
- 已用 `tsc` 在 React Native 0.87.1、react-native-tvos 0.87.1-1 和 Expo SDK 58 预览版工程中验证(模板 tsconfig、`types` 设为 `["bun"]` 或 `["jest", "node"]`、使用 DOM lib)。
23+
- 没有运行时行为变化。只需升级 JS 包,不需要重新编译原生应用。
24+
25+
[完整变更记录](https://github.com/reactnativecn/react-native-update/compare/v10.58.0...v10.58.1)

‎harmony/pushy/oh-package.json5‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
name: 'pushy',
88
description: '',
99
main: 'index.ets',
10-
version: '10.58.0',
10+
version: '10.58.1',
1111
dependencies: {
1212
'@rnoh/react-native-openharmony': '>=0.72.96',
1313
},

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.58.0",
3+
"version": "10.58.1",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"types": "src/index.ts",

0 commit comments

Comments
 (0)