@hot-updater/postgres 0.2.0 → 0.3.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/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "@hot-updater/postgres",
3
3
  "type": "module",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.cjs"
12
+ },
13
+ "./sql": "./sql"
14
+ },
8
15
  "types": "dist/index.d.ts",
9
16
  "license": "MIT",
10
17
  "repository": "https://github.com/gronxb/hot-updater",
@@ -22,8 +29,8 @@
22
29
  "package.json"
23
30
  ],
24
31
  "dependencies": {
25
- "@hot-updater/core": "0.2.0",
26
- "@hot-updater/plugin-core": "0.2.0",
32
+ "@hot-updater/core": "0.3.0",
33
+ "@hot-updater/plugin-core": "0.3.0",
27
34
  "kysely": "^0.27.5",
28
35
  "pg": "^8.13.1"
29
36
  },
package/sql/bundles.sql CHANGED
@@ -1,3 +1,5 @@
1
+ -- HotUpdater.bundles
2
+
1
3
  CREATE TYPE platforms AS ENUM ('ios', 'android');
2
4
 
3
5
  CREATE TABLE bundles (
@@ -11,3 +13,5 @@ CREATE TABLE bundles (
11
13
  git_commit_hash text,
12
14
  message text
13
15
  );
16
+
17
+ CREATE INDEX bundles_target_app_version_idx ON bundles(target_app_version);
@@ -1,3 +1,5 @@
1
+ -- HotUpdater.get_update_info
2
+
1
3
  CREATE OR REPLACE FUNCTION get_update_info (
2
4
  app_platform platforms,
3
5
  app_version text,
@@ -1,3 +1,5 @@
1
+ -- HotUpdater.semver_satisfies
2
+
1
3
  CREATE OR REPLACE FUNCTION semver_satisfies(range_expression TEXT, version TEXT)
2
4
  RETURNS BOOLEAN AS $$
3
5
  DECLARE