@salesforce/core 2.31.1 → 2.32.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/CHANGELOG.md +10 -0
- package/lib/connection.js +3 -2
- package/lib/status/streamingClient.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.32.0](https://github.com/forcedotcom/sfdx-core/compare/v2.31.1...v2.32.0) (2021-12-14)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- switch sfdx-faye with faye ([a0545e5](https://github.com/forcedotcom/sfdx-core/commit/a0545e57d5041c97e499f284afbd7fcb16cf2247))
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- no maxquery warning when records.length is 0 ([758f912](https://github.com/forcedotcom/sfdx-core/commit/758f912a23bd3e9f8d4f854f3e07682dd4d4c4aa))
|
|
14
|
+
|
|
5
15
|
### [2.31.1](https://github.com/forcedotcom/sfdx-core/compare/v2.31.0...v2.31.1) (2021-12-06)
|
|
6
16
|
|
|
7
17
|
## [2.31.0](https://github.com/forcedotcom/sfdx-core/compare/v2.30.1...v2.31.0) (2021-11-30)
|
package/lib/connection.js
CHANGED
|
@@ -355,8 +355,9 @@ class Connection extends jsforce_1.Connection {
|
|
|
355
355
|
.on('record', (rec) => records.push(rec))
|
|
356
356
|
.on('error', (err) => reject(err))
|
|
357
357
|
.on('end', () => {
|
|
358
|
-
const totalSize = ts_types_1.getNumber(query, 'totalSize'
|
|
359
|
-
|
|
358
|
+
const totalSize = ts_types_1.getNumber(query, 'totalSize', 0);
|
|
359
|
+
// records.legnth can be 0 in count() query, but totalSize is bigger.
|
|
360
|
+
if (records.length && totalSize > records.length) {
|
|
360
361
|
void lifecycleEvents_1.Lifecycle.getInstance().emitWarning(`The query result is missing ${totalSize - records.length} records due to a ${maxFetch} record limit. Increase the number of records returned by setting the config value "maxQueryLimit" or the environment variable "SFDX_MAX_QUERY_LIMIT" to ${totalSize} or greater than ${maxFetch}.`);
|
|
361
362
|
}
|
|
362
363
|
resolve({
|
|
@@ -12,7 +12,7 @@ const url_1 = require("url");
|
|
|
12
12
|
const lib_1 = require("@salesforce/kit/lib");
|
|
13
13
|
const lib_2 = require("@salesforce/ts-types/lib");
|
|
14
14
|
// @ts-ignore
|
|
15
|
-
const Faye = require("
|
|
15
|
+
const Faye = require("faye");
|
|
16
16
|
const logger_1 = require("../logger");
|
|
17
17
|
const sfdxError_1 = require("../sfdxError");
|
|
18
18
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.0",
|
|
4
4
|
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"types": "lib/exported.d.ts",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"@types/jsforce": "^1.9.35",
|
|
43
43
|
"@types/mkdirp": "^1.0.1",
|
|
44
44
|
"debug": "^3.1.0",
|
|
45
|
+
"faye": "^1.4.0",
|
|
45
46
|
"graceful-fs": "^4.2.4",
|
|
46
47
|
"jsen": "0.6.6",
|
|
47
48
|
"jsforce": "^1.11.0",
|
|
48
49
|
"jsonwebtoken": "8.5.0",
|
|
49
50
|
"mkdirp": "1.0.4",
|
|
50
51
|
"semver": "^7.3.5",
|
|
51
|
-
"sfdx-faye": "^1.0.9",
|
|
52
52
|
"ts-retry-promise": "^0.6.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|