@hot-updater/plugin-core 1.2.0-rc.4 → 1.2.0-rc.5

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.
@@ -408,10 +408,11 @@ interface SecretsAdapter {
408
408
  */
409
409
  readonly get: (names: readonly string[], context: SecretsContext) => Promise<Readonly<Record<string, string | undefined>>>;
410
410
  /**
411
- * Stores `value` as `name`, replacing what it held. Absent when the store
412
- * is read-only to Hot Updater.
411
+ * Stores `value` as `name`, replacing what it held. Every adapter stores:
412
+ * the CLI keeps the keys it issues and imports here, and nowhere else. A
413
+ * write the store refuses, such as with a read-only token, throws.
413
414
  */
414
- readonly set?: (name: string, value: string, context: SecretsContext) => Promise<void>;
415
+ readonly set: (name: string, value: string, context: SecretsContext) => Promise<void>;
415
416
  /** Where the user finds `name` in the store, such as a URL or a path, for messages. */
416
417
  readonly describe?: (name: string) => string;
417
418
  }
@@ -561,11 +562,10 @@ type ConfigInput = {
561
562
  */
562
563
  signing?: SigningConfig;
563
564
  /**
564
- * Where the CLI reads the secrets the config names: `secret:<name>` build
565
- * credentials and `secretEnv([...])` deploy credentials. Builds read a
566
- * credential this adapter does not hold from `localSecrets()`'s store,
567
- * `~/.hot-updater/secrets/<project-key>/<name>.json`, where keys Hot Updater
568
- * issues go when the adapter stores nothing.
565
+ * Where the CLI reads the secrets the config names, `secret:<name>` build
566
+ * credentials and `secretEnv([...])` deploy credentials, and stores the
567
+ * keys it issues. It is the only store: nothing is kept on this machine
568
+ * under it.
569
569
  *
570
570
  * @default localSecrets()
571
571
  */
@@ -408,10 +408,11 @@ interface SecretsAdapter {
408
408
  */
409
409
  readonly get: (names: readonly string[], context: SecretsContext) => Promise<Readonly<Record<string, string | undefined>>>;
410
410
  /**
411
- * Stores `value` as `name`, replacing what it held. Absent when the store
412
- * is read-only to Hot Updater.
411
+ * Stores `value` as `name`, replacing what it held. Every adapter stores:
412
+ * the CLI keeps the keys it issues and imports here, and nowhere else. A
413
+ * write the store refuses, such as with a read-only token, throws.
413
414
  */
414
- readonly set?: (name: string, value: string, context: SecretsContext) => Promise<void>;
415
+ readonly set: (name: string, value: string, context: SecretsContext) => Promise<void>;
415
416
  /** Where the user finds `name` in the store, such as a URL or a path, for messages. */
416
417
  readonly describe?: (name: string) => string;
417
418
  }
@@ -561,11 +562,10 @@ type ConfigInput = {
561
562
  */
562
563
  signing?: SigningConfig;
563
564
  /**
564
- * Where the CLI reads the secrets the config names: `secret:<name>` build
565
- * credentials and `secretEnv([...])` deploy credentials. Builds read a
566
- * credential this adapter does not hold from `localSecrets()`'s store,
567
- * `~/.hot-updater/secrets/<project-key>/<name>.json`, where keys Hot Updater
568
- * issues go when the adapter stores nothing.
565
+ * Where the CLI reads the secrets the config names, `secret:<name>` build
566
+ * credentials and `secretEnv([...])` deploy credentials, and stores the
567
+ * keys it issues. It is the only store: nothing is kept on this machine
568
+ * under it.
569
569
  *
570
570
  * @default localSecrets()
571
571
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/plugin-core",
3
- "version": "1.2.0-rc.4",
3
+ "version": "1.2.0-rc.5",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,
@@ -45,14 +45,14 @@
45
45
  "es-toolkit": "^1.32.0",
46
46
  "mime": "^4.0.4",
47
47
  "verkit": "0.4.0",
48
- "@hot-updater/protocol": "1.2.0-rc.4"
48
+ "@hot-updater/protocol": "1.2.0-rc.5"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@electric-sql/pglite": "0.4.1",
52
52
  "@types/node": "^20",
53
53
  "@typescript/native": "npm:typescript@7.0.2",
54
54
  "typescript": "npm:@typescript/typescript6@6.0.2",
55
- "@hot-updater/test-utils": "1.2.0-rc.4"
55
+ "@hot-updater/test-utils": "1.2.0-rc.5"
56
56
  },
57
57
  "nx": {
58
58
  "implicitDependencies": [