@ui5/logger 3.0.1-rc.2 → 3.0.1-rc.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 CHANGED
@@ -2,7 +2,10 @@
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-rc.2...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-logger/compare/v3.0.1-rc.3...HEAD).
6
+
7
+ <a name="v3.0.1-rc.3"></a>
8
+ ## [v3.0.1-rc.3] - 2023-02-02
6
9
 
7
10
  <a name="v3.0.1-rc.2"></a>
8
11
  ## [v3.0.1-rc.2] - 2023-01-24
@@ -146,6 +149,7 @@ Only Node.js v10 or higher is supported.
146
149
  <a name="v0.0.1"></a>
147
150
  ## v0.0.1 - 2018-06-06
148
151
 
152
+ [v3.0.1-rc.3]: https://github.com/SAP/ui5-logger/compare/v3.0.1-rc.2...v3.0.1-rc.3
149
153
  [v3.0.1-rc.2]: https://github.com/SAP/ui5-logger/compare/v3.0.1-rc.1...v3.0.1-rc.2
150
154
  [v3.0.1-rc.1]: https://github.com/SAP/ui5-logger/compare/v3.0.1-rc.0...v3.0.1-rc.1
151
155
  [v3.0.1-rc.0]: https://github.com/SAP/ui5-logger/compare/v3.0.1-beta.1...v3.0.1-rc.0
package/lib/index.js CHANGED
@@ -8,7 +8,7 @@ import Logger from "./loggers/Logger.js";
8
8
  */
9
9
 
10
10
  /**
11
- * Convenience function to create an instance of [@ui5/logger/loggers/Logger]{@link @ui5/logger/loggers/Logger}
11
+ * Convenience function to create an instance of [@ui5/logger/Logger]{@link @ui5/logger/Logger}
12
12
  *
13
13
  * @public
14
14
  * @param {string} moduleName Identifier for messages created by the logger.
@@ -28,6 +28,7 @@ class Console {
28
28
  this._handleProjectBuildStatusEvent = this.#handleProjectBuildStatusEvent.bind(this);
29
29
  this._handleBuildMetadataEvent = this.#handleBuildMetadataEvent.bind(this);
30
30
  this._handleProjectBuildMetadataEvent = this.#handleProjectBuildMetadataEvent.bind(this);
31
+ this._handleStop = this.disable.bind(this);
31
32
  }
32
33
 
33
34
  /**
@@ -41,6 +42,7 @@ class Console {
41
42
  process.on("ui5.project-build-metadata", this._handleProjectBuildMetadataEvent);
42
43
  process.on("ui5.build-status", this._handleBuildStatusEvent);
43
44
  process.on("ui5.project-build-status", this._handleProjectBuildStatusEvent);
45
+ process.on("ui5.log.stop-console", this._handleStop);
44
46
  }
45
47
 
46
48
  /**
@@ -54,6 +56,7 @@ class Console {
54
56
  process.off("ui5.project-build-metadata", this._handleProjectBuildMetadataEvent);
55
57
  process.off("ui5.build-status", this._handleBuildStatusEvent);
56
58
  process.off("ui5.project-build-status", this._handleProjectBuildStatusEvent);
59
+ process.off("ui5.log.stop-console", this._handleStop);
57
60
  if (this.#progressBarContainer) {
58
61
  this.#progressBar.stop();
59
62
  this.#progressBarContainer.stop(); // Will fire internal stop event
@@ -366,6 +369,10 @@ class Console {
366
369
  cH.enable();
367
370
  return cH;
368
371
  }
372
+
373
+ static stop() {
374
+ process.emit("ui5.log.stop-console");
375
+ }
369
376
  }
370
377
 
371
378
  export default Console;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/logger",
3
- "version": "3.0.1-rc.2",
3
+ "version": "3.0.1-rc.3",
4
4
  "description": "UI5 Tooling - Internal Logger",
5
5
  "author": {
6
6
  "name": "SAP SE",
@@ -25,7 +25,7 @@
25
25
  "./internal/loggers/*": "./lib/loggers/*.js"
26
26
  },
27
27
  "engines": {
28
- "node": "^16.18.0 || >=18.0.0",
28
+ "node": "^16.18.0 || >=18.12.0",
29
29
  "npm": ">= 8"
30
30
  },
31
31
  "scripts": {
@@ -120,14 +120,14 @@
120
120
  "cross-env": "^7.0.3",
121
121
  "depcheck": "^1.4.3",
122
122
  "docdash": "^2.0.1",
123
- "eslint": "^8.32.0",
123
+ "eslint": "^8.33.0",
124
124
  "eslint-config-google": "^0.14.0",
125
125
  "eslint-plugin-ava": "^14.0.0",
126
- "eslint-plugin-jsdoc": "^39.6.7",
126
+ "eslint-plugin-jsdoc": "^39.7.4",
127
127
  "jsdoc": "^3.6.11",
128
128
  "nyc": "^15.1.0",
129
129
  "open-cli": "^7.1.0",
130
- "rimraf": "^4.1.1",
130
+ "rimraf": "^4.1.2",
131
131
  "sinon": "^15.0.1",
132
132
  "strip-ansi": "^7.0.1",
133
133
  "tap-xunit": "^2.4.1"