@hot-updater/plugin-remote-config 1.0.0-rc.43 → 1.0.0-rc.44
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 +11 -3
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -6,11 +6,19 @@ values its conditions pick; the client plugin fetches those values in the app
|
|
|
6
6
|
and reads them synchronously, over in-app defaults.
|
|
7
7
|
|
|
8
8
|
You don't install it on its own. `@hot-updater/server` and
|
|
9
|
-
`@hot-updater/react-native` depend on it and re-export it
|
|
9
|
+
`@hot-updater/react-native` depend on it and re-export it.
|
|
10
|
+
|
|
11
|
+
For `hot-updater.config.ts`, import the factory from the CLI's plugin entry:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { remoteConfig } from "hot-updater/plugins";
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
For the server definition and app, use their runtime entries:
|
|
10
18
|
|
|
11
19
|
```ts
|
|
12
20
|
// The server definition
|
|
13
|
-
import { remoteConfig } from "@hot-updater/server/plugins
|
|
21
|
+
import { remoteConfig } from "@hot-updater/server/plugins";
|
|
14
22
|
|
|
15
23
|
// The app
|
|
16
24
|
import { HotUpdater, remoteConfig } from "@hot-updater/react-native";
|
|
@@ -18,7 +26,7 @@ import { HotUpdater, remoteConfig } from "@hot-updater/react-native";
|
|
|
18
26
|
|
|
19
27
|
| Entry | Re-exported as |
|
|
20
28
|
| ---------- | ----------------------------------------------------------------------- |
|
|
21
|
-
| `./server` | `@hot-updater/server/plugins
|
|
29
|
+
| `./server` | `@hot-updater/server/plugins` |
|
|
22
30
|
| `./client` | `remoteConfig` and its types from the `@hot-updater/react-native` root |
|
|
23
31
|
|
|
24
32
|
See [Remote Config](https://hot-updater.dev/docs/guides/remote-config).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/plugin-remote-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.44",
|
|
5
5
|
"description": "Hot Updater's Remote Config plugin: parameters, conditions, and versioned templates on the server, and values the React Native app reads",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./client": {
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"verkit": "0.4.0",
|
|
37
|
-
"@hot-updater/protocol": "1.0.0-rc.
|
|
37
|
+
"@hot-updater/protocol": "1.0.0-rc.44"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@hot-updater/plugin-core": "^1.0.0-rc.
|
|
40
|
+
"@hot-updater/plugin-core": "^1.0.0-rc.44"
|
|
41
41
|
},
|
|
42
42
|
"peerDependenciesMeta": {
|
|
43
43
|
"@hot-updater/plugin-core": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/node": "^20",
|
|
49
49
|
"vitest": "4.1.4",
|
|
50
|
-
"@hot-updater/plugin-core": "1.0.0-rc.
|
|
51
|
-
"@hot-updater/test-utils": "1.0.0-rc.
|
|
50
|
+
"@hot-updater/plugin-core": "1.0.0-rc.44",
|
|
51
|
+
"@hot-updater/test-utils": "1.0.0-rc.44"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"implicitDependencies": [
|