trm-core 9.10.1 → 9.10.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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 RegestaItalia
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2023 RegestaItalia
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,55 +1,55 @@
1
- # <a href="https://docs.trmregistry.com/"><img src="https://docs.trmregistry.com/logo.png" height="40" alt="TRM"></a>
2
-
3
- [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-1.3.0-4baaaa.svg)](https://github.com/RegestaItalia/trm-docs/blob/main/CODE_OF_CONDUCT.md)
4
- [![Core License](https://img.shields.io/github/license/RegestaItalia/trm-core)](https://github.com/RegestaItalia/trm-core)
5
- [![Core Latest version](https://img.shields.io/npm/v/trm-core)](https://www.npmjs.com/package/trm-core)
6
- [![Core Installs](https://img.shields.io/npm/dt/trm-core)](https://www.npmjs.com/package/trm-core)
7
- [![View Code Wiki](https://assets.codewiki.google/readme-badge/static.svg)](https://codewiki.google/github.com/regestaitalia/trm-docs)
8
-
9
- | 🚀 This project is funded and maintained by 🏦 | 🔗 |
10
- |-------------------------------------------------|----------------------------------------------------------------|
11
- | Regesta S.p.A. | [https://www.regestaitalia.eu/](https://www.regestaitalia.eu/) |
12
- | Clarex S.r.l. | [https://www.clarex.it/](https://www.clarex.it/) |
13
-
14
- [trm-core](https://www.npmjs.com/package/trm-core) is the server-side component of TRM.
15
-
16
- 🚚 **TRM (Transport Request Manager)** is a package manager inspired solution built leveraging CTS that simplifies SAP ABAP transports.
17
-
18
- <p align="center">
19
- <img src="https://docs.trmregistry.com/logo.png" alt="TRM Logo" />
20
- </p>
21
-
22
- TRM introduces **package-based software delivery** to the SAP ecosystem, bringing with it semantic versioning, dependency management, and automated deployment activities.
23
-
24
- # Requirements
25
-
26
- - [Node >=22.12.0](https://github.com/nodejs/node/releases/tag/v22.12.0)
27
-
28
- # Documentation
29
-
30
- Full documentation can be seen at [https://docs.trmregistry.com/](https://docs.trmregistry.com).
31
-
32
- # Usage
33
-
34
- `trm-core` is a low-level library and is **not intended to be used directly** by end users.
35
-
36
- In order to interact with SAP systems, `trm-core` must be consumed by a compatible client implementation.
37
-
38
- ## CLI Client
39
-
40
- Install the official CLI client via npm:
41
-
42
- ```bash
43
- npm install trm-client -g
44
- ```
45
-
46
- # Contributing
47
- Like every other TRM open-source projects, contributions are always welcomed ❤️.
48
-
49
- Make sure to open an issue first.
50
-
51
- Contributions will be merged upon approval.
52
-
53
- [Click here](https://docs.trmregistry.com/#/CONTRIBUTING) for the full list of TRM contribution guidelines.
54
-
55
- [<img src="https://trmregistry.com/public/contributors?image=true">](https://docs.trmregistry.com/#/?id=contributors)
1
+ # <a href="https://docs.trmregistry.com/"><img src="https://docs.trmregistry.com/logo.png" height="40" alt="TRM"></a>
2
+
3
+ [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-1.3.0-4baaaa.svg)](https://github.com/RegestaItalia/trm-docs/blob/main/CODE_OF_CONDUCT.md)
4
+ [![Core License](https://img.shields.io/github/license/RegestaItalia/trm-core)](https://github.com/RegestaItalia/trm-core)
5
+ [![Core Latest version](https://img.shields.io/npm/v/trm-core)](https://www.npmjs.com/package/trm-core)
6
+ [![Core Installs](https://img.shields.io/npm/dt/trm-core)](https://www.npmjs.com/package/trm-core)
7
+ [![View Code Wiki](https://assets.codewiki.google/readme-badge/static.svg)](https://codewiki.google/github.com/regestaitalia/trm-docs)
8
+
9
+ | 🚀 This project is funded and maintained by 🏦 | 🔗 |
10
+ |-------------------------------------------------|----------------------------------------------------------------|
11
+ | Regesta S.p.A. | [https://www.regestaitalia.eu/](https://www.regestaitalia.eu/) |
12
+ | Clarex S.r.l. | [https://www.clarex.it/](https://www.clarex.it/) |
13
+
14
+ [trm-core](https://www.npmjs.com/package/trm-core) is the server-side component of TRM.
15
+
16
+ 🚚 **TRM (Transport Request Manager)** is a package manager inspired solution built leveraging CTS that simplifies SAP ABAP transports.
17
+
18
+ <p align="center">
19
+ <img src="https://docs.trmregistry.com/logo.png" alt="TRM Logo" />
20
+ </p>
21
+
22
+ TRM introduces **package-based software delivery** to the SAP ecosystem, bringing with it semantic versioning, dependency management, and automated deployment activities.
23
+
24
+ # Requirements
25
+
26
+ - [Node >=22.12.0](https://github.com/nodejs/node/releases/tag/v22.12.0)
27
+
28
+ # Documentation
29
+
30
+ Full documentation can be seen at [https://docs.trmregistry.com/](https://docs.trmregistry.com).
31
+
32
+ # Usage
33
+
34
+ `trm-core` is a low-level library and is **not intended to be used directly** by end users.
35
+
36
+ In order to interact with SAP systems, `trm-core` must be consumed by a compatible client implementation.
37
+
38
+ ## CLI Client
39
+
40
+ Install the official CLI client via npm:
41
+
42
+ ```bash
43
+ npm install trm-client -g
44
+ ```
45
+
46
+ # Contributing
47
+ Like every other TRM open-source projects, contributions are always welcomed ❤️.
48
+
49
+ Make sure to open an issue first.
50
+
51
+ Contributions will be merged upon approval.
52
+
53
+ [Click here](https://docs.trmregistry.com/#/CONTRIBUTING) for the full list of TRM contribution guidelines.
54
+
55
+ [<img src="https://trmregistry.com/public/contributors?image=true">](https://docs.trmregistry.com/#/?id=contributors)
package/changelog.txt CHANGED
@@ -1,381 +1,390 @@
1
- trm-core changelog
2
- =================
3
-
4
- Legend
5
- ------
6
- * : fixed
7
- ! : changed
8
- + : added
9
- - : removed
10
-
11
- 2026-07-23 v9.10.1
12
- -------------------
13
- + node package for bundled solutions
14
-
15
- 2026-07-22 v9.10.0
16
- -------------------
17
- + changelog publish support
18
- ! trm-registry-types ^2.4.0
19
- + async publish
20
-
21
- 2026-07-20 v9.9.0
22
- -------------------
23
- * rest package update
24
- + error message on unauthenticated publish in public registry
25
- ! trm-server ^6.4.1
26
-
27
- 2026-07-20 v9.8.5
28
- -------------------
29
- ! audit
30
-
31
- 2026-07-05 v9.8.4
32
- -------------------
33
- * trm-rest install (temporary package)
34
- ! moved transport install generation as final step of install
35
- ! trm-registry-types ^2.2.0
36
-
37
- 2026-07-05 v9.8.3
38
- -------------------
39
- * rest client get installed packages
40
-
41
- 2026-07-05 v9.8.2
42
- -------------------
43
- * rest client response parsing
44
-
45
- 2026-07-05 v9.8.1
46
- -------------------
47
- - uuid dependency
48
-
49
- 2026-06-15 v9.8.0
50
- -------------------
51
- ! guard table read result fields order
52
- ! sanitize package contents from registry
53
-
54
- 2026-05-26 v9.7.0
55
- -------------------
56
- * install of trm-server and trm-rest
57
- ! trm-commons ^5.0.0
58
-
59
- 2026-05-08 v9.5.1
60
- -------------------
61
- * install of trm-server and trm-rest
62
-
63
- 2026-05-07 v9.5.0
64
- -------------------
65
- * avoid usage of r3trans when entries are provided by registry
66
- ! registry return type on publish
67
- ! trm-commons ^4.2.0
68
-
69
- 2026-04-29 v9.4.0
70
- -------------------
71
- ! trm-commons ^4.1.0
72
- * upgrade of trm-server/trm-rest post /ATRM/ package replacements
73
- ! usage of temporary packages instead of namespace
74
- ! avoid usage of r3trans when entries are provided by registry
75
-
76
- 2026-04-21 v9.3.0
77
- -------------------
78
- * avoid useless transport unpack for reading transport number
79
- ! usage with devc transport import when replacements are like original
80
- * ignore namespace import error when doesnt exist
81
- + optional filter installed packages
82
- - optional log parameter
83
- * install transport update in table
84
- + confirm overwrite on dirty package
85
- ! trm-server ^6.1.0
86
- ! trm-commons ^4.0.0
87
- ! node-r3trans ^2.0.2
88
-
89
- 2026-04-21 v9.1.0
90
- -------------------
91
- ! abstract registry log for downloads
92
- ! abstract registry contents endpoint (wip)
93
- ! skip usage of r3trans when registry provides content (wip)
94
-
95
- 2026-04-14 v9.0.0
96
- -------------------
97
- ! moved to namespace /ATRM/
98
- ! trm-commons ^3.7.1
99
- * polling progress bar
100
- * transport icon
101
- ! release check before TADIR transport (in publish)
102
- - sap entries in transport documentation
103
- ! release on transport install
104
- ! multiple customizing transports allowed
105
-
106
- 2026-03-11 v8.5.3
107
- -------------------
108
- + refresh transport text in cg3z
109
-
110
- 2026-03-11 v8.5.2
111
- -------------------
112
- + check transport existance in cg3y
113
-
114
- 2026-03-10 v8.5.1
115
- -------------------
116
- + stateless indicator in system connector
117
-
118
- 2026-03-09 v8.5.0
119
- -------------------
120
- + cg3z/cg3y actions
121
- + warning that indicates a process that should not be stopped
122
- * rest reconnect
123
-
124
- 2026-03-05 v8.4.4
125
- -------------------
126
- ! removed emoji in transport log
127
-
128
- 2026-03-04 v8.4.3
129
- -------------------
130
- ! temp: progress bar glue
131
-
132
- 2026-03-04 v8.4.2
133
- -------------------
134
- ! temp: progress bar in package dependency detection
135
-
136
- 2026-03-03 v8.4.1
137
- -------------------
138
- * rfc debug logger hide buffers
139
-
140
- 2026-03-03 v8.4.0
141
- -------------------
142
- * print message on install
143
- ! removed buffer from registry debug log output
144
- ! added manifest to all trm transports
145
- ! package replacement uses installed package namespace (if in update)
146
- ! trm-server ^5.2.0
147
- + import status logging
148
- ! pass global npm path to avoid useless calls
149
-
150
- 2026-02-17 v8.3.1
151
- -------------------
152
- + temp change to timeout (waiting for proper change)
153
-
154
- 2026-02-17 v8.3.0
155
- -------------------
156
- * npm global path
157
-
158
- 2026-02-17 v8.2.3
159
- -------------------
160
- * find dependencies in publish action
161
-
162
- 2026-02-17 v8.2.2
163
- -------------------
164
- * customer package indicator
165
-
166
- 2026-02-17 v8.2.1
167
- -------------------
168
- ! object dependency structure
169
-
170
- 2026-02-11 v8.2.0
171
- -------------------
172
- ! dependency detection moved to trm-server
173
- ! trm-server ^5.1.0
174
- ! package.json detection
175
-
176
- 2025-11-16 v8.1.4
177
- -------------------
178
- + execute trm-server post activities if necessary
179
-
180
- 2025-11-15 v8.1.3
181
- -------------------
182
- * multiple dependencies detected for same object
183
-
184
- 2025-11-07 v8.1.2
185
- -------------------
186
- - encode uri in registry endpoint
187
- + placeholder for lockfile parsing
188
-
189
- 2025-11-04 v8.1.1
190
- -------------------
191
- + moved lock file generation to core
192
- + lock file can be used to determine dependency version
193
- + package visibility to test publish endpoint
194
- + release tags
195
- ! getPackageHierarchy ignore multiple roots in setDevclass method
196
-
197
- 2025-10-30 v8.0.2
198
- -------------------
199
- * fix no dependency detection comparison with latest release
200
-
201
- 2025-10-24 v8.0.1
202
- -------------------
203
- * fix transport relevant for dependency detection issue
204
-
205
- 2025-10-21 v8.0.0
206
- -------------------
207
- ! implement registry v2
208
- - misuse of integrity
209
- * error messages on publish rollback
210
- ! trm-registry-types ^2.0.0
211
- ! transport rc read
212
- ! get workbench method
213
- + handle install transport for same package local/remote
214
- ! manifest.json keys order
215
-
216
- 2025-10-01 v7.5.5
217
- -------------------
218
- ! trm-commons ^3.4.2
219
-
220
- 2025-10-01 v7.5.4
221
- -------------------
222
- ! trm-commons ^3.4.0
223
-
224
- 2025-09-24 v7.5.3
225
- -------------------
226
- ! trm-commons ^3.3.2
227
-
228
- 2025-09-16 v7.5.2
229
- -------------------
230
- + DOMA senvi parser
231
-
232
- 2025-09-03 v7.5.1
233
- -------------------
234
- ! trm-commons ^3.2.0
235
-
236
- 2025-09-03 v7.5.0
237
- -------------------
238
- ! trm-commons ^3.1.0
239
- * npm global path
240
- + rfc closeConnection method
241
- ! private/protected methods/attributes
242
-
243
- 2025-08-27 v7.4.6
244
- -------------------
245
- * template manifest values
246
-
247
- 2025-08-17 v7.4.5
248
- -------------------
249
- ! node-r3trans ^2.0.1
250
- * r3trans options in getContent method
251
-
252
- 2025-07-30 v7.4.4
253
- -------------------
254
- ! node-r3trans ^2.0.0
255
-
256
- 2025-07-30 v7.4.3
257
- -------------------
258
- ! trm-commons ^2.0.0 as peer dependency
259
-
260
- 2025-07-29 v7.4.2
261
- -------------------
262
- ! enforce node engine >=22.12.0 with post install script
263
- ! protocol-registry ^2.0.0
264
-
265
- 2025-07-29 7.4.1
266
- -------------------
267
- ! trm-commons ^2.0.0
268
-
269
- 2025-07-29 7.4.0
270
- -------------------
271
- - dependency install doesn't ask for cust/lang/package replacements anymore if not needed
272
- ! install asks for cust/lang/package replacements when not provided by default parameter
273
- ! import logger shows package name
274
- ! trm-commons ^1.1.0
275
- ! trm-server ^5.0.0
276
- ! set/overwrite dependencies with or without automatic detection
277
- + manifest template for post activities, trm dependency and sap entries
278
- * local package install
279
-
280
- 2025-07-08 v7.3.0
281
- -------------------
282
- + enforce node engine ^22.12.0 with post install script
283
- * install package hierarchy
284
-
285
- 2025-06-04 v7.2.1
286
- -------------------
287
- * inquirer/logger prefix on install dependency
288
- + removed useless wb transport find on package first install
289
-
290
- 2025-06-03 v7.2.0
291
- -------------------
292
- * find dependency with custom object not found without devc reference
293
-
294
- 2025-06-03 v7.1.0
295
- -------------------
296
- * change tr owner on install tr update
297
-
298
- 2025-06-03 v7.0.0
299
- -------------------
300
- ! trm-server ^4.0.0
301
- + change tr owner on install tr update
302
-
303
- 2025-05-29 v6.9.1
304
- -------------------
305
- * remote function for updating server
306
- + confirm if objects exists but no root sap package found
307
-
308
- 2025-05-29 v6.9.0
309
- -------------------
310
- ! check server api auth before install and publish
311
- ! trm-server ^3.1.0
312
- ! read wb transport from package
313
-
314
- 2025-05-27 v6.8.0
315
- -------------------
316
- ! on install transport update, check tasks before add object attempt
317
- * commit before post activity run on RFC
318
- * post activity error log
319
- + node-rfc #327 -> device or resource busy, added workaround
320
-
321
- 2025-05-20 v6.7.1
322
- -------------------
323
- ! get installed packages from backend with trm-server version check
324
-
325
- 2025-05-14 v6.7.0
326
- -------------------
327
- ! trm-server ^3.0.0
328
- * abapgit ignored objects
329
- + post activity pre check
330
- + get installed packages from backend where possible
331
- + regen SAPLZTRM before post activity
332
- * rest sap-client
333
- + keep track of post activities based on latest release
334
-
335
- 2025-05-08 v6.6.0
336
- -------------------
337
- * no integrity with trm-server/trm-rest dependency allowed
338
- ! REST Client and RFC Client error generic -> specific
339
- ! REST Client error xml body parsing with title as message
340
- ! trm-server ^2.2.2
341
-
342
- 2025-05-08 v6.5.1
343
- -------------------
344
- ! rest error handling
345
-
346
- 2025-05-05 v6.5.0
347
- -------------------
348
- ! trm-commons ^1.0.0
349
- * upgrade trm-server fixes
350
- * core package.json location find
351
-
352
- 2025-04-28 v6.4.1
353
- -------------------
354
-
355
- ! node-r3trans ^1.5.0
356
-
357
- 2025-04-28 v6.4.0
358
- -------------------
359
-
360
- + post activities in abap manifest
361
- * return exception type for REST client
362
-
363
- 2025-02-06 v6.3.0
364
- -------------------
365
-
366
- * upgrading package remove previous ZTRM comments in workbench (import) transport
367
- + fetch package remote content
368
- * fix translation transport generation
369
- + move trm package dependencies to core
370
- + transport migration on overwrite
371
- ! DEVC, CUST and LANG are now TRM relevant
372
- * root superpackage on devc tr import blank
373
- + clear state on package install (remove from skipped transports)
374
- + add abapgit source code to TRM artifact
375
- + skip ignored objects listed in .abapgit.xml
376
- + add namespace in manifest
377
- ! abstract registry for custom implementation
378
- + add file system registry for local publish and install
379
- + add post activities
380
- ! cache transports in dependency detection for performance issues on big packages
381
- * check object existance before install
1
+ trm-core changelog
2
+ =================
3
+
4
+ Legend
5
+ ------
6
+ * : fixed
7
+ ! : changed
8
+ + : added
9
+ - : removed
10
+
11
+ 2026-07-29 v9.10.3
12
+ -------------------
13
+ * rest refresh transport desc in tms
14
+ * rest read transport status
15
+
16
+ 2026-07-29 v9.10.2
17
+ -------------------
18
+ * rest delete from tms
19
+
20
+ 2026-07-23 v9.10.1
21
+ -------------------
22
+ + node package for bundled solutions
23
+
24
+ 2026-07-22 v9.10.0
25
+ -------------------
26
+ + changelog publish support
27
+ ! trm-registry-types ^2.4.0
28
+ + async publish
29
+
30
+ 2026-07-20 v9.9.0
31
+ -------------------
32
+ * rest package update
33
+ + error message on unauthenticated publish in public registry
34
+ ! trm-server ^6.4.1
35
+
36
+ 2026-07-20 v9.8.5
37
+ -------------------
38
+ ! audit
39
+
40
+ 2026-07-05 v9.8.4
41
+ -------------------
42
+ * trm-rest install (temporary package)
43
+ ! moved transport install generation as final step of install
44
+ ! trm-registry-types ^2.2.0
45
+
46
+ 2026-07-05 v9.8.3
47
+ -------------------
48
+ * rest client get installed packages
49
+
50
+ 2026-07-05 v9.8.2
51
+ -------------------
52
+ * rest client response parsing
53
+
54
+ 2026-07-05 v9.8.1
55
+ -------------------
56
+ - uuid dependency
57
+
58
+ 2026-06-15 v9.8.0
59
+ -------------------
60
+ ! guard table read result fields order
61
+ ! sanitize package contents from registry
62
+
63
+ 2026-05-26 v9.7.0
64
+ -------------------
65
+ * install of trm-server and trm-rest
66
+ ! trm-commons ^5.0.0
67
+
68
+ 2026-05-08 v9.5.1
69
+ -------------------
70
+ * install of trm-server and trm-rest
71
+
72
+ 2026-05-07 v9.5.0
73
+ -------------------
74
+ * avoid usage of r3trans when entries are provided by registry
75
+ ! registry return type on publish
76
+ ! trm-commons ^4.2.0
77
+
78
+ 2026-04-29 v9.4.0
79
+ -------------------
80
+ ! trm-commons ^4.1.0
81
+ * upgrade of trm-server/trm-rest post /ATRM/ package replacements
82
+ ! usage of temporary packages instead of namespace
83
+ ! avoid usage of r3trans when entries are provided by registry
84
+
85
+ 2026-04-21 v9.3.0
86
+ -------------------
87
+ * avoid useless transport unpack for reading transport number
88
+ ! usage with devc transport import when replacements are like original
89
+ * ignore namespace import error when doesnt exist
90
+ + optional filter installed packages
91
+ - optional log parameter
92
+ * install transport update in table
93
+ + confirm overwrite on dirty package
94
+ ! trm-server ^6.1.0
95
+ ! trm-commons ^4.0.0
96
+ ! node-r3trans ^2.0.2
97
+
98
+ 2026-04-21 v9.1.0
99
+ -------------------
100
+ ! abstract registry log for downloads
101
+ ! abstract registry contents endpoint (wip)
102
+ ! skip usage of r3trans when registry provides content (wip)
103
+
104
+ 2026-04-14 v9.0.0
105
+ -------------------
106
+ ! moved to namespace /ATRM/
107
+ ! trm-commons ^3.7.1
108
+ * polling progress bar
109
+ * transport icon
110
+ ! release check before TADIR transport (in publish)
111
+ - sap entries in transport documentation
112
+ ! release on transport install
113
+ ! multiple customizing transports allowed
114
+
115
+ 2026-03-11 v8.5.3
116
+ -------------------
117
+ + refresh transport text in cg3z
118
+
119
+ 2026-03-11 v8.5.2
120
+ -------------------
121
+ + check transport existance in cg3y
122
+
123
+ 2026-03-10 v8.5.1
124
+ -------------------
125
+ + stateless indicator in system connector
126
+
127
+ 2026-03-09 v8.5.0
128
+ -------------------
129
+ + cg3z/cg3y actions
130
+ + warning that indicates a process that should not be stopped
131
+ * rest reconnect
132
+
133
+ 2026-03-05 v8.4.4
134
+ -------------------
135
+ ! removed emoji in transport log
136
+
137
+ 2026-03-04 v8.4.3
138
+ -------------------
139
+ ! temp: progress bar glue
140
+
141
+ 2026-03-04 v8.4.2
142
+ -------------------
143
+ ! temp: progress bar in package dependency detection
144
+
145
+ 2026-03-03 v8.4.1
146
+ -------------------
147
+ * rfc debug logger hide buffers
148
+
149
+ 2026-03-03 v8.4.0
150
+ -------------------
151
+ * print message on install
152
+ ! removed buffer from registry debug log output
153
+ ! added manifest to all trm transports
154
+ ! package replacement uses installed package namespace (if in update)
155
+ ! trm-server ^5.2.0
156
+ + import status logging
157
+ ! pass global npm path to avoid useless calls
158
+
159
+ 2026-02-17 v8.3.1
160
+ -------------------
161
+ + temp change to timeout (waiting for proper change)
162
+
163
+ 2026-02-17 v8.3.0
164
+ -------------------
165
+ * npm global path
166
+
167
+ 2026-02-17 v8.2.3
168
+ -------------------
169
+ * find dependencies in publish action
170
+
171
+ 2026-02-17 v8.2.2
172
+ -------------------
173
+ * customer package indicator
174
+
175
+ 2026-02-17 v8.2.1
176
+ -------------------
177
+ ! object dependency structure
178
+
179
+ 2026-02-11 v8.2.0
180
+ -------------------
181
+ ! dependency detection moved to trm-server
182
+ ! trm-server ^5.1.0
183
+ ! package.json detection
184
+
185
+ 2025-11-16 v8.1.4
186
+ -------------------
187
+ + execute trm-server post activities if necessary
188
+
189
+ 2025-11-15 v8.1.3
190
+ -------------------
191
+ * multiple dependencies detected for same object
192
+
193
+ 2025-11-07 v8.1.2
194
+ -------------------
195
+ - encode uri in registry endpoint
196
+ + placeholder for lockfile parsing
197
+
198
+ 2025-11-04 v8.1.1
199
+ -------------------
200
+ + moved lock file generation to core
201
+ + lock file can be used to determine dependency version
202
+ + package visibility to test publish endpoint
203
+ + release tags
204
+ ! getPackageHierarchy ignore multiple roots in setDevclass method
205
+
206
+ 2025-10-30 v8.0.2
207
+ -------------------
208
+ * fix no dependency detection comparison with latest release
209
+
210
+ 2025-10-24 v8.0.1
211
+ -------------------
212
+ * fix transport relevant for dependency detection issue
213
+
214
+ 2025-10-21 v8.0.0
215
+ -------------------
216
+ ! implement registry v2
217
+ - misuse of integrity
218
+ * error messages on publish rollback
219
+ ! trm-registry-types ^2.0.0
220
+ ! transport rc read
221
+ ! get workbench method
222
+ + handle install transport for same package local/remote
223
+ ! manifest.json keys order
224
+
225
+ 2025-10-01 v7.5.5
226
+ -------------------
227
+ ! trm-commons ^3.4.2
228
+
229
+ 2025-10-01 v7.5.4
230
+ -------------------
231
+ ! trm-commons ^3.4.0
232
+
233
+ 2025-09-24 v7.5.3
234
+ -------------------
235
+ ! trm-commons ^3.3.2
236
+
237
+ 2025-09-16 v7.5.2
238
+ -------------------
239
+ + DOMA senvi parser
240
+
241
+ 2025-09-03 v7.5.1
242
+ -------------------
243
+ ! trm-commons ^3.2.0
244
+
245
+ 2025-09-03 v7.5.0
246
+ -------------------
247
+ ! trm-commons ^3.1.0
248
+ * npm global path
249
+ + rfc closeConnection method
250
+ ! private/protected methods/attributes
251
+
252
+ 2025-08-27 v7.4.6
253
+ -------------------
254
+ * template manifest values
255
+
256
+ 2025-08-17 v7.4.5
257
+ -------------------
258
+ ! node-r3trans ^2.0.1
259
+ * r3trans options in getContent method
260
+
261
+ 2025-07-30 v7.4.4
262
+ -------------------
263
+ ! node-r3trans ^2.0.0
264
+
265
+ 2025-07-30 v7.4.3
266
+ -------------------
267
+ ! trm-commons ^2.0.0 as peer dependency
268
+
269
+ 2025-07-29 v7.4.2
270
+ -------------------
271
+ ! enforce node engine >=22.12.0 with post install script
272
+ ! protocol-registry ^2.0.0
273
+
274
+ 2025-07-29 7.4.1
275
+ -------------------
276
+ ! trm-commons ^2.0.0
277
+
278
+ 2025-07-29 7.4.0
279
+ -------------------
280
+ - dependency install doesn't ask for cust/lang/package replacements anymore if not needed
281
+ ! install asks for cust/lang/package replacements when not provided by default parameter
282
+ ! import logger shows package name
283
+ ! trm-commons ^1.1.0
284
+ ! trm-server ^5.0.0
285
+ ! set/overwrite dependencies with or without automatic detection
286
+ + manifest template for post activities, trm dependency and sap entries
287
+ * local package install
288
+
289
+ 2025-07-08 v7.3.0
290
+ -------------------
291
+ + enforce node engine ^22.12.0 with post install script
292
+ * install package hierarchy
293
+
294
+ 2025-06-04 v7.2.1
295
+ -------------------
296
+ * inquirer/logger prefix on install dependency
297
+ + removed useless wb transport find on package first install
298
+
299
+ 2025-06-03 v7.2.0
300
+ -------------------
301
+ * find dependency with custom object not found without devc reference
302
+
303
+ 2025-06-03 v7.1.0
304
+ -------------------
305
+ * change tr owner on install tr update
306
+
307
+ 2025-06-03 v7.0.0
308
+ -------------------
309
+ ! trm-server ^4.0.0
310
+ + change tr owner on install tr update
311
+
312
+ 2025-05-29 v6.9.1
313
+ -------------------
314
+ * remote function for updating server
315
+ + confirm if objects exists but no root sap package found
316
+
317
+ 2025-05-29 v6.9.0
318
+ -------------------
319
+ ! check server api auth before install and publish
320
+ ! trm-server ^3.1.0
321
+ ! read wb transport from package
322
+
323
+ 2025-05-27 v6.8.0
324
+ -------------------
325
+ ! on install transport update, check tasks before add object attempt
326
+ * commit before post activity run on RFC
327
+ * post activity error log
328
+ + node-rfc #327 -> device or resource busy, added workaround
329
+
330
+ 2025-05-20 v6.7.1
331
+ -------------------
332
+ ! get installed packages from backend with trm-server version check
333
+
334
+ 2025-05-14 v6.7.0
335
+ -------------------
336
+ ! trm-server ^3.0.0
337
+ * abapgit ignored objects
338
+ + post activity pre check
339
+ + get installed packages from backend where possible
340
+ + regen SAPLZTRM before post activity
341
+ * rest sap-client
342
+ + keep track of post activities based on latest release
343
+
344
+ 2025-05-08 v6.6.0
345
+ -------------------
346
+ * no integrity with trm-server/trm-rest dependency allowed
347
+ ! REST Client and RFC Client error generic -> specific
348
+ ! REST Client error xml body parsing with title as message
349
+ ! trm-server ^2.2.2
350
+
351
+ 2025-05-08 v6.5.1
352
+ -------------------
353
+ ! rest error handling
354
+
355
+ 2025-05-05 v6.5.0
356
+ -------------------
357
+ ! trm-commons ^1.0.0
358
+ * upgrade trm-server fixes
359
+ * core package.json location find
360
+
361
+ 2025-04-28 v6.4.1
362
+ -------------------
363
+
364
+ ! node-r3trans ^1.5.0
365
+
366
+ 2025-04-28 v6.4.0
367
+ -------------------
368
+
369
+ + post activities in abap manifest
370
+ * return exception type for REST client
371
+
372
+ 2025-02-06 v6.3.0
373
+ -------------------
374
+
375
+ * upgrading package remove previous ZTRM comments in workbench (import) transport
376
+ + fetch package remote content
377
+ * fix translation transport generation
378
+ + move trm package dependencies to core
379
+ + transport migration on overwrite
380
+ ! DEVC, CUST and LANG are now TRM relevant
381
+ * root superpackage on devc tr import blank
382
+ + clear state on package install (remove from skipped transports)
383
+ + add abapgit source code to TRM artifact
384
+ + skip ignored objects listed in .abapgit.xml
385
+ + add namespace in manifest
386
+ ! abstract registry for custom implementation
387
+ + add file system registry for local publish and install
388
+ + add post activities
389
+ ! cache transports in dependency detection for performance issues on big packages
390
+ * check object existance before install
@@ -45,23 +45,23 @@ exports.setChangelog = {
45
45
  when: (hash) => {
46
46
  return hash.editChangelog;
47
47
  },
48
- default: `${context.rawInput.packageData.name} changelog
49
- =================
50
-
51
- Legend
52
- ------
53
- \`\`\`
54
- * : fixed
55
- ! : changed
56
- + : added
57
- - : removed
58
- \`\`\`
59
-
60
- ${new Date().toISOString().split('T')[0]} v${context.runtime.trmPackage.manifest.version}
61
- -------------------
62
- \`\`\`
63
- ...
64
- \`\`\`
48
+ default: `${context.rawInput.packageData.name} changelog
49
+ =================
50
+
51
+ Legend
52
+ ------
53
+ \`\`\`
54
+ * : fixed
55
+ ! : changed
56
+ + : added
57
+ - : removed
58
+ \`\`\`
59
+
60
+ ${new Date().toISOString().split('T')[0]} v${context.runtime.trmPackage.manifest.version}
61
+ -------------------
62
+ \`\`\`
63
+ ...
64
+ \`\`\`
65
65
  `
66
66
  }])).changelog;
67
67
  }
@@ -548,7 +548,7 @@ class RESTClient {
548
548
  }
549
549
  deleteTmsTransport(trkorr, system) {
550
550
  return __awaiter(this, void 0, void 0, function* () {
551
- yield this._axiosInstance.delete('/delete_transport', {
551
+ yield this._axiosInstance.delete('/delete_tms_transport', {
552
552
  data: {
553
553
  trkorr,
554
554
  system
@@ -558,8 +558,10 @@ class RESTClient {
558
558
  }
559
559
  refreshTransportTmsTxt(trkorr) {
560
560
  return __awaiter(this, void 0, void 0, function* () {
561
- yield this._axiosInstance.post('/refresh_tms_transport_txt', {
562
- trkorr
561
+ yield this._axiosInstance.delete('/refresh_tms_transport_txt', {
562
+ data: {
563
+ trkorr
564
+ }
563
565
  });
564
566
  });
565
567
  }
@@ -23,16 +23,17 @@ function fromAbapToDateLegacy(as4date, as4time) {
23
23
  const seconds = parseInt(`${aTime[4]}${aTime[5]}`);
24
24
  return new Date(year, month, day, hour, minutes, seconds);
25
25
  }
26
+ function parseDate(as4date, as4time, ianaZone) {
27
+ const abapDateTime = luxon_1.DateTime.fromFormat(`${as4date} ${as4time}`, "yyyyMMdd HHmmss", { zone: ianaZone });
28
+ if (abapDateTime.isValid) {
29
+ return abapDateTime;
30
+ }
31
+ return luxon_1.DateTime.fromISO(`${as4date}T${as4time}`, { zone: ianaZone });
32
+ }
26
33
  function fromAbapToDate(as4date, as4time) {
27
34
  return __awaiter(this, void 0, void 0, function* () {
28
35
  const ianaZone = yield systemConnector_1.SystemConnector.getTimezone();
29
- const year = Number(as4date.slice(0, 4));
30
- const month = Number(as4date.slice(4, 6));
31
- const day = Number(as4date.slice(6, 8));
32
- const hour = Number(as4time.slice(0, 2));
33
- const minute = Number(as4time.slice(2, 4));
34
- const second = Number(as4time.slice(4, 6));
35
- const dt = luxon_1.DateTime.fromObject({ year, month, day, hour, minute, second }, { zone: ianaZone });
36
+ const dt = parseDate(as4date, as4time, ianaZone);
36
37
  if (!dt.isValid) {
37
38
  return fromAbapToDateLegacy(as4date, as4time);
38
39
  }
package/package.json CHANGED
@@ -1,92 +1,92 @@
1
- {
2
- "name": "trm-core",
3
- "version": "9.10.1",
4
- "description": "TRM (Transport Request Manager) Core",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "changelog.txt",
9
- "dist",
10
- "!dist/test.js",
11
- "!dist/test.js.map",
12
- "!dist/test.d.ts",
13
- "!dist/.env",
14
- "!dist/dev_rfc.log"
15
- ],
16
- "scripts": {
17
- "cleanBuild": "rimraf dist/",
18
- "build": "npm run cleanBuild && tsc --sourceMap false",
19
- "prepublishOnly": "npm run build",
20
- "postinstall": "node dist/scripts/checkEngine.js"
21
- },
22
- "keywords": [
23
- "trm",
24
- "abap"
25
- ],
26
- "homepage": "https://www.trmregistry.com",
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/RegestaItalia/trm-core.git"
30
- },
31
- "author": {
32
- "name": "Simone Gaffurini",
33
- "email": "simone.gaffurini@regestaitalia.it"
34
- },
35
- "license": "MIT",
36
- "trmDependencies": {
37
- "trm-server": "^6.4.1"
38
- },
39
- "dependencies": {
40
- "@esm2cjs/normalize-url": "^8.0.0",
41
- "@inquirer/prompts": "^7.8.1",
42
- "@simonegaffurini/sammarksworkflow": "^1.3.2-fork",
43
- "@xmldom/xmldom": "^0.9.8",
44
- "adm-zip": "^0.6.0",
45
- "axios": "^1.7.9",
46
- "chalk": "^4.1.2",
47
- "dotenv": "^17.2.2",
48
- "email-validator": "^2.0.4",
49
- "express": "^4.18.2",
50
- "get-root-path": "^3.0.1",
51
- "get-stack-trace": "^3.1.1",
52
- "lodash": "^4.17.21",
53
- "luxon": "^3.7.2",
54
- "minimatch": "^10.0.1",
55
- "node-cache": "^5.1.2",
56
- "node-html-parser": "^7.0.1",
57
- "node-r3trans": "^2.0.3",
58
- "object-keys-normalizer": "^1.0.1",
59
- "opener": "^1.5.2",
60
- "parse-multipart-data": "^1.5.0",
61
- "protocol-registry": "^2.0.0",
62
- "semver": "^7.5.4",
63
- "semver-sort": "^1.0.0",
64
- "spdx-license-ids": "^3.0.13",
65
- "trm-registry-types": "^2.4.0",
66
- "xml-beautify": "^1.2.3",
67
- "xml-js": "^1.6.11"
68
- },
69
- "peerDependencies": {
70
- "trm-commons": "^5.0.1"
71
- },
72
- "devDependencies": {
73
- "@types/adm-zip": "^0.5.0",
74
- "@types/debug": "^4.1.12",
75
- "@types/express": "^4.17.17",
76
- "@types/inquirer": "^9.0.3",
77
- "@types/lodash": "^4.14.202",
78
- "@types/luxon": "^3.7.1",
79
- "@types/node": "^20.4.4",
80
- "@types/opener": "^1.4.0",
81
- "@types/semver": "^7.5.0",
82
- "@types/semver-sort": "^0.0.1",
83
- "@types/stack-trace": "^0.0.33",
84
- "rimraf": "^6.0.1",
85
- "trm-commons": "^5.0.0",
86
- "ts-node": "^10.9.2",
87
- "typescript": "^5.8.2"
88
- },
89
- "engines": {
90
- "node": ">=22.12.0"
91
- }
92
- }
1
+ {
2
+ "name": "trm-core",
3
+ "version": "9.10.3",
4
+ "description": "TRM (Transport Request Manager) Core",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "changelog.txt",
9
+ "dist",
10
+ "!dist/test.js",
11
+ "!dist/test.js.map",
12
+ "!dist/test.d.ts",
13
+ "!dist/.env",
14
+ "!dist/dev_rfc.log"
15
+ ],
16
+ "scripts": {
17
+ "cleanBuild": "rimraf dist/",
18
+ "build": "npm run cleanBuild && tsc --sourceMap false",
19
+ "prepublishOnly": "npm run build",
20
+ "postinstall": "node dist/scripts/checkEngine.js"
21
+ },
22
+ "keywords": [
23
+ "trm",
24
+ "abap"
25
+ ],
26
+ "homepage": "https://www.trmregistry.com",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/RegestaItalia/trm-core.git"
30
+ },
31
+ "author": {
32
+ "name": "Simone Gaffurini",
33
+ "email": "simone.gaffurini@regestaitalia.it"
34
+ },
35
+ "license": "MIT",
36
+ "trmDependencies": {
37
+ "trm-server": "^6.4.1"
38
+ },
39
+ "dependencies": {
40
+ "@esm2cjs/normalize-url": "^8.0.0",
41
+ "@inquirer/prompts": "^7.8.1",
42
+ "@simonegaffurini/sammarksworkflow": "^1.3.2-fork",
43
+ "@xmldom/xmldom": "^0.9.8",
44
+ "adm-zip": "^0.6.0",
45
+ "axios": "^1.7.9",
46
+ "chalk": "^4.1.2",
47
+ "dotenv": "^17.2.2",
48
+ "email-validator": "^2.0.4",
49
+ "express": "^4.18.2",
50
+ "get-root-path": "^3.0.1",
51
+ "get-stack-trace": "^3.1.1",
52
+ "lodash": "^4.17.21",
53
+ "luxon": "^3.7.2",
54
+ "minimatch": "^10.0.1",
55
+ "node-cache": "^5.1.2",
56
+ "node-html-parser": "^7.0.1",
57
+ "node-r3trans": "^2.0.3",
58
+ "object-keys-normalizer": "^1.0.1",
59
+ "opener": "^1.5.2",
60
+ "parse-multipart-data": "^1.5.0",
61
+ "protocol-registry": "^1.0.1",
62
+ "semver": "^7.5.4",
63
+ "semver-sort": "^1.0.0",
64
+ "spdx-license-ids": "^3.0.13",
65
+ "trm-registry-types": "^2.4.0",
66
+ "xml-beautify": "^1.2.3",
67
+ "xml-js": "^1.6.11"
68
+ },
69
+ "peerDependencies": {
70
+ "trm-commons": "^5.0.1"
71
+ },
72
+ "devDependencies": {
73
+ "@types/adm-zip": "^0.5.0",
74
+ "@types/debug": "^4.1.12",
75
+ "@types/express": "^4.17.17",
76
+ "@types/inquirer": "^9.0.3",
77
+ "@types/lodash": "^4.14.202",
78
+ "@types/luxon": "^3.7.1",
79
+ "@types/node": "^20.4.4",
80
+ "@types/opener": "^1.4.0",
81
+ "@types/semver": "^7.5.0",
82
+ "@types/semver-sort": "^0.0.1",
83
+ "@types/stack-trace": "^0.0.33",
84
+ "rimraf": "^6.0.1",
85
+ "trm-commons": "^5.0.0",
86
+ "ts-node": "^10.9.2",
87
+ "typescript": "^5.8.2"
88
+ },
89
+ "engines": {
90
+ "node": ">=22.12.0"
91
+ }
92
+ }