Skip to content

Commit f1acf4e

Browse files
Merge pull request #5 from hdresearch/release-please--branches--main--changes--next
release: 0.1.0-alpha.2
2 parents 4ab23d5 + 4b43ff1 commit f1acf4e

File tree

6 files changed

+22
-9
lines changed

6 files changed

+22
-9
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.1"
2+
".": "0.1.0-alpha.2"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 9
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hdr-parth-agrawal%2Ffirecracker-manager-5abc6ae5528da145dff4c50ea70cce67638d737cc5d67ed39fed93b30032053f.yml
33
openapi_spec_hash: 718f1d7cd3862c03d0a700489a29b902
4-
config_hash: 5aa09fccdb7c3fc2adb8b9e3d2d866a5
4+
config_hash: 42b27355c32dc9b2891e7c07c1a80ab2

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## 0.1.0-alpha.2 (2025-04-03)
4+
5+
Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/hdresearch/vers-sdk-go/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([#6](https://github.com/hdresearch/vers-sdk-go/issues/6)) ([24c657a](https://github.com/hdresearch/vers-sdk-go/commit/24c657a16c47295391a0b032d440be678f528029))
10+
11+
12+
### Bug Fixes
13+
14+
* **client:** return error on bad custom url instead of panic ([#4](https://github.com/hdresearch/vers-sdk-go/issues/4)) ([57370b2](https://github.com/hdresearch/vers-sdk-go/commit/57370b218c67eb61782b8f178da271314b5c60c6))
15+
316
## 0.1.0-alpha.1 (2025-03-27)
417

518
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/hdresearch/vers-sdk-go/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Or to pin the version:
2424
<!-- x-release-please-start-version -->
2525

2626
```sh
27-
go get -u 'github.com/hdresearch/vers-sdk-go@v0.1.0-alpha.1'
27+
go get -u 'github.com/hdresearch/vers-sdk-go@v0.1.0-alpha.2'
2828
```
2929

3030
<!-- x-release-please-end -->

internal/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
package internal
44

5-
const PackageVersion = "0.1.0-alpha.1" // x-release-please-version
5+
const PackageVersion = "0.1.0-alpha.2" // x-release-please-version

option/requestoption.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"bytes"
77
"fmt"
88
"io"
9-
"log"
109
"net/http"
1110
"net/url"
1211
"strings"
@@ -28,10 +27,11 @@ type RequestOption = requestconfig.RequestOption
2827
// For security reasons, ensure that the base URL is trusted.
2928
func WithBaseURL(base string) RequestOption {
3029
u, err := url.Parse(base)
31-
if err != nil {
32-
log.Fatalf("failed to parse BaseURL: %s\n", err)
33-
}
3430
return requestconfig.RequestOptionFunc(func(r *requestconfig.RequestConfig) error {
31+
if err != nil {
32+
return fmt.Errorf("requestoption: WithBaseURL failed to parse url %s\n", err)
33+
}
34+
3535
if u.Path != "" && !strings.HasSuffix(u.Path, "/") {
3636
u.Path += "/"
3737
}
@@ -231,7 +231,7 @@ func WithRequestTimeout(dur time.Duration) RequestOption {
231231
// environment to be the "production" environment. An environment specifies which base URL
232232
// to use by default.
233233
func WithEnvironmentProduction() RequestOption {
234-
return WithBaseURL("https://api.example.com/")
234+
return WithBaseURL("http://13.219.19.157/")
235235
}
236236

237237
// WithAPIKey returns a RequestOption that sets the client setting "api_key".

0 commit comments

Comments
 (0)