@hot-updater/supabase 0.5.3 → 0.5.4
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/supabase",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.4",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"package.json"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@hot-updater/core": "0.5.
|
|
33
|
-
"@hot-updater/plugin-core": "0.5.
|
|
32
|
+
"@hot-updater/core": "0.5.4",
|
|
33
|
+
"@hot-updater/plugin-core": "0.5.4",
|
|
34
34
|
"@supabase/supabase-js": "^2.47.10",
|
|
35
35
|
"picocolors": "^1.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@hot-updater/postgres": "0.5.
|
|
38
|
+
"@hot-updater/postgres": "0.5.4",
|
|
39
39
|
"dayjs": "^1.11.13",
|
|
40
40
|
"mime": "^4.0.4"
|
|
41
41
|
},
|
|
@@ -190,6 +190,34 @@ BEGIN
|
|
|
190
190
|
satisfies := (version >= lower_bound AND version < upper_bound);
|
|
191
191
|
END;
|
|
192
192
|
|
|
193
|
+
-- [Added] 1) Single major version pattern '^(\d+)$'
|
|
194
|
+
ELSIF range_expression ~ '^\d+$' THEN
|
|
195
|
+
/*
|
|
196
|
+
e.g.) "1" is interpreted as (>=1.0.0 <2.0.0) in semver range
|
|
197
|
+
"2" would be interpreted as (>=2.0.0 <3.0.0)
|
|
198
|
+
*/
|
|
199
|
+
DECLARE
|
|
200
|
+
major_range INT := range_expression::INT;
|
|
201
|
+
lower_bound TEXT := major_range || '.0.0';
|
|
202
|
+
upper_bound TEXT := (major_range + 1) || '.0.0';
|
|
203
|
+
BEGIN
|
|
204
|
+
satisfies := (version >= lower_bound AND version < upper_bound);
|
|
205
|
+
END;
|
|
206
|
+
|
|
207
|
+
-- [Added] 2) major.x pattern '^(\d+)\.x$'
|
|
208
|
+
ELSIF range_expression ~ '^\d+\.x$' THEN
|
|
209
|
+
/*
|
|
210
|
+
e.g.) "2.x" => as long as major=2 matches, any minor and patch is OK
|
|
211
|
+
effectively works like (>=2.0.0 <3.0.0)
|
|
212
|
+
*/
|
|
213
|
+
DECLARE
|
|
214
|
+
major_range INT := split_part(range_expression, '.', 1)::INT;
|
|
215
|
+
lower_bound TEXT := major_range || '.0.0';
|
|
216
|
+
upper_bound TEXT := (major_range + 1) || '.0.0';
|
|
217
|
+
BEGIN
|
|
218
|
+
satisfies := (version >= lower_bound AND version < upper_bound);
|
|
219
|
+
END;
|
|
220
|
+
|
|
193
221
|
ELSE
|
|
194
222
|
RAISE EXCEPTION 'Unsupported range expression: %', range_expression;
|
|
195
223
|
END IF;
|