Skip to content

Commit

Permalink
Update RELEASE-NOTES.md, module.go and *.go files for new version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CI Build committed Dec 22, 2023
1 parent 5b288e0 commit 1535609
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
21 changes: 21 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# gocosmos - Release notes

## 2023-12-22 - v1.0.0

### Changed

- BREAKING: typo fixed, change struct RestReponse to RestResponse
- BREAKING: bump GO version to v1.18

### Added/Refactoring

- Refactor: remove internal sync.Mutex from OfferInfo
- Add methods GetApiVersion/GetAutoId/SetAutoId to RestClient struct
- Refactor: follow go-module-template
- Refactor: move tests to separated subpackage

### Fixed/Improvement

- Fix CodeQL alerts
- Dependency: bump github.com/btnguyen2k/consu/checksum to v1.1.0
- Fix: server may return no content with http status 204 or 304
- Fix: golang-lint

## 2023-06-16 - v0.3.0

- Change default API version to `2020-07-15`.
Expand Down
2 changes: 1 addition & 1 deletion module.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gocosmos

const (
// Version holds the semantic version number of package gocosmos.
Version = "0.3.0"
Version = "1.0.0"
)

// This file contains module's metadata only, which is package level documentation and module Version string.
Expand Down
6 changes: 3 additions & 3 deletions restclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,21 +195,21 @@ func (c *RestClient) buildRestResponse(resp *gjrc.GjrcResponse) RestResponse {

// GetApiVersion returns the Azure Cosmos DB APi version string, either from connection string or default value.
//
// @Available since <<VERSION>>
// @Available since v1.0.0
func (c *RestClient) GetApiVersion() string {
return c.apiVersion
}

// GetAutoId returns the auto-id flag.
//
// @Available since <<VERSION>>
// @Available since v1.0.0
func (c *RestClient) GetAutoId() bool {
return c.autoId
}

// SetAutoId sets value for the auto-id flag.
//
// @Available since <<VERSION>>
// @Available since v1.0.0
func (c *RestClient) SetAutoId(value bool) *RestClient {
c.autoId = value
return c
Expand Down

0 comments on commit 1535609

Please sign in to comment.