@salesforce/lds-runtime-bridge 1.273.0 → 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.
- package/dist/ldsRuntimeBridge.js +4 -12
- package/package.json +8 -8
package/dist/ldsRuntimeBridge.js
CHANGED
|
@@ -2882,7 +2882,7 @@ function buildQuery(config) {
|
|
|
2882
2882
|
SELECT "${config.alias}".data
|
|
2883
2883
|
FROM lds_data "${config.alias}" ${joins.sql}
|
|
2884
2884
|
WHERE "${config.alias}".key like 'UiApi::RecordRepresentation:%'
|
|
2885
|
-
AND json_extract("${config.alias}".data, '${JSON_EXTRACT_PATH_INGESTION_APINAME}') =
|
|
2885
|
+
AND json_extract("${config.alias}".data, '${JSON_EXTRACT_PATH_INGESTION_APINAME}') = '${config.alias}'
|
|
2886
2886
|
${staleRecordsSql}
|
|
2887
2887
|
${predicates.sql}
|
|
2888
2888
|
${orderBy.sql}
|
|
@@ -2894,8 +2894,6 @@ function buildQuery(config) {
|
|
|
2894
2894
|
const bindings = [
|
|
2895
2895
|
// bindings from predicates on joins
|
|
2896
2896
|
...joins.bindings,
|
|
2897
|
-
// the api name for the main record type
|
|
2898
|
-
config.alias,
|
|
2899
2897
|
...(excludeStaleRecordsGate.isOpen({ fallback: false }) ? [config.ingestionTimestamp] : []),
|
|
2900
2898
|
// where clause and parent scope bindings
|
|
2901
2899
|
...predicates.bindings,
|
|
@@ -3032,11 +3030,7 @@ function findFieldInfo(objectInfo, fieldName) {
|
|
|
3032
3030
|
}
|
|
3033
3031
|
async function readIngestionTimestampForKey(key, query) {
|
|
3034
3032
|
let ingestionTimestamp = 0;
|
|
3035
|
-
const sql = `
|
|
3036
|
-
SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}')
|
|
3037
|
-
FROM lds_data
|
|
3038
|
-
WHERE key IS ?
|
|
3039
|
-
`;
|
|
3033
|
+
const sql = `SELECT json_extract(metadata, '${JSON_EXTRACT_PATH_INGESTION_TIMESTAMP}') FROM lds_data WHERE key IS ?`;
|
|
3040
3034
|
const results = await query(sql, [key]);
|
|
3041
3035
|
const [timestamp] = results.rows.map((row) => row[0]);
|
|
3042
3036
|
if (timestamp !== null) {
|
|
@@ -3044,9 +3038,7 @@ async function readIngestionTimestampForKey(key, query) {
|
|
|
3044
3038
|
if (isNaN(numericalTimestamp)) {
|
|
3045
3039
|
return ingestionTimestamp;
|
|
3046
3040
|
}
|
|
3047
|
-
|
|
3048
|
-
// 30s is used because this is the default record TTL
|
|
3049
|
-
ingestionTimestamp = numericalTimestamp - 30000;
|
|
3041
|
+
ingestionTimestamp = numericalTimestamp;
|
|
3050
3042
|
}
|
|
3051
3043
|
return ingestionTimestamp;
|
|
3052
3044
|
}
|
|
@@ -4012,4 +4004,4 @@ function ldsRuntimeBridge() {
|
|
|
4012
4004
|
}
|
|
4013
4005
|
|
|
4014
4006
|
export { ldsRuntimeBridge as default };
|
|
4015
|
-
// version: 1.
|
|
4007
|
+
// version: 1.274.0-67da496e8
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.274.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for bridge.app.",
|
|
6
6
|
"main": "dist/ldsRuntimeBridge.js",
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-bridge"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
38
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
37
|
+
"@salesforce/lds-adapters-uiapi": "^1.274.0",
|
|
38
|
+
"@salesforce/lds-instrumentation": "^1.274.0",
|
|
39
39
|
"@salesforce/user": "0.0.21",
|
|
40
40
|
"o11y": "244.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@salesforce/lds-drafts-adapters-uiapi": "^1.
|
|
44
|
-
"@salesforce/lds-network-aura": "^1.
|
|
45
|
-
"@salesforce/lds-runtime-aura": "^1.
|
|
46
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
47
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
43
|
+
"@salesforce/lds-drafts-adapters-uiapi": "^1.274.0",
|
|
44
|
+
"@salesforce/lds-network-aura": "^1.274.0",
|
|
45
|
+
"@salesforce/lds-runtime-aura": "^1.274.0",
|
|
46
|
+
"@salesforce/lds-store-nimbus": "^1.274.0",
|
|
47
|
+
"@salesforce/nimbus-plugin-lds": "^1.274.0",
|
|
48
48
|
"babel-plugin-dynamic-import-node": "^2.3.3"
|
|
49
49
|
},
|
|
50
50
|
"luvioBundlesize": [
|