@himring/cli 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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.3.0 (2026-12-03)
2
+
3
+ ### Fixes
4
+
5
+ - **downloads:** select the file extension from the response media type ([3dcc950](https://github.com/himringhq/himring-sdk/commit/3dcc950392faae1ea08480068b57946df0e4efc2))
6
+
7
+ ### Other changes
8
+
9
+ - drop the checks against released clients before launch ([ab0847e](https://github.com/himringhq/himring-sdk/commit/ab0847e2b0f6d3577fb73942d1672c9330cf3213))
10
+
1
11
  ## 0.2.0 (2026-11-29)
2
12
 
3
13
  ### Features
package/dist/main.js CHANGED
@@ -1428,7 +1428,7 @@ async function placeWithoutReplacing(temporary, target) {
1428
1428
  async function saveDownloadTo(result, target) {
1429
1429
  if (!isDownload(result))
1430
1430
  throw new HimringApiError2("invalid_response", "The API answered the download without a file.");
1431
- const path = resolve3(target.out ?? safeDownloadName(result.file_name, FALLBACK_FILE_NAME));
1431
+ const path = resolve3(target.out ?? safeDownloadName(result.file_name, FALLBACK_FILE_NAME, result.file_extension));
1432
1432
  if (!target.force && await exists(path)) {
1433
1433
  await result.body.cancel().catch(() => void 0);
1434
1434
  throw alreadyExists(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@himring/cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "The Himring command-line interface, which runs every operation of the Himring API from a shell or a script.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://himring.ai",
@@ -37,7 +37,7 @@
37
37
  "ajv": "8.20.0",
38
38
  "commander": "15.1.0",
39
39
  "valibot": "1.5.0",
40
- "@himring/sdk": "0.2.0"
40
+ "@himring/sdk": "0.3.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "24.19.1",