fix(tests): Bump dependency versions and adjust test to use enableConsole() default

This commit is contained in:
2025-09-22 13:30:17 +00:00
parent e133da8076
commit 13ccb0f386
5 changed files with 2216 additions and 2790 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2025-09-22 - 3.1.10 - fix(tests)
Bump dependency versions and adjust test to use enableConsole() default
- Update devDependencies: @git.zone/tsbuild -> ^2.6.8, @git.zone/tsbundle -> ^2.5.1, @git.zone/tstest -> ^2.3.6
- Update runtime dependencies: @push.rocks/consolecolor -> ^2.0.3, @push.rocks/smartfile -> ^11.2.7, @push.rocks/smarthash -> ^3.2.3
- Simplify test invocation in test/test.ts: call testSmartLog.enableConsole() without the captureAll option
## 2025-09-01 - 3.1.9 - fix(docs)
Update README: expand documentation, examples and usage guides

View File

@@ -42,19 +42,19 @@
"buildDocs": "tsdoc"
},
"devDependencies": {
"@git.zone/tsbuild": "^2.5.1",
"@git.zone/tsbundle": "^2.2.5",
"@git.zone/tsbuild": "^2.6.8",
"@git.zone/tsbundle": "^2.5.1",
"@git.zone/tsrun": "^1.3.3",
"@git.zone/tstest": "^1.9.0",
"@git.zone/tstest": "^2.3.6",
"@types/node": "^22.15.20"
},
"dependencies": {
"@api.global/typedrequest-interfaces": "^3.0.19",
"@push.rocks/consolecolor": "^2.0.2",
"@push.rocks/consolecolor": "^2.0.3",
"@push.rocks/isounique": "^1.0.4",
"@push.rocks/smartclickhouse": "^2.0.17",
"@push.rocks/smartfile": "^11.2.0",
"@push.rocks/smarthash": "^3.0.4",
"@push.rocks/smartfile": "^11.2.7",
"@push.rocks/smarthash": "^3.2.3",
"@push.rocks/smartpromise": "^4.2.3",
"@push.rocks/smarttime": "^4.1.1",
"@push.rocks/webrequest": "^3.0.37",

4981
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -23,9 +23,7 @@ tap.test('should produce instance of Smartlog', async () => {
});
tap.test('should enable console logging', async () => {
testSmartLog.enableConsole({
captureAll: true,
});
testSmartLog.enableConsole();
console.log('this is a normal log that should be captured');
console.log(new Error('hi there'));
testSmartLog.log('info', 'this should only be printed once');

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartlog',
version: '3.1.9',
version: '3.1.10',
description: 'A minimalistic, distributed, and extensible logging tool supporting centralized log management.'
}