From 8727b31ad0580710479883dd70c1f443d3ef71a8 Mon Sep 17 00:00:00 2001 From: Devon Hillard Date: Mon, 30 Nov 2026 21:41:55 -0800 Subject: [PATCH] docs: tidy the 5.4.2 changelog entry and point README snippets at 5.4.2 --- CHANGELOG.md | 13 ++++++------- README.md | 8 ++++---- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66c61ad..f76906f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,28 +6,27 @@ All notable changes to this project are documented here. This project follows [S ## [5.4.2] - 2026-11-30 -This patch restores message resolution for consuming applications by correctly registering MessageSourceEnvironmentPostProcessor so the library’s bundle is appended to spring.messages.basename, and updates the build to Spring Boot 4.2.0. There are no API, configuration property, HTTP status, or response code changes. +This patch restores message resolution for consuming applications by correctly registering MessageSourceEnvironmentPostProcessor so the library's bundle is appended to spring.messages.basename, and updates the build to Spring Boot 4.2.0. There are no API, configuration property, HTTP status, or response code changes. SemVer classification: patch. Bug fix and build compatibility only; no new public API/properties and no HTTP status or response code changes. ### Fixes -- The library message bundle (messages/dsspringusermessages) is now appended to spring.messages.basename at startup. Since 5.0.0, MessageSourceEnvironmentPostProcessor was mistakenly registered in META-INF/spring/org.springframework.boot.env.EnvironmentPostProcessor.imports, which Spring Boot does not read for environment post-processors, so it never ran. As a result, library-supplied messages without inline defaults (for example, the passkey-registered email) could render as ??key?? in consuming apps. The post-processor is now registered in META-INF/spring.factories and runs early in application startup; your application’s own message keys still take precedence over the library’s. +- The library message bundle (messages/dsspringusermessages) is now appended to spring.messages.basename at startup. Since 5.0.0, MessageSourceEnvironmentPostProcessor was mistakenly registered in META-INF/spring/org.springframework.boot.env.EnvironmentPostProcessor.imports, which Spring Boot does not read for environment post-processors, so it never ran. As a result, library-supplied messages without inline defaults (for example, the passkey-registered email) could render as ??key?? in consuming apps. The post-processor is now registered in META-INF/spring.factories. Your application's own message keys still take precedence over the library's. ### Refactoring - MessageSourceEnvironmentPostProcessor now implements org.springframework.boot.EnvironmentPostProcessor (the interface available since Spring Boot 4.0). Spring Boot 4.2 removes the deprecated org.springframework.boot.env.EnvironmentPostProcessor, so this change maintains compatibility. No behavior or public API change for consumers. ### Documentation -- Built and tested against Spring Boot 4.2.0 (Spring Framework 7.1, Spring Security 7.2). Spring Boot 4.0, 4.1, and 4.2 are supported; your application’s Spring Boot version is what runs. -- MIGRATION.md: documents that 5.0.0 through 5.4.1 did not load the library bundle due to the incorrect registration location and that 5.4.2 fixes it by using META-INF/spring.factories. If you copied the library’s message keys into your own bundle as a workaround, you can remove any you did not customize. +- Built and tested against Spring Boot 4.2.0 (Spring Framework 7.1, Spring Security 7.2). Spring Boot 4.0, 4.1, and 4.2 are supported; your application's Spring Boot version is what runs. +- MIGRATION.md: documents that 5.0.0 through 5.4.1 did not load the library bundle due to the incorrect registration location and that 5.4.2 fixes it by using META-INF/spring.factories. If you copied the library's message keys into your own bundle as a workaround, you can remove any you did not customize. - README.md and badges: updated compatibility text to include Spring Boot 4.2.x and clarified that starters are compileOnly so your app selects the exact Boot patch. - Note for reverse-proxy deployments on Spring Boot 4.2: if you set server.forward-headers-strategy, verify that user.security.trustedHosts and user.security.appUrl still produce correct links in emails. ### Testing -- MessageSourceEnvironmentPostProcessorTest now boots a real SpringApplication to verify discovery via META-INF/spring.factories and asserts that the library bundle is appended to both an explicit consumer basename and Spring Boot’s default basename. The test also isolates configuration to prevent test resources from masking registration problems. A comment in META-INF/spring.factories clarifies why the registration must remain there. +- MessageSourceEnvironmentPostProcessorTest now boots a real SpringApplication to verify discovery via META-INF/spring.factories and asserts that the library bundle is appended to both an explicit consumer basename and Spring Boot's default basename. The test also isolates configuration to prevent test resources from masking registration problems. A comment in META-INF/spring.factories clarifies why the registration must remain there. ### Other Changes -- Build: upgraded Spring Boot plugin to 4.2.0, Gradle wrapper to 9.9.2, org.hibernate.validator:hibernate-validator (test scope) to 9.2.0.Final, and org.thymeleaf.extras:thymeleaf-extras-springsecurity6 to 3.1.7.RELEASE. No effect on consuming applications. -- Repo: added Reeve merge gate policy/metadata. No effect on consuming applications. +- Build: upgraded the Spring Boot plugin from 4.1.1 to 4.2.0, Gradle wrapper to 9.9.2, org.hibernate.validator:hibernate-validator (test scope) to 9.2.0.Final, and org.thymeleaf.extras:thymeleaf-extras-springsecurity6 to 3.1.7.RELEASE. No effect on consuming applications. ## [5.4.1] - 2026-11-04 diff --git a/README.md b/README.md index 445e469..832ae76 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ Choose the version that matches your Spring Boot version: | 4.0.x – 4.2.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.2.x** (5.4.0 and 5.4.1 against 4.1.1; `main` against 4.2.0) and also runs on 4.0.x and 4.1.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.2.x** (5.4.0 and 5.4.1 against 4.1.1; 5.4.2 against 4.2.0) and also runs on 4.0.x and 4.1.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) @@ -135,13 +135,13 @@ Spring Boot 4.x brings significant changes including Spring Security 7 and requi com.digitalsanctuary ds-spring-user-framework - 5.4.1 + 5.4.2 ``` **Gradle:** ```groovy -implementation 'com.digitalsanctuary:ds-spring-user-framework:5.4.1' +implementation 'com.digitalsanctuary:ds-spring-user-framework:5.4.2' ``` #### Spring Boot 4.x Key Changes @@ -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 / 4.2 (Java 21+):** ```groovy - implementation 'com.digitalsanctuary:ds-spring-user-framework:5.4.1' + implementation 'com.digitalsanctuary:ds-spring-user-framework:5.4.2' ``` **Spring Boot 3.5 (Java 17+):**