Skip to content

Releases: PerfectlyNormal/TypeContractor

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

v0.12.4

18 Sep 05:58
Compare
Choose a tag to compare

Fixed

  • Use the correct variable reference when unpacking query parameters (Really fix #68)

v0.12.3

17 Sep 18:51
Compare
Choose a tag to compare

Fixed

  • Handle nullable parameters to API clients better. Only send query parameters if we have a value
  • Unpack non-builtin query parameters automatically (#68)

Changed

  • Update xunit.analyzers from v1.15.0 to v1.16.0
  • Update FluentAssertions from v6.12.0 to v6.12.1
  • Update Microsoft.NET.Test.Sdk from v17.11.0 to 17.11.1