Skip to content

Releases: go-playground/mold

Release 4.5.0

28 May 16:07
4214131
Compare
Choose a tag to compare

What's New?

  • Added new default & set types for chan, map, slice, time.Time and Pointer types.
  • Updated to handle pointer to a Slice or Map for situations where code is not under your control. Fixes #43

Release 4.4.0

21 May 16:00
Compare
Choose a tag to compare

What's new?

  • Added substr modifier in this PR
  • Added new slug modifier in this PR
  • Fixed some documentation typos in this PR

Release 4.3.0

18 Feb 02:08
1d5da9d
Compare
Choose a tag to compare

What's new?

  • Added new set modifier. It's like default but sets regardless.
  • Added new empty modifier which sets the value to the default Go value for that type.

release 4.2.1

08 Feb 02:26
3acdfd9
Compare
Choose a tag to compare

What was fixed?

This fixes tracking unaddressable fields. This can be an issue when passing data to be changed through multiple interfaces.

current was not being remapped to the new blue when iterating on multiple modifiers cause only the last to be truly applied.

Release 4.2.0

26 Jul 03:55
9a50f08
Compare
Choose a tag to compare

What's new?

Added new strip_punctuation modifier. Thanks @nchelluri for the PR

Release 4.1.0

18 Jul 18:08
f0a6470
Compare
Choose a tag to compare

What's new?

  • Update the set logic to handle more types eg. type State string now works!
  • Added Interceptors allowing redirection of modifiers being applied to an inner type/value. See here for a simple example supporting sql.NullString

Release 4.0.0

22 Dec 04:48
a63be57
Compare
Choose a tag to compare

What's new?

Initial v4 release!

  • More tags added and documented in the README
  • Changed function signature allowing:
    • Setting nil values on pointers
    • Future proofing allowing additions without a breaking change
    • Unexposed functions simplifying the interface.

NOTE: The breaking change is due to the functions signature change, none of the tag name have changed. If you have not registered/created any custom functions this can be upgrade in-place safely.

Release 3.1.1

07 Dec 16:16
df5a59b
Compare
Choose a tag to compare

What was fixed?

Removed debug accidentally checked in during the last v3.1.0 changes for the new default tag.

Release 3.1.0

19 Nov 06:10
7c3980b
Compare
Choose a tag to compare

What's new?

  • Updated to GitHub Actions CI
  • Added new default tag modifier

Release 3.0.1

24 Dec 18:00
d9c7865
Compare
Choose a tag to compare

What was fixed?

Fixed an issue where diving into an array of structs with no other tags caused a nil pointer exception, thanks @THE108 for the original PR!