@ui5/logger 3.0.1-alpha.2 → 3.0.1-beta.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/.reuse/dep5 +1 -1
- package/CHANGELOG.md +45 -2
- package/CONTRIBUTING.md +1 -1
- package/README.md +4 -4
- package/jsdoc.json +2 -2
- package/lib/logger.js +3 -2
- package/package.json +24 -16
- package/index.js +0 -5
package/.reuse/dep5
CHANGED
|
@@ -25,5 +25,5 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
|
|
|
25
25
|
parties the right to use of access any SAP External Product, through API Calls.
|
|
26
26
|
|
|
27
27
|
Files: *
|
|
28
|
-
Copyright: 2018-
|
|
28
|
+
Copyright: 2018-2022 SAP SE or an SAP affiliate company and UI5 Tooling contributors
|
|
29
29
|
License: Apache-2.0
|
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,25 @@
|
|
|
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/v3.0.1-
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v3.0.1-beta.0...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v3.0.1-beta.0"></a>
|
|
8
|
+
## [v3.0.1-beta.0] - 2022-11-07
|
|
9
|
+
|
|
10
|
+
<a name="v3.0.1-alpha.3"></a>
|
|
11
|
+
## [v3.0.1-alpha.3] - 2022-10-24
|
|
12
|
+
### Breaking Changes
|
|
13
|
+
- Transform to native ESM ([#306](https://github.com/SAP/ui5-logger/issues/306)) [`c79608b`](https://github.com/SAP/ui5-logger/commit/c79608b0e432168ca8570530b63a456b9ddd12cb)
|
|
14
|
+
|
|
15
|
+
### BREAKING CHANGE
|
|
16
|
+
|
|
17
|
+
This package has been transformed to native ESM. Therefore it no longer provides a CommonJS export.
|
|
18
|
+
If your project uses CommonJS, it needs to be converted to ESM or use a dynamic import.
|
|
19
|
+
|
|
20
|
+
For more information see also:
|
|
21
|
+
- https://sap.github.io/ui5-tooling/updates/migrate-v3/
|
|
22
|
+
- https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
|
23
|
+
|
|
6
24
|
|
|
7
25
|
<a name="v3.0.1-alpha.2"></a>
|
|
8
26
|
## [v3.0.1-alpha.2] - 2022-07-28
|
|
@@ -27,6 +45,28 @@ Only Node.js v16.13.2 and npm v8 or higher are supported.
|
|
|
27
45
|
<a name="v3.0.0-next.0"></a>
|
|
28
46
|
## [v3.0.0-next.0] - 2021-11-29
|
|
29
47
|
|
|
48
|
+
<a name="v3.0.0-beta.1"></a>
|
|
49
|
+
## [v3.0.0-beta.1] - 2022-11-07
|
|
50
|
+
### Breaking Changes
|
|
51
|
+
- Transform to native ESM ([#306](https://github.com/SAP/ui5-logger/issues/306)) [`c79608b`](https://github.com/SAP/ui5-logger/commit/c79608b0e432168ca8570530b63a456b9ddd12cb)
|
|
52
|
+
- Require Node.js >= 16.13.2 / npm >= 8 [`a8af8a7`](https://github.com/SAP/ui5-logger/commit/a8af8a7a82c6f657ac10b5018e654939d90fd81f)
|
|
53
|
+
|
|
54
|
+
### Features
|
|
55
|
+
- Add new log level "perf" [`acf0c71`](https://github.com/SAP/ui5-logger/commit/acf0c717612f440ea7a114e757c05d358ae523a7)
|
|
56
|
+
|
|
57
|
+
### BREAKING CHANGE
|
|
58
|
+
|
|
59
|
+
This package has been transformed to native ESM. Therefore it no longer provides a CommonJS export.
|
|
60
|
+
If your project uses CommonJS, it needs to be converted to ESM or use a dynamic import.
|
|
61
|
+
|
|
62
|
+
For more information see also:
|
|
63
|
+
- https://sap.github.io/ui5-tooling/updates/migrate-v3/
|
|
64
|
+
- https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
|
65
|
+
|
|
66
|
+
Support for older Node.js and npm releases has been dropped.
|
|
67
|
+
Only Node.js v16.13.2 and npm v8 or higher are supported.
|
|
68
|
+
|
|
69
|
+
|
|
30
70
|
<a name="v3.0.0-alpha.0"></a>
|
|
31
71
|
## [v3.0.0-alpha.0] - 2021-12-14
|
|
32
72
|
|
|
@@ -77,10 +117,13 @@ Only Node.js v10 or higher is supported.
|
|
|
77
117
|
<a name="v0.0.1"></a>
|
|
78
118
|
## v0.0.1 - 2018-06-06
|
|
79
119
|
|
|
120
|
+
[v3.0.1-beta.0]: https://github.com/SAP/ui5-logger/compare/v3.0.1-alpha.3...v3.0.1-beta.0
|
|
121
|
+
[v3.0.1-alpha.3]: https://github.com/SAP/ui5-logger/compare/v3.0.1-alpha.2...v3.0.1-alpha.3
|
|
80
122
|
[v3.0.1-alpha.2]: https://github.com/SAP/ui5-logger/compare/v3.0.1-alpha.1...v3.0.1-alpha.2
|
|
81
123
|
[v3.0.1-alpha.1]: https://github.com/SAP/ui5-logger/compare/v3.0.1-alpha.0...v3.0.1-alpha.1
|
|
82
124
|
[v3.0.1-alpha.0]: https://github.com/SAP/ui5-logger/compare/v3.0.0-next.0...v3.0.1-alpha.0
|
|
83
|
-
[v3.0.0-next.0]: https://github.com/SAP/ui5-logger/compare/v3.0.0-
|
|
125
|
+
[v3.0.0-next.0]: https://github.com/SAP/ui5-logger/compare/v3.0.0-beta.1...v3.0.0-next.0
|
|
126
|
+
[v3.0.0-beta.1]: https://github.com/SAP/ui5-logger/compare/v3.0.0-alpha.0...v3.0.0-beta.1
|
|
84
127
|
[v3.0.0-alpha.0]: https://github.com/SAP/ui5-logger/compare/v2.0.1...v3.0.0-alpha.0
|
|
85
128
|
[v2.0.1]: https://github.com/SAP/ui5-logger/compare/v2.0.0...v2.0.1
|
|
86
129
|
[v2.0.0]: https://github.com/SAP/ui5-logger/compare/v1.0.2...v2.0.0
|
package/CONTRIBUTING.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# Contributing to the UI5 Tooling
|
|
2
2
|
|
|
3
|
-
See CONTRIBUTING.md in the [SAP/ui5-tooling](https://github.com/SAP/ui5-tooling/blob/
|
|
3
|
+
See CONTRIBUTING.md in the [SAP/ui5-tooling](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md) repository.
|
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-

|
|
2
2
|
|
|
3
3
|
# ui5-logger
|
|
4
4
|
> Internal logging module
|
|
5
5
|
> Part of the [UI5 Tooling](https://github.com/SAP/ui5-tooling)
|
|
6
6
|
|
|
7
7
|
[](https://api.reuse.software/info/github.com/SAP/ui5-logger)
|
|
8
|
-
[](https://dev.azure.com/sap/opensource/_build/latest?definitionId=37&branchName=main)
|
|
9
9
|
[](https://www.npmjs.com/package/@ui5/logger)
|
|
10
10
|
|
|
11
11
|
## Documentation
|
|
@@ -15,10 +15,10 @@ General documentation can of the UI5 Tooling can be found here: [sap.github.io/u
|
|
|
15
15
|
Used for logging purposes across the UI5 Tooling and plugins. Features log levels and progress logging. Basically, it is a wrapper of [npmlog](https://github.com/npm/npmlog).
|
|
16
16
|
|
|
17
17
|
## Contributing
|
|
18
|
-
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/
|
|
18
|
+
Please check our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md).
|
|
19
19
|
|
|
20
20
|
## Support
|
|
21
|
-
Please follow our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/
|
|
21
|
+
Please follow our [Contribution Guidelines](https://github.com/SAP/ui5-tooling/blob/main/CONTRIBUTING.md#report-an-issue) on how to report an issue.
|
|
22
22
|
|
|
23
23
|
Please report issues in the main [UI5 Tooling](https://github.com/SAP/ui5-tooling) repository.
|
|
24
24
|
|
package/jsdoc.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"allowUnknownTags": false
|
|
4
4
|
},
|
|
5
5
|
"source": {
|
|
6
|
-
"include": ["README.md"
|
|
6
|
+
"include": ["README.md"],
|
|
7
7
|
"includePattern": ".+\\.js$",
|
|
8
8
|
"excludePattern": "(node_modules(\\\\|/))"
|
|
9
9
|
},
|
|
10
10
|
"plugins": [
|
|
11
|
-
"
|
|
11
|
+
"jsdoc-plugin.cjs"
|
|
12
12
|
],
|
|
13
13
|
"opts": {
|
|
14
14
|
"encoding": "utf8",
|
package/lib/logger.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import npmlog from "npmlog";
|
|
2
2
|
|
|
3
3
|
const levels = ["silly", "verbose", "perf", "info", "warn", "error", "silent"];
|
|
4
4
|
if (process.env.UI5_LOG_LVL) {
|
|
@@ -160,10 +160,11 @@ const logger = {
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
// Export internal classes for testing only
|
|
163
|
+
/* istanbul ignore else */
|
|
163
164
|
if (process.env.NODE_ENV === "test") {
|
|
164
165
|
logger.__test__ = {
|
|
165
166
|
Logger, GroupLogger, TaskLogger
|
|
166
167
|
};
|
|
167
168
|
}
|
|
168
169
|
|
|
169
|
-
|
|
170
|
+
export default logger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/logger",
|
|
3
|
-
"version": "3.0.1-
|
|
3
|
+
"version": "3.0.1-beta.0",
|
|
4
4
|
"description": "UI5 Tooling - Internal Logger",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "SAP SE",
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
"development",
|
|
17
17
|
"tool"
|
|
18
18
|
],
|
|
19
|
-
"
|
|
19
|
+
"type": "module",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": "./lib/logger.js",
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
20
24
|
"engines": {
|
|
21
25
|
"node": ">= 16.13.2",
|
|
22
26
|
"npm": ">= 8"
|
|
@@ -27,11 +31,11 @@
|
|
|
27
31
|
"lint": "eslint ./",
|
|
28
32
|
"unit": "rimraf test/tmp && ava",
|
|
29
33
|
"unit-verbose": "rimraf test/tmp && cross-env UI5_LOG_LVL=verbose ava --verbose --serial",
|
|
30
|
-
"unit-watch": "
|
|
31
|
-
"unit-nyan": "
|
|
32
|
-
"unit-xunit": "rimraf test/tmp && ava --tap | tap-xunit --dontUseCommentsAsTestNames=true > test-results.xml",
|
|
34
|
+
"unit-watch": "npm run unit -- --watch",
|
|
35
|
+
"unit-nyan": "npm run unit -- --tap | tnyan",
|
|
36
|
+
"unit-xunit": "rimraf test/tmp && ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\" --tap | tap-xunit --dontUseCommentsAsTestNames=true > test-results.xml",
|
|
33
37
|
"unit-inspect": "cross-env UI5_LOG_LVL=verbose ava debug --break",
|
|
34
|
-
"coverage": "nyc
|
|
38
|
+
"coverage": "rimraf test/tmp && nyc ava --node-arguments=\"--experimental-loader=@istanbuljs/esm-loader-hook\"",
|
|
35
39
|
"coverage-xunit": "nyc --reporter=text --reporter=text-summary --reporter=cobertura npm run unit-xunit",
|
|
36
40
|
"jsdoc": "npm run jsdoc-generate && open-cli jsdocs/index.html",
|
|
37
41
|
"jsdoc-generate": "jsdoc -c ./jsdoc.json -t $(node -p 'path.dirname(require.resolve(\"docdash\"))') ./lib/ || (echo 'Error during JSDoc generation! Check log.' && exit 1)",
|
|
@@ -40,10 +44,9 @@
|
|
|
40
44
|
"version": "git-chglog --sort semver --next-tag v$npm_package_version -o CHANGELOG.md && git add CHANGELOG.md",
|
|
41
45
|
"postversion": "git push --follow-tags",
|
|
42
46
|
"release-note": "git-chglog --sort semver -c .chglog/release-config.yml v$npm_package_version",
|
|
43
|
-
"depcheck": "depcheck --ignores docdash"
|
|
47
|
+
"depcheck": "depcheck --ignores docdash,@istanbuljs/esm-loader-hook"
|
|
44
48
|
},
|
|
45
49
|
"files": [
|
|
46
|
-
"index.js",
|
|
47
50
|
"CHANGELOG.md",
|
|
48
51
|
"CONTRIBUTING.md",
|
|
49
52
|
"jsdoc.json",
|
|
@@ -54,6 +57,10 @@
|
|
|
54
57
|
"ava": {
|
|
55
58
|
"files": [
|
|
56
59
|
"test/lib/**/*.js"
|
|
60
|
+
],
|
|
61
|
+
"nodeArguments": [
|
|
62
|
+
"--loader=esmock",
|
|
63
|
+
"--no-warnings"
|
|
57
64
|
]
|
|
58
65
|
},
|
|
59
66
|
"nyc": {
|
|
@@ -67,8 +74,8 @@
|
|
|
67
74
|
"jsdocs/**",
|
|
68
75
|
"coverage/**",
|
|
69
76
|
"test/**",
|
|
70
|
-
".eslintrc.
|
|
71
|
-
"jsdoc-plugin.
|
|
77
|
+
".eslintrc.cjs",
|
|
78
|
+
"jsdoc-plugin.cjs"
|
|
72
79
|
],
|
|
73
80
|
"check-coverage": true,
|
|
74
81
|
"statements": 90,
|
|
@@ -104,21 +111,22 @@
|
|
|
104
111
|
"npmlog": "^6.0.2"
|
|
105
112
|
},
|
|
106
113
|
"devDependencies": {
|
|
107
|
-
"
|
|
114
|
+
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
115
|
+
"ava": "^5.0.1",
|
|
108
116
|
"chokidar-cli": "^3.0.0",
|
|
109
117
|
"cross-env": "^7.0.3",
|
|
110
118
|
"depcheck": "^1.4.3",
|
|
111
119
|
"docdash": "^1.2.0",
|
|
112
|
-
"eslint": "^8.
|
|
120
|
+
"eslint": "^8.27.0",
|
|
113
121
|
"eslint-config-google": "^0.14.0",
|
|
114
122
|
"eslint-plugin-ava": "^13.2.0",
|
|
115
|
-
"eslint-plugin-jsdoc": "^
|
|
123
|
+
"eslint-plugin-jsdoc": "^39.6.2",
|
|
124
|
+
"esmock": "^2.0.7",
|
|
116
125
|
"jsdoc": "^3.6.7",
|
|
117
|
-
"mock-require": "^3.0.3",
|
|
118
126
|
"nyc": "^15.1.0",
|
|
119
|
-
"open-cli": "^
|
|
127
|
+
"open-cli": "^7.1.0",
|
|
120
128
|
"rimraf": "^3.0.2",
|
|
121
|
-
"sinon": "^
|
|
129
|
+
"sinon": "^14.0.0",
|
|
122
130
|
"tap-nyan": "^1.1.0",
|
|
123
131
|
"tap-xunit": "^2.4.1"
|
|
124
132
|
}
|