@minip2p/react-native 0.4.9 → 0.4.10

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
@@ -1,16 +1,16 @@
1
1
  # @minip2p/react-native
2
2
 
3
- React Native bindings for [minip2p](https://minip2p.com), with the platform-neutral `@minip2p/core` API and bundled Android and iOS libraries.
3
+ The React Native package for [minip2p](https://minip2p.com).
4
4
 
5
5
  The package is pre-1.0 and may introduce breaking changes between releases.
6
6
 
7
7
  ## Requirements
8
8
 
9
- - React Native 0.85 with the New Architecture and Hermes
9
+ - React Native 0.87 with the New Architecture and Hermes
10
10
  - iOS 15.1 or newer
11
11
  - Android API 24 or newer
12
12
 
13
- Expo Go cannot load custom Rust and C++ native libraries. Expo projects must use a [development build](https://docs.expo.dev/develop/development-builds/introduction/).
13
+ Expo Go cannot load minip2p. Expo projects must use a [development build](https://docs.expo.dev/develop/development-builds/introduction/).
14
14
 
15
15
  ## Installation
16
16
 
@@ -50,17 +50,17 @@ unsubscribe();
50
50
  endpoint.close();
51
51
  ```
52
52
 
53
- `Minip2p.create` starts the native driver. `useMinip2p` manages an endpoint for a React component, while `bindAppState` keeps its foreground state synchronized.
53
+ `Minip2p.create` starts an endpoint. `useMinip2p` manages one for a React component, while `bindAppState` keeps its active state synchronized with the application.
54
54
 
55
55
  Configuration defaults to gossipsub with signed messages and no relay or discovery. Set `mdns: true` for local discovery and ensure the host app has local-network and multicast permissions.
56
56
 
57
57
  ## Important behavior
58
58
 
59
59
  - Operations support timeouts and `AbortSignal` cancellation.
60
- - Native events are delivered FIFO through a bounded queue; handle `queueOverflow` by refreshing queryable state.
60
+ - Events are delivered FIFO through a bounded queue; handle `queueOverflow` by refreshing queryable state.
61
61
  - Use a named `stream` handler to claim inbound streams.
62
62
  - Unsigned pubsub payloads and peer IDs are attacker-controlled.
63
- - `close()` rejects pending work, closes streams, and releases the native endpoint.
63
+ - `close()` rejects pending work, closes streams, and shuts down the endpoint.
64
64
 
65
65
  ## License
66
66
 
@@ -8,7 +8,7 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>libminip2p_ffi.a</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64-simulator</string>
11
+ <string>ios-arm64</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>libminip2p_ffi.a</string>
14
14
  <key>SupportedArchitectures</key>
@@ -17,14 +17,12 @@
17
17
  </array>
18
18
  <key>SupportedPlatform</key>
19
19
  <string>ios</string>
20
- <key>SupportedPlatformVariant</key>
21
- <string>simulator</string>
22
20
  </dict>
23
21
  <dict>
24
22
  <key>BinaryPath</key>
25
23
  <string>libminip2p_ffi.a</string>
26
24
  <key>LibraryIdentifier</key>
27
- <string>ios-arm64</string>
25
+ <string>ios-arm64-simulator</string>
28
26
  <key>LibraryPath</key>
29
27
  <string>libminip2p_ffi.a</string>
30
28
  <key>SupportedArchitectures</key>
@@ -33,6 +31,8 @@
33
31
  </array>
34
32
  <key>SupportedPlatform</key>
35
33
  <string>ios</string>
34
+ <key>SupportedPlatformVariant</key>
35
+ <string>simulator</string>
36
36
  </dict>
37
37
  </array>
38
38
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minip2p/react-native",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "React Native bindings for minip2p",
5
5
  "keywords": [
6
6
  "android",
@@ -65,7 +65,7 @@
65
65
  "registry": "https://registry.npmjs.org/"
66
66
  },
67
67
  "dependencies": {
68
- "@minip2p/core": "0.4.9",
68
+ "@minip2p/core": "0.4.10",
69
69
  "@ubjs/core": "0.31.0-5",
70
70
  "uniffi-bindgen-react-native": "0.31.0-5"
71
71
  },