Skip to content

Releases: go-playground/mold

Release 4.5.1

Choose a tag to compare

@deankarn deankarn released this 29 Dec 18:48
a132090

What's Changed

  • Fix setting of pointer types using default, and other set values, thanks @hnimtadd for reporting #49
  • Updated CI file and Go test version.
  • Updated dependencies.

Full Changelog: v4.5.0...v4.5.1

Release 4.5.0

Choose a tag to compare

@deankarn deankarn released this 28 May 16:07
4214131

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

Choose a tag to compare

@deankarn deankarn released this 21 May 16:00

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

Choose a tag to compare

@deankarn deankarn released this 18 Feb 02:08
1d5da9d

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

Choose a tag to compare

@deankarn deankarn released this 08 Feb 02:26
3acdfd9

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

Choose a tag to compare

@deankarn deankarn released this 26 Jul 03:55
9a50f08

What's new?

Added new strip_punctuation modifier. Thanks @nchelluri for the PR

Release 4.1.0

Choose a tag to compare

@deankarn deankarn released this 18 Jul 18:08
f0a6470

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

Choose a tag to compare

@deankarn deankarn released this 22 Dec 04:48
a63be57

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

Choose a tag to compare

@deankarn deankarn released this 07 Dec 16:16
df5a59b

What was fixed?

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

Release 3.1.0

Choose a tag to compare

@deankarn deankarn released this 19 Nov 06:10
7c3980b

What's new?

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