fix(deps): update module github.com/k-capehart/go-salesforce/v2 to v3 #117
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.5.0
->v3.0.0
Release Notes
k-capehart/go-salesforce (github.com/k-capehart/go-salesforce/v2)
v3.0.0
Compare Source
Big Changes
We've made it to version 3.0! 🎉 These include some big changes to how configuration is handled as well as some notable deprecations.
Big shoutout to @mutovkin for the hard work in getting these new features.
Configuration during client initialization overhaul
func WithCompressionHeaders(compression bool) Option
- see docsfunc WithAPIVersion(version string) Option
- set API version manually instead of using defaultfunc WithBatchSizeMax(size int)
- for collections APIfunc WithBulkBatchSizeMax(size int) Option
- for Bulk APIfunc WithRoundTripper(rt http.RoundTripper) Option
- for http requestsfunc WithHTTPTimeout(timeout time.Duration) Option
- set custom timeoutfunc WithValidateAuthentication(validate bool) Option
- optionally skip validation during certain auth flowsExample:
See more examples: https://github.com/k-capehart/go-salesforce/tree/main/examples
Retrieve current configuration using one of these new methods:
func (sf *Salesforce) GetAPIVersion() string
func (sf *Salesforce) GetBatchSizeMax() int
func (sf *Salesforce) GetBulkBatchSizeMax() int
func (sf *Salesforce) GetCompressionHeaders() bool
func (sf *Salesforce) GetHTTPClient() *http.Client
The biggest new feature to come out of this is the ability add a round tripper with
WithRoundTripper()
, allowing you to hook in to what happens in between sending a request and receiving the response.There is additional documentation on this in a new markdown file here
There has also been a bug fix for using the Upsert methods with an external ID of type
int
orfloat64
. Before, this just wouldn't work but it plays nicely now.Updates to GitHub actions for formatting and linting enforcement and a new MAKEFILE for a much improved developer experience.
Deprecated
These methods and structs are no longer available.
salesforce.Config
- this is now a private struct so is inaccessiblesalesforce.Config.SetDefaults()
- defaults are set on initialization if specific overrides are not given.salesforce.Config.SetCompressionHeaders()
- this is now handled throughWithCompressionHeaders()
What's Changed
New Contributors
Full Changelog: k-capehart/go-salesforce@v2.5.2...v3.0.0
v2.5.2
Compare Source
What's Changed
DoRequest
by @parkerbxyz in #105DoRequest
method. Ex:New Contributors
Full Changelog: k-capehart/go-salesforce@v2.5.1...v2.5.2
v2.5.1
Compare Source
What's Changed
Full Changelog: k-capehart/go-salesforce@v2.5.0...v2.5.1
Configuration
📅 Schedule: Branch creation - Only on Monday, Wednesday, and Saturday ( * * * * 1,3,6 ) in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.