Skip to content

Commit 38229a8

Browse files
committed
update react-native-update version from 10.35.6 to 10.35.7 in package.json and bun.lock
1 parent 6661e30 commit 38229a8

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

Example/testHotUpdate/bun.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"react-native-paper": "^5.14.5",
1313
"react-native-safe-area-context": "^5.6.1",
1414
"react-native-svg": "^15.13.0",
15-
"react-native-update": "^10.34.4",
15+
"react-native-update": "^10.35.6",
1616
"react-native-vector-icons": "^10.3.0",
1717
},
1818
"devDependencies": {
@@ -1430,7 +1430,7 @@
14301430

14311431
"react-native-svg": ["[email protected]", "", { "dependencies": { "css-select": "^5.1.0", "css-tree": "^1.1.3", "warn-once": "0.1.1" }, "peerDependencies": { "react": "*", "react-native": "*" } }, "sha512-/YPK+PAAXg4T0x2d2vYPvqqAhOYid2bRKxUVT7STIyd1p2JxWmsGQkfZxXCkEFN7TwLfIyVlT5RimT91Pj/qXw=="],
14321432

1433-
"react-native-update": ["react-native-update@10.34.4", "", { "dependencies": { "nanoid": "^3.3.3", "react-native-url-polyfill": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0", "react-native": ">=0.59.0" } }, "sha512-yuXlff7EMUDyp1js2NylOw9jT0sVXoc5rpaRhzoYYcwfQTQq1Qp53qpyupDuUj43MEv5ikfJ6xBd/iRpXuanNg=="],
1433+
"react-native-update": ["react-native-update@10.35.6", "", { "dependencies": { "nanoid": "^3.3.3", "react-native-url-polyfill": "^2.0.0" }, "peerDependencies": { "react": ">=16.8.0", "react-native": ">=0.59.0" } }, "sha512-2k16I1QdI4wVbepaXjf+Ej9vSpnL7hpzTknitK0s4dI+hVah+cKVntnIexW4DdIpyTk7abCLVJH4MUFGjlaUSQ=="],
14341434

14351435
"react-native-url-polyfill": ["[email protected]", "", { "dependencies": { "whatwg-url-without-unicode": "8.0.0-3" }, "peerDependencies": { "react-native": "*" } }, "sha512-My330Do7/DvKnEvwQc0WdcBnFPploYKp9CYlefDXzIdEaA+PAhDYllkvGeEroEzvc4Kzzj2O4yVdz8v6fjRvhA=="],
14361436

Example/testHotUpdate/ios/Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,7 +1835,7 @@ PODS:
18351835
- ReactCommon/turbomodule/core
18361836
- SocketRocket
18371837
- Yoga
1838-
- react-native-update (10.34.4):
1838+
- react-native-update (10.35.6):
18391839
- boost
18401840
- DoubleConversion
18411841
- fast_float
@@ -1854,7 +1854,7 @@ PODS:
18541854
- React-graphics
18551855
- React-ImageManager
18561856
- React-jsi
1857-
- react-native-update/RCTPushy (= 10.34.4)
1857+
- react-native-update/RCTPushy (= 10.35.6)
18581858
- React-NativeModulesApple
18591859
- React-RCTFabric
18601860
- React-renderercss
@@ -1866,7 +1866,7 @@ PODS:
18661866
- SocketRocket
18671867
- SSZipArchive
18681868
- Yoga
1869-
- react-native-update/RCTPushy (10.34.4):
1869+
- react-native-update/RCTPushy (10.35.6):
18701870
- boost
18711871
- DoubleConversion
18721872
- fast_float
@@ -2800,7 +2800,7 @@ SPEC CHECKSUMS:
28002800
React-Mapbuffer: 9d2434a42701d6144ca18f0ca1c4507808ca7696
28012801
React-microtasksnativemodule: 75b6604b667d297292345302cc5bfb6b6aeccc1b
28022802
react-native-safe-area-context: c6e2edd1c1da07bdce287fa9d9e60c5f7b514616
2803-
react-native-update: 822780a6d3c8482d47ba50b5801ed295c0dfcaff
2803+
react-native-update: 5e2274c66e654b001fae360600f5a9314c1c67e1
28042804
React-NativeModulesApple: 879fbdc5dcff7136abceb7880fe8a2022a1bd7c3
28052805
React-oscompat: 93b5535ea7f7dff46aaee4f78309a70979bdde9d
28062806
React-perflogger: 5536d2df3d18fe0920263466f7b46a56351c0510

Example/testHotUpdate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"react-native-paper": "^5.14.5",
2222
"react-native-safe-area-context": "^5.6.1",
2323
"react-native-svg": "^15.13.0",
24-
"react-native-update": "^10.34.4",
24+
"react-native-update": "^10.35.6",
2525
"react-native-vector-icons": "^10.3.0"
2626
},
2727
"devDependencies": {

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.35.6",
3+
"version": "10.35.7",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

src/provider.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ import {
1313
Linking,
1414
} from 'react-native';
1515
import { Pushy, Cresc, sharedState } from './client';
16-
import { currentVersion, packageVersion, getCurrentVersionInfo, currentVersionInfo } from './core';
16+
import {
17+
currentVersion,
18+
packageVersion,
19+
getCurrentVersionInfo,
20+
currentVersionInfo,
21+
} from './core';
1722
import {
1823
CheckResult,
1924
ProgressData,
@@ -165,7 +170,7 @@ export const UpdateProvider = ({
165170
lastChecking.current = now;
166171
let rootInfo: CheckResult | undefined;
167172
try {
168-
rootInfo = await client.checkUpdate(extra);
173+
rootInfo = { ...(await client.checkUpdate(extra)) };
169174
} catch (e: any) {
170175
setLastError(e);
171176
alertError(client.t('error_update_check_failed'), e.message);
@@ -175,7 +180,9 @@ export const UpdateProvider = ({
175180
if (!rootInfo) {
176181
return;
177182
}
178-
const versions = [rootInfo.expVersion, rootInfo].filter(Boolean) as VersionInfo[];
183+
const versions = [rootInfo.expVersion, rootInfo].filter(
184+
Boolean,
185+
) as VersionInfo[];
179186
delete rootInfo.expVersion;
180187
for (const versionInfo of versions) {
181188
const info: CheckResult = {

0 commit comments

Comments
 (0)