@sprid/release 1.5.2 → 1.5.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  @sprid/release follows semver: a breaking change to a command's arguments, its
4
4
  output shape or its exit codes is a major release.
5
5
 
6
+ ## 1.5.3 - 2026-11-06
7
+
8
+ - The Google Play metadata push creates the listing for a language the app has not had yet, where it used to fail with a 404.
9
+
6
10
  ## 1.5.2 - 2026-11-02
7
11
 
8
12
  - Custom product page pushes reuse images already in the app's Asset Library
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprid/release",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "Build, sign and release mobile apps locally. Store copy, screenshots, binary uploads and review submissions from one app-owned configuration. Dry run by default.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -22,7 +22,11 @@ export async function pushPlayMetadata({ config, copy, contact, localeMap, execu
22
22
  const { play, packageName } = client;
23
23
  await client.withEdit(async editId => {
24
24
  for (const listing of plan) {
25
- await play.edits.listings.patch({ packageName, editId, language: listing.language, requestBody: listing });
25
+ // patch cannot create: a language new to the listing answers 404 and needs update.
26
+ await play.edits.listings.patch({ packageName, editId, language: listing.language, requestBody: listing }).catch((error: { code?: number; status?: number }) => {
27
+ if (error.code !== 404 && error.status !== 404) throw error;
28
+ return play.edits.listings.update({ packageName, editId, language: listing.language, requestBody: listing });
29
+ });
26
30
  }
27
31
  if (contact) await play.edits.details.patch({ packageName, editId, requestBody: contact });
28
32
  });