Skip to content

Commit

Permalink
Merge pull request forcedotcom#533 from wmathurin/dev
Browse files Browse the repository at this point in the history
Moving to v59.0
  • Loading branch information
wmathurin authored Dec 21, 2023
2 parents 22df99e + 87e36ca commit 2f38b2c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libs/force.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var force = (function () {

// The force.com API version to use.
// To override default, pass apiVersion in init(props)
apiVersion = 'v55.0',
apiVersion = 'v59.0',

// Keep track of OAuth data (access_token, refresh_token, instance_url and user_id)
oauth,
Expand Down
2 changes: 1 addition & 1 deletion samples/contactexplorer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


// The version of the REST API you wish to use in your app.
var apiVersion = "v55.0";
var apiVersion = "v59.0";

// If you want to prevent dragging, uncomment this section
/*
Expand Down
2 changes: 1 addition & 1 deletion samples/smartstoreexplorer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


// The version of the REST API you wish to use in your app.
var apiVersion = "v55.0";
var apiVersion = "v59.0";

// If you want to prevent dragging, uncomment this section
/*
Expand Down
10 changes: 5 additions & 5 deletions test/SFForceJSTestSuite.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if (typeof ForceJSTestSuite === 'undefined') {
*/
var ForceJSTestSuite = function () {
SFTestSuite.call(this, "forcejs");
this.apiVersion = "v55.0";
this.apiVersion = "v59.0";
};

// We are sub-classing SFTestSuite
Expand Down Expand Up @@ -82,10 +82,10 @@ ForceJSTestSuite.prototype.testParseUrl = function() {
{"protocol":"https:","host":"server.com:1234","hostname":"server.com","port":"1234","path":"/path1/path2","params":{a:"b",c:" d"},"hash":"#hashhash"})

// Real life examples
QUnit.deepEqual(force.parseUrl("https://cs1.salesforce.com/services/data/v55.0/query?q=select%20Id%2CName%20from%20Account%20where%20Id%20%3D%20'001S000000p8dcrIAA'"),
{"protocol":"https:","host":"cs1.salesforce.com","hostname":"cs1.salesforce.com","port":undefined,"path":"/services/data/v55.0/query","params":{"q":"select Id,Name from Account where Id = '001S000000p8dcrIAA'"},"hash":""});
QUnit.deepEqual(force.parseUrl("https://cs1.salesforce.com/services/data/v55.0/sobjects/Account/001S000000p8dccIAA?fields=Id%2CName"),
{"protocol":"https:","host":"cs1.salesforce.com","hostname":"cs1.salesforce.com","port":undefined,"path":"/services/data/v55.0/sobjects/Account/001S000000p8dccIAA","params":{"fields":"Id,Name"},"hash":""});
QUnit.deepEqual(force.parseUrl("https://cs1.salesforce.com/services/data/v59.0/query?q=select%20Id%2CName%20from%20Account%20where%20Id%20%3D%20'001S000000p8dcrIAA'"),
{"protocol":"https:","host":"cs1.salesforce.com","hostname":"cs1.salesforce.com","port":undefined,"path":"/services/data/v59.0/query","params":{"q":"select Id,Name from Account where Id = '001S000000p8dcrIAA'"},"hash":""});
QUnit.deepEqual(force.parseUrl("https://cs1.salesforce.com/services/data/v59.0/sobjects/Account/001S000000p8dccIAA?fields=Id%2CName"),
{"protocol":"https:","host":"cs1.salesforce.com","hostname":"cs1.salesforce.com","port":undefined,"path":"/services/data/v59.0/sobjects/Account/001S000000p8dccIAA","params":{"fields":"Id,Name"},"hash":""});

this.finalizeTest();
};
Expand Down

0 comments on commit 2f38b2c

Please sign in to comment.