Skip to content

ApprovalNamer collapsed to two methods; deprecated naming APIs removed

Choose a tag to compare

@isidore isidore released this 21 Nov 07:01
· 25 commits to master since this release

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))