Skip to content

Commit 32c7616

Browse files
authored
chore: prepare v1.0.2 (#139)
## Release v1.0.2: Sprout Refresh 🔄 (2025-08-28) > 🛡️ Staying Fresh and Secure! This patch release continues our commitment to keeping Sprout secure and up-to-date with the latest dependency updates from the Go ecosystem. ### 🔒 **Security & Dependencies** - **Updated golang.org/x/crypto**: Bumped from v0.39.0 to v0.41.0 across multiple updates, ensuring the latest security patches and cryptographic improvements. See [#133](#133) and [#135](#135). - **Updated golang.org/x/text**: Upgraded from v0.26.0 to v0.28.0 for enhanced Unicode support and text processing capabilities. See [#132](#132) and [#134](#134). --- ### 📝 **Notes** This maintenance release ensures Sprout continues to benefit from the latest security patches and performance improvements in the Go ecosystem. These dependency updates provide enhanced cryptographic functions and improved text processing without introducing any breaking changes. **Full Changelog**: v1.0.1...v1.0.2
1 parent 1a6d965 commit 32c7616

File tree

10 files changed

+49
-34
lines changed

10 files changed

+49
-34
lines changed

.github/workflows/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
token: ${{ secrets.ORGANIZATION_ACTIONS_TOKEN }}
1919
- name: Setup Go

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020
- name: Install Go
2121
uses: actions/setup-go@v5
2222
with:
23-
go-version: stable
23+
go-version: 1.24
2424
- name: Install testifylint
2525
run: go install github.com/Antonboom/[email protected]
2626
- name: golangci-lint

.github/workflows/test.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
test:
99
strategy:
1010
matrix:
11-
go-version: [1.21.x, 1.22.x, 1.23.x]
11+
go-version: [1.21.x, 1.22.x, 1.23.x, 1.24.x]
1212
platform: [ubuntu-latest, macos-latest, windows-latest]
1313
runs-on: ${{ matrix.platform }}
1414
steps:
@@ -17,15 +17,15 @@ jobs:
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919
- name: Checkout code
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v5
2121
- name: Install Task
2222
uses: arduino/setup-task@v2
2323
with:
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}
2525
- name: Test
2626
run: task test
2727
- name: Upload coverage reports to Codecov
28-
uses: codecov/codecov-action@v5.4.3
28+
uses: codecov/codecov-action@v5.5.0
2929
with:
3030
token: ${{ secrets.CODECOV_TOKEN }}
3131
codecov_yml_path: .github/codecov.yml
@@ -36,7 +36,7 @@ jobs:
3636
- name: Install Go
3737
uses: actions/setup-go@v5
3838
- name: Checkout code
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@v5
4040
- name: Install Task
4141
uses: arduino/setup-task@v2
4242
with:
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Checkout code
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@v5
5252
- name: Install Task
5353
uses: arduino/setup-task@v2
5454
with:

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## Release v1.0.2: Sprout Refresh 🔄 (2025-08-28)
4+
5+
> 🛡️ Staying Fresh and Secure!
6+
7+
This patch release continues our commitment to keeping Sprout secure and up-to-date with the latest dependency updates from the Go ecosystem.
8+
9+
### 🔒 **Security & Dependencies**
10+
- **Updated golang.org/x/crypto**: Bumped from v0.39.0 to v0.41.0 across multiple updates, ensuring the latest security patches and cryptographic improvements. See [#133](https://github.com/go-sprout/sprout/pull/133) and [#135](https://github.com/go-sprout/sprout/pull/135).
11+
- **Updated golang.org/x/text**: Upgraded from v0.26.0 to v0.28.0 for enhanced Unicode support and text processing capabilities. See [#132](https://github.com/go-sprout/sprout/pull/132) and [#134](https://github.com/go-sprout/sprout/pull/134).
12+
13+
---
14+
15+
### 📝 **Notes**
16+
17+
This maintenance release ensures Sprout continues to benefit from the latest security patches and performance improvements in the Go ecosystem. These dependency updates provide enhanced cryptographic functions and improved text processing without introducing any breaking changes.
18+
19+
**Full Changelog**: https://github.com/go-sprout/sprout/compare/v1.0.1...v1.0.2
20+
321
## Release v1.0.1: Sprout Maintenance 🛠️ (2025-06-11)
422

523
> 🌿 Keeping the Garden Tidy and Secure!

benchmarks/allFunctions.sprig.tmpl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,14 @@
4444
{{ "" | b32dec }}
4545
{{ "JBSWY3DPEBLW64TMMQ======" | b32dec }}
4646
{{ "JBSWY3DPEBLW64TMMQ" | b32dec }}
47-
{{ "" | fromJSON }}
4847
{{ "" | fromJson }}
49-
{{ .json | fromJSON }}
5048
{{ .json | fromJson }}
51-
{{ (.json | fromJSON).foo }}
5249
{{ (.json | fromJson).foo }}
53-
{{ "" | toJSON }}
5450
{{ "" | toJson }}
55-
{{ .object | toJSON }}
5651
{{ .object | toJson }}
57-
{{ "" | toPrettyJSON }}
5852
{{ "" | toPrettyJson }}
59-
{{ .object | toPrettyJSON }}
6053
{{ .object | toPrettyJson }}
61-
{{ "" | toRawJSON }}
6254
{{ "" | toRawJson }}
63-
{{ .object | toRawJSON }}
6455
{{ .object | toRawJson }}
6556
{{ .json | mustFromJson }}
6657
{{ .object | mustToJson }}

benchmarks/go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ module sprout_benchmarks
33
go 1.23.3
44

55
require (
6-
github.com/Masterminds/sprig/v3 v3.2.3
7-
github.com/go-sprout/sprout v0.3.0
8-
github.com/stretchr/testify v1.10.0
6+
github.com/Masterminds/sprig/v3 v3.3.0
7+
github.com/go-sprout/sprout v1.0.1
8+
github.com/stretchr/testify v1.11.1
99
)
1010

1111
require (
1212
dario.cat/mergo v1.0.2 // indirect
1313
github.com/Masterminds/goutils v1.1.1 // indirect
14-
github.com/Masterminds/semver/v3 v3.3.1 // indirect
14+
github.com/Masterminds/semver/v3 v3.4.0 // indirect
1515
github.com/davecgh/go-spew v1.1.1 // indirect
1616
github.com/google/uuid v1.6.0 // indirect
17-
github.com/huandu/xstrings v1.4.0 // indirect
17+
github.com/huandu/xstrings v1.5.0 // indirect
1818
github.com/imdario/mergo v0.3.11 // indirect
1919
github.com/mitchellh/copystructure v1.2.0 // indirect
2020
github.com/mitchellh/reflectwalk v1.0.2 // indirect
2121
github.com/pmezard/go-difflib v1.0.0 // indirect
22-
github.com/shopspring/decimal v1.3.1 // indirect
22+
github.com/shopspring/decimal v1.4.0 // indirect
2323
github.com/spf13/cast v1.9.2 // indirect
2424
golang.org/x/crypto v0.41.0 // indirect
2525
golang.org/x/text v0.28.0 // indirect

benchmarks/go.sum

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ dario.cat/mergo v1.0.2/go.mod h1:E/hbnu0NxMFBjpMIE34DRGLWqDy0g5FuKDhCb31ngxA=
33
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
44
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
55
github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
6-
github.com/Masterminds/semver/v3 v3.3.1 h1:QtNSWtVZ3nBfk8mAOu/B6v7FMJ+NHTIgUPi7rj+4nv4=
7-
github.com/Masterminds/semver/v3 v3.3.1/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
6+
github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0=
7+
github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
88
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
99
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
10+
github.com/Masterminds/sprig/v3 v3.3.0 h1:mQh0Yrg1XPo6vjYXgtf5OtijNAKJRNcTdOOGZe3tPhs=
11+
github.com/Masterminds/sprig/v3 v3.3.0/go.mod h1:Zy1iXRYNqNLUolqCpL4uhk6SHUMAOSCzdgBfDb35Lz0=
1012
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1113
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
1214
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
@@ -20,6 +22,8 @@ github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
2022
github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
2123
github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU=
2224
github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
25+
github.com/huandu/xstrings v1.5.0 h1:2ag3IFq9ZDANvthTwTiqSSZLjDc+BedvHPAp5tJy2TI=
26+
github.com/huandu/xstrings v1.5.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
2327
github.com/imdario/mergo v0.3.11 h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA=
2428
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
2529
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
@@ -39,6 +43,8 @@ github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/f
3943
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
4044
github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=
4145
github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
46+
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
47+
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
4248
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
4349
github.com/spf13/cast v1.9.2 h1:SsGfm7M8QOFtEzumm7UZrZdLLquNdzFYfIbEXntcFbE=
4450
github.com/spf13/cast v1.9.2/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
@@ -47,8 +53,8 @@ github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
4753
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
4854
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
4955
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
50-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
51-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
56+
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
57+
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
5258
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
5359
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
5460
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ toolchain go1.24.1
66

77
require (
88
dario.cat/mergo v1.0.2
9-
github.com/Masterminds/semver/v3 v3.3.1
9+
github.com/Masterminds/semver/v3 v3.4.0
1010
github.com/google/uuid v1.6.0
1111
github.com/mitchellh/copystructure v1.2.0
1212
github.com/spf13/cast v1.9.2
13-
github.com/stretchr/testify v1.10.0
13+
github.com/stretchr/testify v1.11.1
1414
golang.org/x/crypto v0.41.0
1515
golang.org/x/text v0.28.0
1616
gopkg.in/yaml.v3 v3.0.1

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dario.cat/mergo v1.0.2 h1:85+piFYR1tMbRrLcDwR18y4UKJ3aH1Tbzi24VRW1TK8=
22
dario.cat/mergo v1.0.2/go.mod h1:E/hbnu0NxMFBjpMIE34DRGLWqDy0g5FuKDhCb31ngxA=
3-
github.com/Masterminds/semver/v3 v3.3.1 h1:QtNSWtVZ3nBfk8mAOu/B6v7FMJ+NHTIgUPi7rj+4nv4=
4-
github.com/Masterminds/semver/v3 v3.3.1/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
3+
github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0=
4+
github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
55
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
66
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
77
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
@@ -26,8 +26,8 @@ github.com/spf13/cast v1.9.2 h1:SsGfm7M8QOFtEzumm7UZrZdLLquNdzFYfIbEXntcFbE=
2626
github.com/spf13/cast v1.9.2/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
2727
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
2828
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
29-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
30-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
29+
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
30+
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
3131
golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4=
3232
golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc=
3333
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=

registry/semver/functions_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestSemverCompare(t *testing.T) {
3434

3535
mtc := []pesticide.TestCase{
3636
{Input: `{{ semverCompare "abc" "1.0.0" }}`, ExpectedErr: "improper constraint"},
37-
{Input: `{{ semverCompare "1.0.0" "abc" }}`, ExpectedErr: "Invalid Semantic Version"},
37+
{Input: `{{ semverCompare "1.0.0" "abc" }}`, ExpectedErr: "invalid semantic version"},
3838
}
3939

4040
pesticide.RunTestCases(t, semver.NewRegistry(), mtc)

0 commit comments

Comments
 (0)