Skip to content

Commit 1926cf4

Browse files
committed
chore(release): v0.21.0 [skip actions]
1 parent 60542c0 commit 1926cf4

File tree

5 files changed

+46
-53
lines changed

5 files changed

+46
-53
lines changed

.changeset/fix-logger-test-race-condition.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/flexible-logging-output.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.changeset/security-logging-improvements.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,50 @@
11
# agentic-node-ts-starter
22

3+
## 0.21.0
4+
5+
### Minor Changes
6+
7+
- [#104](https://github.com/sapientpants/agentic-node-ts-starter/pull/104) [`2fd789b`](https://github.com/sapientpants/agentic-node-ts-starter/commit/2fd789b23703a4f2dad4a9378b665b9d0cb8a484) Thanks [@sapientpants](https://github.com/sapientpants)! - feat: Add configurable logging output destinations
8+
9+
Adds comprehensive support for multiple logging output destinations to provide flexibility for different deployment scenarios and application architectures.
10+
11+
Key features:
12+
- Multiple output destinations: stdout, stderr, file, syslog, null
13+
- File logging with rotation support (size and count limits)
14+
- Programmatic API for runtime output switching
15+
- Preserves all existing logger features (context, correlation IDs, redaction)
16+
- Backward compatible with no breaking changes
17+
18+
This enables developers to:
19+
- Redirect logs to stderr for applications that use stdout for data output
20+
- Write logs to files with automatic rotation for long-running services
21+
- Send logs to centralized syslog servers for enterprise environments
22+
- Disable logging entirely with the null output for testing or special cases
23+
24+
For detailed usage, see docs/LOGGING_OUTPUT.md
25+
26+
### Patch Changes
27+
28+
- [#105](https://github.com/sapientpants/agentic-node-ts-starter/pull/105) [`834f02b`](https://github.com/sapientpants/agentic-node-ts-starter/commit/834f02b028c4e33e2f59e6ebc853ca796b750fe9) Thanks [@sapientpants](https://github.com/sapientpants)! - fix: resolve file rotation test race condition in CI
29+
- Create unique test directories for each test iteration to avoid conflicts
30+
- Add configurable timeout for file operations in CI environments
31+
- Implement proper cleanup with error handling using try-finally blocks
32+
- Remove console statement to comply with linting rules
33+
34+
This fixes the intermittent ENOENT errors when pino-roll tries to access
35+
rotation files that may have been cleaned up by concurrent tests.
36+
37+
- [#104](https://github.com/sapientpants/agentic-node-ts-starter/pull/104) [`2fd789b`](https://github.com/sapientpants/agentic-node-ts-starter/commit/2fd789b23703a4f2dad4a9378b665b9d0cb8a484) Thanks [@sapientpants](https://github.com/sapientpants)! - feat: Add comprehensive security validation for logging configuration
38+
- Add path traversal protection for file logging paths
39+
- Validate syslog hostnames and ports to prevent injection attacks
40+
- Block writing logs to restricted system directories
41+
- Set explicit file permissions (640 by default) for log files
42+
- Create directories with restrictive permissions (750)
43+
- Add proper cleanup for file descriptors to prevent resource leaks
44+
- Add configurable test timeouts for CI reliability
45+
- Improve error handling with fallback to stdout on validation failures
46+
- Add comprehensive security documentation
47+
348
## 0.20.0
449

550
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agentic-node-ts-starter",
3-
"version": "0.20.0",
3+
"version": "0.21.0",
44
"private": true,
55
"type": "module",
66
"packageManager": "[email protected]",

0 commit comments

Comments
 (0)