@duyquangnvx/image-gen 0.13.1 → 0.13.2

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
@@ -6,6 +6,16 @@ A release turns `## Unreleased` into `## vX.Y.Z (YYYY-MM-DD)`, which from the se
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ ## v0.13.2 (2026-10-12)
10
+
11
+ ### Upgrade from v0.13.1
12
+
13
+ - Nothing to do.
14
+
15
+ ### Fixed
16
+
17
+ - `image-gen update` and the `registry` row of `image-gen doctor` work under npm 12, which answers `npm view` in an array; they failed with `E_NO_LATEST` there.
18
+
9
19
  ## v0.13.1 (2026-10-12)
10
20
 
11
21
  ### Upgrade from v0.13.0
package/dist/cli.mjs CHANGED
@@ -614,11 +614,11 @@ function createProviders() {
614
614
  }
615
615
  //#endregion
616
616
  //#region src/cli/version.ts
617
- const VERSION = "0.13.1";
617
+ const VERSION = "0.13.2";
618
618
  /** The short SHA, with `+dirty` when the tree had uncommitted changes. */
619
- const COMMIT = "1d3c077";
619
+ const COMMIT = "0ee0cb5";
620
620
  /** ISO 8601, UTC. */
621
- const BUILT_AT = "2026-10-12T04:16:52.394Z";
621
+ const BUILT_AT = "2026-10-12T07:02:35.631Z";
622
622
  /** `engines.node` from package.json, always `>=X.Y`. */
623
623
  const NODE_ENGINE = ">=22.12";
624
624
  const BUILD = {
@@ -1011,7 +1011,8 @@ async function latest(ctx, signal) {
1011
1011
  code: done.code,
1012
1012
  said: done.stderr
1013
1013
  }, "E_NPM_FAILED");
1014
- const version = jsonOf(done.stdout);
1014
+ const answer = jsonOf(done.stdout);
1015
+ const version = Array.isArray(answer) && answer.length === 1 ? answer[0] : answer;
1015
1016
  if (!isVersion(version)) throw new UserError("E_NO_LATEST", `npm answered no version ${doing}: '${done.stdout.trim()}'`);
1016
1017
  return version;
1017
1018
  }
@@ -3805,7 +3806,7 @@ async function update(ctx) {
3805
3806
  if (problem !== null) throw problem;
3806
3807
  const latest = await packages.latest(ctx.signal);
3807
3808
  const before = await skill.state();
3808
- if (standing("0.13.1", latest) !== "behind") {
3809
+ if (standing("0.13.2", latest) !== "behind") {
3809
3810
  deliver(ctx, latest, {
3810
3811
  installed: null,
3811
3812
  skill: before,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duyquangnvx/image-gen",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
4
4
  "description": "Generate, edit and cut out images through the AI SDK, as a TypeScript library and the image-gen CLI",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",