ipfs / go-ds-leveldb

An implementation of go-datastore using leveldb
MIT License
38 stars 21 forks source link

Version 0.5.0 #58

Closed guseggert closed 3 years ago

github-actions[bot] commented 3 years ago

Suggested version: v0.5.0 Comparing to: v0.4.2 (diff)

Changes in go.mod file(s):

diff --git a/go.mod b/go.mod
index 9f8fdad..2626e13 100644
--- a/go.mod
+++ b/go.mod
@@ -1,8 +1,8 @@
 module github.com/ipfs/go-ds-leveldb

 require (
-   github.com/ipfs/go-datastore v0.4.1
+   github.com/ipfs/go-datastore v0.5.0
    github.com/syndtr/goleveldb v1.0.0
 )

-go 1.12
+go 1.16

gorelease says:

# github.com/ipfs/go-ds-leveldb
## incompatible changes
(*Datastore).Batch: changed from func() (github.com/ipfs/go-datastore.Batch, error) to func(context.Context) (github.com/ipfs/go-datastore.Batch, error)
(*Datastore).DiskUsage: changed from func() (uint64, error) to func(context.Context) (uint64, error)
(*Datastore).NewTransaction: changed from func(bool) (github.com/ipfs/go-datastore.Txn, error) to func(context.Context, bool) (github.com/ipfs/go-datastore.Txn, error)
(*accessor).Delete: changed from func(github.com/ipfs/go-datastore.Key) error to func(context.Context, github.com/ipfs/go-datastore.Key) error
(*accessor).Get: changed from func(github.com/ipfs/go-datastore.Key) ([]byte, error) to func(context.Context, github.com/ipfs/go-datastore.Key) ([]byte, error)
(*accessor).GetSize: changed from func(github.com/ipfs/go-datastore.Key) (int, error) to func(context.Context, github.com/ipfs/go-datastore.Key) (int, error)
(*accessor).Has: changed from func(github.com/ipfs/go-datastore.Key) (bool, error) to func(context.Context, github.com/ipfs/go-datastore.Key) (bool, error)
(*accessor).Put: changed from func(github.com/ipfs/go-datastore.Key, []byte) error to func(context.Context, github.com/ipfs/go-datastore.Key, []byte) error
(*accessor).Query: changed from func(github.com/ipfs/go-datastore/query.Query) (github.com/ipfs/go-datastore/query.Results, error) to func(context.Context, github.com/ipfs/go-datastore/query.Query) (github.com/ipfs/go-datastore/query.Results, error)
(*accessor).Sync: changed from func(github.com/ipfs/go-datastore.Key) error to func(context.Context, github.com/ipfs/go-datastore.Key) error

# summary
Suggested version: v0.5.0

gocompat says:

"github.com/ipfs/go-ds-leveldb".Datastore.DiskUsage MethodSignatureChanged
"github.com/ipfs/go-ds-leveldb".Datastore.Batch MethodSignatureChanged
"github.com/ipfs/go-ds-leveldb".Datastore.NewTransaction MethodSignatureChanged