Skip to content

Commit 6fcc832

Browse files
committed
docs(changelog): record custom header security hardening 🗒️
- Add breaking notes for reserved header override rejection - Add changed note for strict custom header validation in SMTP message builder - Add unreleased test note for custom header security unit coverage
1 parent 8057743 commit 6fcc832

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,24 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
1212
- Added OAuth2 integration test toggle and token placeholders in `.env.example`
1313
- Added optional OAuth2 live integration scenario in `tests/Integration.test.ts`
1414
- Added strict auth config validation test coverage in `tests/utils/Config.test.ts`
15+
- Added custom header security unit tests in `tests/smtp/Message.test.ts`
1516

1617
### Changed
1718

1819
- Updated `README.md` and `USAGE.md` to document explicit auth type configuration
1920
- Updated SMTP auth flow to support XOAUTH2 for OAuth2 credentials
2021
- Updated SMTP config validation to enforce explicit auth discriminator
2122
- Updated auth and config types to discriminated union structure
23+
- Updated SMTP message header handling with strict validation in `src/smtp/Message.ts`
2224

2325
### Breaking
2426

2527
- Removed implicit auth shape without `auth.type`
2628
- Replaced previous auth credential model with explicit variants:
2729
`type: 'password'` with `user` and `pass`,
2830
`type: 'oauth2'` with `user` and `accessToken`
31+
- Disallowed overriding reserved SMTP headers via `message.headers`
32+
- Rejected custom headers containing invalid names or CRLF line breaks
2933

3034
## [0.2.0] - 2026-03-24
3135

0 commit comments

Comments
 (0)