Skip to content

Release/v1.0.0#2

Merged
zihluwang merged 6 commits intomainfrom
release/v1.0.0
Oct 30, 2025
Merged

Release/v1.0.0#2
zihluwang merged 6 commits intomainfrom
release/v1.0.0

Conversation

@zihluwang
Copy link
Member

This pull request refactors the default text producer component of the CAPTCHA library by renaming DefaultTextCreator to DefaultTextProducer throughout the codebase. It also updates the builder pattern usage and improves the example usage in the README.md to reflect these changes and promote builder usage for configuration. The update ensures consistency and clarity in naming, and modernizes the example for better usability.

Core Refactoring:

  • Renamed the class DefaultTextCreator to DefaultTextProducer and updated all references, including the builder class and method names, to improve clarity and consistency in naming. (src/main/java/com/onixbyte/captcha/text/impl/DefaultTextProducer.java, previously DefaultTextCreator.java) [1] [2] [3] [4] [5] [6] [7] [8]

Documentation and Example Updates:

  • Updated the README.md example to use the new DefaultTextProducer and its builder, and to use builder patterns for other CAPTCHA components, making the example clearer and more maintainable.

Other Minor Changes:

  • Removed an unnecessary import from NoNoiseProducer due to the refactoring.
  • No functional changes to the build system; only a timestamp line was removed from gradle-wrapper.properties.

feat: rename `DefaultTextCreator` to `DefaultTextProducer`
Simplify captcha component configuration by replacing constructor-based initialisation with builder pattern. This improves readability and makes default values more explicit while maintaining the same functionality.
Move gradle-wrapper.jar exclusion to correct path and adjust general jar exclusion pattern
@zihluwang zihluwang merged commit 55124d2 into main Oct 30, 2025
@zihluwang zihluwang deleted the release/v1.0.0 branch October 30, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant