@hot-updater/standalone 1.2.0-rc.50 → 1.2.0-rc.52

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.cjs CHANGED
@@ -61,6 +61,7 @@ const MANAGEMENT_CODES = /* @__PURE__ */ new Set([
61
61
  const CATALOG_CODES = /* @__PURE__ */ new Set([
62
62
  "CATALOG_GENERATION_EXHAUSTED",
63
63
  "CATALOG_IDENTITY_MISSING",
64
+ "CATALOG_FROM_LATER_RELEASE",
64
65
  "INVALID_SCOPE",
65
66
  "NON_MONOTONIC_RELEASE_ID"
66
67
  ]);
@@ -186,6 +187,14 @@ const createStandaloneCoreApi = (config) => {
186
187
  limit: String(limit)
187
188
  }),
188
189
  getRelease: (id) => call("GET", `/releases/${encode(id)}`),
190
+ getReleaseByLabel: ({ channel, platform, label }) => call("GET", "/release-labels", {
191
+ query: {
192
+ channel,
193
+ platform,
194
+ label: String(label)
195
+ },
196
+ requiredRoute: "release label"
197
+ }),
189
198
  listReleases: ({ filter, ...input }) => list("/releases", {
190
199
  ...keysetParams(input),
191
200
  ...filterParams(filter)
@@ -256,6 +265,10 @@ const createStandaloneCoreApi = (config) => {
256
265
  } }),
257
266
  promoteRelease: async ({ releaseId, ...input }) => await call("POST", `/releases/${encode(releaseId)}/promote`, { body: input }),
258
267
  rebuildReleaseCatalog: async (scopeKey) => await call("POST", `/release-catalogs/${encode(scopeKey)}/rebuild`),
268
+ fillReleaseLabels: async (input = {}) => await call("POST", "/release-labels/fill", {
269
+ body: input,
270
+ requiredRoute: "release label"
271
+ }),
259
272
  preflightReleaseCatalogRebuild: async (scopeKey) => await call("POST", `/release-catalogs/${encode(scopeKey)}/preflight`),
260
273
  ensureChannel: async (name) => await call("POST", "/channels", { body: { name } }),
261
274
  deleteChannel: async (id) => {
package/dist/index.mjs CHANGED
@@ -60,6 +60,7 @@ const MANAGEMENT_CODES = /* @__PURE__ */ new Set([
60
60
  const CATALOG_CODES = /* @__PURE__ */ new Set([
61
61
  "CATALOG_GENERATION_EXHAUSTED",
62
62
  "CATALOG_IDENTITY_MISSING",
63
+ "CATALOG_FROM_LATER_RELEASE",
63
64
  "INVALID_SCOPE",
64
65
  "NON_MONOTONIC_RELEASE_ID"
65
66
  ]);
@@ -185,6 +186,14 @@ const createStandaloneCoreApi = (config) => {
185
186
  limit: String(limit)
186
187
  }),
187
188
  getRelease: (id) => call("GET", `/releases/${encode(id)}`),
189
+ getReleaseByLabel: ({ channel, platform, label }) => call("GET", "/release-labels", {
190
+ query: {
191
+ channel,
192
+ platform,
193
+ label: String(label)
194
+ },
195
+ requiredRoute: "release label"
196
+ }),
188
197
  listReleases: ({ filter, ...input }) => list("/releases", {
189
198
  ...keysetParams(input),
190
199
  ...filterParams(filter)
@@ -255,6 +264,10 @@ const createStandaloneCoreApi = (config) => {
255
264
  } }),
256
265
  promoteRelease: async ({ releaseId, ...input }) => await call("POST", `/releases/${encode(releaseId)}/promote`, { body: input }),
257
266
  rebuildReleaseCatalog: async (scopeKey) => await call("POST", `/release-catalogs/${encode(scopeKey)}/rebuild`),
267
+ fillReleaseLabels: async (input = {}) => await call("POST", "/release-labels/fill", {
268
+ body: input,
269
+ requiredRoute: "release label"
270
+ }),
258
271
  preflightReleaseCatalogRebuild: async (scopeKey) => await call("POST", `/release-catalogs/${encode(scopeKey)}/preflight`),
259
272
  ensureChannel: async (name) => await call("POST", "/channels", { body: { name } }),
260
273
  deleteChannel: async (id) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hot-updater/standalone",
3
- "version": "1.2.0-rc.50",
3
+ "version": "1.2.0-rc.52",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,
@@ -42,8 +42,8 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@hot-updater/protocol": "1.2.0-rc.50",
46
- "@hot-updater/plugin-core": "1.2.0-rc.50"
45
+ "@hot-updater/protocol": "1.2.0-rc.52",
46
+ "@hot-updater/plugin-core": "1.2.0-rc.52"
47
47
  },
48
48
  "devDependencies": {
49
49
  "mime": "2.6.0",
@@ -52,7 +52,7 @@
52
52
  "msw": "^2.7.0",
53
53
  "verkit": "0.4.0",
54
54
  "vitest": "4.1.4",
55
- "@hot-updater/test-utils": "1.2.0-rc.50"
55
+ "@hot-updater/test-utils": "1.2.0-rc.52"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "tsdown",