Skip to content

build(deps): bump cuyz/valinor from 2.5.1 to 2.6.0 - #2596

Open
dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/cuyz/valinor-2.6.0
Open

build(deps): bump cuyz/valinor from 2.5.1 to 2.6.0#2596
dependabot[bot] wants to merge 1 commit into
1.xfrom
dependabot/composer/cuyz/valinor-2.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 17, 2026

Copy link
Copy Markdown
Contributor

Bumps cuyz/valinor from 2.5.1 to 2.6.0.

Release notes

Sourced from cuyz/valinor's releases.

2.6.0

Notable changes

This release brings a set of new features to the library:

Enjoy! 🎉


Provided mapper configurators

A set of configurators is now available out-of-the-box for the mapper, mirroring the normalizer configurators introduced in the previous release. Each one can be used either globally through the configureWith() method or locally as an attribute targeting a specific property.

The MapToDateTimeFromFormat configurator parses the input string using the given date format, which must follow the syntax supported by DateTimeImmutable::createFromFormat():

use CuyZ\Valinor\Mapper\Configurator\MapToDateTimeFromFormat;
use CuyZ\Valinor\MapperBuilder;
use DateTimeInterface;
final readonly class Event
{
public function __construct(
public string $name,
    #[MapToDateTimeFromFormat('d/m/Y')]
    public DateTimeInterface $date,
) {}

}
$event = (new MapperBuilder())
->mapper()
->map(Event::class, [
'name' => 'Release of legendary album',
'date' => '08/11/1971', // mapped to a DateTimeImmutable
]);

The MapExplodedStringToList configurator explodes a string into a list using the given separator, which is useful when the input carries a list as a single delimited string, for instance a value coming from a CSV file or a query parameter:

use CuyZ\Valinor\Mapper\Configurator\MapExplodedStringToList;
</tr></table> 

... (truncated)

Commits
  • 15e5afc release: version 2.6.0
  • 605ea8c test: add regression tests for scalar value casting with asRoot
  • 5419b44 feat: support generics of PHP internal classes
  • 0629d86 fix: bind the templates a constructor declares to the type being mapped
  • 0d6efee feat: add default value support for @template annotations
  • 11938c5 feat: add @valinor-* annotations to override an unparseable type
  • f705d4c docs: remove common converters and transformers example chapters
  • eae3f03 chore: remove canCast() and cast() from scalar types
  • cdca3f5 feat: add mapper builder methods to cast to scalar types
  • beb4dbb feat: add mapper configurator MapExplodedStringToList
  • 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 [cuyz/valinor](https://github.com/CuyZ/Valinor) from 2.5.1 to 2.6.0.
- [Release notes](https://github.com/CuyZ/Valinor/releases)
- [Commits](CuyZ/Valinor@2.5.1...2.6.0)

---
updated-dependencies:
- dependency-name: cuyz/valinor
  dependency-version: 2.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Aug 17, 2026
@dependabot
dependabot Bot requested a review from norberttech as a code owner August 17, 2026 04:35
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file php Pull requests that update php code labels Aug 17, 2026
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 php Pull requests that update php code size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants