From 153560933a1b3d628b89b4496d9a10bd977f0c20 Mon Sep 17 00:00:00 2001 From: CI Build <> Date: Fri, 22 Dec 2023 23:14:03 +0000 Subject: [PATCH] Update RELEASE-NOTES.md, module.go and *.go files for new version 1.0.0 --- RELEASE-NOTES.md | 21 +++++++++++++++++++++ module.go | 2 +- restclient.go | 6 +++--- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index bff768a..6264240 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -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`. diff --git a/module.go b/module.go index ce7417a..2e158ab 100644 --- a/module.go +++ b/module.go @@ -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. diff --git a/restclient.go b/restclient.go index 558fba0..96a38d8 100644 --- a/restclient.go +++ b/restclient.go @@ -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 <> +// @Available since v1.0.0 func (c *RestClient) GetApiVersion() string { return c.apiVersion } // GetAutoId returns the auto-id flag. // -// @Available since <> +// @Available since v1.0.0 func (c *RestClient) GetAutoId() bool { return c.autoId } // SetAutoId sets value for the auto-id flag. // -// @Available since <> +// @Available since v1.0.0 func (c *RestClient) SetAutoId(value bool) *RestClient { c.autoId = value return c