trm-client 10.0.8 → 11.0.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.txt CHANGED
@@ -8,9 +8,11 @@ Legend
8
8
  + : added
9
9
  - : removed
10
10
 
11
- 2026-07-07 v10.0.8
11
+ 2026-07-22 v11.0.0
12
12
  -------------------
13
- * gui settings
13
+ ! trm-core ^9.10.0
14
+ ! trm-registry-types ^2.4.0
15
+ + changelog command
14
16
 
15
17
  2026-07-07 v10.0.7
16
18
  -------------------
package/dist/cli.js CHANGED
@@ -68,6 +68,7 @@ new implementations_1.Install(program, 'import').register();
68
68
  new implementations_1.List(program, 'list', ['ls']).register();
69
69
  new implementations_1.Content(program, 'content', ['contents']).register();
70
70
  new implementations_1.View(program, 'view').register();
71
+ new implementations_1.Changelog(program, 'changelog').register();
71
72
  new implementations_1.Compare(program, 'compare').register();
72
73
  new implementations_1.Dirty(program, 'dirty').register();
73
74
  new implementations_1.FindDependencies(program, 'find-dependencies').register();
@@ -0,0 +1,6 @@
1
+ import { AbstractCommand } from "../AbstractCommand";
2
+ import { CommandMetadata } from "../metadata/CommandMetadata";
3
+ export declare class Changelog extends AbstractCommand {
4
+ static readonly metadata: CommandMetadata;
5
+ protected handler(): Promise<void>;
6
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Changelog = void 0;
13
+ const AbstractCommand_1 = require("../AbstractCommand");
14
+ const trm_commons_1 = require("trm-commons");
15
+ const helpers_1 = require("../metadata/helpers");
16
+ class Changelog extends AbstractCommand_1.AbstractCommand {
17
+ handler() {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ const view = yield this.getRegistry().getPackage(this.args.package, this.args.version);
20
+ if (view.changelog) {
21
+ trm_commons_1.Logger.log(view.changelog);
22
+ }
23
+ else {
24
+ trm_commons_1.Logger.info(`${this.args.package} ${this.args.version} has no changelog.`);
25
+ }
26
+ });
27
+ }
28
+ }
29
+ exports.Changelog = Changelog;
30
+ Changelog.metadata = {
31
+ id: "changelog",
32
+ command: "changelog",
33
+ title: "Changelog",
34
+ group: "utility",
35
+ guiRelevant: false,
36
+ description: "Show changelog of a release.",
37
+ icon: "Diff",
38
+ arguments: [
39
+ (0, helpers_1.argument)(0, { name: "package", label: "Package", description: "Package name." }),
40
+ (0, helpers_1.argument)(1, { name: "version", label: "Version", description: "Release version or distribution tag.", required: false, defaultValue: "latest" })
41
+ ],
42
+ options: [],
43
+ requirements: {
44
+ requiresRegistry: true
45
+ }
46
+ };
@@ -22,6 +22,7 @@ import { Cg3y } from "./Cg3y";
22
22
  import { Cg3z } from "./Cg3z";
23
23
  import { Settings } from "./Settings";
24
24
  import { ClearCache } from "./ClearCache";
25
+ import { Changelog } from "./Changelog";
25
26
  export * from "./Ping";
26
27
  export * from "./Info";
27
28
  export * from "./Registry";
@@ -38,6 +39,7 @@ export * from "./Install";
38
39
  export * from "./List";
39
40
  export * from "./Content";
40
41
  export * from "./View";
42
+ export * from "./Changelog";
41
43
  export * from "./Compare";
42
44
  export * from "./Dirty";
43
45
  export * from "./FindDependencies";
@@ -45,6 +47,6 @@ export * from "./Cg3y";
45
47
  export * from "./Cg3z";
46
48
  export * from "./Settings";
47
49
  export * from "./ClearCache";
48
- export declare const commands: (typeof Ping | typeof Info | typeof Registry | typeof Login | typeof WhoAmI | typeof Logout | typeof Alias | typeof Publish | typeof DistTag | typeof Lock | typeof Unpublish | typeof Deprecate | typeof Install | typeof List | typeof Content | typeof View | typeof Compare | typeof Dirty | typeof FindDependencies | typeof Cg3y | typeof Cg3z | typeof Settings | typeof ClearCache)[];
50
+ export declare const commands: (typeof Ping | typeof Info | typeof Registry | typeof Login | typeof WhoAmI | typeof Logout | typeof Alias | typeof Publish | typeof DistTag | typeof Lock | typeof Unpublish | typeof Deprecate | typeof Install | typeof List | typeof Content | typeof View | typeof Compare | typeof Dirty | typeof FindDependencies | typeof Cg3y | typeof Cg3z | typeof Settings | typeof ClearCache | typeof Changelog)[];
49
51
  export declare function getCommand(id: string): CommandClass | undefined;
50
52
  export declare function getCommandMetadata(id: string): import("../metadata/CommandMetadata").CommandMetadata;
@@ -40,6 +40,7 @@ const Cg3y_1 = require("./Cg3y");
40
40
  const Cg3z_1 = require("./Cg3z");
41
41
  const Settings_1 = require("./Settings");
42
42
  const ClearCache_1 = require("./ClearCache");
43
+ const Changelog_1 = require("./Changelog");
43
44
  __exportStar(require("./Ping"), exports);
44
45
  __exportStar(require("./Info"), exports);
45
46
  __exportStar(require("./Registry"), exports);
@@ -56,6 +57,7 @@ __exportStar(require("./Install"), exports);
56
57
  __exportStar(require("./List"), exports);
57
58
  __exportStar(require("./Content"), exports);
58
59
  __exportStar(require("./View"), exports);
60
+ __exportStar(require("./Changelog"), exports);
59
61
  __exportStar(require("./Compare"), exports);
60
62
  __exportStar(require("./Dirty"), exports);
61
63
  __exportStar(require("./FindDependencies"), exports);
@@ -82,6 +84,7 @@ exports.commands = [
82
84
  View_1.View,
83
85
  Compare_1.Compare,
84
86
  Dirty_1.Dirty,
87
+ Changelog_1.Changelog,
85
88
  FindDependencies_1.FindDependencies,
86
89
  Cg3y_1.Cg3y,
87
90
  Cg3z_1.Cg3z,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-client",
3
- "version": "10.0.8",
3
+ "version": "11.0.0",
4
4
  "description": "TRM (Transport Request Manager) Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -47,8 +47,8 @@
47
47
  "sanitize-filename": "^1.6.3",
48
48
  "semver": "^7.7.4",
49
49
  "trm-commons": "^5.0.1",
50
- "trm-core": "^9.8.1",
51
- "trm-registry-types": "^2.1.0",
50
+ "trm-core": "^9.10.0",
51
+ "trm-registry-types": "^2.4.0",
52
52
  "xml2js": "^0.6.2"
53
53
  },
54
54
  "peerDependencies": {