Skip to content

Commit

Permalink
chore: update module version to 1.18 and fix build constraint lines
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wI2L committed Mar 21, 2022
1 parent c439275 commit b72a5ea
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
fail-fast: false
matrix:
go:
- "1.15.x"
- "1.16.x"
- "1.17.x"
- "1.18.x"
os:
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ All notable changes to this project are documented in this file.

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

## [v0.7.4] - 2022-03-18
## [v0.7.4] - 2022-03-21

:warning: Starting from this version, [Go 1.17+](https://golang.org/doc/install) is required to use this package.

- Fix `reflect.mapiterinit` function prototype for go1.18, changed in https://github.com/golang/go/commit/1b2d794ca3ba60c2dbc958a271662784a7122739.
- Update module version to `1.18` and fix build constraint lines.

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

[v0.7.4]: https://github.com/wI2L/jettison/compare/v0.7.3...v0.7.4
[v0.7.3]: https://github.com/wI2L/jettison/compare/v0.7.2...v0.7.3
[v0.7.2]: https://github.com/wI2L/jettison/compare/v0.7.1...v0.7.2
[v0.7.1]: https://github.com/wI2L/jettison/compare/v0.7.0...v0.7.1
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@

## Installation

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.
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.

```console
$ go get github.com/wI2L/jettison
$ go get github.com/wI2L/jettison@latest
```

: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).

## Key features

- Fast, see [benchmarks](#benchmarks)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/wI2L/jettison

go 1.17
go 1.18

require (
github.com/json-iterator/go v1.1.12
Expand Down
2 changes: 1 addition & 1 deletion json_1.13_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !go1.14
//go:build !go1.14

package jettison

Expand Down
2 changes: 1 addition & 1 deletion json_1.14_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build go1.14
//go:build go1.14

package jettison

Expand Down
2 changes: 1 addition & 1 deletion map_1.17.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !go1.18
//go:build !go1.18

package jettison

Expand Down
2 changes: 1 addition & 1 deletion map_1.18.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build go1.18
//go:build go1.18

package jettison

Expand Down

0 comments on commit b72a5ea

Please sign in to comment.