trm-core 10.1.0 → 10.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.txt CHANGED
@@ -8,6 +8,15 @@ Legend
8
8
  + : added
9
9
  - : removed
10
10
 
11
+ 2026-10-14 v10.3.0
12
+ -------------------
13
+ * rollback cleanup excludes LANG entries rejected by SAP deletion transports
14
+ * trm-server/trm-rest upgrades requeue their fixed TADIR transport and refresh its TMS description
15
+
16
+ 2026-10-13 v10.2.0
17
+ -------------------
18
+ * request of import /ATRM/ (fixed $)
19
+
11
20
  2026-10-12 v10.1.0
12
21
  -------------------
13
22
  * trm-server/trm-rest upgrade from a backend before trm-server 7.0.0/trm-rest 6.0.0
@@ -116,6 +116,11 @@ exports.addNamespace = {
116
116
  context.runtime.namespace = getInstallNamespace(context);
117
117
  if (context.runtime.namespace[0] !== '/') {
118
118
  trm_commons_1.Logger.log(`Package install namespace is ${context.runtime.namespace}, continue`, true);
119
+ // trm-server and trm-rest are fixed into `$` packages: the backend assigns their /ATRM/ objects with
120
+ if (context.runtime.isTrmServer || context.runtime.isTrmRest) {
121
+ trm_commons_1.Logger.log(`Skipping namespace ${originalNamespace} import: ${context.rawInput.packageData.name} objects are assigned to ${context.runtime.namespace} packages`, true);
122
+ return;
123
+ }
119
124
  // Packages renamed out of the original namespace: the objects keep their names, and can only be
120
125
  // assigned to the install packages (and repaired) when their namespace exists.
121
126
  if (originalNamespace[0] === '/' && !((_a = (yield systemConnector_1.SystemConnector.getNamespace(originalNamespace))) === null || _a === void 0 ? void 0 : _a.trnspacet)) {
Binary file
@@ -34,7 +34,7 @@ exports.prepareTadir = {
34
34
  (0, stopWarning_1.stopWarning)('install');
35
35
  }
36
36
  yield (0, utils_1.withScopedPrefix)(`(${transport_1.Transport.getTransportIcon()} Workbench) `, () => __awaiter(void 0, void 0, void 0, function* () {
37
- var _a;
37
+ var _a, _b;
38
38
  //1- generate dummy transport (if registry is not local)
39
39
  //checking if binaries are already loaded in context instead of checking registry local
40
40
  //is equivalent, but better for possible changes in the future
@@ -68,6 +68,21 @@ exports.prepareTadir = {
68
68
  else {
69
69
  trkorr = context.runtime.transports.tadir.binaries.trkorr;
70
70
  }
71
+ // trm-server and trm-rest reuse the same TADIR transport in every release. Remove the
72
+ // previous queue entry before forwarding the new payload, otherwise TMS keeps its old
73
+ // position. This is best effort: an absent entry (or an older backend that cannot remove
74
+ // it) must not prevent the backend upgrade.
75
+ const packageName = ((_b = context.runtime.package.data.manifest) === null || _b === void 0 ? void 0 : _b.name) || context.rawInput.packageData.name;
76
+ const fixedTrkorr = utils_1.TRM_FIXED_TADIR_TRANSPORTS[packageName];
77
+ if (context.runtime.selfUpdate && fixedTrkorr === trkorr) {
78
+ try {
79
+ trm_commons_1.Logger.loading(`Removing previous ${trkorr} from ${systemConnector_1.SystemConnector.getDest()} import queue...`, true);
80
+ yield systemConnector_1.SystemConnector.deleteTmsTransport(trkorr, systemConnector_1.SystemConnector.getDest());
81
+ }
82
+ catch (error) {
83
+ trm_commons_1.Logger.warning(`Couldn't remove ${trkorr} from ${systemConnector_1.SystemConnector.getDest()} import queue: ${error instanceof Error ? error.message : String(error)}`, true);
84
+ }
85
+ }
71
86
  //2- upload transport binaries
72
87
  trm_commons_1.Logger.loading(`Uploading transport...`);
73
88
  context.runtime.transports.tadir.instance = yield transport_1.Transport.upload(trkorr, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trm-core",
3
- "version": "10.1.0",
3
+ "version": "10.3.0",
4
4
  "description": "TRM (Transport Request Manager) Core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",