Releases: cli/go-gh
Releases · cli/go-gh
go-gh 2.2.0
What's Changed
- Add
CacheDir
function toconfig
package by @ffalor in #126 - Fix bug in
asciisanitizer
with validU+FFFD
character being reported as an error by @yin1999 in #128
New Contributors
Full Changelog: v2.1.0...v2.2.0
go-gh 2.1.0
What's Changed
- Add missing import statement to code example by @bendrucker in #124
- Export Path function from top level gh package by @samcoe in #123
- Add asciisanitizer package and sanitization to http clients by @samcoe in #125
New Contributors
- @bendrucker made their first contribution in #124
Full Changelog: v2.0.1...v2.1.0
go-gh 2.0.1
go-gh 2.0.0
What's Changed
This is a fairly large release with a couple new features and a bunch of tech debt cleanup for go-gh
.
As part of keeping this library maintainable and inline with best Go practices we have made breaking changes to a couple of the packages thus constituting a bump of the major version to v2.0.0.
Below are the listed changes ordered by package as well as migration guidelines when applicable.
gh
package
- Move
CurrentRepository
function from top levelgh
package torepository
package.- To migrate:
gh.CurrentRepository
->repository.Current
- To migrate:
- Move
RESTClient
function from top levelgh
package toapi
package.- To migrate:
gh.RESTClient
->api.DefaultRESTClient
orapi.NewRESTClient
- To migrate:
- Move
GQLClient
function from top levelgh
package toapi
package.- To migrate:
gh.GQlClient
->api.DefaultGraphQLClient
orapi.NewGraphQLClient
- To migrate:
- Move
HTTPClient
function from top levelgh
package toapi
package.- To migrate:
gh.HTTPClient
->api.DefaultHTTPClient
orapi.NewHTTPClient
- To migrate:
- Add
ExecInteractive
by @stemar94 in #115 - Add
ExecContext
function by @mislav in #115 - Add support for
GH_PATH
environment variable toExec
functions by @mislav in #115
api
package
- Change references of
GQL
toGraphQL
.- To migrate:
api.GQLError
->api.GraphQLError
- To migrate:
api.GQLErrorItem
->api.GraphQLErrorItem
- To migrate:
- Change
ClientOptions
to be used with value semantics instead of pointer semantics.- This allows
ClientOptions
to be used with multiple clients without having to worry about them being modified.
- This allows
- Added
DefaultRESTClient
,DefaultHTTPClient
,DefaultGraphQLClient
convenience factory functions. - Change
RESTClient
interface type to a concrete type. - Change
GraphQLClient
interface type to a concrete type. - Change methods on
HTTPError
andGraphQLError
custom error types to take pointers as method receivers. - Change
GraphQLClient
Query
andMutate
methods to returnGraphQLError
instead ofshurcooL/graphql.Errors
.
browser
package
- Change
New
factory function to return*Browser
instead ofBrowser
.
config
package
- Change methods on
InvalidConfigFileError
andKeyNotFoundError
custom error types to take pointers as method receivers.
jq
package
- Add
EvaluateFormatted
function to pretty print JSON output by @mjpieters in #116
repository
package
- Change
Repository
interface type to a concrete type.
ssh
package
template
package
- Change
New
factory function to return*Template
instead ofTemplate
.
Other changes
New Contributors
- @mjpieters made their first contribution in #116
- @stemar94 made their first contribution in #115
Full Changelog: v1.2.1...v2.0.0
go-gh 1.2.1
What's Changed
Full Changelog: v1.2.0...v1.2.1
go-gh 1.2.0
What's Changed
- Add pagination examples for RESTClient and GQLClient by @samcoe in #102
- Bump golang.org/x/net from 0.5.0 to 0.7.0 by @dependabot in #106
- Expose stdin and stdout in term package by @samcoe in #103
- Read auth token from
gh
if not found in other locations by @mislav in #107
New Contributors
- @dependabot made their first contribution in #106
Full Changelog: v1.1.0...v1.2.0
go-gh 1.1.0
go-gh 1.0.0
What's Changed
- Add support for
garage.github.com
by @mislav in #85 - Resolve ssh hostname aliases with
ssh -G
by @mislav in #84 - Correctly measure terminal size in GH_FORCE_TTY mode by @mislav in #86
- Change package in
example_gh_test.go
togh_test
by @mntlty in #88 - Overhaul README for stable release by @mislav in #89
New Contributors
Full Changelog: v0.1.2...v1.0.0
go-gh 0.1.2
What's Changed
- Allow defining template user functions by @heaths in #74
- Fix non-Windows terminals assumed to always support 256-color by @mislav in #81
- Disable govulncheck due to false positive by @mislav in #83
- Fix HTTP error handling in
RESTClient.Request()
method by @mislav in #82
Full Changelog: v0.1.1...v0.1.2
go-gh 0.1.1
What's New
- Add markdown renderer from gh by @samcoe in #66
- Extract export package from gh by @samcoe in #67
- Extract text package from gh by @samcoe in #69
- Add hyperlink template function by @heaths in #72
What's Changed
- Unconditionally resolve "ssh.github.com" to "github.com" by @samcoe in #68
- Return correct error on config read by @samcoe in #70
- Bump GraphQL library and other dependencies for CVE fix by @mislav in #78
- Change tests to use t.Setenv instead of os.Setenv by @samcoe in #65
- Add govulncheck action by @samcoe in #71
Full Changelog: v0.1.0...v0.1.1