nats-go @ v1.8.0
integrity
- size
- 159.7 KiB
- downloaded
- last checked
- overlays
- go
- detected
- go module github.com/nats-io/nats.go
release notes
Changelog
Some of you may have noticed that there was temporarily a v2.0.0 tag.
We wanted to align the client version to the upcoming NATS Server 2.0 release.
However, there was no backward compatibility breaking changes in the client and
the go.mod rules for a v2 would have force us, and users, to add v2 to the import paths.
This would not be justified since, again, there are no breaking changes.
So we have removed the tag and instead released v1.8.0. We are deeply sorry for the inconvenience but we hope that you will understand why we did this.
Changed
- The repository has been renamed to
nats.go. When doing ago get github.com/nats-io/nats.go/, make sure to include the trailing/to avoid such error:stat github.com/nats-io/nats.go: no such file or directory. - The default URL (
nats.DefaultURL) has been changed fromnats://localhost:4222tonats://127.0.0.1:4222(#460)
Added
ConnErrHandler: handler which can be invoked when a disconnect event occurs. Unlike ConnHandler, you can get the error that caused the disconnect event. Thanks to @mkorolyov for the contribution (#462, #464)Message.Respond()to be able to conveniently reply to a request message from the message handler (#472)
Deprecated
DisconnectedCB,DisconnectHandler: UseDisconnectedErrCB,DisconnectErrHandlerinstead (#462, #464)
Improved
- Some cleanup with use of RWMutex, removal of un-needed defer, etc... Thanks to @MaruHyl for the contributions (#434, #437, #438)
- Refactor some of the examples. Thanks to @andyxning for the contribution (#440)
Fixed
- Proper randomization of IPs resolved from a hostname prior to dial (#445)
- Misleading TLS error report due to credential file errors (#446)
- Race on synchronous subscription type setting (#447)
- Examples would not exit after printing usage, possibly causing panic (#456, #465)
- Some typos. Thanks to @0xflotus for the contribution (#471)
Complete Changes
download
unix · zip
curl -fL -o v1.8.0.zip https://ratatoskr.space/pkg/nats-go/v1.8.0.zip
printf '%s %s\n' '62f5a5596fff9be19ed132f054f0174d206af0037849699ce77d1d40caefd097' 'v1.8.0.zip' | sha256sum -c -
windows · zip
$url = "https://ratatoskr.space/pkg/nats-go/v1.8.0.zip"
$out = "v1.8.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "62f5a5596fff9be19ed132f054f0174d206af0037849699ce77d1d40caefd097") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o v1.8.0.tar.gz https://ratatoskr.space/pkg/nats-go/v1.8.0.tar.gz
printf '%s %s\n' '72ad1847d2126714d32b14187b0162ab3c5d848f93c6054e4633dfbf9464d036' 'v1.8.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "https://ratatoskr.space/pkg/nats-go/v1.8.0.tar.gz"
$out = "v1.8.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "72ad1847d2126714d32b14187b0162ab3c5d848f93c6054e4633dfbf9464d036") { throw "sha256 mismatch" }
download via yggdrasil mesh
unix · zip
curl -fL -o v1.8.0.zip http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/nats-go/v1.8.0.zip
printf '%s %s\n' '62f5a5596fff9be19ed132f054f0174d206af0037849699ce77d1d40caefd097' 'v1.8.0.zip' | sha256sum -c -
windows · zip
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/nats-go/v1.8.0.zip"
$out = "v1.8.0.zip"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "62f5a5596fff9be19ed132f054f0174d206af0037849699ce77d1d40caefd097") { throw "sha256 mismatch" }
unix · tar.gz
curl -fL -o v1.8.0.tar.gz http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/nats-go/v1.8.0.tar.gz
printf '%s %s\n' '72ad1847d2126714d32b14187b0162ab3c5d848f93c6054e4633dfbf9464d036' 'v1.8.0.tar.gz' | sha256sum -c -
windows · tar.gz
$url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/nats-go/v1.8.0.tar.gz"
$out = "v1.8.0.tar.gz"
Invoke-WebRequest -Uri $url -OutFile $out
if ((Get-FileHash $out -Algorithm SHA256).Hash.ToLowerInvariant() -ne "72ad1847d2126714d32b14187b0162ab3c5d848f93c6054e4633dfbf9464d036") { throw "sha256 mismatch" }
| artifact | format | size | hashes |
|---|---|---|---|
| v1.8.0.zip | zip | 159.2 KiB |
blake3-24 4ddbd435b4181a3171c5ab327cf176a8e39e550369e1b5ec
sha256 62f5a5596fff9be19ed132f054f0174d206af0037849699ce77d1d40caefd097
sha1 83869b01297b70a429bc042b65e0cbd05a6b2f58
|
| v1.8.0.tar.gz | tar.gz | 120.8 KiB |
blake3-24 01034e2baf6c3b6640ef77e4fead9140223283367d34bbfd
sha256 72ad1847d2126714d32b14187b0162ab3c5d848f93c6054e4633dfbf9464d036
sha1 104807c71fd48cf979df9bbc7df080d3f456a3fd
|
go module archive
module zip with the module path rewritten to this mirror; fetched by go get through the
GOPROXY route
| artifact | format | size | hashes |
|---|---|---|---|
| v1.8.0.zip | zip | 160.8 KiB |
blake3-24 fa41d835b0078029eb8e733905530f517068648d5a38d057
sha256 6249b6a26ff828b2b45edaa6076b8614259c8eee7117edd8bcbca4f78b9aaf71
sha1 ad1546bdc7a13816695e9b3114bfa8bdf5efaaf8
|
install
bazel
http_archive(
name = "nats-go",
urls = ["https://ratatoskr.space/pkg/nats-go/v1.8.0.tar.gz"],
integrity = "sha256-cq0YR9ISZxTTKxQYewFiqzxdhI+TxgVORjPfv5Rk0DY=",
strip_prefix = "nats-go-v1.8.0",
)
zig
.url = "https://ratatoskr.space/pkg/nats-go/v1.8.0.tar.gz",
go
GOPROXY=https://ratatoskr.space GOSUMDB=off go get ratatoskr.space/pkg/nats-go@v1.8.0
install via yggdrasil mesh
bazel
http_archive(
name = "nats-go",
urls = ["http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/nats-go/v1.8.0.tar.gz"],
integrity = "sha256-cq0YR9ISZxTTKxQYewFiqzxdhI+TxgVORjPfv5Rk0DY=",
strip_prefix = "nats-go-v1.8.0",
)
zig
.url = "http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/nats-go/v1.8.0.tar.gz",
go
GOPROXY=http://14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg GOSUMDB=off GOINSECURE=14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/* go get 14cc7d57b5e70f679b851fe5b272ce17c70632ff4beb5b35ab64bc706b2485af.pk.ygg/pkg/nats-go@v1.8.0