Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve element replacers API #10908

Merged
merged 4 commits into from
Sep 20, 2024

Conversation

murdos
Copy link
Contributor

@murdos murdos commented Sep 19, 2024

  • breaking: change behavior of text() and regex() methods in JHipsterModule to not always do the replacement
    The previous behavior was a bit unexpected since other replacers shortcuts were doing the replacements conditionally.

  • feat(generator): add helper methods in ReplacementCondition to simplify writing replacements

…dule to not always do the replacement

The previous behavior was a bit unexpected since other replacers shortcuts were doing the replacements conditionally.

Adapted the react-jwt module, the only one that was relying on the previous behavior.
…, now using notContainingReplacement() strategy
@murdos murdos force-pushed the text-regexp-replacers-not-always branch from 042b720 to 83465f3 Compare September 19, 2024 15:48
@pascalgrimaud pascalgrimaud merged commit fba9a53 into jhipster:main Sep 20, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants