Skip to content

Releases: mapstruct/mapstruct-idea

1.8.0

20 Oct 17:47
Compare
Choose a tag to compare

Features

  • New @Mapping Inspections:
    • Target property mapped more than once (#200)
    • Warning using source = "." (#203)
  • Support Kotlin K2 mode (#207)

Bug fixes

  • Incorrect no source property defined inspection for @Mapping (#194)

Minimum Supported Intellij

  • 2023.3

1.7.0

28 Apr 09:34
Compare
Choose a tag to compare

Features

  • New @Mapping Inspections (#153)
    • No source defined
    • More than one source defined. Quick fixes:
      • Remove source
      • Remove constant
      • Remove expression
      • Use constant as defaultValue
      • Use expression as defaultExpression
    • More than one default source defined
      • Remove defaultValue
      • Remove defaultExpression

Enhancements

  • Align @InheritConfiguration with MapStruct core and support auto inheritance (#151)
  • Support collection getters as viable target setter (#149)
  • Support java expression in conditionExpression (#154)
  • Align expression support with MapStruct core (#164, #170)
  • Disable unmapped target property warnings when implicitly mapping from a map (#167)
  • Support java text blocks for expressions (#188)

Bug fixes

  • Code completion doesn't work with Lombok @SuperBuilder annotation #159

Minimum Supported Intellij

  • 2022.2

1.6.1

16 Jun 11:40
Compare
Choose a tag to compare

Enhancements

  • Add smart completion for target in @Mapping (#4) - already mapped target are not proposed

Bug fixes

  • Fix auto-completion for nested public fields (#145)
  • Fix IndexOutOfBoundsException for target methods without parameter (#110)

Minimum Supported Intellij

  • 2021.2

1.6.0

07 May 07:13
Compare
Choose a tag to compare

Features

  • Support @InheritConfiguration for unmapped target properties inspection (#65)

Enhancements

  • Use unmappedTargetPolicy for severity for unmapped target properties inspection

Bug fixes

  • Missing completion and go to declaration for Mapping#qualifiedByName in `MapperConfig (#136)
  • Incorrect unmapped target property when using Mapping Composition within Mapping Composition (#125)
  • Autocompletion for nested records (#117)
  • Incorrect unmapped target property when Mapping#target contains a dot (#123)
  • Incorrect unmapped target property with fluent setters (#121)

Minimum Supported Intellij

  • 2021.2

1.5.0

02 Apr 14:02
Compare
Choose a tag to compare

Features

  • Support for completion and Go To Definition within for Mapping#qualifiedByName (#107)

Enhancements

  • Adding unmapped target property quick fix should move cursor to source (#28)

Minimum Supported Intellij

  • 2021.2

1.4.0

20 Nov 11:29
Compare
Choose a tag to compare

Enhancements

  • Support for Java records (#99)
  • Suppress redundant default parameter value assignment warning (#93)
  • Suggest only missing constants for ValueMapping#source (#5)
  • Find disabled builder in @MapperConfig (#97)

Bugs

  • No language injection for expressions when target is a field (#95)

Build

  • Improve build/test infrastructure to support IDEA 2022.2/2022.3 and Java 17 (#113)

Minimum Supported Intellij

  • 2021.2

1.3.1

29 Dec 12:53
Compare
Choose a tag to compare

Enhancements

  • Improve Java expression injector both for better code completion and for more useable inspections (#89)

Bugs

  • Plugin fatal crash in case using static constant in target field of @Mapping annotation (#88)

Minimum Supported Intellij

  • 2020.1

1.3.0

22 Aug 11:46
Compare
Choose a tag to compare

Features

  • Code completion for BeanMapping#ignoreUnmappedSourceProperties (#77)
  • Quick Fix: support for configuring the order of source and target in @Mapping for "Add unmapped property" fix (#51)
  • Support for Mapstruct explicit Builder disable (#67)

Bugs

  • Code completion for generic builder not working (#78)
  • Code completion uses builder constructor parameters (#78)

Minimum Supported Intellij

  • 2020.1

1.2.4

28 Mar 09:55
Compare
Choose a tag to compare

Documentation

  • Add plugin icon

Bugs

  • Type information missing in auto completion for multi source methods and value mappings (#71)
  • Use UAST instead of Kotlin plugin specific APIs (#69)

1.2.3

17 Oct 09:41
Compare
Choose a tag to compare

Features

  • Kotlin support for target / source in @Mapping and @ValueMapping (#20)

Bugs

  • False positive unmapped target property for multi source methods (#60)