Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 4, 2025

This PR contains the following updates:

Package Change Age Confidence
github.com/k-capehart/go-salesforce/v2 v2.5.0 -> v3.0.0 age confidence

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 docs
  • func WithAPIVersion(version string) Option - set API version manually instead of using default
  • func WithBatchSizeMax(size int) - for collections API
  • func WithBulkBatchSizeMax(size int) Option - for Bulk API
  • func WithRoundTripper(rt http.RoundTripper) Option - for http requests
  • func WithHTTPTimeout(timeout time.Duration) Option - set custom timeout
  • func WithValidateAuthentication(validate bool) Option - optionally skip validation during certain auth flows

Example:

sfCustom, err := salesforce.Init(creds,
  salesforce.WithAPIVersion("v58.0"),
  salesforce.WithBatchSizeMax(150),
  salesforce.WithBulkBatchSizeMax(8000),
  salesforce.WithCompressionHeaders(true),
)

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 or float64. 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 inaccessible
  • salesforce.Config.SetDefaults() - defaults are set on initialization if specific overrides are not given.
  • salesforce.Config.SetCompressionHeaders() - this is now handled through WithCompressionHeaders()

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

  • fix(deps): bump k8s.io/apimachinery from 0.33.0 to 0.33.2 in the dependencies group by @​dependabot[bot] in #​103
  • Add support for custom headers in DoRequest by @​parkerbxyz in #​105
    • Add custom headers to the DoRequest method. Ex:
resp, err := sf.DoRequest("GET", "/sobjects/Account/describe", nil,
    WithHeader("If-Modified-Since", "Wed, 21 Oct 2015 07:28:00 GMT"),
    WithHeader("Accept-Language", "en-US"))

New Contributors

Full Changelog: k-capehart/go-salesforce@v2.5.1...v2.5.2

v2.5.1

Compare Source

What's Changed

  • fix(deps): bump github.com/go-viper/mapstructure/v2 from 2.2.1 to 2.3.0 by @​dependabot in #​102
  • fix(deps): bump k8s.io/apimachinery from 0.32.3 to 0.33.0 in the dependencies group by @​dependabot in #​101

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Oct 4, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -t ./...
go: module github.com/k-capehart/go-salesforce/v3@v3.0.0 requires go >= 1.24.5; switching to go1.24.9
go: downloading go1.24.9 (linux/amd64)
go: download go1.24.9: golang.org/toolchain@v0.0.1-go1.24.9.linux-amd64: verifying module: checksum database disabled by GOSUMDB=off

@renovate renovate bot requested a review from a team as a code owner October 4, 2025 06:03
@renovate renovate bot force-pushed the renovate/major-go-deps branch from c0f9641 to c9810d9 Compare October 8, 2025 05:30
@renovate renovate bot force-pushed the renovate/major-go-deps branch from c9810d9 to 563e502 Compare October 8, 2025 05:36
@renovate renovate bot force-pushed the renovate/major-go-deps branch from 563e502 to 2eef380 Compare October 8, 2025 12:38
@renovate renovate bot force-pushed the renovate/major-go-deps branch from 2eef380 to 6cefcca Compare October 9, 2025 09:05
@renovate renovate bot force-pushed the renovate/major-go-deps branch from 6cefcca to 1cb4d7b Compare October 11, 2025 02:43
@renovate renovate bot force-pushed the renovate/major-go-deps branch from 1cb4d7b to 5e6a511 Compare October 11, 2025 02:49
@renovate renovate bot force-pushed the renovate/major-go-deps branch from 5e6a511 to 468bd1e Compare October 15, 2025 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant