@salesforce/lds-runtime-mobile 1.273.1 → 1.274.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.
Files changed (3) hide show
  1. package/dist/main.js +4 -12
  2. package/package.json +16 -16
  3. package/sfdc/main.js +4 -12
package/dist/main.js CHANGED
@@ -4400,9 +4400,7 @@ function rootRecordQuery(selection, input) {
4400
4400
  if (queryMetadata !== undefined && queryMetadata.ingestionTimestamp !== undefined) {
4401
4401
  const timestamp = Number(queryMetadata.ingestionTimestamp);
4402
4402
  if (!isNaN(timestamp)) {
4403
- // adjust the timestamp to account for ingestion processing time
4404
- // 30s is used because this is the default record TTL
4405
- input.rootTimestamp = timestamp - 30000;
4403
+ input.rootTimestamp = timestamp;
4406
4404
  }
4407
4405
  }
4408
4406
  }
@@ -9068,11 +9066,7 @@ function findFieldInfo(objectInfo, fieldName) {
9068
9066
  }
9069
9067
  async function readIngestionTimestampForKey(key, query) {
9070
9068
  let ingestionTimestamp = 0;
9071
- const sql = `
9072
- SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}')
9073
- FROM lds_data
9074
- WHERE key IS ?
9075
- `;
9069
+ const sql = `SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}') FROM lds_data WHERE key IS ?`;
9076
9070
  const results = await query(sql, [key]);
9077
9071
  const [timestamp] = results.rows.map((row) => row[0]);
9078
9072
  if (timestamp !== null) {
@@ -9080,9 +9074,7 @@ async function readIngestionTimestampForKey(key, query) {
9080
9074
  if (isNaN(numericalTimestamp)) {
9081
9075
  return ingestionTimestamp;
9082
9076
  }
9083
- // adjust the timestamp to account for ingestion processing time
9084
- // 30s is used because this is the default record TTL
9085
- ingestionTimestamp = numericalTimestamp - 30000;
9077
+ ingestionTimestamp = numericalTimestamp;
9086
9078
  }
9087
9079
  return ingestionTimestamp;
9088
9080
  }
@@ -17968,4 +17960,4 @@ register({
17968
17960
  });
17969
17961
 
17970
17962
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, registerReportObserver, reportGraphqlQueryParseError };
17971
- // version: 1.273.1-37fe48f59
17963
+ // version: 1.274.0-67da496e8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.273.1",
3
+ "version": "1.274.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
@@ -32,25 +32,25 @@
32
32
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
33
33
  },
34
34
  "dependencies": {
35
- "@salesforce/lds-adapters-uiapi": "^1.273.1",
36
- "@salesforce/lds-bindings": "^1.273.1",
37
- "@salesforce/lds-instrumentation": "^1.273.1",
38
- "@salesforce/lds-priming": "^1.273.1",
35
+ "@salesforce/lds-adapters-uiapi": "^1.274.0",
36
+ "@salesforce/lds-bindings": "^1.274.0",
37
+ "@salesforce/lds-instrumentation": "^1.274.0",
38
+ "@salesforce/lds-priming": "^1.274.0",
39
39
  "@salesforce/user": "0.0.21",
40
40
  "o11y": "244.0.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@salesforce/lds-adapters-graphql": "^1.273.1",
44
- "@salesforce/lds-drafts": "^1.273.1",
45
- "@salesforce/lds-drafts-adapters-uiapi": "^1.273.1",
46
- "@salesforce/lds-graphql-eval": "^1.273.1",
47
- "@salesforce/lds-network-adapter": "^1.273.1",
48
- "@salesforce/lds-network-nimbus": "^1.273.1",
49
- "@salesforce/lds-store-binary": "^1.273.1",
50
- "@salesforce/lds-store-nimbus": "^1.273.1",
51
- "@salesforce/lds-store-sql": "^1.273.1",
52
- "@salesforce/lds-utils-adapters": "^1.273.1",
53
- "@salesforce/nimbus-plugin-lds": "^1.273.1",
43
+ "@salesforce/lds-adapters-graphql": "^1.274.0",
44
+ "@salesforce/lds-drafts": "^1.274.0",
45
+ "@salesforce/lds-drafts-adapters-uiapi": "^1.274.0",
46
+ "@salesforce/lds-graphql-eval": "^1.274.0",
47
+ "@salesforce/lds-network-adapter": "^1.274.0",
48
+ "@salesforce/lds-network-nimbus": "^1.274.0",
49
+ "@salesforce/lds-store-binary": "^1.274.0",
50
+ "@salesforce/lds-store-nimbus": "^1.274.0",
51
+ "@salesforce/lds-store-sql": "^1.274.0",
52
+ "@salesforce/lds-utils-adapters": "^1.274.0",
53
+ "@salesforce/nimbus-plugin-lds": "^1.274.0",
54
54
  "babel-plugin-dynamic-import-node": "^2.3.3",
55
55
  "wait-for-expect": "^3.0.2"
56
56
  },
package/sfdc/main.js CHANGED
@@ -4400,9 +4400,7 @@ function rootRecordQuery(selection, input) {
4400
4400
  if (queryMetadata !== undefined && queryMetadata.ingestionTimestamp !== undefined) {
4401
4401
  const timestamp = Number(queryMetadata.ingestionTimestamp);
4402
4402
  if (!isNaN(timestamp)) {
4403
- // adjust the timestamp to account for ingestion processing time
4404
- // 30s is used because this is the default record TTL
4405
- input.rootTimestamp = timestamp - 30000;
4403
+ input.rootTimestamp = timestamp;
4406
4404
  }
4407
4405
  }
4408
4406
  }
@@ -9068,11 +9066,7 @@ function findFieldInfo(objectInfo, fieldName) {
9068
9066
  }
9069
9067
  async function readIngestionTimestampForKey(key, query) {
9070
9068
  let ingestionTimestamp = 0;
9071
- const sql = `
9072
- SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}')
9073
- FROM lds_data
9074
- WHERE key IS ?
9075
- `;
9069
+ const sql = `SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}') FROM lds_data WHERE key IS ?`;
9076
9070
  const results = await query(sql, [key]);
9077
9071
  const [timestamp] = results.rows.map((row) => row[0]);
9078
9072
  if (timestamp !== null) {
@@ -9080,9 +9074,7 @@ async function readIngestionTimestampForKey(key, query) {
9080
9074
  if (isNaN(numericalTimestamp)) {
9081
9075
  return ingestionTimestamp;
9082
9076
  }
9083
- // adjust the timestamp to account for ingestion processing time
9084
- // 30s is used because this is the default record TTL
9085
- ingestionTimestamp = numericalTimestamp - 30000;
9077
+ ingestionTimestamp = numericalTimestamp;
9086
9078
  }
9087
9079
  return ingestionTimestamp;
9088
9080
  }
@@ -17968,4 +17960,4 @@ register({
17968
17960
  });
17969
17961
 
17970
17962
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, registerReportObserver, reportGraphqlQueryParseError };
17971
- // version: 1.273.1-37fe48f59
17963
+ // version: 1.274.0-67da496e8