@salesforce/lds-runtime-mobile 1.124.9 → 1.126.0

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
@@ -6343,7 +6343,7 @@ const { isArray: isArray$2 } = Array;
6343
6343
  function recordLoaderFactory(query) {
6344
6344
  async function batchRecordQuery(ids) {
6345
6345
  const varbinds = Array(ids.length).fill('?').join(',');
6346
- const { rows } = await query(`select data from lds_data where json_extract(data,'$.id') in (${varbinds})`, ids);
6346
+ const { rows } = await query(`select data from lds_data where key like 'UiApi::RecordRepresentation:%' and json_extract(data,'$.id') in (${varbinds})`, ids);
6347
6347
  return ids.map((id) => {
6348
6348
  let foundRow = null;
6349
6349
  rows.forEach((row) => {
@@ -6663,6 +6663,9 @@ function dateTimePredicate(input, operator, field, alias) {
6663
6663
  isCaseSensitive: false,
6664
6664
  };
6665
6665
  if (value !== undefined) {
6666
+ const dateFn = field.dataType === 'Date' ? 'date' : 'datetime';
6667
+ predicate.value = `${dateFn}(?)`;
6668
+ predicate.bindings = [value];
6666
6669
  return predicate;
6667
6670
  }
6668
6671
  else if (literal !== undefined) {
@@ -15622,4 +15625,4 @@ register({
15622
15625
  });
15623
15626
 
15624
15627
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15625
- // version: 1.124.9-49feaf8ed
15628
+ // version: 1.126.0-86fa082d1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.124.9",
3
+ "version": "1.126.0",
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
@@ -6343,7 +6343,7 @@ const { isArray: isArray$2 } = Array;
6343
6343
  function recordLoaderFactory(query) {
6344
6344
  async function batchRecordQuery(ids) {
6345
6345
  const varbinds = Array(ids.length).fill('?').join(',');
6346
- const { rows } = await query(`select data from lds_data where json_extract(data,'$.id') in (${varbinds})`, ids);
6346
+ const { rows } = await query(`select data from lds_data where key like 'UiApi::RecordRepresentation:%' and json_extract(data,'$.id') in (${varbinds})`, ids);
6347
6347
  return ids.map((id) => {
6348
6348
  let foundRow = null;
6349
6349
  rows.forEach((row) => {
@@ -6663,6 +6663,9 @@ function dateTimePredicate(input, operator, field, alias) {
6663
6663
  isCaseSensitive: false,
6664
6664
  };
6665
6665
  if (value !== undefined) {
6666
+ const dateFn = field.dataType === 'Date' ? 'date' : 'datetime';
6667
+ predicate.value = `${dateFn}(?)`;
6668
+ predicate.bindings = [value];
6666
6669
  return predicate;
6667
6670
  }
6668
6671
  else if (literal !== undefined) {
@@ -15622,4 +15625,4 @@ register({
15622
15625
  });
15623
15626
 
15624
15627
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15625
- // version: 1.124.9-49feaf8ed
15628
+ // version: 1.126.0-86fa082d1