Skip to content

Commit 5cfc290

Browse files
committed
chore: update Go SDK to v2.0.0
1 parent 33cc8b0 commit 5cfc290

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
# Change Log
22

3-
## 0.18.0
3+
## v2.0.0
44

55
* [BREAKING] Changed `$sequence` type from `int` to `string` for rows and documents
66
* Added `NewProject` and `NewWebhooks` client constructors
77
* Added impersonation helpers `WithImpersonateUserId`, `WithImpersonateUserEmail`, `WithImpersonateUserPhone`
88
* Added avatar URL helpers: `GetBrowserURL`, `GetCreditCardURL`, `GetFaviconURL`, `GetFlagURL`, `GetImageURL`, `GetInitialsURL`, `GetQRURL`, `GetScreenshotURL`
99
* Updated README badge to API version 1.9.0
1010

11-
## 0.17.0
11+
## v1.0.0
12+
13+
* Breaking: Activate parameter was removed from CreateDeployment; use WithCreateDeploymentActivate.
14+
* Breaking: UpdateRelationshipAttribute API path changed and old overload removed.
15+
* Added: GetConsolePausing endpoint to monitor console pausing status.
16+
* Added: TTL option to list operations for documents and rows.
17+
* Updated: Document and Row sequence comments to reflect sequence IDs.
18+
19+
## v0.17.0
1220

1321
* Added new Activities service to the Go SDK with a NewActivities constructor to access Activities endpoints.
1422
* Extended Databases attribute APIs to support encryption: introduced Encrypt option for Longtext, Mediumtext, Text, and Varchar attributes, along with corresponding New/Create option builders (WithCreateLongtextAttributeEncrypt, WithCreateMediumtextAttributeEncrypt, WithCreateTextAttributeEncrypt, WithCreateVarcharAttributeEncrypt) and wiring to send the encrypt parameter when enabled.

client/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ type Client struct {
7474
func New(optionalSetters ...ClientOption) Client {
7575
headers := map[string]string{
7676
"X-Appwrite-Response-Format" : "1.9.0",
77-
"user-agent" : fmt.Sprintf("AppwriteGoSDK/v0.18.0 (%s; %s)", runtime.GOOS, runtime.GOARCH),
77+
"user-agent" : fmt.Sprintf("AppwriteGoSDK/v2.0.0 (%s; %s)", runtime.GOOS, runtime.GOARCH),
7878
"x-sdk-name": "Go",
7979
"x-sdk-platform": "server",
8080
"x-sdk-language": "go",
81-
"x-sdk-version": "v0.18.0",
81+
"x-sdk-version": "v2.0.0",
8282
}
8383
httpClient, err := GetDefaultClient(defaultTimeout)
8484
if err != nil {

0 commit comments

Comments
 (0)