Skip to content

Releases: PerfectlyNormal/TypeContractor

v0.17.1

12 Apr 12:29
Compare
Choose a tag to compare

Fixed

  • Handle array properties (SomeDto[]) properly (#140)
  • Avoid duplicate imports for endpoints having the return type as a parameter type (#139)

Changed

  • Bump System.Reflection.MetadataLoadContext from 9.0.0 to 9.0.3
  • Bump Microsoft.NET.Test.Sdk from 17.12.0 to 17.13.0
  • Bump coverlet.collector from 6.0.2 to 6.0.4
  • Bump xunit.runner.visualstudio from 3.0.0 to 3.0.2
  • Bump xunit.analyzers and xunit

v0.17.0

16 Feb 09:23
Compare
Choose a tag to compare

Added

  • Better support for generic types (#123)

Fixed

  • Allow enums to be used as query parameters in API clients (#133)

v0.16.0

17 Dec 03:42
Compare
Choose a tag to compare

Added

  • Options for file name casings, defaulting to pascal but can be set to camel, snake or kebab
  • Add header to each file explaining that it is auto-generated and not to change manually

Changed

  • Bump FluentAssertions from 6.12.2 to 7.0.0
  • Bump xunit.runner.visualstudio to from 2.8.2 to 3.0.0
  • Bump xunit.analyzers from 1.17.0 to 1.18.0

v0.15.0

02 Dec 14:49
Compare
Choose a tag to compare

Added

  • Handle name collisions when creating API clients (#106)
  • Add annotations package to further customize output (#107)
  • Support for .NET9

Fixed

  • Send request bodies on DELETE requests even though they should not be used

Changed

  • Bump Microsoft.NET.Test.Sdk from 17.11.1 to 17.12.0
  • Bump System.Reflection.MetadataLoadContext from 8.0.1 to 9.0.0

v0.14.0

17 Nov 08:19
Compare
Choose a tag to compare

Added

  • Handle optional segments in routes for API clients (#77)
  • Added configuration file support (#90)

Fixed

  • Don't generate types for parameters with an [FromServices] annotation (#95)
  • Add default any-mapping for IActionResult as a return type (#98)
  • Log an error if we're unable to match a route parameter when generating API clients (#86)
  • Revert the "response files" fix in [0.13.1], since it broke default command
    line handling, including the --help command

Changed

  • Standardize on encoding generated files as UTF-8 without BOM
  • Write a final newline in the files
  • Standardize on tabs for indentation
  • Fix some editorconfig settings

v0.13.1

11 Nov 09:19
Compare
Choose a tag to compare

Added

  • Add basic template for React with Axios

Fixed

  • Ignore response files when parsing command line, so "@/Api" can be accepted as a valid relative root

Changed

  • Update System.Reflection.MetadataLoadContext to v8.0.1
  • Update xunit to v2.9.2
  • Update xunit.analyzers to v1.17.0
  • Update FluentAssertions to v6.12.2

v0.13.0

09 Nov 08:46
Compare
Choose a tag to compare

Added

  • Generate API clients using Handlebars templates, with an option to provide custom templates (#75)

Fixed

  • Strip trailing slash in API clients (#87)

v0.12.7

10 Oct 19:24
Compare
Choose a tag to compare

Fixed

  • Only import Zod in generated API clients if we actually want it
  • Set nullable enums as .nullable(), not .optional() in Zod schema (#82)

Changed

  • Standardize on single quotes for imports

v0.12.6

18 Sep 07:50
Compare
Choose a tag to compare

Fixed

  • Don't blindly append controller prefix to API client URLs (#76)

v0.12.5

18 Sep 07:02
Compare
Choose a tag to compare

Fixed

  • Slice of the initial slash in API client URLs.
  • Fix formatting for arrays as query strings