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

Bump io.github.wimdeblauwe:htmx-spring-boot-thymeleaf from 3.6.1 to 4.0.0 #89

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 29, 2024

Bumps io.github.wimdeblauwe:htmx-spring-boot-thymeleaf from 3.6.1 to 4.0.0.

Release notes

Sourced from io.github.wimdeblauwe:htmx-spring-boot-thymeleaf's releases.

4.0.0

What's Changed

Upgrade notes

Spring Boot 3.4.0 baseline

This version uses Spring Boot 3.4.0 as the baseline to work with. Be sure to first update your Spring Boot version before updating this library.

HtmxView is deprecated

HtmxView was introduced in this library to make it possible to support Out of Band Swaps. However, in Spring Framework 6.2 (Which is part of Spring Boot 3.4.0) there is now support for HTML Fragments.

As an example, this kind of code:

@HxRequest
@GetMapping("/users")
public HtmxResponse getMainAndPartial(Model model){
    model.addAttribute("users", userRepository.findAll());
    model.addAttribute("count", userRepository.count());
    return HtmxResponse.builder()
        .view("users/list")
        .view("users/count")
        .build();
}

Should be replaced with:

@HxRequest
@GetMapping("/users")
public View users(Model model) {
    model.addAttribute("users", userRepository.findAll());
    model.addAttribute("count", userRepository.count());
return FragmentsRendering
        .with("users/list")
        .fragment("users/count")
        .build();

}

or

</tr></table> 

... (truncated)

Commits
  • 2736871 Release 4.0.0
  • eb81b87 Add additional documentation about Collection<ModelAndView>
  • 73d041e Adapt Thymeleaf example in README.md to FragmentsRendering
  • 2e08a6c Merge pull request #152 from xhaggi/feature/gh-147
  • 7a47bb2 Mark HtmxView as deprecated in favor of HTML Fragments support in Spring Fram...
  • e9c2d78 Move controllers and service into associated test classes
  • 489d84f Get rid of deprecated classes and methods
  • be7da3a Upgrade to Spring Boot 3.4.0
  • 0b4b4a9 Merge pull request #153 from xhaggi/fix/gh-150
  • 28f2268 Merge pull request #151 from wimdeblauwe/feature/add-links-to-old-readme
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [io.github.wimdeblauwe:htmx-spring-boot-thymeleaf](https://github.com/wimdeblauwe/htmx-spring-boot-thymeleaf) from 3.6.1 to 4.0.0.
- [Release notes](https://github.com/wimdeblauwe/htmx-spring-boot-thymeleaf/releases)
- [Commits](wimdeblauwe/htmx-spring-boot@3.6.1...4.0.0)

---
updated-dependencies:
- dependency-name: io.github.wimdeblauwe:htmx-spring-boot-thymeleaf
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Nov 29, 2024
@BjoernKW BjoernKW merged commit 6df2cdb into main Nov 29, 2024
2 checks passed
@dependabot dependabot bot deleted the dependabot/maven/io.github.wimdeblauwe-htmx-spring-boot-thymeleaf-4.0.0 branch November 29, 2024 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant