Skip to content

Releases: Masterminds/sprig

Release 2.20.0

18 Jun 16:08
v2.20.0
258b00f
Compare
Choose a tag to compare

Added

Changed

2.19.0: Fixes, reversion of 2.18 change

02 Mar 17:11
9f8fcef
Compare
Choose a tag to compare

IMPORTANT: This release reverts a change from 2.18.0

In the previous release (2.18), we prematurely merged a partial change to the crypto functions that led to creating two sets of crypto functions (I blame @technosophos -- since that's me). This release rolls back that change, and does what was originally intended: It alters the existing crypto functions to use secure random.

We debated whether this classifies as a change worthy of major revision, but given the proximity to the last release, we have decided that treating 2.18 as a faulty release is the correct course of action. We apologize for any inconvenience.

Changes

  • Fix substr panic 35fb796 (Alexey igrychev)
  • Remove extra period 1eb7729 (Matthew Lorimor)
  • Make random string functions use crypto by default 6ceff26 (Matthew Lorimor)
  • README edits/fixes/suggestions 08fe136 (Lauri Apple)

New functions, updates for Go 1.11, and improved documentation

12 Feb 19:57
b1fe275
Compare
Choose a tag to compare

Sprig has been updated to accommodate a breaking change to Go Templates' nil handling that was introduced in Go 1.11. Along the way, we added some new functions and updated the documentation in several places.

A few new functions were added, including:

  • mergeOverwrite
  • cryptographic functions that use secure random (see fe1de12)

All Changes

  • Improve documentation of regexMatch function, resolves #139 90b89ce (Jan Tagscherer)
  • Handle has for nil list 9c10885 (Daniel Cohen)
  • Document behaviour of mergeOverwrite fe0dbe9 (Lukas Rieder)
  • Fix dict merge issue and provide mergeOverwrite .dst .src1 to overwrite from src -> dst 4c59c12 (Lukas Rieder)
  • doc: adds missing documentation. 4b871e6 (Fernandez Ludovic)
  • Replace outdated goutils imports 01893d2 (Matthew Lorimor)
  • Surface crypto secure random strings from goutils fe1de12 (Matthew Lorimor)
  • Handle untyped nil values as paramters to string functions 2b2ec8f (Morten Torkildsen)
  • Fix substr var names and comments d581f80 (Dean Coakley)
  • Fix substr documentation 2737203 (Dean Coakley)

Bug fix: Update dependencies

03 Jan 23:19
544a9b1
Compare
Choose a tag to compare

The 2.17.0 release did not have a version pinned for xstrings, which caused compilation failures when xstrings < 1.2 was used. This adds the correct version string to glide.yaml.

Minor release: New functions, updated dependencies

03 Jan 23:03
4e1125d
Compare
Choose a tag to compare
  • Update goutils to 1.1.0 4e1125d (Matt Butcher)
  • fixes spelling errors... not sure how that happened 4cf188a (marshallford)
  • adds alder32sum function and test 6908fc2 (marshallford)
  • Added kebabcase function ca331a1 (Ilyes512)
  • Fix 'has' documentation e3f2a85 (dean-coakley)
  • docs(dict): fix typo in pick example dc424f9 (Dustin Specker)

Minor release: New functions, bugfixes

14 Sep 00:27
15f9564
Compare
Choose a tag to compare

This release adds a few functions and fixes a handful of bugs.

  • Test on go 1.11 49df809 (Helgi Þormar Þorbjörnsson)
  • Remove duplicated documentation 1d97af1 (Matthew Fisher)
  • add splitn function fccb0b0 (Helgi Þorbjörnsson)
  • Extract values of dict with values function df39312 (Lawrence Jones)
  • Minor improvement in code quality - Removed an unreachable piece of code at defaults.go#L26:6 - Resolve formatting issues. 5834241 (Abhishek Kashyap)
  • Modify panic message for list.slice ae38335 (gongdo)
  • Fix file permissions c5f40b5 (gongdo)
  • Fix example for buildCustomCert 7779e0d (Tin Lam)
  • Add slice func df28ca7 (gongdo)
  • Generate serial number a3bdffd (Cody Coons)

Release 2.15.0

03 Apr 01:38
v2.15.0
6b2a582
Compare
Choose a tag to compare

Two important notes:

  1. This release drops support for Go prior to 1.9. Only supported versions of Go, by the Go Team, are supported by this release. This is due to the use of the Round function on duration introduced in 1.9.
  2. The uuid handling switched to google/uuid due to issues with consuming apps fetching from the tip of master of dependencies. satori/go.uuid has changed it's signature in unreleased code.

Added

  • #68 and #69: Add json helpers to docs (thanks @arunvelsriram)
  • #66: Add ternary function (thanks @binoculars)
  • #67: Allow keys function to take multiple dicts (thanks @binoculars)
  • #89: Added sha1sum to crypto function (thanks @benkeil)
  • #81: Allow customizing Root CA that used by genSignedCert (thanks @chenzhiwei)
  • #92: Add travis testing for go 1.10
  • #93: Adding appveyor config for windows testing

Changed

  • #90: Updating to more recent dependencies
  • #73: replace satori/go.uuid with google/uuid (thanks @petterw)

Fixed

  • #76: Fixed documentation typos (thanks @Thiht)
  • Fixed rounding issue on the ago function. Note, the removes support for Go 1.8 and older

Release 2.14.1

01 Dec 20:08
v2.14.1
b217b9c
Compare
Choose a tag to compare

Fixed

  • #60: Fix typo in function name documentation (thanks @neil-ca-moore)
  • #61: Removing line with {{ due to blocking github pages genertion
  • #64: Update the list functions to handle int, string, and other slices for compatibility

2.14 adds SSL certificate generation

06 Oct 15:09
Compare
Choose a tag to compare

This new version of Sprig adds a set of functions for generating and working with SSL certificates.

  • genCA generates an SSL Certificate Authority
  • genSelfSignedCert generates an SSL self-signed certificate
  • genSignedCert generates an SSL certificate and key based on a given CA

2.13.0 Adds New Functions

18 Sep 14:31
v2.13.0
Compare
Choose a tag to compare

This release adds new functions, including:

  • regexMatch, regexFindAll, regexFind, regexReplaceAll, regexReplaceAllLiteral, and regexSplit to work with regular expressions
  • floor, ceil, and round math functions
  • toDate converts a string to a date
  • nindent is just like indent but also prepends a new line
  • ago returns the time from time.Now

Changelog

Added

Changed