Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Nov 9, 2025

Updated Riok.Mapperly from 3.3.0 to 4.3.0.

Release notes

Sourced from Riok.Mapperly's releases.

4.3.0

πŸš€ Features

  • Support unsafe accessors in generic classes and nested mappers by @​latonz in #​1814
  • Support roslyn 4.14 by @​latonz in #​1837
  • Allow to disable null mismatch diagnostics RMG089 per member by @​3sRykaert in #​1804
  • Include mapping configuration by @​faddiv in #​1833
  • Support multiple mapping configuration includes by @​latonz in #​1854
  • Explicit named mappings by @​faddiv in #​1863
  • Support ref keyword in user defined methods for the target parameter by @​EraYaN in #​1895
  • Add notnull constraint support in nullable disabled contexts by @​clegoz in #​1947
  • Reference External mappings by @​faddiv in #​1890
  • Add support for ignoring static convert methods with MapperIgnore by @​iclectic in #​1941

πŸ› Bug Fixes

  • Nullable user implemented value type mappings in queryable projections by @​latonz in #​1835
  • Resolve top-level user-implemented mappings when resolving queryable projections by @​latonz in #​1852
  • Name collision, reuse context within switch statement by @​EraYaN in #​1911
  • Correctly inline user-defined nested queryable projection mappings by @​latonz in #​1966
  • Handle single segment fullnameof by @​faddiv in #​1980

Full Changelog: riok/mapperly@v4.2.1...v4.3.0

4.3.0-next.6

πŸ› Bug Fixes

  • fix: handle single segment fullnameof by @​faddiv in #​1980

Full Changelog: riok/mapperly@v4.3.0-next.5...v4.3.0-next.6

4.3.0-next.5

πŸš€ Features

  • Reference External mappings by @​faddiv in #​1890
  • Add support for ignoring static convert methods with MapperIgnore by @​iclectic in #​1941

πŸ› Bug Fixes

  • Correctly inline user-defined nested queryable projection mappings by @​latonz in #​1966

Full Changelog: riok/mapperly@v4.3.0-next.4...v4.3.0-next.5

4.3.0-next.4

πŸš€ Features

  • fix: add notnull constraint support in nullable disabled contexts by @​clegoz in #​1947

πŸ› Bug Fixes

  • fix: Name collision, reuse context within switch statement by @​EraYaN in #​1911

Full Changelog: riok/mapperly@v4.3.0-next.3...v4.3.0-next.4

4.3.0-next.3

πŸš€ Features

  • feat: explicit named mappings by @​faddiv in #​1863
  • feat: support ref keyword in user defined methods for the target parameter by @​EraYaN in #​1895

Full Changelog: riok/mapperly@v4.3.0-next.2...v4.3.0-next.3

4.3.0-next.2

πŸš€ Features

  • feat: Include mapping configuration by @​faddiv in #​1833

Full Changelog: riok/mapperly@v4.3.0-next.1...v4.3.0-next.2

4.3.0-next.1

πŸ› Bug Fixes

  • fix: resolve top-level user-implemented mappings when resolving queryable projections by @​latonz in #​1852

Full Changelog: riok/mapperly@v4.3.0-next.0...v4.3.0-next.1

4.3.0-next.0

πŸš€ Features

  • feat: support unsafe accessors in generic classes and nested mappers by @​latonz in #​1814
  • feat: support roslyn 4.14 by @​latonz in #​1837
  • feat: Allow to disable null mismatch diagnostics RMG089 per member by @​3sRykaert in #​1804

πŸ› Bug Fixes

  • fix: nullable user implemented value type mappings in queryable projections by @​latonz in #​1835

Full Changelog: riok/mapperly@v4.2.1...v4.3.0-next.0

4.2.1

πŸ› Bug Fixes

  • fix: add value suffix when getting non-enumerated count on nullable value types by @​latonz in #​1789
  • fix: fixes queryable projection inlining of user-defined mappings calling generated mappings by @​latonz in #​1790
  • fix: correct nullable handling in queryable projection mappings with nullable value types and custom mapping methods by @​latonz in #​1810
  • fix: resolve base methods in MapValue.Use by @​latonz in #​1811
  • fix: resolve base mappings in MapProperty.Use by @​latonz in #​1812
  • fix: resolve object factories in base classes by @​latonz in #​1813
  • fix: use global alias for exceptions and linq select by @​latonz in #​1816

Full Changelog: riok/mapperly@v4.2.0...v4.2.1

4.2.1-next.2

πŸ› Bug Fixes

  • fix: use global alias for exceptions and linq select by @​latonz in #​1816

