Skip to content

build(deps): Bump cuyz/valinor from 2.5.1 to 2.6.0 - #19048

Merged
nickvergessen merged 1 commit into
mainfrom
dependabot/composer/cuyz/valinor-2.6.0
Aug 27, 2026
Merged

build(deps): Bump cuyz/valinor from 2.5.1 to 2.6.0#19048
nickvergessen merged 1 commit into
mainfrom
dependabot/composer/cuyz/valinor-2.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 22, 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 dependabot Bot added dependencies Pull requests that update a dependency file php labels Aug 22, 2026
@nickvergessen

Copy link
Copy Markdown
Member

@dependabot rebase

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 force-pushed the dependabot/composer/cuyz/valinor-2.6.0 branch from a9c6a95 to ef7fa6e Compare August 27, 2026 15:05
@nickvergessen
nickvergessen merged commit 0f4c10f into main Aug 27, 2026
79 checks passed
@nickvergessen
nickvergessen deleted the dependabot/composer/cuyz/valinor-2.6.0 branch August 27, 2026 17:26
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant