@ui5/logger 3.0.1-alpha.2 → 3.0.1-alpha.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 -1
- package/jsdoc.json +2 -2
- package/lib/logger.js +3 -2
- package/package.json +21 -13
- package/index.js +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
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-alpha.
|
|
5
|
+
A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v3.0.1-alpha.3...HEAD).
|
|
6
|
+
|
|
7
|
+
<a name="v3.0.1-alpha.3"></a>
|
|
8
|
+
## [v3.0.1-alpha.3] - 2022-10-24
|
|
9
|
+
### Breaking Changes
|
|
10
|
+
- Transform to native ESM ([#306](https://github.com/SAP/ui5-logger/issues/306)) [`c79608b`](https://github.com/SAP/ui5-logger/commit/c79608b0e432168ca8570530b63a456b9ddd12cb)
|
|
11
|
+
|
|
12
|
+
### BREAKING CHANGE
|
|
13
|
+
|
|
14
|
+
This package has been transformed to native ESM. Therefore it no longer provides a CommonJS export.
|
|
15
|
+
If your project uses CommonJS, it needs to be converted to ESM or use a dynamic import.
|
|
16
|
+
|
|
17
|
+
For more information see also:
|
|
18
|
+
- https://sap.github.io/ui5-tooling/updates/migrate-v3/
|
|
19
|
+
- https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
|
20
|
+
|
|
6
21
|
|
|
7
22
|
<a name="v3.0.1-alpha.2"></a>
|
|
8
23
|
## [v3.0.1-alpha.2] - 2022-07-28
|
|
@@ -77,6 +92,7 @@ Only Node.js v10 or higher is supported.
|
|
|
77
92
|
<a name="v0.0.1"></a>
|
|
78
93
|
## v0.0.1 - 2018-06-06
|
|
79
94
|
|
|
95
|
+
[v3.0.1-alpha.3]: https://github.com/SAP/ui5-logger/compare/v3.0.1-alpha.2...v3.0.1-alpha.3
|
|
80
96
|
[v3.0.1-alpha.2]: https://github.com/SAP/ui5-logger/compare/v3.0.1-alpha.1...v3.0.1-alpha.2
|
|
81
97
|
[v3.0.1-alpha.1]: https://github.com/SAP/ui5-logger/compare/v3.0.1-alpha.0...v3.0.1-alpha.1
|
|
82
98
|
[v3.0.1-alpha.0]: https://github.com/SAP/ui5-logger/compare/v3.0.0-next.0...v3.0.1-alpha.0
|
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-alpha.
|
|
3
|
+
"version": "3.0.1-alpha.3",
|
|
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,7 +111,8 @@
|
|
|
104
111
|
"npmlog": "^6.0.2"
|
|
105
112
|
},
|
|
106
113
|
"devDependencies": {
|
|
107
|
-
"
|
|
114
|
+
"@istanbuljs/esm-loader-hook": "^0.2.0",
|
|
115
|
+
"ava": "^4.3.1",
|
|
108
116
|
"chokidar-cli": "^3.0.0",
|
|
109
117
|
"cross-env": "^7.0.3",
|
|
110
118
|
"depcheck": "^1.4.3",
|
|
@@ -113,12 +121,12 @@
|
|
|
113
121
|
"eslint-config-google": "^0.14.0",
|
|
114
122
|
"eslint-plugin-ava": "^13.2.0",
|
|
115
123
|
"eslint-plugin-jsdoc": "^37.6.3",
|
|
124
|
+
"esmock": "^1.8.9",
|
|
116
125
|
"jsdoc": "^3.6.7",
|
|
117
|
-
"mock-require": "^3.0.3",
|
|
118
126
|
"nyc": "^15.1.0",
|
|
119
127
|
"open-cli": "^6.0.1",
|
|
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
|
}
|