-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resty v2 release plan and Create migration guide from v1 to v2 #235
Comments
@Crevil, @1995parham, @moorereason, @h7kanna, @sudo-suhas, @topillar, @pborzenkov, @incubus8, @xakep666, @neganovalexey I have just gathered the names from resty v2 discussion since v2 release candidate 1 is ready I thought to collect the user feedback. Could you please try rc1 and share feedback? Thanks. |
@jeevatkm The go module support has not been implemented correctly:
Ideally, I should refer to
See https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher, https://blog.samwhited.com/2019/01/supporting-go-modules/, https://www.youtube.com/watch?v=ms5l0zxC-uM |
It's not clear to me that using the It's odd that |
@moorereason Releasing multiple version has more than one approach with Are you getting any build error? what is it? please let me know. |
@sudo-suhas As mentioned in this issue main content. Please refer it as -
|
I'll try to test this out this week or the next. Do you have a time frame for feedback that I need to aim for? |
I tried with |
@1995parham It is okay. This is pre-release of major version, that's why it resolves like this. Any feedback about v2 usage? |
@jeevatkm I switched to v2 in one of my projects and everything looks good to me. Thanks for your awesome work. If anything happens I will comment about it here. |
@1995parham I'm glad to hear your feedback 👍, please keep me posted. FYI, there will be one more breaking change with new feature addition on Retry, refer to #237, I will make |
I updated one of my tools to v2. Below is a snippet of the diff that captures the essence of the changes. It was pretty simple. index c2e0bfb..44873f1 100644
--- a/api/api.go
+++ b/api/api.go
@@ -143,10 +143,10 @@ func (c *Config) UpdateSet(set *Set, v url.Values) error {
uri := fmt.Sprintf("%s/sets/%d", apiBaseURL, set.ID)
- _, err := resty.SetDebug(c.Debug).R().
+ _, err := resty.New().SetDebug(c.Debug).R().
SetHeader("Accept", "application/json").
SetAuthToken(c.AuthToken).
- SetMultiValueFormData(v).
+ SetFormDataFromValues(v).
SetResult(&newSet).
SetError(&e).
Put(uri) My contribution to a "migration guide" of the breaking API changes that affected me:
|
@moorereason Thanks for trying out I would like to mention one thing from your git diff above. Do not create Resty Client for every request. - _, err := resty.SetDebug(c.Debug).R().
+ _, err := resty.New().SetDebug(c.Debug).R().
Actually I do not have fixed timeline for now. I'm hoping I could make the |
All - I have just made a |
v2 Release notes draft is ready. Just finishing up final user request changes. Release NotesHow to get?go.mod
go get
How to use?import "github.com/go-resty/resty" New Features
Enhancements
Breaking Changes - Migrating v1.x to v2
|
I'm closing this one, preparing for v2 release. |
This issue is to provide
v2
release plan and track the migration guide from v1.x to v2.xRelease Plan:
v1
branch frommaster
branchv1
branch will be kept for critical bug fixes only for 6 months, no enhancements and no feature additionsv1
will be unsupported and locked down in 6 months from the date ofv2
releasev2
branch into the master branchv2.0.0
release from the master branchRelease Candidates:
v2.0.0-rc.1 is ready to try it out.
# add it go.mod github.com/go-resty/resty v2.0.0-rc.1
Migration Guide: (In-progress)
v2
brings https://github.com/go-resty/resty/issues?q=is%3Aclosed+milestone%3A%22v2.0.0+Milestone%22The text was updated successfully, but these errors were encountered: