@hot-updater/postgres 0.36.7 → 1.0.0-rc.0

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,28 +1,11 @@
1
- import { AppVersionGetBundlesArgs, FingerprintGetBundlesArgs, GetBundlesArgs, UpdateInfo } from "@hot-updater/core";
2
- import pg, { PoolConfig } from "pg";
3
1
  import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
2
+ import { Dialect } from "kysely";
3
+ import { PoolConfig } from "pg";
4
4
 
5
- //#region src/getUpdateInfo.d.ts
6
- declare const appVersionStrategy: (pool: pg.Pool, {
7
- platform,
8
- appVersion,
9
- bundleId,
10
- minBundleId,
11
- channel,
12
- cohort
13
- }: AppVersionGetBundlesArgs) => Promise<UpdateInfo | null>;
14
- declare const fingerprintStrategy: (pool: pg.Pool, {
15
- platform,
16
- fingerprintHash,
17
- bundleId,
18
- minBundleId,
19
- channel,
20
- cohort
21
- }: FingerprintGetBundlesArgs) => Promise<UpdateInfo | null>;
22
- declare const getUpdateInfo: (pool: pg.Pool, args: GetBundlesArgs) => Promise<UpdateInfo | null>;
23
- //#endregion
24
5
  //#region src/postgres.d.ts
25
- interface PostgresConfig extends PoolConfig {}
26
- declare const postgres: (config: PostgresConfig, hooks?: _$_hot_updater_plugin_core0.DatabasePluginHooks) => () => _$_hot_updater_plugin_core0.DatabasePlugin<unknown>;
6
+ type PostgresConfig = PoolConfig & {
7
+ readonly dialect?: Dialect;
8
+ };
9
+ declare const postgres: (config: PostgresConfig) => _$_hot_updater_plugin_core0.DatabasePlugin;
27
10
  //#endregion
28
- export { PostgresConfig, appVersionStrategy, fingerprintStrategy, getUpdateInfo, postgres };
11
+ export { PostgresConfig, postgres };
package/dist/index.d.mts CHANGED
@@ -1,28 +1,11 @@
1
- import { AppVersionGetBundlesArgs, FingerprintGetBundlesArgs, GetBundlesArgs, UpdateInfo } from "@hot-updater/core";
2
1
  import * as _$_hot_updater_plugin_core0 from "@hot-updater/plugin-core";
3
- import pg, { PoolConfig } from "pg";
2
+ import { Dialect } from "kysely";
3
+ import { PoolConfig } from "pg";
4
4
 
5
- //#region src/getUpdateInfo.d.ts
6
- declare const appVersionStrategy: (pool: pg.Pool, {
7
- platform,
8
- appVersion,
9
- bundleId,
10
- minBundleId,
11
- channel,
12
- cohort
13
- }: AppVersionGetBundlesArgs) => Promise<UpdateInfo | null>;
14
- declare const fingerprintStrategy: (pool: pg.Pool, {
15
- platform,
16
- fingerprintHash,
17
- bundleId,
18
- minBundleId,
19
- channel,
20
- cohort
21
- }: FingerprintGetBundlesArgs) => Promise<UpdateInfo | null>;
22
- declare const getUpdateInfo: (pool: pg.Pool, args: GetBundlesArgs) => Promise<UpdateInfo | null>;
23
- //#endregion
24
5
  //#region src/postgres.d.ts
25
- interface PostgresConfig extends PoolConfig {}
26
- declare const postgres: (config: PostgresConfig, hooks?: _$_hot_updater_plugin_core0.DatabasePluginHooks) => () => _$_hot_updater_plugin_core0.DatabasePlugin<unknown>;
6
+ type PostgresConfig = PoolConfig & {
7
+ readonly dialect?: Dialect;
8
+ };
9
+ declare const postgres: (config: PostgresConfig) => _$_hot_updater_plugin_core0.DatabasePlugin;
27
10
  //#endregion
28
- export { PostgresConfig, appVersionStrategy, fingerprintStrategy, getUpdateInfo, postgres };
11
+ export { PostgresConfig, postgres };