Skip to content

Bump com.approvaltests:approvaltests from 31.1.0 to 32.0.0 - #230

Merged
isidore merged 1 commit into
masterfrom
dependabot/gradle/com.approvaltests-approvaltests-32.0.0
Nov 24, 2026
Merged

isidore merged 1 commit into
masterfrom
dependabot/gradle/com.approvaltests-approvaltests-32.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Contributor

Bumps com.approvaltests:approvaltests from 31.1.0 to 32.0.0.

Release notes

Sourced from com.approvaltests:approvaltests's releases.

ApprovalNamer collapsed to two methods; deprecated naming APIs removed

Breaking release. Removes the APIs deprecated in 31.3.0. No other behavior changes; approved file names are unchanged.

Upgrade guide (written so an AI coding agent can apply it): Upgrade from 31.3.0 to 32.0.0 Upgrade to 31.3.0 first and clear its deprecation warnings using Upgrade from 31.2.0 to 31.3.0.

Removed

  • ApprovalNamer now has only getApprovedFile and getReceivedFile; getApprovalName(), getSourceFilePath(), GetApprovalName, GetSourceFilePath removed
  • NamerWrapper
  • NamerFactory thread-local methods (withParameters, as*SpecificTest, useMultipleFiles, set/get/getAndClearAdditionalInformation, isEmpty, ApprovalResults)
  • NamedEnvironment, MultipleFilesLabeller, ApprovalResults
  • ImageApprovalWriter.asJreAware() (use asJreAware(options))
  • Options.forFile().withBaseName(...), withName(...) (use withNamer(TemplatedCustomNamer.create(template)))
  • Approvals.namerCreater (use Options.forFile().withNamer(info -> namer))

Deprecations ahead of 32.0.0 namer cleanup

Deprecation release. No behavior changes; approved file names are unchanged.

Everything deprecated here will be removed in 32.0.0.

Upgrade guide (written so an AI coding agent can apply it): Upgrade from 31.2.0 to 31.3.0

New

  • TemplatedCustomNamer.create(template) returns an ApprovalNamer for a file-name template
  • Options.forFile().withNamer(additionalInformation -> namer) sets a namer creator per verify
  • NamerUtils.getApprovalName(namer) and NamerUtils.getSourcePath(namer)

Deprecated

  • NamerFactory thread-local methods, NamedEnvironment, MultipleFilesLabeller, ApprovalResults → Options / Approvals.NAMES
  • ImageApprovalWriter.asJreAware() → ImageApprovalWriter.asJreAware(options)
  • Options.forFile().withBaseName(...), withName(...), NamerWrapper → withNamer(TemplatedCustomNamer.create(template))
  • ApprovalNamer.getApprovalName(), getSourceFilePath(), GetApprovalName, GetSourceFilePath → NamerUtils / getApprovedFile
  • Approvals.namerCreater → Options.forFile().withNamer(creator)

TemplatedCustomNamer supports {additional_information}

TemplatedCustomNamer now supports the {additional_information} template field, resolved from TemplateFieldValues.

Commits
  • cf7f910 . d reformatted code and updated markdown snippets
  • 5baaace - r Remove deprecated NamerFactory thread-local API, NamedEnvironment, withBa...
  • 6ad9081 - r Collapse ApprovalNamer to getApprovedFile/getReceivedFile; remove NamerWr...
  • ebc3406 . C Release v31.3.0 - Deprecations ahead of 32.0.0 namer cleanup --------------
  • 41dfad0 . t Make TemplatedCustomNamerTest.testCreate pass on Windows
  • 1113715 . d reformatted code and updated markdown snippets
  • 4ad1dcb . d Add upgrade guide from 31.2.0 to 31.3.0
  • 251b74a - r Deprecate ApprovalNamer getApprovalName/getSourceFilePath and Approvals.n...
  • e4b1391 . d reformatted code and updated markdown snippets
  • 52d585f . t Check @​UseReporter via Options().getReporter() so tests pass under AI agents
  • 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 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 [com.approvaltests:approvaltests](https://github.com/approvals/ApprovalTests.Java) from 31.1.0 to 32.0.0.
- [Release notes](https://github.com/approvals/ApprovalTests.Java/releases)
- [Changelog](https://github.com/approvals/ApprovalTests.Java/blob/master/internal_documentation/release.md)
- [Commits](approvals/ApprovalTests.Java@31.1.0...32.0.0)

---
updated-dependencies:
- dependency-name: com.approvaltests:approvaltests
  dependency-version: 32.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Nov 24, 2026
@isidore
isidore merged commit 9fcea5c into master Nov 24, 2026
2 checks passed
@dependabot
dependabot Bot deleted the dependabot/gradle/com.approvaltests-approvaltests-32.0.0 branch November 24, 2026 11:03
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