@hot-updater/postgres 1.2.0-rc.7 → 1.2.0-rc.8

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/dist/index.d.cts CHANGED
@@ -1,14 +1,14 @@
1
- import { EngineDatabase } from "@hot-updater/plugin-core";
1
+ import { EngineDatabase, Lazy } from "@hot-updater/plugin-core";
2
2
  import { Dialect } from "kysely";
3
3
  import { PoolConfig } from "pg";
4
4
  //#region src/postgres.d.ts
5
5
  type PostgresPoolConfig = Omit<PoolConfig, "connectionString"> & {
6
6
  /**
7
- * The database's URL, or a function that returns it, such as one that
8
- * reads it with `secretEnv`: called when the pool first connects, so a
9
- * config loads without it.
7
+ * The database's URL, or a function that returns it, such as
8
+ * `secret("<name>")` in `hot-updater.config.ts`: called when the pool
9
+ * first connects, so a config loads without it.
10
10
  */
11
- readonly connectionString?: string | (() => string | Promise<string>);
11
+ readonly connectionString?: Lazy<string>;
12
12
  };
13
13
  type PostgresConfig = PostgresPoolConfig & {
14
14
  readonly dialect?: Dialect;
package/dist/index.d.mts CHANGED
@@ -1,14 +1,14 @@
1
- import { EngineDatabase } from "@hot-updater/plugin-core";
1
+ import { EngineDatabase, Lazy } from "@hot-updater/plugin-core";
2
2
  import { Dialect } from "kysely";
3
3
  import { PoolConfig } from "pg";
4
4
  //#region src/postgres.d.ts
5
5
  type PostgresPoolConfig = Omit<PoolConfig, "connectionString"> & {
6
6
  /**
7
- * The database's URL, or a function that returns it, such as one that
8
- * reads it with `secretEnv`: called when the pool first connects, so a
9
- * config loads without it.
7
+ * The database's URL, or a function that returns it, such as
8
+ * `secret("<name>")` in `hot-updater.config.ts`: called when the pool
9
+ * first connects, so a config loads without it.
10
10
  */
11
- readonly connectionString?: string | (() => string | Promise<string>);
11
+ readonly connectionString?: Lazy<string>;
12
12
  };
13
13
  type PostgresConfig = PostgresPoolConfig & {
14
14
  readonly dialect?: Dialect;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/postgres",
3
3
  "type": "module",
4
- "version": "1.2.0-rc.7",
4
+ "version": "1.2.0-rc.8",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.mjs",
@@ -34,9 +34,9 @@
34
34
  "dependencies": {
35
35
  "kysely": "0.28.17",
36
36
  "pg": "8.13.1",
37
- "@hot-updater/protocol": "1.2.0-rc.7",
38
- "@hot-updater/server": "1.2.0-rc.7",
39
- "@hot-updater/plugin-core": "1.2.0-rc.7"
37
+ "@hot-updater/protocol": "1.2.0-rc.8",
38
+ "@hot-updater/plugin-core": "1.2.0-rc.8",
39
+ "@hot-updater/server": "1.2.0-rc.8"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@electric-sql/pglite": "0.4.1",
@@ -45,7 +45,7 @@
45
45
  "camelcase-keys": "^9.1.3",
46
46
  "kysely-pglite-dialect": "1.2.0",
47
47
  "pg-minify": "^1.6.5",
48
- "@hot-updater/test-utils": "1.2.0-rc.7"
48
+ "@hot-updater/test-utils": "1.2.0-rc.8"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsdown",