Skip to content

- r Bump com.approvaltests:approvaltests from 31.0.0 to 32.1.0 - #13

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/maven/com.approvaltests-approvaltests-32.1.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/maven/com.approvaltests-approvaltests-32.1.0

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps com.approvaltests:approvaltests from 31.0.0 to 32.1.0.

Release notes

Sourced from com.approvaltests:approvaltests's releases.

ApprovalWriter owns cleanUpReceived

Adds ApprovalWriter.cleanUpReceived(File received). No behavior changes; approved file names are unchanged.

Added

  • ApprovalWriter.cleanUpReceived(File received): the writer now decides how its received file is removed after a passing test. The default deletes the file, as before, so existing writers need no changes.

Upgrade guide: Upgrade from 32.0.0 to 32.1.0

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.

Failing approvals print to the console for AI coding agents

When tests run under an AI coding agent (Claude Code, Codex, Cursor, Gemini CLI, opencode, ...), a failing approval now prints the approved/received paths, an approve command, and both files' contents to standard out instead of opening a diff tool.

https://github.com/approvals/ApprovalTests.Java/blob/master/approvaltests/docs/reference/AiCodingAgentReporter.md

... (truncated)

Commits
  • 5d51532 - r ApprovalWriter owns cleanUpReceived
  • 1bef155 . d Add desired writer architecture
  • ff5e2c7 . d Remove stale TCR prompt docs with dead image link
  • 052bcdd - r Bump jackson-bom to 3.3.0 and flatten-maven-plugin to 1.9.0
  • c8ba03b . e Bump jdx/mise-action to 5.2.9 and actions/setup-java to 6.3.0
  • 63cefde . d Add Java 32.0.0 status to DesiredNamerArchitecture
  • d6949b7 Merge branch 'temp'
  • 9ec3ab0 . C Release v32.0.0 - ApprovalNamer collapsed to two methods; deprecated nami...
  • ab8a32f . d Fix broken root-relative doc links
  • cf7f910 . d reformatted code and updated markdown snippets
  • 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.0.0 to 32.1.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.0.0...32.1.0)

---
updated-dependencies:
- dependency-name: com.approvaltests:approvaltests
  dependency-version: 32.1.0
  dependency-type: direct:development
  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 25, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #16.

@dependabot dependabot Bot closed this Nov 27, 2026
@dependabot
dependabot Bot deleted the dependabot/maven/com.approvaltests-approvaltests-32.1.0 branch November 27, 2026 01:25
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.

0 participants