Skip to content

Commit 31b7588

Browse files
chore(ci): update changelog + import paths for v4 (#1886)
Changelog should reflect that we are switching to SemVer. This requires moving to a new major version. We also update all import paths in Badger.
1 parent 5319b0a commit 31b7588

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+157
-161
lines changed

.github/workflows/ci-badger-bank-tests-nightly.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ on:
33
push:
44
branches:
55
- main
6-
- release/v3.2103
7-
- release/v4.0
6+
- 'release/v*'
87
schedule:
98
- cron: "0 3 * * *"
109
jobs:

.github/workflows/ci-badger-bank-tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ on:
33
push:
44
branches:
55
- main
6-
- release/v3.2103
7-
- release/v4.0
6+
- 'release/v*'
87
pull_request:
98
branches:
109
- main
11-
- release/v3.2103
12-
- release/v4.0
10+
- 'release/v*'
1311
schedule:
1412
- cron: "*/30 * * * *"
1513
jobs:

.github/workflows/ci-badger-tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ on:
33
push:
44
branches:
55
- main
6-
- release/v3.2103
7-
- release/v4.0
6+
- 'release/v*'
87
pull_request:
98
branches:
109
- main
11-
- release/v3.2103
12-
- release/v4.0
10+
- 'release/v*'
1311
schedule:
1412
- cron: "*/30 * * * *"
1513
jobs:

.github/workflows/ci-golang-lint.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ on:
33
push:
44
branches:
55
- main
6-
- release/v3.2103
7-
- release/v4.0
6+
- 'release/v*'
87
pull_request:
98
branches:
109
- main
11-
- release/v3.2103
12-
- release/v4.0
10+
- 'release/v*'
1311
schedule:
1412
- cron: "*/30 * * * *"
1513
jobs:

CHANGELOG.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55

6-
## [3.3.0] - 2022-02-23
6+
## [4.0.0] - 2023-02-24
77

8-
This minor release fixes a bug in the maxHeaderSize parameter that could lead
8+
This release fixes a bug in the maxHeaderSize parameter that could lead
99
to panics. We introduce an external magic number to keep track of external
1010
dependencies. We bump up the minimum required Go version to 1.19. No changes
11-
were made to the format of data on disk.
11+
were made to the format of data on disk. This is a major release because
12+
we are making a switch to SemVer in order to make it easier for the community
13+
to understand when breaking API and data format changes are made.
1214

1315
### Fixed
1416
- fix: update maxHeaderSize #1877
@@ -19,7 +21,8 @@ were made to the format of data on disk.
1921
- upgrade go to 1.19 #1868
2022
- enable linters (gosimple, govet, lll, unused, staticcheck, errcheck, ineffassign, gofmt) #1871 #1870 #1876
2123
- remove dependency on io/ioutil #1879
22-
- various doc and comment fixes #1857
24+
- various doc and comment fixes #1857
25+
- moving from CalVer to SemVer
2326

2427
## [3.2103.5] - 2022-12-15
2528

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# BadgerDB
22

3-
[![Go Reference](https://pkg.go.dev/badge/github.com/dgraph-io/badger/v3.svg)](https://pkg.go.dev/github.com/dgraph-io/badger/v3)
4-
[![Go Report Card](https://goreportcard.com/badge/github.com/dgraph-io/badger/v3)](https://goreportcard.com/report/github.com/dgraph-io/badger/v3)
3+
[![Go Reference](https://pkg.go.dev/badge/github.com/dgraph-io/badger/v4.svg)](https://pkg.go.dev/github.com/dgraph-io/badger/v4)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/dgraph-io/badger/v4)](https://goreportcard.com/report/github.com/dgraph-io/badger/v4)
55
[![Sourcegraph](https://sourcegraph.com/github.com/dgraph-io/badger/-/badge.svg)](https://sourcegraph.com/github.com/dgraph-io/badger?badge)
66
[![ci-badger-tests](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-tests.yml/badge.svg)](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-tests.yml)
77
[![ci-badger-bank-tests](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-bank-tests.yml/badge.svg)](https://github.com/dgraph-io/badger/actions/workflows/ci-badger-bank-tests.yml)
@@ -65,7 +65,7 @@ For more details on our version naming schema please read [Choosing a version](#
6565
To start using Badger, install Go 1.19 or above. Badger v3 needs go modules. From your project, run the following command
6666

6767
```sh
68-
$ go get github.com/dgraph-io/badger/v3
68+
$ go get github.com/dgraph-io/badger/v4
6969
```
7070
This will retrieve the library.
7171

backup.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
"github.com/golang/protobuf/proto"
2727
"github.com/pkg/errors"
2828

29-
"github.com/dgraph-io/badger/v3/pb"
30-
"github.com/dgraph-io/badger/v3/y"
29+
"github.com/dgraph-io/badger/v4/pb"
30+
"github.com/dgraph-io/badger/v4/y"
3131
"github.com/dgraph-io/ristretto/z"
3232
)
3333

backup_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929

3030
"github.com/stretchr/testify/require"
3131

32-
"github.com/dgraph-io/badger/v3/pb"
32+
"github.com/dgraph-io/badger/v4/pb"
3333
)
3434

3535
func TestBackupRestore1(t *testing.T) {

badger/cmd/backup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
"github.com/spf13/cobra"
2525

26-
"github.com/dgraph-io/badger/v3"
26+
"github.com/dgraph-io/badger/v4"
2727
)
2828

2929
var bo = struct {

badger/cmd/bank.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ import (
3232

3333
"github.com/spf13/cobra"
3434

35-
"github.com/dgraph-io/badger/v3"
36-
"github.com/dgraph-io/badger/v3/pb"
37-
"github.com/dgraph-io/badger/v3/y"
35+
"github.com/dgraph-io/badger/v4"
36+
"github.com/dgraph-io/badger/v4/pb"
37+
"github.com/dgraph-io/badger/v4/y"
3838
"github.com/dgraph-io/ristretto/z"
3939
)
4040

0 commit comments

Comments
 (0)