@salesforce/lds-runtime-mobile 1.129.0 → 1.129.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -6872,9 +6872,18 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
6872
6872
  const makePredicate = fieldInfo.dataType === 'MultiPicklist'
6873
6873
  ? createMultiPicklistPredicate
6874
6874
  : createSinglePredicate;
6875
- predicates.push(makePredicate(idProcessingNeeded
6876
- ? sanitizePredicateIDValue(value, draftFunctions)
6877
- : value, operator, fieldInfo, alias));
6875
+ const predicate = makePredicate(idProcessingNeeded ? sanitizePredicateIDValue(value, draftFunctions) : value, operator, fieldInfo, alias);
6876
+ // for the case where we have a not equals predicate that's value is not null
6877
+ // we need to compound into an or statement to also inlcude the null values for that field
6878
+ if (operator === '!=' && typeof value === 'string') {
6879
+ // create a is null predicate
6880
+ const isNullPredicate = createSinglePredicate(null, '=', fieldInfo, alias);
6881
+ // compound the predicates into an or predicate
6882
+ predicates.push(transformCompoundPredicate('or', [predicate, isNullPredicate]));
6883
+ }
6884
+ else {
6885
+ predicates.push(predicate);
6886
+ }
6878
6887
  }
6879
6888
  }
6880
6889
  }
@@ -15627,4 +15636,4 @@ register({
15627
15636
  });
15628
15637
 
15629
15638
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15630
- // version: 1.129.0-caa83ed0e
15639
+ // version: 1.129.1-eb59a8867
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.129.0",
3
+ "version": "1.129.1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
package/sfdc/main.js CHANGED
@@ -6872,9 +6872,18 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
6872
6872
  const makePredicate = fieldInfo.dataType === 'MultiPicklist'
6873
6873
  ? createMultiPicklistPredicate
6874
6874
  : createSinglePredicate;
6875
- predicates.push(makePredicate(idProcessingNeeded
6876
- ? sanitizePredicateIDValue(value, draftFunctions)
6877
- : value, operator, fieldInfo, alias));
6875
+ const predicate = makePredicate(idProcessingNeeded ? sanitizePredicateIDValue(value, draftFunctions) : value, operator, fieldInfo, alias);
6876
+ // for the case where we have a not equals predicate that's value is not null
6877
+ // we need to compound into an or statement to also inlcude the null values for that field
6878
+ if (operator === '!=' && typeof value === 'string') {
6879
+ // create a is null predicate
6880
+ const isNullPredicate = createSinglePredicate(null, '=', fieldInfo, alias);
6881
+ // compound the predicates into an or predicate
6882
+ predicates.push(transformCompoundPredicate('or', [predicate, isNullPredicate]));
6883
+ }
6884
+ else {
6885
+ predicates.push(predicate);
6886
+ }
6878
6887
  }
6879
6888
  }
6880
6889
  }
@@ -15627,4 +15636,4 @@ register({
15627
15636
  });
15628
15637
 
15629
15638
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15630
- // version: 1.129.0-caa83ed0e
15639
+ // version: 1.129.1-eb59a8867