Skip to content

v2.0.0

Compare
Choose a tag to compare
@k-capehart k-capehart released this 23 Jul 18:43
· 57 commits to main since this release
08e9683

What's Changed

  • InsertOne and UpsertOne now return an instance of SalesforceResult which contains record IDs for newly created records
  • Collection and Composite methods now return an instance of SalesforceResults which contains an array of SalesforceResult and a boolean HasSalesforceErrors
  • The BulkJobResults type has been updated to include new properties: SuccessfulRecords and FailedRecords
  • If Salesforce returns a 2xx response but includes record related errors, then do not return an error in the function
    • These errors should be handled by the client by parsing through SalesforceResult
    • There is a notable exception in that if a record related error is encountered for InsertOne, UpdateOne, UpsertOne, or DeleteOne, then a 4xx response is returned by Salesforce
  • These changes allow users to easily access record IDs of newly created records and better handle record related errors

New Contributors

Huge shoutout to @0cv for submitting #42 and doing the preliminary work, as well as to @ccoVeille for always being willing to review and make recommendations.

Full Changelog: v1.0.6...v1.0.7