@salesforce/core 2.30.0 → 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 CHANGED
@@ -2,12 +2,35 @@
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.30.0](https://github.com/forcedotcom/sfdx-core/compare/v2.29.0...v2.30.0) (2021-11-25)
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
+
15
+ ### [2.31.1](https://github.com/forcedotcom/sfdx-core/compare/v2.31.0...v2.31.1) (2021-12-06)
16
+
17
+ ## [2.31.0](https://github.com/forcedotcom/sfdx-core/compare/v2.30.1...v2.31.0) (2021-11-30)
6
18
 
19
+ ### Features
20
+
21
+ - bump version of jsforce ([7d89024](https://github.com/forcedotcom/sfdx-core/commit/7d89024f593968c031af22ac817efc26d00fcd54))
22
+
23
+ ### [2.30.1](https://github.com/forcedotcom/sfdx-core/compare/v2.30.0...v2.30.1) (2021-11-30)
24
+
25
+ ### Bug Fixes
26
+
27
+ - better output for authUrl errors ([f3ec729](https://github.com/forcedotcom/sfdx-core/commit/f3ec7298bdbd3194d3d14bfea09f47f413669376))
28
+
29
+ ## [2.30.0](https://github.com/forcedotcom/sfdx-core/compare/v2.29.0...v2.30.0) (2021-11-25)
7
30
 
8
31
  ### Features
9
32
 
10
- * delete scratch orgs and sandboxes ([#491](https://github.com/forcedotcom/sfdx-core/issues/491)) ([468c348](https://github.com/forcedotcom/sfdx-core/commit/468c348f0ecc69ddeea02927bf7a26ca660a86ca))
33
+ - delete scratch orgs and sandboxes ([#491](https://github.com/forcedotcom/sfdx-core/issues/491)) ([468c348](https://github.com/forcedotcom/sfdx-core/commit/468c348f0ecc69ddeea02927bf7a26ca660a86ca))
11
34
 
12
35
  ## [2.29.0](https://github.com/forcedotcom/sfdx-core/compare/v2.28.4...v2.29.0) (2021-11-17)
13
36
 
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018, Salesforce.com, Inc.
1
+ Copyright (c) 2021, Salesforce.com, Inc.
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
package/lib/authInfo.js CHANGED
@@ -330,7 +330,7 @@ class AuthInfo extends kit_1.AsyncCreatable {
330
330
  static parseSfdxAuthUrl(sfdxAuthUrl) {
331
331
  const match = sfdxAuthUrl.match(/^force:\/\/([a-zA-Z0-9._-]+):([a-zA-Z0-9._-]*):([a-zA-Z0-9._-]+={0,2})@([a-zA-Z0-9._-]+)/);
332
332
  if (!match) {
333
- throw new sfdxError_1.SfdxError('Invalid sfdx auth url. Must be in the format `force://<clientId>:<clientSecret>:<refreshToken>@<loginUrl>`. The instanceUrl must not have the protocol set.', 'INVALID_SFDX_AUTH_URL');
333
+ throw new sfdxError_1.SfdxError('Invalid SFDX auth URL. Must be in the format "force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>". Note that the SFDX auth URL uses the "force" protocol, and not "http" or "https". Also note that the "instanceUrl" inside the SFDX auth URL doesn\'t include the protocol ("https://").', 'INVALID_SFDX_AUTH_URL');
334
334
  }
335
335
  const [, clientId, clientSecret, refreshToken, loginUrl] = match;
336
336
  return {
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') || 0;
359
- if (totalSize > records.length) {
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("sfdx-faye");
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.30.0",
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",
@@ -16,7 +16,8 @@
16
16
  "lint": "sf-lint",
17
17
  "lint-fix": "yarn sf-lint --fix",
18
18
  "postcompile": "tsc -p test && tsc -p typedocExamples",
19
- "prepack": "sf-build",
19
+ "prepack": "sf-prepack",
20
+ "prepare": "sf-install",
20
21
  "pretest": "sf-compile-test",
21
22
  "test": "sf-test"
22
23
  },
@@ -32,13 +33,6 @@
32
33
  "messages",
33
34
  "!lib/**/*.map"
34
35
  ],
35
- "husky": {
36
- "hooks": {
37
- "commit-msg": "sf-husky-commit-msg",
38
- "pre-commit": "sf-husky-pre-commit",
39
- "pre-push": "sf-husky-pre-push"
40
- }
41
- },
42
36
  "dependencies": {
43
37
  "@salesforce/bunyan": "^2.0.0",
44
38
  "@salesforce/kit": "^1.5.0",
@@ -48,18 +42,18 @@
48
42
  "@types/jsforce": "^1.9.35",
49
43
  "@types/mkdirp": "^1.0.1",
50
44
  "debug": "^3.1.0",
45
+ "faye": "^1.4.0",
51
46
  "graceful-fs": "^4.2.4",
52
47
  "jsen": "0.6.6",
53
- "jsforce": "^1.10.1",
48
+ "jsforce": "^1.11.0",
54
49
  "jsonwebtoken": "8.5.0",
55
50
  "mkdirp": "1.0.4",
56
51
  "semver": "^7.3.5",
57
- "sfdx-faye": "^1.0.9",
58
52
  "ts-retry-promise": "^0.6.0"
59
53
  },
60
54
  "devDependencies": {
61
- "@salesforce/dev-config": "^2.0.0",
62
- "@salesforce/dev-scripts": "^0.9.18",
55
+ "@salesforce/dev-config": "^2.1.2",
56
+ "@salesforce/dev-scripts": "^1.0.2",
63
57
  "@salesforce/prettier-config": "^0.0.2",
64
58
  "@salesforce/ts-sinon": "^1.3.15",
65
59
  "@types/debug": "0.0.30",
@@ -67,7 +61,6 @@
67
61
  "@types/jsonwebtoken": "8.3.2",
68
62
  "@types/semver": "^7.3.9",
69
63
  "@types/shelljs": "0.7.8",
70
- "@types/sinon": "^10.0.6",
71
64
  "@typescript-eslint/eslint-plugin": "^4.2.0",
72
65
  "@typescript-eslint/parser": "4.26.0",
73
66
  "chai": "^4.2.0",
@@ -75,20 +68,20 @@
75
68
  "eslint": "^6.8.0",
76
69
  "eslint-config-prettier": "^6.11.0",
77
70
  "eslint-config-salesforce": "^0.1.6",
78
- "eslint-config-salesforce-license": "^0.1.0",
71
+ "eslint-config-salesforce-license": "^0.1.6",
79
72
  "eslint-config-salesforce-typescript": "^0.2.7",
80
73
  "eslint-plugin-header": "^3.0.0",
81
74
  "eslint-plugin-import": "^2.20.2",
82
75
  "eslint-plugin-jsdoc": "^27.0.3",
83
76
  "eslint-plugin-prettier": "^3.1.3",
84
- "husky": "^4.2.5",
85
- "mocha": "^7.2.0",
77
+ "husky": "^7.0.4",
78
+ "mocha": "^8.4.0",
86
79
  "nyc": "^15.1.0",
87
80
  "prettier": "^2.0.5",
88
- "pretty-quick": "^2.0.1",
81
+ "pretty-quick": "^3.1.0",
89
82
  "shelljs": "0.8.1",
90
83
  "sinon": "10.0.0",
91
- "ts-node": "^8.10.2",
84
+ "ts-node": "^10.0.0",
92
85
  "typescript": "^4.1.3"
93
86
  },
94
87
  "repository": {