Skip to content

Releases: Masterminds/sprig

v3.3.0

29 Aug 20:44
v3.3.0
e708470
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.2.3...v3.3.0

v3.2.3

29 Nov 19:09
v3.2.3
581758e
Compare
Choose a tag to compare

Changed

Re-release of v3.2.1

04 Feb 20:44
3ac42c7
Compare
Choose a tag to compare

This release is here simply to satisfy the Go module system. The code is precisely the same as v3.2.1.

Update to latest goutils

04 Feb 20:35
3ac42c7
Compare
Choose a tag to compare

This is a security release for Masterminds/goutils v1.1.1. See the Security Advisory.

Changelog

Release 3.2.1 (2021-02-04)

Changed

v3.2.0

14 Dec 15:55
v3.2.0
94f67ec
Compare
Choose a tag to compare

Added

  • #211: Added randInt function (thanks @kochurovro)
  • #223: Added fromJson and mustFromJson functions (thanks @mholt)
  • #242: Added a bcrypt function (thanks @robbiet480)
  • #253: Added randBytes function (thanks @MikaelSmith)
  • #254: Added dig function for dicts (thanks @nyarly)
  • #257: Added regexQuoteMeta for quoting regex metadata (thanks @rheaton)
  • #261: Added filepath functions osBase, osDir, osExt, osClean, osIsAbs (thanks @zugl)
  • #268: Added and and all functions for testing conditions (thanks @phuslu)
  • #181: Added float64 arithmetic addf, add1f, subf, divf, mulf, maxf, and minf
    (thanks @andrewmostello)
  • #265: Added chunk function to split array into smaller arrays (thanks @karelbilek)
  • #270: Extend certificate functions to handle non-RSA keys + add support for
    ed25519 keys (thanks @misberner)

Changed

  • Removed testing and support for Go 1.12. ed25519 support requires Go 1.13 or newer
  • Using semver 3.1.1 and mergo 0.3.11

Fixed

NOTE: The dependency github.com/imdario/mergo reverted the breaking change in
0.3.9 via 0.3.10 release.

v3.1.0

16 Apr 17:46
v3.1.0
273d1b8
Compare
Choose a tag to compare

NOTE: The dependency github.com/imdario/mergo made a behavior change in 0.3.9
that impacts sprig functionality. Do not use sprig with a version newer than 0.3.8.

Added

Changed

  • #203: Unlambda functions with correct signature (thanks @muesli)
  • #236: Updated the license formatting for GitHub display purposes
  • #238: Updated package dependency versions. Note, mergo not updated to 0.3.9
    as it causes a breaking change for sprig. That issue is tracked at
    darccio/mergo#139

Fixed

v3.0.2

13 Dec 18:24
v3.0.2
25dce23
Compare
Choose a tag to compare

Fixed

  • #220: Updating to semver v3.0.3 to fix issue with <= ranges
  • #218: fix typo elyptical->elliptic in ecdsa key description (thanks @laverya)

v3.0.1

07 Dec 18:57
v3.0.1
34407d6
Compare
Choose a tag to compare

Fixed

  • #212: Updated semver fixing broken constraint checking with ^0.0

Release 3.0.0

02 Oct 20:32
v3.0.0
0e09f04
Compare
Choose a tag to compare

Sprig v3 brings some changes while retaining the same Go API. This should enable projects to migrate to v3 with relative ease.

You might be wondering, why increment the major version if the Go API didn't break? The reason for that is some edge case behavior changed. Most importantly the use of ^ while handling major version 0 use cases with semver. To be cautious, the major version of sprig was incremented to limit the number of surprises.

Added

Changed

  • #186: Moving dependency management to Go modules
  • #186: Updated semver to v3. This has changes in the way ^ is handled
  • #194: Updated documentation on merging and how it copies. Added example using deepCopy
  • #196: trunc now supports negative values (thanks @Dean-Coakley)

2.22.0

02 Oct 15:12
v2.22.0
e4c0945
Compare
Choose a tag to compare

Added

  • #173: Added getHostByName function to resolve dns names to ips (thanks @fcgravalos)
  • #195: Added deepCopy function for use with dicts

Changed

  • Updated merge and mergeOverwrite documentation to explain copying and how to
    use deepCopy with it