@onekeyfe/react-native-split-bundle-loader 3.0.179 → 3.0.180

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -0
  3. package/package.json +1 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 OneKey
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -48,6 +48,18 @@ See [src/NativeSplitBundleLoader.ts](src/NativeSplitBundleLoader.ts) for the
48
48
  complete TypeScript interface and the native source directories for platform
49
49
  loading and failure handling.
50
50
 
51
+ ## Runtime-context fields
52
+
53
+ `getRuntimeBundleContext()` returns `runtimeKind`, `sourceKind`, `bundleRoot`
54
+ and `nativeVersion`, with optional `builtinExtractRoot` and `bundleVersion`.
55
+ Treat absent fields as absent rather than substituting a version from another
56
+ runtime. The exported `SplitBundleLoaderSpec` contains the bridge signature.
57
+
58
+ `loadSegment` takes four arguments in order: numeric `segmentId`, `segmentKey`,
59
+ `relativePath` and expected `sha256`. Await it before consuming that segment.
60
+ `resolveSegmentPath` returns a path string and does not itself evaluate the
61
+ segment. The API does not fetch a missing segment from the network.
62
+
51
63
  ## License
52
64
 
53
65
  MIT.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-split-bundle-loader",
3
- "version": "3.0.179",
3
+ "version": "3.0.180",
4
4
  "description": "Native split JavaScript bundle context and segment loading for OneKey",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",