react-native-update 10.40.0-beta.1 → 10.40.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -680,6 +680,8 @@ RCT_EXPORT_METHOD(markSuccess:(RCTPromiseResolveBlock)resolve
680
680
  PushyToStdString(hash)
681
681
  );
682
682
  PushyApplyStateToDefaults(defaults, next);
683
+ // Re-enable first-load consumption and rollback checks for the newly selected bundle.
684
+ ignoreRollback = false;
683
685
  return YES;
684
686
  }
685
687
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.40.0-beta.1",
3
+ "version": "10.40.0-beta.2",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index",
6
6
  "scripts": {
package/src/utils.ts CHANGED
@@ -76,6 +76,7 @@ export function joinUrls(paths: string[], fileName?: string) {
76
76
  if (fileName) {
77
77
  return paths.map(path => {
78
78
  const normalizedPath = path.replace(/\/+$/, '');
79
+ // Keep explicit http(s) URLs for local/self-hosted update sources.
79
80
  const baseUrl = /^[a-z][a-z0-9+.-]*:\/\//i.test(normalizedPath)
80
81
  ? normalizedPath
81
82
  : `https://${normalizedPath}`;