Releases: Masterminds/sprig
v2.21.0
Added
- #122: Added encryptAES/decryptAES functions (thanks @n0madic)
- #128: Added toDecimal support (thanks @Dean-Coakley)
- #169: Added list contcat (thanks @astorath)
- #174: Added deepEqual function (thanks @bonifaido)
- #170: Added url parse and join functions (thanks @astorath)
Changed
- #171: Updated glide config for Google UUID to v1 and to add ranges to semver and testify
Fixed
Release 2.20.0
Added
- #164: Adding function to get unix epoch for a time (@mattfarina)
- #166: Adding tests for date_in_zone (@mattfarina)
Changed
2.19.0: Fixes, reversion of 2.18 change
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
New functions, updates for Go 1.11, and improved documentation
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
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
- 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
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
Two important notes:
- 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. - 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
Release 2.14.1
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
This new version of Sprig adds a set of functions for generating and working with SSL certificates.
genCA
generates an SSL Certificate AuthoritygenSelfSignedCert
generates an SSL self-signed certificategenSignedCert
generates an SSL certificate and key based on a given CA