Skip to content

Commit b72a5ea

Browse files
committed
chore: update module version to 1.18 and fix build constraint lines
This change implies that the module can only be used with Go1.17+ from this commit and onward. See proposal for reference: https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
1 parent c439275 commit b72a5ea

File tree

8 files changed

+15
-10
lines changed

8 files changed

+15
-10
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
go:
19-
- "1.15.x"
20-
- "1.16.x"
2119
- "1.17.x"
2220
- "1.18.x"
2321
os:

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ All notable changes to this project are documented in this file.
44

55
**THIS LIBRARY IS STILL IN ALPHA AND THERE ARE NO GUARANTEES REGARDING API STABILITY YET**
66

7-
## [v0.7.4] - 2022-03-18
7+
## [v0.7.4] - 2022-03-21
8+
9+
:warning: Starting from this version, [Go 1.17+](https://golang.org/doc/install) is required to use this package.
10+
811
- Fix `reflect.mapiterinit` function prototype for go1.18, changed in https://github.com/golang/go/commit/1b2d794ca3ba60c2dbc958a271662784a7122739.
12+
- Update module version to `1.18` and fix build constraint lines.
913

1014
## [v0.7.3] - 2021-11-02
1115
- Fix the encoding of zero-value time.Duration type in string format.
@@ -69,6 +73,7 @@ This includes the following changes, but not limited to:
6973
## [v0.1.0] - 2019-08-30
7074
Initial realease.
7175

76+
[v0.7.4]: https://github.com/wI2L/jettison/compare/v0.7.3...v0.7.4
7277
[v0.7.3]: https://github.com/wI2L/jettison/compare/v0.7.2...v0.7.3
7378
[v0.7.2]: https://github.com/wI2L/jettison/compare/v0.7.1...v0.7.2
7479
[v0.7.1]: https://github.com/wI2L/jettison/compare/v0.7.0...v0.7.1

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616

1717
## Installation
1818

19-
Jettison uses the new [Go modules](https://github.com/golang/go/wiki/Modules). Releases are tagged according to the _SemVer_ format, prefixed with a `v`, starting from *0.2.0*. You can get the latest release using the following command.
19+
Jettison uses [Go modules](https://github.com/golang/go/wiki/Modules). Releases are tagged according to the _SemVer_ format, prefixed with a `v`, starting from *0.2.0*. You can get the latest release using the following command.
2020

2121
```console
22-
$ go get github.com/wI2L/jettison
22+
$ go get github.com/wI2L/jettison@latest
2323
```
2424

25+
:warning: From version `v0.7.4`, the packages requires [Go 1.17+](https://golang.org/doc/install) to build, due to the usage of the [new build constraints](https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md).
26+
2527
## Key features
2628

2729
- Fast, see [benchmarks](#benchmarks)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/wI2L/jettison
22

3-
go 1.17
3+
go 1.18
44

55
require (
66
github.com/json-iterator/go v1.1.12

json_1.13_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !go1.14
1+
//go:build !go1.14
22

33
package jettison
44

json_1.14_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build go1.14
1+
//go:build go1.14
22

33
package jettison
44

map_1.17.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !go1.18
1+
//go:build !go1.18
22

33
package jettison
44

map_1.18.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build go1.18
1+
//go:build go1.18
22

33
package jettison
44

0 commit comments

Comments
 (0)