react-native-update 10.11.0 → 10.11.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.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ### 优势
10
10
 
11
- 1. 基于阿里云高速 CDN 分发,对比其他服务器在国外的热更新服务,分发更稳定,更新成功率极高。
11
+ 1. 对中国用户使用阿里云高速 CDN 分发,对比其他服务器在国外的热更新服务,分发更稳定,更新成功率极高。对国外用户则智能分流至 cloudflare,同样享受高速更新服务。
12
12
  2. 基于 bsdiff/hdiff 算法创建的**超小更新包**,通常版本迭代后在几十 KB 级别(其他全量热更新服务所需流量通常在几十 MB 级别)。
13
13
  3. 始终跟进 RN 最新正式版本,第一时间提供支持。支持 hermes 字节码格式。支持新架构。
14
14
  4. 跨越多个版本进行更新时,只需要下载**一个更新包**,不需要逐版本依次更新。
@@ -33,4 +33,3 @@ $ yarn start
33
33
  本组件由[React Native 中文网](https://reactnative.cn/)独家发布,如有定制需求可以[联系我们](https://reactnative.cn/about.html#content)。
34
34
 
35
35
  关于此插件发现任何问题,可以前往[Issues](https://github.com/reactnativecn/react-native-pushy/issues)发帖提问。
36
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.11.0",
3
+ "version": "10.11.2",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index",
6
6
  "scripts": {
@@ -45,7 +45,8 @@
45
45
  },
46
46
  "homepage": "https://github.com/reactnativecn/react-native-pushy#readme",
47
47
  "dependencies": {
48
- "nanoid": "^3.3.3"
48
+ "nanoid": "^3.3.3",
49
+ "react-native-url-polyfill": "^2.0.0"
49
50
  },
50
51
  "codegenConfig": {
51
52
  "name": "RCTPushySpec",
package/src/provider.tsx CHANGED
@@ -21,6 +21,7 @@ import {
21
21
  } from './core';
22
22
  import { CheckResult, ProgressData, PushyTestPayload } from './type';
23
23
  import { PushyContext } from './context';
24
+ import { URL } from 'react-native-url-polyfill';
24
25
 
25
26
  export const PushyProvider = ({
26
27
  client,
@@ -306,7 +307,7 @@ export const PushyProvider = ({
306
307
  if (!url) {
307
308
  return;
308
309
  }
309
- const params = new URLSearchParams(url);
310
+ const params = new URL(url).searchParams;
310
311
  const payload = {
311
312
  type: params.get('type'),
312
313
  data: params.get('data'),