@ui5/logger 5.0.0-alpha.4 → 5.0.0-alpha.5
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 +12 -0
- package/lib/loggers/ProjectBuild.js +4 -2
- package/lib/writers/Console.js +5 -4
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
|
4
4
|
|
|
5
5
|
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v4.0.2...HEAD).
|
|
6
6
|
|
|
7
|
+
## [5.0.0-alpha.5](https://github.com/UI5/cli/compare/logger-v5.0.0-alpha.4...logger-v5.0.0-alpha.5) (2026-06-24)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **logger:** Add differential build logging support ([0c06880](https://github.com/UI5/cli/commit/0c0688047e699330b1a98a5845dc04b25db3db6c))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Dependencies
|
|
16
|
+
|
|
17
|
+
* Update npm dependencies ([0ac8ebb](https://github.com/UI5/cli/commit/0ac8ebbb5ffe9fc6e4455244cf5da50e4c540c5c))
|
|
18
|
+
|
|
7
19
|
## [5.0.0-alpha.4](https://github.com/UI5/cli/compare/logger-v5.0.0-alpha.3...logger-v5.0.0-alpha.4) (2026-03-24)
|
|
8
20
|
|
|
9
21
|
|
|
@@ -48,7 +48,7 @@ class ProjectBuild extends Logger {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
startTask(taskName) {
|
|
51
|
+
startTask(taskName, isDifferentialBuild) {
|
|
52
52
|
if (!this.#tasksToRun || !this.#tasksToRun.includes(taskName)) {
|
|
53
53
|
throw new Error(`loggers/ProjectBuild#startTask: Unknown task ${taskName}`);
|
|
54
54
|
}
|
|
@@ -59,6 +59,7 @@ class ProjectBuild extends Logger {
|
|
|
59
59
|
projectType: this.#projectType,
|
|
60
60
|
taskName,
|
|
61
61
|
status: "task-start",
|
|
62
|
+
isDifferentialBuild,
|
|
62
63
|
});
|
|
63
64
|
|
|
64
65
|
if (!hasListeners) {
|
|
@@ -66,7 +67,7 @@ class ProjectBuild extends Logger {
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
endTask(taskName) {
|
|
70
|
+
endTask(taskName, isDifferentialBuild) {
|
|
70
71
|
if (!this.#tasksToRun || !this.#tasksToRun.includes(taskName)) {
|
|
71
72
|
throw new Error(`loggers/ProjectBuild#endTask: Unknown task ${taskName}`);
|
|
72
73
|
}
|
|
@@ -77,6 +78,7 @@ class ProjectBuild extends Logger {
|
|
|
77
78
|
projectType: this.#projectType,
|
|
78
79
|
taskName,
|
|
79
80
|
status: "task-end",
|
|
81
|
+
isDifferentialBuild,
|
|
80
82
|
});
|
|
81
83
|
|
|
82
84
|
if (!hasListeners) {
|
package/lib/writers/Console.js
CHANGED
|
@@ -334,7 +334,7 @@ class Console {
|
|
|
334
334
|
}
|
|
335
335
|
projectMetadata.buildSkipped = true;
|
|
336
336
|
message = `${chalk.yellow(figures.tick)} ` +
|
|
337
|
-
`Skipping build of ${projectType} project ${chalk.bold(projectName)}
|
|
337
|
+
chalk.grey(`Skipping build of ${projectType} project ${chalk.bold(projectName)}`);
|
|
338
338
|
|
|
339
339
|
// Update progress bar (if used)
|
|
340
340
|
// All tasks of this projects are completed
|
|
@@ -349,7 +349,7 @@ class Console {
|
|
|
349
349
|
this.#writeMessage(level, `${chalk.grey(buildIndex)}: ${message}`);
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
#handleProjectBuildStatusEvent({level, projectName, projectType, taskName, status}) {
|
|
352
|
+
#handleProjectBuildStatusEvent({level, projectName, projectType, taskName, status, isDifferentialBuild}) {
|
|
353
353
|
const {projectTasks} = this.#getProjectMetadata(projectName);
|
|
354
354
|
const taskMetadata = projectTasks.get(taskName);
|
|
355
355
|
if (!taskMetadata) {
|
|
@@ -382,7 +382,8 @@ class Console {
|
|
|
382
382
|
`for project ${projectName}, task ${taskName}`);
|
|
383
383
|
}
|
|
384
384
|
taskMetadata.executionStarted = true;
|
|
385
|
-
message =
|
|
385
|
+
message = (isDifferentialBuild ? chalk.grey(figures.lozengeOutline) : chalk.blue(figures.pointerSmall)) +
|
|
386
|
+
` Running task ${chalk.bold(taskName)}...`;
|
|
386
387
|
break;
|
|
387
388
|
case "task-end":
|
|
388
389
|
if (taskMetadata.executionEnded) {
|
|
@@ -412,7 +413,7 @@ class Console {
|
|
|
412
413
|
`Task execution already started`);
|
|
413
414
|
}
|
|
414
415
|
taskMetadata.executionEnded = true;
|
|
415
|
-
message =
|
|
416
|
+
message = chalk.yellow(figures.tick) + chalk.grey(` Skipping task ${chalk.bold(taskName)}`);
|
|
416
417
|
|
|
417
418
|
// Update progress bar (if used)
|
|
418
419
|
this._getProgressBar()?.increment(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/logger",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.5",
|
|
4
4
|
"description": "UI5 CLI - Internal Logger",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"@istanbuljs/esm-loader-hook": "^0.3.0",
|
|
57
57
|
"ava": "^6.4.1",
|
|
58
58
|
"cross-env": "^10.1.0",
|
|
59
|
-
"eslint": "^
|
|
60
|
-
"nyc": "^
|
|
61
|
-
"rimraf": "^6.
|
|
62
|
-
"sinon": "^21.
|
|
63
|
-
"strip-ansi": "^7.
|
|
59
|
+
"eslint": "^10.5.0",
|
|
60
|
+
"nyc": "^18.0.0",
|
|
61
|
+
"rimraf": "^6.1.3",
|
|
62
|
+
"sinon": "^21.1.2",
|
|
63
|
+
"strip-ansi": "^7.2.0"
|
|
64
64
|
}
|
|
65
65
|
}
|