Skip to content

Commit 2ac9091

Browse files
authored
Merge pull request #224 from beyond-the-cloud-dev/release/v6.3.0
release v6.3.0
2 parents 235822a + 869a538 commit 2ac9091

File tree

8 files changed

+50
-49
lines changed

8 files changed

+50
-49
lines changed

force-app/main/default/classes/cached-soql/SOQLCache.cls

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) 2025 Beyond The Cloud Sp. z o.o. (BeyondTheCloud.Dev)
33
* Licensed under the MIT License (https://github.com/beyond-the-cloud-dev/soql-lib/blob/main/LICENSE)
44
*
5-
* v6.2.0
5+
* v6.3.0
66
*
77
* PMD False Positives:
88
* - ExcessivePublicCount: It is a library class and exposes all necessary methods to construct a query
@@ -15,20 +15,20 @@
1515
* - ExcessiveParameterList: Make methods similar to native SOQL
1616
**/
1717
@SuppressWarnings('PMD.ExcessivePublicCount,PMD.ExcessiveClassLength,PMD.CyclomaticComplexity,PMD.CognitiveComplexity,PMD.PropertyNamingConventions,PMD.FieldDeclarationsShouldBeAtStart,PMD.ApexDoc,PMD.ExcessiveParameterList')
18-
public virtual inherited sharing class SOQLCache implements Cacheable {
19-
public interface Selector {
18+
global virtual inherited sharing class SOQLCache implements Cacheable {
19+
global interface Selector {
2020
Cacheable query();
2121
}
2222

23-
public static Cacheable of(SObjectType ofObject) {
23+
global static Cacheable of(SObjectType ofObject) {
2424
return new SOQLCache(ofObject);
2525
}
2626

27-
public static Cacheable of(String ofObject) {
27+
global static Cacheable of(String ofObject) {
2828
return new SOQLCache(ofObject);
2929
}
3030

31-
public interface Cacheable {
31+
global interface Cacheable {
3232
// CONFIG
3333
Cacheable cacheInApexTransaction();
3434
Cacheable cacheInOrgCache();
@@ -75,13 +75,13 @@ public virtual inherited sharing class SOQLCache implements Cacheable {
7575
return null;
7676
}
7777

78-
public virtual List<SObjectField> additionalAllowedConditionFields() {
78+
protected virtual List<SObjectField> additionalAllowedConditionFields() {
7979
return new List<SObjectField>();
8080
}
8181

8282
// Mocking
8383

84-
public interface Mockable {
84+
global interface Mockable {
8585
// SObject
8686
void thenReturn(SObject record);
8787
}
@@ -95,7 +95,7 @@ public virtual inherited sharing class SOQLCache implements Cacheable {
9595
return SOQLCache.queryIdToMock.get(mockId).get(SOQLCache.queryIdToMock.get(mockId).size() - 1);
9696
}
9797

98-
public static void removeFromCache(List<SObject> records) {
98+
global static void removeFromCache(List<SObject> records) {
9999
if (records.isEmpty()) {
100100
return;
101101
}
@@ -124,8 +124,8 @@ public virtual inherited sharing class SOQLCache implements Cacheable {
124124
private Executor executor;
125125
private Cache cache;
126126

127-
public SOQL.Queryable initialQuery = null;
128-
public SOQL.Queryable currentQuery = null;
127+
private SOQL.Queryable initialQuery = null;
128+
private SOQL.Queryable currentQuery = null;
129129

130130
protected SOQLCache(SObjectType ofObject) {
131131
this(ofObject.toString());

force-app/main/default/classes/cached-soql/SOQLCache_Test.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2025 Beyond The Cloud Sp. z o.o. (BeyondTheCloud.Dev)
44
* Licensed under the MIT License (https://github.com/beyond-the-cloud-dev/soql-lib/blob/main/LICENSE)
55
*
6-
* v6.2.0
6+
* v6.3.0
77
*
88
* PMD False Positives:
99
* - CyclomaticComplexity: It is a library and we tried to put everything into ONE test class

force-app/main/default/classes/soql-evaluator/SOQLEvaluator.cls

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
* Copyright (c) 2025 Beyond The Cloud Sp. z o.o. (BeyondTheCloud.Dev)
33
* Licensed under the MIT License (https://github.com/beyond-the-cloud-dev/soql-lib/blob/main/LICENSE)
44
*
5-
* v6.2.0
5+
* v6.3.0
66
*
77
* PMD False Positives:
88
* - CognitiveComplexity: It is a library and we tried to put everything into ONE class
99
* - ApexDoc: Variable names are self-documented.
1010
**/
1111
@SuppressWarnings('PMD.CognitiveComplexity,PMD.ApexDoc')
12-
public inherited sharing class SOQLEvaluator {
13-
public static SObjectEvaluable of(List<SObject> staticQueryRecords) {
12+
global inherited sharing class SOQLEvaluator {
13+
global static SObjectEvaluable of(List<SObject> staticQueryRecords) {
1414
return new SObjectEvaluator(staticQueryRecords);
1515
}
1616

17-
public interface SObjectEvaluable {
17+
global interface SObjectEvaluable {
1818
// FIELD-LEVEL SECURITY
1919
SObjectEvaluable stripInaccessible();
2020
SObjectEvaluable stripInaccessible(AccessType accessType);
@@ -40,7 +40,7 @@ public inherited sharing class SOQLEvaluator {
4040
Map<String, List<String>> toAggregatedMap(SObjectField keyField, String relationshipName, SObjectField targetKeyField);
4141
}
4242

43-
public interface Mockable {
43+
global interface Mockable {
4444
// SObject
4545
Mockable thenReturn(SObject record);
4646
Mockable thenReturn(List<SObject> records);

force-app/main/default/classes/soql-evaluator/SOQLEvaluator_Test.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2025 Beyond The Cloud Sp. z o.o. (BeyondTheCloud.Dev)
44
* Licensed under the MIT License (https://github.com/beyond-the-cloud-dev/soql-lib/blob/main/LICENSE)
55
*
6-
* v6.2.0
6+
* v6.3.0
77
*
88
* PMD False Positives:
99
* - CyclomaticComplexity: It is a library and we tried to put everything into ONE test class

force-app/main/default/classes/standard-soql/SOQL.cls

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright (c) 2025 Beyond The Cloud Sp. z o.o. (BeyondTheCloud.Dev)
33
* Licensed under the MIT License (https://github.com/beyond-the-cloud-dev/soql-lib/blob/main/LICENSE)
44
*
5-
* v6.2.0
5+
* v6.3.0
66
*
77
* PMD False Positives:
88
* - ExcessivePublicCount: It is a library class and exposes all necessary methods to construct a query
@@ -17,20 +17,20 @@
1717
* - NcssTypeCount: It is a library and we tried to put everything into ONE class
1818
**/
1919
@SuppressWarnings('PMD.ExcessivePublicCount,PMD.ExcessiveClassLength,PMD.FieldNamingConventions,PMD.CyclomaticComplexity,PMD.CognitiveComplexity,PMD.PropertyNamingConventions,PMD.FieldDeclarationsShouldBeAtStart,PMD.ApexDoc,PMD.ExcessiveParameterList,PMD.NcssTypeCount')
20-
public virtual inherited sharing class SOQL implements Queryable {
21-
public interface Selector {
20+
global virtual inherited sharing class SOQL implements Queryable {
21+
global interface Selector {
2222
Queryable query();
2323
}
2424

25-
public static Queryable of(SObjectType ofObject) {
25+
global static Queryable of(SObjectType ofObject) {
2626
return new SOQL(ofObject);
2727
}
2828

29-
public static Queryable of(String ofObject) {
29+
global static Queryable of(String ofObject) {
3030
return new SOQL(ofObject);
3131
}
3232

33-
public interface Queryable {
33+
global interface Queryable {
3434
// SELECT
3535
Queryable with(SObjectField field);
3636
Queryable with(SObjectField field1, SObjectField field2);
@@ -194,7 +194,7 @@ public virtual inherited sharing class SOQL implements Queryable {
194194
Map<String, Object> binding();
195195
}
196196

197-
public interface SubQuery {
197+
global interface SubQuery {
198198
SubQuery of(String ofObject);
199199
// SELECT
200200
SubQuery with(SObjectField field);
@@ -227,7 +227,7 @@ public virtual inherited sharing class SOQL implements Queryable {
227227
String getChildRelationshipName();
228228
}
229229

230-
public interface FilterGroup {
230+
global interface FilterGroup {
231231
// ADD CONDITION
232232
FilterGroup add(FilterGroup filterGroup);
233233
FilterGroup add(Filter filter);
@@ -243,7 +243,7 @@ public virtual inherited sharing class SOQL implements Queryable {
243243
Boolean hasValues();
244244
}
245245

246-
public interface Filter {
246+
global interface Filter {
247247
// FIELDS
248248
Filter id();
249249
Filter recordType();
@@ -286,7 +286,7 @@ public virtual inherited sharing class SOQL implements Queryable {
286286
Boolean hasValue();
287287
}
288288

289-
public interface InnerJoin {
289+
global interface InnerJoin {
290290
InnerJoin of(SObjectType ofObject);
291291
// SELECT
292292
InnerJoin with(SObjectField field);
@@ -295,7 +295,7 @@ public virtual inherited sharing class SOQL implements Queryable {
295295
InnerJoin whereAre(Filter filter);
296296
}
297297

298-
public interface HavingFilterGroup {
298+
global interface HavingFilterGroup {
299299
// ADD CONDITION
300300
HavingFilterGroup add(HavingFilterGroup havingFilterGroup);
301301
HavingFilterGroup add(HavingFilter havingFilter);
@@ -307,7 +307,7 @@ public virtual inherited sharing class SOQL implements Queryable {
307307
Boolean hasValues();
308308
}
309309

310-
public interface HavingFilter {
310+
global interface HavingFilter {
311311
// FIELDS
312312
HavingFilter with(SObjectField field);
313313
HavingFilter with(String field);
@@ -342,11 +342,11 @@ public virtual inherited sharing class SOQL implements Queryable {
342342
Boolean hasValue();
343343
}
344344

345-
public interface DataCategoryFilterGroup {
345+
global interface DataCategoryFilterGroup {
346346
DataCategoryFilterGroup add(DataCategoryFilter dataCategoryFilter);
347347
}
348348

349-
public interface DataCategoryFilter {
349+
global interface DataCategoryFilter {
350350
// FIELDS
351351
DataCategoryFilter with(String field);
352352
// COMPARATORS
@@ -362,36 +362,36 @@ public virtual inherited sharing class SOQL implements Queryable {
362362
Boolean hasValue();
363363
}
364364

365-
public interface AggregateResultProxy {
365+
global interface AggregateResultProxy {
366366
Object get(String field);
367367
Map<String, Object> getPopulatedFieldsAsMap();
368368
}
369369

370-
public static SubQuery SubQuery {
370+
global static SubQuery SubQuery {
371371
get { return new SoqlSubQuery(); }
372372
}
373373

374-
public static FilterGroup FilterGroup {
374+
global static FilterGroup FilterGroup {
375375
get { return new SoqlFilterGroup(); }
376376
}
377377

378-
public static Filter Filter {
378+
global static Filter Filter {
379379
get { return new SoqlFilter(); }
380380
}
381381

382-
public static InnerJoin InnerJoin {
382+
global static InnerJoin InnerJoin {
383383
get { return new SoqlJoinQuery(); }
384384
}
385385

386-
public static HavingFilterGroup HavingFilterGroup {
386+
global static HavingFilterGroup HavingFilterGroup {
387387
get { return new SoqlHavingFilterGroup(); }
388388
}
389389

390-
public static HavingFilter HavingFilter {
390+
global static HavingFilter HavingFilter {
391391
get { return new SoqlHavingFilter(); }
392392
}
393393

394-
public static DataCategoryFilter DataCategoryFilter {
394+
global static DataCategoryFilter DataCategoryFilter {
395395
get { return new SoqlDataCategoryFilter(); }
396396
}
397397

@@ -408,7 +408,7 @@ public virtual inherited sharing class SOQL implements Queryable {
408408

409409
public static RandomIdGenerator IdGenerator = new RandomIdGenerator();
410410

411-
public interface Mockable {
411+
global interface Mockable {
412412
// SObject
413413
Mockable thenReturn(SObject record);
414414
Mockable thenReturn(List<SObject> records);

force-app/main/default/classes/standard-soql/SOQL_Test.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2025 Beyond The Cloud Sp. z o.o. (BeyondTheCloud.Dev)
44
* Licensed under the MIT License (https://github.com/beyond-the-cloud-dev/soql-lib/blob/main/LICENSE)
55
*
6-
* v6.2.0
6+
* v6.3.0
77
*
88
* PMD False Positives:
99
* - CyclomaticComplexity: It is a library and we tried to put everything into ONE test class

sfdx-project.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"packageDirectories": [
33
{
4-
"versionName": "SOQL Lib 6.3.0",
5-
"versionNumber": "6.3.0.NEXT",
4+
"versionName": "SOQL Lib 6.4.0",
5+
"versionNumber": "6.4.0.NEXT",
66
"path": "force-app",
77
"default": true,
88
"package": "SOQL Lib",
@@ -20,6 +20,7 @@
2020
"packageAliases": {
2121
"SOQL Lib": "0HoP6000000010vKAA",
2222
"SOQL [email protected]": "04tP60000023Vm5IAE",
23-
"SOQL [email protected]": "04tP60000023VnhIAE"
23+
"SOQL [email protected]": "04tP60000023VnhIAE",
24+
"SOQL [email protected]": "04tP60000025mHNIAY"
2425
}
25-
}
26+
}

website/docs/docs/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ sidebar_position: 20
1414

1515
Install the SOQL Lib unlocked package with `btcdev` namespace to your Salesforce environment:
1616

17-
`/packaging/installPackage.apexp?p0=04tP60000023VnhIAE`
17+
`/packaging/installPackage.apexp?p0=04tP60000025mHNIAY`
1818

19-
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tP60000023VnhIAE" target="_blank" style={{display: 'inline-block', backgroundColor: '#1976d2', color: 'white', padding: '10px 20px', textDecoration: 'none', borderRadius: '4px', marginRight: '10px'}}>
19+
<a href="https://test.salesforce.com/packaging/installPackage.apexp?p0=04tP60000025mHNIAY" target="_blank" style={{display: 'inline-block', backgroundColor: '#1976d2', color: 'white', padding: '10px 20px', textDecoration: 'none', borderRadius: '4px', marginRight: '10px'}}>
2020
<p style={{margin: '0px'}}>Install on Sandbox</p>
2121
</a>
2222

23-
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tP60000023VnhIAE" target="_blank" style={{display: 'inline-block', backgroundColor: '#d32f2f', color: 'white', padding: '10px 20px', textDecoration: 'none', borderRadius: '4px'}}>
23+
<a href="https://login.salesforce.com/packaging/installPackage.apexp?p0=04tP60000025mHNIAY" target="_blank" style={{display: 'inline-block', backgroundColor: '#d32f2f', color: 'white', padding: '10px 20px', textDecoration: 'none', borderRadius: '4px'}}>
2424
<p style={{margin: '0px'}}>Install on Production</p>
2525
</a>
2626

0 commit comments

Comments
 (0)