v3.0.0
Breaking Changes
- Replace npmlog with @ui5/logger/Logger (#363)
66a159a
- Deprecate advanced APIs in preparation of refactoring
3aea5e7
- Transform to ES Modules (#306)
c79608b
- Require Node.js ^16.18.0, >=18.12.0 / npm >= 8
a8af8a7
BREAKING CHANGE
The @ui5/logger got refactored and as a result its API went public.
Remove the usage of npmlog and refactor @ui5/logger modules to emit log events which are then caught in dedicated handlers. This is somewhat inspired by npm's proc-log module.
This breaking change removes capabilities that are likely to change and should not be part of a public API.
This will ensure that later changes to the module can be donen in a
compatible manner.
Relevant changes:
- Restrict log-methods to two argument only. The use of placeholders
like '%s' is no longer supported. A warning will be logged if more
than two argument is supplied. Placeholders will be replaced with a
deprecation message. We suggest the use of template literals. - Deprecate #getGroupLogger method. Calling it throws an error.
It will be removed in one of the next patch releases - Deprecate #setShowProgress method. Calling it throws an error.
It will be removed in one of the next patch releases - Remove GroupLogger and TaskLogger classes. Similar functionality might
be re-added in a later release.
This package has been transformed to ES Modules. Therefore it no longer provides a CommonJS export.
If your project uses CommonJS, it needs to be converted to ES Modules or use a dynamic import.
For more information see also:
- https://sap.github.io/ui5-tooling/updates/migrate-v3/
- https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
Support for older Node.js and npm releases has been dropped.
Only Node.js versions v16.18.0, v18.12.0 or higher as well as npm v8 or higher are supported.
Features
- Add new log level "perf"
acf0c71