ipfs / go-ds-flatfs

A datastore implementation using sharded directories and flat files to store data
MIT License
46 stars 21 forks source link

Version 0.5.0 #99

Closed guseggert closed 2 years ago

github-actions[bot] commented 2 years ago

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

Changes in go.mod file(s):

diff --git a/go.mod b/go.mod
index 99bdcab..7905373 100644
--- a/go.mod
+++ b/go.mod
@@ -2,9 +2,9 @@ module github.com/ipfs/go-ds-flatfs

 require (
    github.com/alexbrainman/goissue34681 v0.0.0-20191006012335-3fc7a47baff5
-   github.com/ipfs/go-datastore v0.4.4
+   github.com/ipfs/go-datastore v0.5.0
    github.com/ipfs/go-log v1.0.3
    github.com/jbenet/goprocess v0.1.4
 )

-go 1.13
+go 1.16

gorelease says:

# github.com/ipfs/go-ds-flatfs
## 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).Delete: changed from func(github.com/ipfs/go-datastore.Key) error to func(context.Context, github.com/ipfs/go-datastore.Key) error
(*Datastore).Get: changed from func(github.com/ipfs/go-datastore.Key) ([]byte, error) to func(context.Context, github.com/ipfs/go-datastore.Key) ([]byte, error)
(*Datastore).GetSize: changed from func(github.com/ipfs/go-datastore.Key) (int, error) to func(context.Context, github.com/ipfs/go-datastore.Key) (int, error)
(*Datastore).Has: changed from func(github.com/ipfs/go-datastore.Key) (bool, error) to func(context.Context, github.com/ipfs/go-datastore.Key) (bool, error)
(*Datastore).Put: changed from func(github.com/ipfs/go-datastore.Key, []byte) error to func(context.Context, github.com/ipfs/go-datastore.Key, []byte) error
(*Datastore).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)
(*Datastore).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-flatfs".Datastore.Put MethodSignatureChanged
"github.com/ipfs/go-ds-flatfs".Datastore.Sync MethodSignatureChanged
"github.com/ipfs/go-ds-flatfs".Datastore.Get MethodSignatureChanged
"github.com/ipfs/go-ds-flatfs".Datastore.Has MethodSignatureChanged
"github.com/ipfs/go-ds-flatfs".Datastore.GetSize MethodSignatureChanged
"github.com/ipfs/go-ds-flatfs".Datastore.Delete MethodSignatureChanged
"github.com/ipfs/go-ds-flatfs".Datastore.Query MethodSignatureChanged
"github.com/ipfs/go-ds-flatfs".Datastore.Batch MethodSignatureChanged