Skip to content

Releases: kilianpaquier/go-builder-generator

v1.2.2

25 Apr 16:34
Compare
Choose a tag to compare

1.2.2 (2024-04-25)

Bug Fixes

  • prefix not taken into account anymore in generation (827b842)

v1.2.1

25 Apr 12:28
Compare
Choose a tag to compare

1.2.1 (2024-04-25)

Bug Fixes

  • generic: add unary (~) implementation for generic builders (08baa16)
  • generic: handle acronyms and lowercase generic names (a642ea0)

Documentation

  • readme: add some cases examples (37d1bd8)

v1.2.0

24 Apr 22:35
Compare
Choose a tag to compare

1.2.0 (2024-04-24)

Features

  • add generic struct builders generation (db5a8f1)

v1.1.2

23 Apr 21:41
Compare
Choose a tag to compare

1.1.2 (2024-04-23)

Bug Fixes

  • struct: add tags to builders around anonymous struct (712a4d9)

v1.1.1

23 Apr 07:48
Compare
Choose a tag to compare

1.1.1 (2024-04-23)

Bug Fixes

  • error when using generic field (5b322a7)

v1.1.0

22 Apr 10:04
Compare
Choose a tag to compare

1.1.0 (2024-04-22)

Features

  • force function name (cfbbda7)
  • option to return a copy of the builder each time a setter function is called (273030a)

Chores

  • deps: bump github.com/hashicorp/go-getter in the all group (1143c00)
  • go: update go to 1.22.2 (3b79e8e)

Code Refactoring

  • module: remove ~ and git:: in favor of module:: to handle current module imported modules types generations - #9 (9b49445)

v1.0.2

06 Apr 16:09
Compare
Choose a tag to compare

1.0.2 (2024-04-06)

Bug Fixes

  • deps: upgrade to go1.22.2 (3dc05d7)
  • generate: add unexported property to builder when generation is done in the same package and handle properly function name (cdf58da)
  • generate: throw an error in case an unexported struct is given in generation in another package (4f60bb3)

Documentation

  • readme: remove code section language to avoid weird colors (9c05df7)

Chores

  • golangci: remove govet deleted option (6c690b9)

v1.0.1

19 Mar 20:28
Compare
Choose a tag to compare

1.0.1 (2024-03-19)

Bug Fixes

  • generate: ensure Build function returns a copy of built type (4c29c0d)

v1.0.0

18 Mar 22:37
Compare
Choose a tag to compare

1.0.0 (2024-03-18)

⚠ BREAKING CHANGES

  • generate: no prefix is applied by default on builder functions, while before this commit "Set" would be applied
  • generate: use-validator has been removed, as such there's no integration of validate anymore. See updated examples.

Features

  • ci: add release branches handling (b45e0cd)
  • generate: add prefix option defaulting to empty meaning a builder function will just be the property name (cd790b9)
  • generate: change use-validator to validate-func to allow one to use any library to validate its structs (8ebd755)
  • gen: return shallow copy at the end of Build function (just like Copy) (a7c8050)
  • handle remote git structs for builder generation (19ff472)
  • handle tild go files path (to use with go/pkg) (6ebf990)
  • import project from gitlab (0d432f9)

Bug Fixes

  • bad slices import (296233b)
  • ci: bad codecov configuration (2a4d14b)
  • ci: bad coverage exclusions for codecov (d663392)
  • ci: codecov config in subdir really doesn't work (2bd8eeb)
  • ci: codecov in subdir .... (635e25d)
  • ci: handle correctly dependabot codecov ignore (057df1c)
  • deps: missing sprig dependency (3fdceb6)
  • handle go files at root go.mod (0d11e09)
  • handle keywords in SetXXX functions parameter name (59d8e76)
  • imports: aliased imports not taken into account (8e19bd9)
  • linting issues (e7e6130)

Documentation

  • readme: update sections with just CC of binary commands (a894eb0)
  • update indents on README (517b238)
  • update README indents (75c8c5b)

Chores

  • ci: add strategy execution for tests (20e53ef)
  • ci: regenerate files (4a72690)
  • ci: regenerate layout (0394d4a)
  • ci: remove build/ci directory (9009ebf)
  • ci: tune codecov configuration (e8db7ce)
  • deps: add dependabot (12748cf)
  • deps: update dependencies (ba16c36)
  • deps: update dependencies (1a76018)
  • examples: add remote builder generation example (db519d7)
  • layout: regenerate project layout with craft (b28ce0c)
  • testing: use latest version of filesystem to automatically ignore windows / linux diffs (543617c)