Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.2.0"
".": "2.2.1"
}
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 2.2.1 (2026-02-19)

Full Changelog: [v2.2.0...v2.2.1](https://github.com/imagekit-developer/imagekit-go/compare/v2.2.0...v2.2.1)

### Bug Fixes

* allow canceling a request while it is waiting to retry ([c772a06](https://github.com/imagekit-developer/imagekit-go/commit/c772a06aa381125614083d572ce99b73b4eb3ce5))
* **encoder:** correctly serialize NullStruct ([c8a223a](https://github.com/imagekit-developer/imagekit-go/commit/c8a223a358428b56cd5f13843928252c58acff90))


### Chores

* **internal:** codegen related update ([255a031](https://github.com/imagekit-developer/imagekit-go/commit/255a0313de39110cdedc4002d451bdc39e3bc308))
* **internal:** codegen related update ([e1e4755](https://github.com/imagekit-developer/imagekit-go/commit/e1e47559733779920f899cb665b244e431702668))
* **internal:** codegen related update ([5071176](https://github.com/imagekit-developer/imagekit-go/commit/50711763c0f3bee01b36ab00500db61aa371415b))
* **internal:** remove mock server code ([ab007f7](https://github.com/imagekit-developer/imagekit-go/commit/ab007f7fa428ff639b7c1177976d76b4c66eb5f5))
* update mock server docs ([1ba9e87](https://github.com/imagekit-developer/imagekit-go/commit/1ba9e87f6b30e3992999808434dd39298de4d0a0))

## 2.2.0 (2026-02-02)

Full Changelog: [v2.1.1...v2.2.0](https://github.com/imagekit-developer/imagekit-go/compare/v2.1.1...v2.2.0)
Expand Down
7 changes: 0 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ $ go mod edit -replace github.com/imagekit-developer/imagekit-go=/path/to/imagek

## Running tests

Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
```

```sh
$ ./scripts/test
```
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/imagekit-developer/imagekit-go/v2@v2.2.0'
go get -u 'github.com/imagekit-developer/imagekit-go/v2@v2.2.1'
```

<!-- x-release-please-end -->
Expand Down
10 changes: 5 additions & 5 deletions accountorigin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestAccountOriginNewWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -50,7 +50,7 @@ func TestAccountOriginNewWithOptionalParams(t *testing.T) {
}

func TestAccountOriginUpdateWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -90,7 +90,7 @@ func TestAccountOriginUpdateWithOptionalParams(t *testing.T) {
}

func TestAccountOriginList(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -114,7 +114,7 @@ func TestAccountOriginList(t *testing.T) {
}

func TestAccountOriginDelete(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -138,7 +138,7 @@ func TestAccountOriginDelete(t *testing.T) {
}

func TestAccountOriginGet(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
10 changes: 5 additions & 5 deletions accounturlendpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestAccountURLEndpointNewWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -49,7 +49,7 @@ func TestAccountURLEndpointNewWithOptionalParams(t *testing.T) {
}

func TestAccountURLEndpointUpdateWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -88,7 +88,7 @@ func TestAccountURLEndpointUpdateWithOptionalParams(t *testing.T) {
}

func TestAccountURLEndpointList(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -112,7 +112,7 @@ func TestAccountURLEndpointList(t *testing.T) {
}

func TestAccountURLEndpointDelete(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -136,7 +136,7 @@ func TestAccountURLEndpointDelete(t *testing.T) {
}

func TestAccountURLEndpointGet(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
2 changes: 1 addition & 1 deletion accountusage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
)

func TestAccountUsageGet(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
2 changes: 1 addition & 1 deletion asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestAssetListWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
2 changes: 1 addition & 1 deletion betav2file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

func TestBetaV2FileUploadWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
4 changes: 2 additions & 2 deletions cacheinvalidation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestCacheInvalidationNew(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -40,7 +40,7 @@ func TestCacheInvalidationNew(t *testing.T) {
}

func TestCacheInvalidationGet(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
8 changes: 4 additions & 4 deletions custommetadatafield_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestCustomMetadataFieldNewWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -69,7 +69,7 @@ func TestCustomMetadataFieldNewWithOptionalParams(t *testing.T) {
}

func TestCustomMetadataFieldUpdateWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -126,7 +126,7 @@ func TestCustomMetadataFieldUpdateWithOptionalParams(t *testing.T) {
}

func TestCustomMetadataFieldListWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -153,7 +153,7 @@ func TestCustomMetadataFieldListWithOptionalParams(t *testing.T) {
}

func TestCustomMetadataFieldDelete(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
2 changes: 1 addition & 1 deletion dummy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

func TestDummyNewWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
14 changes: 7 additions & 7 deletions file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

func TestFileUpdateWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -100,7 +100,7 @@ func TestFileUpdateWithOptionalParams(t *testing.T) {
}

func TestFileDelete(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -124,7 +124,7 @@ func TestFileDelete(t *testing.T) {
}

func TestFileCopyWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -152,7 +152,7 @@ func TestFileCopyWithOptionalParams(t *testing.T) {
}

func TestFileGet(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -176,7 +176,7 @@ func TestFileGet(t *testing.T) {
}

func TestFileMove(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -203,7 +203,7 @@ func TestFileMove(t *testing.T) {
}

func TestFileRenameWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -231,7 +231,7 @@ func TestFileRenameWithOptionalParams(t *testing.T) {
}

func TestFileUploadWithOptionalParams(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
8 changes: 4 additions & 4 deletions filebulk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestFileBulkDelete(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -40,7 +40,7 @@ func TestFileBulkDelete(t *testing.T) {
}

func TestFileBulkAddTags(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -67,7 +67,7 @@ func TestFileBulkAddTags(t *testing.T) {
}

func TestFileBulkRemoveAITags(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -94,7 +94,7 @@ func TestFileBulkRemoveAITags(t *testing.T) {
}

func TestFileBulkRemoveTags(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
4 changes: 2 additions & 2 deletions filemetadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestFileMetadataGet(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -38,7 +38,7 @@ func TestFileMetadataGet(t *testing.T) {
}

func TestFileMetadataGetFromURL(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
8 changes: 4 additions & 4 deletions fileversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

func TestFileVersionList(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand All @@ -38,7 +38,7 @@ func TestFileVersionList(t *testing.T) {
}

func TestFileVersionDelete(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -68,7 +68,7 @@ func TestFileVersionDelete(t *testing.T) {
}

func TestFileVersionGet(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down Expand Up @@ -98,7 +98,7 @@ func TestFileVersionGet(t *testing.T) {
}

func TestFileVersionRestore(t *testing.T) {
t.Skip("Prism tests are disabled")
t.Skip("Mock server tests are disabled")
baseURL := "http://localhost:4010"
if envURL, ok := os.LookupEnv("TEST_API_BASE_URL"); ok {
baseURL = envURL
Expand Down
Loading
Loading