Full Changelog: riok/mapperly@v4.2.1-next.1...v4.2.1-next.2

4.2.1-next.1

πŸ› Bug Fixes

  • fix: fixes queryable projection inlining of user-defined mappings calling generated mappings by @​latonz in #​1790
  • fix: correct nullable handling in queryable projection mappings with nullable value types and custom mapping methods by @​latonz in #​1810
  • fix: resolve base methods in MapValue.Use by @​latonz in #​1811
  • fix: resolve base mappings in MapProperty.Use by @​latonz in #​1812
  • fix: resolve object factories in base classes by @​latonz in #​1813

Full Changelog: riok/mapperly@v4.2.1-next.0...v4.2.1-next.1

4.2.1-next.0

πŸ› Bug Fixes

  • fix: add value suffix when getting non-enumerated count on nullable value types by @​latonz in #​1789

Full Changelog: riok/mapperly@v4.2.0...v4.2.1-next.0

4.2.0

πŸš€ Features

  • feat: Separate RequiredMappingStrategy configuration for enums by @​jacob-buckaroo in #​1591
  • feat: Diagnostic for mapping null mismatch by @​latonz in #​1612
  • feat: Add support for From and To method conversions (#​1117) by @​TonEnfer in #​1616
  • feat: do not apply deep cloning to queryable projection mappings by @​latonz in #​1717
  • feat: add NotNullIfNotNull attribute on generated methods, support it on user implemented methods by @​latonz in #​1718
  • feat: support named mappings for existing target objects by @​clegoz in #​1720

πŸ› Bug Fixes

  • fix: missing global alias on method argument in inlined user-implemented method #​1629 by @​TonEnfer in #​1630
  • fix: initialize nullable members for nested containers by @​clegoz in #​1660
  • fix: only diagnostic missing member mappings for required init members by @​latonz in #​1686
  • fix: do not emit null coalesce operator in queryable mappings by @​latonz in #​1716
  • fix: correct nameof expression for enum value checked mappings by @​latonz in #​1741

Full Changelog: riok/mapperly@v4.1.1...v4.2.0

4.2.0-next.2

πŸš€ Features

  • feat: support named mappings for existing target objects by @​clegoz in #​1720

πŸ› Bug Fixes

  • fix: correct nameof expression for enum value checked mappings by @​latonz in #​1741

Full Changelog: riok/mapperly@v4.2.0-next.1...v4.2.0-next.2

4.2.0-next.1

πŸš€ Features

  • feat: do not apply deep cloning to queryable projection mappings by @​latonz in #​1717
  • feat: add NotNullIfNotNull attribute on generated methods, support it on user implemented methods by @​latonz in #​1718

πŸ› Bug Fixes

  • fix: do not emit null coalesce operator in queryable mappings by @​latonz in #​1716

Full Changelog: riok/mapperly@v4.2.0-next.0...v4.2.0-next.1

4.2.0-next.0

πŸš€ Features

  • Separate RequiredMappingStrategy configuration for enums by @​jacob-buckaroo in #​1591
  • Diagnostic for mapping null mismatch by @​jorisBarkema in #​1612, #​1592
  • Add support for From and To method conversions (#​1117) by @​TonEnfer in #​1616

πŸ› Bug Fixes

  • missing global alias on method argument in inlined user-implemented method #​1629 by @​TonEnfer in #​1630
  • initialize nullable members for nested containers by @​clegoz in #​1660
  • only diagnostic missing member mappings for required init members by @​latonz in #​1686

Full Changelog: riok/mapperly@v4.1.1...v4.2.0-next.0

4.1.1

πŸ› Bug Fixes

  • fix: existing target unmapped required member should not lead to error diagnostic by @​latonz in #​1570
  • fix: use correct user defined mapping configuration for nullable disabled queryable mappings by @​latonz in #​1580

Full Changelog: riok/mapperly@v4.1.0...v4.1.1

4.1.1-next.0

πŸ› Bug Fixes

  • existing target unmapped required member should not lead to error diagnostic by @​latonz in #​1570
  • use correct user defined mapping configuration for nullable disabled queryable mappings by @​latonz in #​1580

Full Changelog: riok/mapperly@v4.1.0...v4.1.1-next.0

4.1.0

πŸš€ Features

  • support capacity settable members by @​latonz in #​1526
  • improve fullnameof and allow namespaced and nested types by @​latonz in #​1518
  • add roslyn 4.11 as target by @​latonz in #​1555

πŸ› Bug Fixes

  • support capacity settable members by @​latonz in #​1526
  • ignore capacity related diagnostics for system collection types when mapping from custom type by @​latonz in #​1531
  • Removes the obsolete attribute from MapProperty.ctor(string[], string[]) by @​latonz in #​1535
  • allow assignments of MapValue constant value types to nullable value types by @​latonz in #​1536
  • handle nullable value types with MapValueAttribute and methods correct by @​latonz in #​1538
  • correct analysis of property member accessors by @​latonz in #​1556
  • simplify could not generate mapping exception syntax by @​latonz in #​1559
  • fix inconsistent handling of mixed nullable contexts by @​latonz in #​1558
  • allow multiple MapProperty attributes for the same target member by @​latonz in #​1560
  • correct handling mapping to read-only target arrays by @​latonz in #​1562
  • lazy load types which are not available on netstandard2.0 by @​latonz in #​1563

Full Changelog: riok/mapperly@v4.0.0...v4.1.0

4.1.0-next.3

πŸ› Bug Fixes

  • fix: correctly handle mapping to read-only target arrays by @​latonz in #​1562
  • fix: lazy load types which are not available on netstandard2.0 by @​latonz in #​1563

Full Changelog: riok/mapperly@v4.1.0-next.2...v4.1.0-next.3

4.1.0-next.2

πŸš€ Features

  • add roslyn 4.11 as target by @​latonz in #​1555

πŸ› Bug Fixes

  • handle nullable value types with MapValueAttribute and methods correct by @​latonz in #​1538
  • correct analysis of property member accessors by @​latonz in #​1556
  • simplify could not generate mapping exception syntax by @​latonz in #​1559
  • fix inconsistent handling of mixed nullable contexts by @​latonz in #​1558
  • allow multiple MapProperty attributes for the same target member by @​latonz in #​1560

Full Changelog: riok/mapperly@v4.1.0-next.1...v4.1.0-next.2

4.1.0-next.1

πŸ› Bug Fixes

  • ignore capacity related diagnostics for system collection types when mapping from custom type by @​latonz in #​1531
  • Removes the obsolete attribute from MapProperty.ctor(string[], string[]) by @​latonz in #​1535
  • allow assignments of MapValue constant value types to nullable value types by @​latonz in #​1536

Full Changelog: riok/mapperly@v4.1.0-next.0...v4.1.0-next.1

4.1.0-next.0

πŸš€ Features

  • support capacity settable members by @​latonz in #​1526
  • improve fullnameof and allow namespaced and nested types by @​latonz in #​1518

Full Changelog: riok/mapperly@v4.0.0...v4.1.0-next.0

4.0.0

🚨 Breaking Changes

  • ignore indexed properties by @​latonz in #​1351
  • add enum underlying type conversion by @​latonz in #​1352
  • strict mappings by default by @​latonz in #​1353
  • support mapping properties of custom collection mappings by @​latonz in #​1364
  • improve handling of read-only and immutable types by @​latonz in #​1413
  • improve member matching performance for member names with lots of upper case letters by @​latonz in #​1447
  • enum from/to string explicit mappings by @​BeeTwin in #​1483

πŸš€ Features

  • introduce MapValueAttribute to map constant values and method provided values by @​latonz in #​1335
  • add MappingTarget attribute to set the mapping target as the first parameter by @​latonz in #​1376
  • support additional mapping method parameters by @​latonz in #​1400
  • inline methods consisting of a single return statement or local variable declaration expression by @​hartmair in #​1422
  • support private constructors by @​latonz in #​1405
  • improve handling of read-only and immutable types by @​latonz in #​1413
  • improve constructor mapping readability by @​aradalvand in #​1448
  • add support for mappers being nested under interfaces or records by @​david-driscoll in #​1464
  • enum from/to string explicit mappings by @​BeeTwin in #​1483
  • enum from/to string naming strategies for different letter casings by @​BeeTwin in #​1486
  • enum from/to string naming strategies for DescriptionAttribute and EnumMemberAttribute by @​latonz in #​1507

πŸ› Bug Fixes

  • adjust diagnostic messages to be correct when applied with MapValue by @​latonz in #​1332
  • allow same-name members with different casings by @​latonz in #​1350
  • replace invalid MapPropertyAttribute constructors with valid versions by @​latonz in #​1354
  • failing projection with static mapper from another assembly by @​trejjam in #​1418
  • collect EnumerateUnmappedOrConfiguredTargetMembers to prevent collection was modified exception by @​trejjam in #​1438
  • support inline expression with casting by @​trejjam in #​1419
  • correct map nested interfaced enumerations by @​latonz in #​1404
  • only initialize unflattened nullable target members when needed by @​latonz in #​1408
  • improve handling of read-only and immutable types by @​latonz in #​1413
  • improve member matching performance for member names with lots of upper case letters by @​latonz in #​1447
  • initialize nullable values when assigning null to a child member by @​latonz in #​1449
  • report inaccessible constructor instead of mapping could not be created by @​latonz in #​1462
  • support inlining of method with generic type arguments by @​trejjam in #​1498
  • refactor member matching and member mapping building process by @​latonz in #​1334

Full Changelog: riok/mapperly@v3.6.0...v4.0.0
Migration guide: https://mapperly.riok.app/docs/breaking-changes/4-0/

4.0.0-next.4

🚨 Breaking Changes

  • Enum from/to string explicit mappings by @​BeeTwin in #​1483

πŸš€ Features

  • Adding support for mappers being nested under interfaces or records by @​david-driscoll in #​1464
  • Enum from/to string explicit mappings by @​BeeTwin in #​1483
  • Enum from/to string naming strategies by @​BeeTwin in #​1486
  • Enum naming strategies for DescriptionAttribute and EnuMemberAttribute by @​latonz in #​1507

πŸ› Bug Fixes

  • report inaccessible constructor instead of mapping could not be created by @​latonz in #​1462
  • Support inlining of method with generic type arguments by @​trejjam in #​1498

Full Changelog: riok/mapperly@v4.0.0-next.3...v4.0.0-next.4

4.0.0-next.3

🚨 Breaking Changes

  • fix: improve handling of read-only and immutable types by @​latonz in #​1413
  • fix: improve member matching performance for member names with lots of upper case letters by @​latonz in #​1447

πŸš€ Features

  • private constructors support by @​latonz in #​1405
  • fix: improve handling of read-only and immutable types by @​latonz in #​1413
  • feat: improve constructor mapping readability by @​latonz and @​aradalvand in #​1448

πŸ› Bug Fixes

  • fix: correct map nested interfaced enumerations by @​latonz in #​1404
  • fix: only initialize unflattened nullable target members when needed by @​latonz in #​1408
  • fix: improve handling of read-only and immutable types by @​latonz in #​1413
  • fix: improve member matching performance for member names with lots of upper case letters by @​latonz in #​1447
  • fix: initialize nullable values when assigning null to a child member by @​latonz in #​1449

Full Changelog: riok/mapperly@v4.0.0-next.2...v4.0.0-next.3

4.0.0-next.2

πŸš€ Features

  • Add MappingTarget attribute to set the mapping target as the first parameter by @​latonz in #​1376
  • support additional mapping method parameters by @​latonz in #​1400
  • feat: inline methods consisting of a single return statement or local variable declaration expression by @​hartmair in #​1422

πŸ› Bug Fixes

  • Fix failing projection with static mapper from another assembly by @​trejjam in #​1418
  • fix: Collect EnumerateUnmappedOrConfiguredTargetMembers to prevent collection was modified exception by @​trejjam in #​1438
  • Support inline expression with casting by @​trejjam in #​1419

Full Changelog: riok/mapperly@v4.0.0-next.1...v4.0.0-next.2

4.0.0-next.1

🚨 Breaking Changes

  • ignore indexed properties by @​latonz in #​1351
  • add enum underlying type conversion by @​latonz in #​1352
  • strict mappings by default by @​latonz in #​1353
  • support mapping properties in foreach mappings by @​latonz in #​1364

πŸš€ Features

  • Refactor member matching and member mapping building process by @​latonz in #​1334
  • Introduce MapValueAttribute to map constant values and method provided values by @​latonz in #​1335

πŸ› Bug Fixes

  • adjust diagnostic messages to be correct when applied with MapValue by @​latonz in #​1332
  • allow same-name members with different casings by @​latonz in #​1350
  • Replace invalid MapPropertyAttribute constructors with valid versions by @​latonz in #​1354

Full Changelog: riok/mapperly@v3.6.0...v4.0.0-next.0
Breaking changes migration guide: Breaking Changes

3.6.0

3.6.0 (2024-06-18)

Bug Fixes

  • correct syntax in nameof clause of throw null exceptions (#​1263) (3d43a6f)
  • fixes using the wrong object factory when multiple factories with the same target type but different source types are used (#​1313) (51aa1da)
  • In disable nullable reference type contexts do not assume nullable IQueryable generic types (#​1268) (56b03d2)
  • prefer coalesce operator over if-else to simplify generated source code (#​1262) (b4548d2)

Features

3.6.0-next.2

3.6.0-next.2 (2024-06-03)

Bug Fixes

  • fixes using the wrong object factory when multiple factories with the same target type but different source types are used (#​1313) (51aa1da)
  • In disable nullable reference type contexts do not assume nullable IQueryable generic types (#​1268) (56b03d2)

3.6.0-next.1

3.6.0-next.1 (2024-05-03)

Bug Fixes

Features

3.5.1

3.5.1 (2024-04-23)

Bug Fixes

3.5.1-next.2

3.5.1-next.2 (2024-04-15)

Bug Fixes

3.5.1-next.1

3.5.1-next.1 (2024-04-09)

Bug Fixes

3.5.0

3.5.0 (2024-04-05)

Bug Fixes

Features

3.5.0-next.4

3.5.0-next.4 (2024-03-27)

Bug Fixes

Features

3.5.0-next.3

3.5.0-next.3 (2024-03-18)

Bug Fixes

Features

3.5.0-next.2

3.5.0-next.2 (2024-03-11)

Bug Fixes

  • resolve user mappings correctly when reference handling is enabled (#​1162) (d303198)

Features

  • Add MapperIgnoreMemberAttribute to ignore members at declaration (#​1143) (ebce68e)

3.5.0-next.1

3.5.0-next.1 (2024-03-09)

Bug Fixes

Features

  • add diagnostic if no members are mapped (#​1129) (732cec4)
  • Add option to disable automatic discovery of user implemented mapping method and to include/exclude specific user implemented mapping methods (#​1070) (4e4937c)
  • allow property mappings to use specific conversion (#​1072) (61716b9)
  • allow usage of mappings in MapPropertyAttribute.Use which are attributed with UserMappingAttribute (#​1151) (1f0b3c5)
  • allow user implemented mappings to be marked as default (#​1071) (79f60cd)
  • report a diagnostic for invalid MapPropertyAttribute usages (#​1130) (b8b9e2a)
  • support required mapping strategies on enums (#​1073) (edc4933)
  • validate usage of MapProperty attributes on enum and queryable mapping methods (#​1074) (fbe7894)

3.4.0

3.4.0 (2024-02-23)

Bug Fixes

  • correctly annotate nullable generics in disabled nullable contexts (#​1020) (d35c52d)
  • do not resolve existing one sideded loose nullable property mappings (#​1090) (7998720)
  • don't diagnostic for constructor mappings when no instance can be created but none is needed anyway (450d7ca)
  • generate enumerable mapping methods with interface parameters instead of concrete types to reduce generated methods (#​1088) (66752cf)
  • generate generic mapping only for matching source / target types if non-generic (#​1000) (9a2916f)
  • handle nullable correctly in nullable disabled contexts for generics and arrays (#​1029) (132b8cc)
  • prevent collection mapping from using invalid length property (#​1108) (216f791)
  • prevent crash for delegate fields when deep mapping is enabled (#​1058) (88dd1ff)
  • remove Runtime suffix of MapperlyAbstractionsScope msbuild option (#​1049) (54b0eea)
  • upgrade parameter nullability correctly (#​1057) (ad917ee)
  • use correct argument types in user defined enumerable mappings with an array source parameter (#​1125) (8b14725)

Features

3.4.0-next.5

3.4.0-next.5 (2024-02-20)

Bug Fixes

  • use correct argument types in user defined enumerable mappings with an array source parameter (#​1125) (8b14725)

3.4.0-next.4

3.4.0-next.4 (2024-02-16)

Bug Fixes

  • don't diagnostic for constructor mappings when no instance can be created but none is needed anyway (450d7ca)
  • prevent collection mapping from using invalid length property (#​1108) (216f791)

3.4.0-next.3

3.4.0-next.3 (2024-02-05)

Bug Fixes

  • do not resolve existing one sideded loose nullable property mappings (#​1090) (7998720)
  • generate enumerable mapping methods with interface parameters instead of concrete types to reduce generated methods (#​1088) (66752cf)

Features

3.4.0-next.2

3.4.0-next.2 (2024-01-10)

Bug Fixes

3.4.0-next.1

3.4.0-next.1 (2024-01-06)

Bug Fixes

  • handle nullable correctly in nullable disabled contexts for generics and arrays (#​1029) (132b8cc)

Features

3.3.1-next.1

3.3.1-next.1 (2023-12-18)

Bug Fixes

  • correctly annotate nullable generics in disabled nullable contexts (#​1020) (d35c52d)
  • generate generic mapping only for matching source / target types if non-generic (#​1000) (9a2916f)

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

---
updated-dependencies:
- dependency-name: Riok.Mapperly
  dependency-version: 4.3.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Nov 9, 2025
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 .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Attribute controlling IQueryable mapping

1 participant