Skip to content

- r Bump com.approvaltests:approvaltests-util from 31.0.0 to 32.2.0 - #17

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

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps com.approvaltests:approvaltests-util from 31.0.0 to 32.2.0.

Release notes

Sourced from com.approvaltests:approvaltests-util's releases.

verifyBinary and line scrubber

Adds Approvals.verifyBinary and Scrubbers.removeLinesContaining. No behavior changes; approved file names are unchanged.

Added

  • Approvals.verifyBinary(byte[], String fileExtension[, Options]): approve raw bytes such as images or PDFs.
  • Scrubbers.removeLinesContaining(String): a scrubber that removes every line containing the given text.
  • ApprovalBinaryFileWriter constructors that take Options.

Deprecated

  • ApprovalBinaryFileWriter constructors that take String fileExtensionWithoutDot. Use the Options versions.

Upgrade guide: Upgrade from 32.1.0 to 32.2.0

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

... (truncated)

Commits
  • 865cf36 . d Add 32.2.0 upgrade guide
  • 3058360 - r ApprovalBinaryFileWriter takes Options; smiley image for verifyBinary
  • 9a478b9 ! F Add Approvals.verifyBinary
  • ada3578 . d Verify binary micro feature
  • 3b29888 ! F Add Scrubbers.removeLinesContaining line scrubber
  • bc9daa5 . d Feature map missing rows and line scrubber micro feature
  • 2b3457a . d feature map with doc links
  • 949ad24 . d feature map
  • 4c8d142 Merge branch 'temp'
  • 7099976 . C Release v32.1.0 - ApprovalWriter owns cleanUpReceived --------------
  • 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-util](https://github.com/approvals/ApprovalTests.Java) from 31.0.0 to 32.2.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.2.0)

---
updated-dependencies:
- dependency-name: com.approvaltests:approvaltests-util
  dependency-version: 32.2.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 27, 2026

This branch has not been deployed

No deployments
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