@ui5/logger 4.0.1 → 4.0.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/CHANGELOG.md +17 -2
- package/CONTRIBUTING.md +2 -2
- package/LICENSE.txt +1 -1
- package/README.md +18 -9
- package/jsdoc.json +6 -6
- package/lib/index.js +1 -1
- package/lib/loggers/Build.js +1 -1
- package/lib/loggers/Logger.js +1 -1
- package/lib/writers/Console.js +2 -1
- package/package.json +25 -24
- package/.reuse/dep5 +0 -29
package/CHANGELOG.md
CHANGED
|
@@ -2,10 +2,23 @@
|
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
4
4
|
|
|
5
|
-
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v4.0.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v4.0.3...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v4.0.3"></a>
|
|
8
|
+
## [v4.0.3] - 2026-11-01
|
|
9
|
+
### Dependency Updates
|
|
10
|
+
- Bump uuid and nyc ([#577](https://github.com/SAP/ui5-logger/issues/577)) [`591e3f2`](https://github.com/SAP/ui5-logger/commit/591e3f2120a53419736a8b5d9cc27b2b6fa6b7ca)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<a name="v4.0.2"></a>
|
|
14
|
+
## [v4.0.2] - 2025-09-11
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
- Rename project to UI5 CLI [`18d935a`](https://github.com/SAP/ui5-logger/commit/18d935a7caf7d53312b4f3976b0075aeae608902)
|
|
17
|
+
- **Console:** Handle consequitive builds correctly [`20e303a`](https://github.com/SAP/ui5-logger/commit/20e303ac157778aa1be0e20bb203e713fff2299c)
|
|
18
|
+
|
|
6
19
|
|
|
7
20
|
<a name="v4.0.1"></a>
|
|
8
|
-
## [v4.0.1] - 2024-07-
|
|
21
|
+
## [v4.0.1] - 2024-07-23
|
|
9
22
|
|
|
10
23
|
<a name="v4.0.0"></a>
|
|
11
24
|
## [v4.0.0] - 2024-07-16
|
|
@@ -111,6 +124,8 @@ Only Node.js v10 or higher is supported.
|
|
|
111
124
|
|
|
112
125
|
<a name="v0.0.1"></a>
|
|
113
126
|
## v0.0.1 - 2018-06-06
|
|
127
|
+
[v4.0.3]: https://github.com/SAP/ui5-logger/compare/v4.0.2...v4.0.3
|
|
128
|
+
[v4.0.2]: https://github.com/SAP/ui5-logger/compare/v4.0.1...v4.0.2
|
|
114
129
|
[v4.0.1]: https://github.com/SAP/ui5-logger/compare/v4.0.0...v4.0.1
|
|
115
130
|
[v4.0.0]: https://github.com/SAP/ui5-logger/compare/v3.0.1-rc.3...v4.0.0
|
|
116
131
|
[v3.0.0]: https://github.com/SAP/ui5-logger/compare/v2.0.1...v3.0.0
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Contributing to the UI5
|
|
1
|
+
# Contributing to the UI5 CLI
|
|
2
2
|
|
|
3
|
-
See CONTRIBUTING.md in the [
|
|
3
|
+
See CONTRIBUTING.md in the [UI5/cli](https://github.com/UI5/cli/blob/v4/CONTRIBUTING.md) repository.
|
package/LICENSE.txt
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -1,27 +1,36 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
# ui5-logger
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
> ⚠️ **REPOSITORY MOVED**
|
|
6
|
+
>
|
|
7
|
+
> The `@ui5/logger` package is now maintained in the [UI5 CLI monorepo](https://github.com/UI5/cli). This repository contains the code up to and including CLI version 4, with further development continuing in the monorepo.
|
|
8
|
+
>
|
|
9
|
+
> - **New location**: https://github.com/UI5/cli/tree/main/packages/logger
|
|
10
|
+
> - **Issues & PRs**: Please submit to the [monorepo](https://github.com/UI5/cli/issues)
|
|
11
|
+
> - **Latest releases**: Available from the monorepo
|
|
12
|
+
|
|
13
|
+
> Providing logging functionality for all UI5 CLI modules and extensions.
|
|
5
14
|
> Features log levels and rendering of a progress bar.
|
|
6
|
-
> Part of [UI5
|
|
15
|
+
> Part of [UI5 CLI](https://github.com/UI5/cli)
|
|
7
16
|
|
|
8
17
|
[](https://api.reuse.software/info/github.com/SAP/ui5-logger)
|
|
9
|
-
[](https://github.com/SAP/ui5-logger/actions/workflows/github-ci.yml)
|
|
10
19
|
[](https://www.npmjs.com/package/@ui5/logger)
|
|
11
20
|
[](https://coveralls.io/github/SAP/ui5-logger)
|
|
12
21
|
|
|
13
22
|
## Documentation
|
|
14
|
-
General UI5
|
|
23
|
+
General UI5 CLI documentation can be found here: [ui5.github.io/cli](https://ui5.github.io/cli/)
|
|
15
24
|
|
|
16
|
-
The UI5 Logger API Reference can be found here: [`@ui5/logger`](https://
|
|
25
|
+
The UI5 Logger API Reference can be found here: [`@ui5/logger`](https://ui5.github.io/cli/v3/api/module-@ui5_logger.html)
|
|
17
26
|
|
|
18
27
|
## Contributing
|
|
19
|
-
Please check our [Contribution Guidelines](https://github.com/
|
|
28
|
+
Please check our [Contribution Guidelines](https://github.com/UI5/cli/blob/v4/CONTRIBUTING.md).
|
|
20
29
|
|
|
21
30
|
## Support
|
|
22
|
-
Please follow our [Contribution Guidelines](https://github.com/
|
|
31
|
+
Please follow our [Contribution Guidelines](https://github.com/UI5/cli/blob/v4/CONTRIBUTING.md#report-an-issue) on how to report an issue.
|
|
23
32
|
|
|
24
|
-
Please report issues in the main [UI5
|
|
33
|
+
Please report issues in the main [UI5 CLI](https://github.com/UI5/cli) repository.
|
|
25
34
|
|
|
26
35
|
## Release History
|
|
27
36
|
See [CHANGELOG.md](CHANGELOG.md).
|
package/jsdoc.json
CHANGED
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"openGraph": {
|
|
28
|
-
"title": "UI5
|
|
28
|
+
"title": "UI5 CLI - API Reference",
|
|
29
29
|
"type": "website",
|
|
30
|
-
"image": "https://
|
|
31
|
-
"site_name": "UI5
|
|
32
|
-
"url": "https://
|
|
30
|
+
"image": "https://ui5.github.io/cli/v4/images/UI5_logo_wide.png",
|
|
31
|
+
"site_name": "UI5 CLI - API Reference",
|
|
32
|
+
"url": "https://ui5.github.io/cli/"
|
|
33
33
|
},
|
|
34
34
|
"docdash": {
|
|
35
35
|
"sectionOrder": [
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"Interfaces"
|
|
44
44
|
],
|
|
45
45
|
"meta": {
|
|
46
|
-
"title": "UI5
|
|
47
|
-
"description": "UI5
|
|
46
|
+
"title": "UI5 CLI - API Reference - UI5 Logger",
|
|
47
|
+
"description": "UI5 CLI - API Reference - UI5 Logger",
|
|
48
48
|
"keyword": "openui5 sapui5 ui5 build development tool api reference"
|
|
49
49
|
},
|
|
50
50
|
"search": true,
|
package/lib/index.js
CHANGED
package/lib/loggers/Build.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Logger from "./Logger.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Logger for emitting status events on the progress a UI5
|
|
4
|
+
* Logger for emitting status events on the progress a UI5 CLI build process.
|
|
5
5
|
* <br><br>
|
|
6
6
|
* Emits <code>ui5.log</code>, <code>ui5.build-metadata</code> and <code>ui5.build-status</code> events on the
|
|
7
7
|
* [<code>process</code>]{@link https://nodejs.org/api/process.html} object, which can which can be handled
|
package/lib/loggers/Logger.js
CHANGED
|
@@ -5,7 +5,7 @@ import {inspect} from "node:util";
|
|
|
5
5
|
const rIllegalModuleNameChars = /[^0-9a-zA-Z-_:@./]/i;
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Standard logging module for UI5
|
|
8
|
+
* Standard logging module for UI5 CLI and extensions.
|
|
9
9
|
* <br><br>
|
|
10
10
|
* Emits <code>ui5.log</code> events on the [<code>process</code>]{@link https://nodejs.org/api/process.html} object,
|
|
11
11
|
* which can be handled by dedicated writers,
|
package/lib/writers/Console.js
CHANGED
|
@@ -7,7 +7,7 @@ import Logger from "../loggers/Logger.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Standard handler for events emitted by @ui5/logger modules. Writes messages to
|
|
9
9
|
* [<code>process.stderr</code>]{@link https://nodejs.org/api/process.html#processstderr} stream
|
|
10
|
-
* and renders a progress bar for UI5
|
|
10
|
+
* and renders a progress bar for UI5 CLI build processes.
|
|
11
11
|
* <br><br>
|
|
12
12
|
* The progress bar is only used in interactive terminals. If verbose logging is enabled, the progress
|
|
13
13
|
* bar is disabled.
|
|
@@ -141,6 +141,7 @@ class Console {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
#handleBuildMetadataEvent({projectsToBuild}) {
|
|
144
|
+
this.#projectMetadata = new Map();
|
|
144
145
|
projectsToBuild.forEach((projectName) => {
|
|
145
146
|
this.#projectMetadata.set(projectName, {
|
|
146
147
|
buildStarted: false,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/logger",
|
|
3
|
-
"version": "4.0.
|
|
4
|
-
"description": "UI5
|
|
3
|
+
"version": "4.0.3",
|
|
4
|
+
"description": "UI5 CLI - Internal Logger",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
7
7
|
"email": "openui5@sap.com",
|
|
@@ -29,24 +29,22 @@
|
|
|
29
29
|
"npm": ">= 8"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"test": "npm run lint && npm run jsdoc-generate && npm run coverage
|
|
33
|
-
"test-azure": "npm run coverage-xunit",
|
|
32
|
+
"test": "npm run lint && npm run jsdoc-generate && npm run coverage",
|
|
34
33
|
"lint": "eslint ./",
|
|
35
34
|
"unit": "rimraf test/tmp && ava",
|
|
36
35
|
"unit-verbose": "rimraf test/tmp && cross-env UI5_LOG_LVL=verbose ava --verbose --serial",
|
|
37
36
|
"unit-watch": "npm run unit -- --watch",
|
|
38
|
-
"unit-xunit": "rimraf test/tmp && ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\" --tap | tap-xunit --dontUseCommentsAsTestNames=true > test-results.xml",
|
|
39
37
|
"unit-inspect": "cross-env UI5_LOG_LVL=verbose ava debug --break",
|
|
40
38
|
"coverage": "rimraf test/tmp && nyc ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\"",
|
|
41
|
-
"coverage-xunit": "nyc --reporter=text --reporter=text-summary --reporter=cobertura npm run unit-xunit",
|
|
42
39
|
"jsdoc": "npm run jsdoc-generate && open-cli jsdocs/index.html",
|
|
43
|
-
"jsdoc-generate": "jsdoc -c ./jsdoc.json -t $(
|
|
40
|
+
"jsdoc-generate": "jsdoc -c ./jsdoc.json -t $(npm ls docdash --parseable | head -1) ./lib/ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
|
|
44
41
|
"jsdoc-watch": "npm run jsdoc && chokidar \"./lib/**/*.js\" -c \"npm run jsdoc-generate\"",
|
|
45
42
|
"preversion": "npm test",
|
|
46
43
|
"version": "git-chglog --sort semver --next-tag v$npm_package_version -o CHANGELOG.md v4.0.0.. && git add CHANGELOG.md",
|
|
47
44
|
"prepublishOnly": "git push --follow-tags",
|
|
48
45
|
"release-note": "git-chglog --sort semver -c .chglog/release-config.yml v$npm_package_version",
|
|
49
|
-
"
|
|
46
|
+
"knip": "knip --config knip.config.js",
|
|
47
|
+
"check-engine": "check-engine-light ."
|
|
50
48
|
},
|
|
51
49
|
"files": [
|
|
52
50
|
"CHANGELOG.md",
|
|
@@ -77,7 +75,8 @@
|
|
|
77
75
|
"coverage/**",
|
|
78
76
|
"test/**",
|
|
79
77
|
".eslintrc.cjs",
|
|
80
|
-
"jsdoc-plugin.cjs"
|
|
78
|
+
"jsdoc-plugin.cjs",
|
|
79
|
+
"knip.config.js"
|
|
81
80
|
],
|
|
82
81
|
"check-coverage": true,
|
|
83
82
|
"statements": 90,
|
|
@@ -110,27 +109,29 @@
|
|
|
110
109
|
"url": "git@github.com:SAP/ui5-logger.git"
|
|
111
110
|
},
|
|
112
111
|
"dependencies": {
|
|
113
|
-
"chalk": "^5.
|
|
112
|
+
"chalk": "^5.6.2",
|
|
114
113
|
"cli-progress": "^3.12.0",
|
|
115
114
|
"figures": "^6.1.0"
|
|
116
115
|
},
|
|
117
116
|
"devDependencies": {
|
|
118
|
-
"@
|
|
119
|
-
"
|
|
117
|
+
"@eslint/js": "^9.8.0",
|
|
118
|
+
"@istanbuljs/esm-loader-hook": "^0.3.0",
|
|
119
|
+
"ava": "^6.4.1",
|
|
120
|
+
"check-engine-light": "0.4.0",
|
|
120
121
|
"chokidar-cli": "^3.0.0",
|
|
121
|
-
"cross-env": "^
|
|
122
|
-
"depcheck": "^1.4.7",
|
|
122
|
+
"cross-env": "^10.1.0",
|
|
123
123
|
"docdash": "^2.0.2",
|
|
124
|
-
"eslint": "^
|
|
124
|
+
"eslint": "^9.39.5",
|
|
125
125
|
"eslint-config-google": "^0.14.0",
|
|
126
|
-
"eslint-plugin-ava": "^
|
|
127
|
-
"eslint-plugin-jsdoc": "^
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
126
|
+
"eslint-plugin-ava": "^15.1.0",
|
|
127
|
+
"eslint-plugin-jsdoc": "^65.4.2",
|
|
128
|
+
"globals": "^17.13.0",
|
|
129
|
+
"jsdoc": "^4.0.5",
|
|
130
|
+
"knip": "^6.44.1",
|
|
131
|
+
"nyc": "^18.0.0",
|
|
132
|
+
"open-cli": "^9.0.0",
|
|
133
|
+
"rimraf": "^6.1.3",
|
|
134
|
+
"sinon": "^22.1.0",
|
|
135
|
+
"strip-ansi": "^7.2.0"
|
|
135
136
|
}
|
|
136
137
|
}
|
package/.reuse/dep5
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
2
|
-
Upstream-Name: ui5-logger
|
|
3
|
-
Upstream-Contact: SAP OpenUI5 <openui5@sap.com>
|
|
4
|
-
Source: https://github.com/SAP/ui5-logger
|
|
5
|
-
Disclaimer: The code in this project may include calls to APIs (“API Calls”) of
|
|
6
|
-
SAP or third-party products or services developed outside of this project
|
|
7
|
-
(“External Products”).
|
|
8
|
-
“APIs” means application programming interfaces, as well as their respective
|
|
9
|
-
specifications and implementing code that allows software to communicate with
|
|
10
|
-
other software.
|
|
11
|
-
API Calls to External Products are not licensed under the open source license
|
|
12
|
-
that governs this project. The use of such API Calls and related External
|
|
13
|
-
Products are subject to applicable additional agreements with the relevant
|
|
14
|
-
provider of the External Products. In no event shall the open source license
|
|
15
|
-
that governs this project grant any rights in or to any External Products,or
|
|
16
|
-
alter, expand or supersede any terms of the applicable additional agreements.
|
|
17
|
-
If you have a valid license agreement with SAP for the use of a particular SAP
|
|
18
|
-
External Product, then you may make use of any API Calls included in this
|
|
19
|
-
project’s code for that SAP External Product, subject to the terms of such
|
|
20
|
-
license agreement. If you do not have a valid license agreement for the use of
|
|
21
|
-
a particular SAP External Product, then you may only make use of any API Calls
|
|
22
|
-
in this project for that SAP External Product for your internal, non-productive
|
|
23
|
-
and non-commercial test and evaluation of such API Calls. Nothing herein grants
|
|
24
|
-
you any rights to use or access any SAP External Product, or provide any third
|
|
25
|
-
parties the right to use of access any SAP External Product, through API Calls.
|
|
26
|
-
|
|
27
|
-
Files: *
|
|
28
|
-
Copyright: 2018-2024 SAP SE or an SAP affiliate company and UI5 Tooling contributors
|
|
29
|
-
License: Apache-2.0
|