@qui-cli/log 4.0.0 → 4.0.2

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,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [4.0.2](https://github.com/battis/qui-cli/compare/log/4.0.1...log/4.0.2) (2026-01-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * normalize peer dependencies ([cdd81b7](https://github.com/battis/qui-cli/commit/cdd81b7c4bea7c769021ff58177750c5a1369f76))
11
+
12
+ ## [4.0.1](https://github.com/battis/qui-cli/compare/log/4.0.0...log/4.0.1) (2025-11-12)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * boost standard headig back to level 1 ([cfb3065](https://github.com/battis/qui-cli/commit/cfb30657a3d719df60663d0a8e6aa6cf240740e9))
18
+
5
19
  ## [4.0.0](https://github.com/battis/qui-cli/compare/log/3.1.0...log/4.0.0) (2025-11-07)
6
20
 
7
21
  ### ⚠ BREAKING CHANGES
package/dist/Log.d.ts CHANGED
@@ -3,10 +3,22 @@ import winston from 'winston';
3
3
  import { CustomLevels, DefaultLevels } from './Levels.js';
4
4
  export { CustomLevels, DefaultLevels };
5
5
  export type Configuration = Plugin.Configuration & {
6
+ /** Optional path to log file (relative to `root`). */
6
7
  logFilePath?: string;
8
+ /** Log level to display via stdout/console, defaults to `'info'`; */
7
9
  stdoutLevel?: string;
10
+ /**
11
+ * Log level to write to log file (if `logFilePath` defined), defaults to
12
+ * `'all'`;
13
+ */
8
14
  fileLevel?: string;
15
+ /** Custom log levels to use, specified by `Log.CustomLevels` */
9
16
  levels?: CustomLevels;
17
+ /**
18
+ * Optional root to use as the base for relative `logFilePath`. If undefined,
19
+ * falls back to the path defined by
20
+ * [@qui-cli/root](https://www.npmjs.com/package/@qui-cli/root).
21
+ */
10
22
  root?: string;
11
23
  };
12
24
  export declare const name = "log";
package/dist/Log.js CHANGED
@@ -81,14 +81,11 @@ export function configure(config = {}) {
81
81
  }
82
82
  }
83
83
  export function options() {
84
- const levelsList = [...Object.keys(levels.levels), OFF]
85
- .map((level) => Colors.quotedValue(`"${level}"`))
86
- .join(', ')
87
- .replace(/, ([^,]+)$/, ', or $1');
84
+ const hint = [...Object.keys(levels.levels), OFF].join('|');
88
85
  return {
89
86
  man: [
90
87
  {
91
- level: 3,
88
+ level: 1,
92
89
  text: 'Logging options'
93
90
  }
94
91
  ],
@@ -97,11 +94,13 @@ export function options() {
97
94
  description: `Path to log file (optional)`
98
95
  },
99
96
  stdoutLevel: {
100
- description: `Log level to console stdout: ${levelsList}`,
97
+ description: `Log level to console stdout`,
98
+ hint,
101
99
  default: stdoutLevel
102
100
  },
103
101
  fileLevel: {
104
- description: `Log level to log file (if ${Colors.optionArg('--logFilePath')} provided): ${levelsList}`,
102
+ description: `Log level to log file if ${Colors.optionArg('--logFilePath')} provided`,
103
+ hint,
105
104
  default: fileLevel
106
105
  }
107
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qui-cli/log",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
4
4
  "description": "@qui-cli Plugin: Standardized winston wrapper",
5
5
  "homepage": "https://github.com/battis/qui-cli/tree/main/packages/log#readme",
6
6
  "repository": {
@@ -19,22 +19,22 @@
19
19
  "dependencies": {
20
20
  "ora": "^8.2.0",
21
21
  "strip-ansi": "^7.1.2",
22
- "winston": "^3.18.3",
23
- "@qui-cli/colors": "3.1.0"
22
+ "winston": "^3.19.0",
23
+ "@qui-cli/colors": "3.2.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@tsconfig/node20": "^20.1.6",
27
- "@types/node": "^24.10.0",
28
- "commit-and-tag-version": "^12.6.0",
26
+ "@tsconfig/node20": "^20.1.8",
27
+ "@types/node": "^24.10.4",
28
+ "commit-and-tag-version": "^12.6.1",
29
29
  "del-cli": "^6.0.0",
30
30
  "npm-run-all": "^4.1.5",
31
31
  "typescript": "^5.9.3",
32
32
  "@qui-cli/plugin": "4.0.0",
33
- "@qui-cli/root": "3.0.1"
33
+ "@qui-cli/root": "3.0.6"
34
34
  },
35
35
  "peerDependencies": {
36
- "@qui-cli/plugin": "4.x",
37
- "@qui-cli/root": "3.x"
36
+ "@qui-cli/plugin": ">=3",
37
+ "@qui-cli/root": ">=3"
38
38
  },
39
39
  "target": "node",
40
40
  "scripts": {