@hot-updater/plugin-insights 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.
Files changed (2) hide show
  1. package/README.md +11 -3
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -5,11 +5,19 @@ and update failures and serves them to the Console and the CLI; the client
5
5
  plugin reports them from the app.
6
6
 
7
7
  You don't install it on its own. `@hot-updater/server` and
8
- `@hot-updater/react-native` depend on it and re-export it:
8
+ `@hot-updater/react-native` depend on it and re-export it.
9
+
10
+ For `hot-updater.config.ts`, import the factory from the CLI's plugin entry:
11
+
12
+ ```ts
13
+ import { insights } from "hot-updater/plugins";
14
+ ```
15
+
16
+ For the server definition and app, use their runtime entries:
9
17
 
10
18
  ```ts
11
19
  // The server definition
12
- import { insights } from "@hot-updater/server/plugins/insights";
20
+ import { insights } from "@hot-updater/server/plugins";
13
21
 
14
22
  // The app
15
23
  import { HotUpdater, insights } from "@hot-updater/react-native";
@@ -17,7 +25,7 @@ import { HotUpdater, insights } from "@hot-updater/react-native";
17
25
 
18
26
  | Entry | Re-exported as |
19
27
  | ---------- | ------------------------------------------------------------------ |
20
- | `./server` | `@hot-updater/server/plugins/insights` |
28
+ | `./server` | `@hot-updater/server/plugins` |
21
29
  | `./client` | `insights` and its types from the `@hot-updater/react-native` root |
22
30
 
23
31
  Its test suites, such as `insightsTestSuite`, are in `@hot-updater/test-utils`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/plugin-insights",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.43",
4
+ "version": "1.0.0-rc.44",
5
5
  "description": "Hot Updater's Insights plugin: launch, download, and update failure events, for the server and the React Native app",
6
6
  "exports": {
7
7
  "./client": {
@@ -33,10 +33,10 @@
33
33
  "package.json"
34
34
  ],
35
35
  "dependencies": {
36
- "@hot-updater/protocol": "1.0.0-rc.43"
36
+ "@hot-updater/protocol": "1.0.0-rc.44"
37
37
  },
38
38
  "peerDependencies": {
39
- "@hot-updater/plugin-core": "^1.0.0-rc.43"
39
+ "@hot-updater/plugin-core": "^1.0.0-rc.44"
40
40
  },
41
41
  "peerDependenciesMeta": {
42
42
  "@hot-updater/plugin-core": {
@@ -46,8 +46,8 @@
46
46
  "devDependencies": {
47
47
  "@types/node": "^20",
48
48
  "vitest": "4.1.4",
49
- "@hot-updater/plugin-core": "1.0.0-rc.43",
50
- "@hot-updater/test-utils": "1.0.0-rc.43"
49
+ "@hot-updater/plugin-core": "1.0.0-rc.44",
50
+ "@hot-updater/test-utils": "1.0.0-rc.44"
51
51
  },
52
52
  "nx": {
53
53
  "implicitDependencies": [