Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ All notable changes to this project are documented here. This project follows [S

## [5.4.1] - 2026-11-04

This patch release fixes MailService’s behavior on Spring Framework 7.0.0–7.0.1 (Spring Boot 4.0.0) so an interrupt during retry backoff is recovered and logged instead of surfacing as IllegalStateException. Documentation clarifies version compatibility and notes that 5.4.1 works on Spring Boot 4.0.0.
This patch release fixes MailService's behavior on Spring Framework 7.0.0 and 7.0.1 (Spring Boot 4.0.0) so an interrupt during retry backoff is recovered and logged instead of surfacing as IllegalStateException. Documentation clarifies version compatibility and notes that 5.4.1 works on Spring Boot 4.0.0.

SemVer classification: patch — bug fix only; no new public API, configuration properties, HTTP status, or response code changes.
SemVer classification: patch. Bug fix only; no new public API, configuration properties, HTTP status, or response code changes.

### Fixes
- MailService no longer throws IllegalStateException when a send is interrupted during retry backoff on Spring Framework 7.0.0 or 7.0.1 (the versions in Spring Boot 4.0.0). Those Framework versions report the InterruptedException as the RetryException cause instead of the last MailException; MailService now keeps the interrupt flag and rethrows the last recorded MailException (or a MailSendException wrapping the interrupt) so the normal recover path (recoverSendSimpleMessage / recoverSendTemplateMessage) runs, matching behavior on 7.0.2 and later.

### Documentation
- MIGRATION.md: rebuilt the Version Compatibility Matrix from release tags and clarified line statuses; updated the Spring Boot 4.0.0 caveat to “Note on 5.4.0 and Spring Boot 4.0.0” and documented that 5.4.1 handles both interrupt shapes — use 5.4.1 or later on Spring Boot 4.0.0.
- MIGRATION.md: rebuilt the Version Compatibility Matrix from release tags and clarified line statuses; updated the Spring Boot 4.0.0 caveat to "Note on 5.4.0 and Spring Boot 4.0.0" and documented that 5.4.1 handles both interrupt shapes. Use 5.4.1 or later on Spring Boot 4.0.0.
- README.md: versioning note now states that 5.4.x runs on Spring Boot 4.0.x and explicitly calls out that on Spring Boot 4.0.0 you should use 5.4.1 or later. Earlier post-release cleanup aligned the install table/snippets to 5.4.x / 5.4.0 and Spring Boot 4.1.1.
- CHANGELOG.md (for 5.4.0): tidied the previous entry to categorize removals under Removed/Deprecated, remove duplications, and correct version ranges and wording.

### Testing
- MailServiceTest adds coverage for both Spring Framework 7.0.0/7.0.1 and 7.0.2+ exception shapes: preserves the thread’s interrupt flag, recovers with the last MailException when present, and recovers with a MailSendException wrapping the interrupt when none was recorded. Tests run clean across 7.0.0, 7.0.1, 7.0.2, and the managed 7.0.9.
- MailServiceTest adds coverage for both Spring Framework 7.0.0/7.0.1 and 7.0.2+ exception shapes: preserves the thread's interrupt flag, recovers with the last MailException when present, and recovers with a MailSendException wrapping the interrupt when none was recorded. Tests run clean across 7.0.0, 7.0.1, 7.0.2, and the managed 7.0.9.

### Other Changes
- CI: skip the claude-review workflow on Dependabot PRs to avoid a failed check from bot-initiated runs. No effect on consuming applications.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Choose the version that matches your Spring Boot version:
| 4.0.x – 4.1.x | 5.4.x | 21+ | 7.x |
| 3.5.x | 3.6.x | 17+ | 6.x |

> **Versioning note:** This library follows Semantic Versioning for its **own** API; its major version is intentionally **not** aligned with Spring Boot's major version. The 5.4.x line is built and verified against **Spring Boot 4.1.1** and also runs on 4.0.x (on Spring Boot 4.0.0, use 5.4.1 or later; see the [compatibility matrix](MIGRATION.md#version-compatibility-matrix)) — all Spring Boot starters are `compileOnly`, so your application picks the exact Spring Boot patch version. The `5.0.x` line is a **breaking release** over `4.4.x`; read the **[Migration Guide](MIGRATION.md)** ("Migrating to 5.0.x") before upgrading — note especially the reverse-proxy `user.security.appUrl` requirement.
> **Versioning note:** This library follows Semantic Versioning for its **own** API; its major version is intentionally **not** aligned with Spring Boot's major version. The 5.4.x line is built and verified against **Spring Boot 4.1.1** and also runs on 4.0.x (on Spring Boot 4.0.0, use 5.4.1 or later; see the [compatibility matrix](MIGRATION.md#version-compatibility-matrix)). All Spring Boot starters are `compileOnly`, so your application picks the exact Spring Boot patch version. The `5.0.x` line is a **breaking release** over `4.4.x`; read the **[Migration Guide](MIGRATION.md)** ("Migrating to 5.0.x") before upgrading — note especially the reverse-proxy `user.security.appUrl` requirement.

### Spring Boot 4.x (Latest)

Expand All @@ -135,13 +135,13 @@ Spring Boot 4.x brings significant changes including Spring Security 7 and requi
<dependency>
<groupId>com.digitalsanctuary</groupId>
<artifactId>ds-spring-user-framework</artifactId>
<version>5.4.0</version>
<version>5.4.1</version>
</dependency>
```

**Gradle:**
```groovy
implementation 'com.digitalsanctuary:ds-spring-user-framework:5.4.0'
implementation 'com.digitalsanctuary:ds-spring-user-framework:5.4.1'
```

#### Spring Boot 4.x Key Changes
Expand Down Expand Up @@ -214,7 +214,7 @@ Follow these steps to get up and running with the Spring User Framework in your

**Spring Boot 4.0 / 4.1 (Java 21+):**
```groovy
implementation 'com.digitalsanctuary:ds-spring-user-framework:5.4.0'
implementation 'com.digitalsanctuary:ds-spring-user-framework:5.4.1'
```

**Spring Boot 3.5 (Java 17+):**
Expand Down
Loading