@salesforce/core 3.20.3 → 3.21.2

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,6 +2,24 @@
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
+ ### [3.21.2](https://github.com/forcedotcom/sfdx-core/compare/v3.21.1...v3.21.2) (2022-06-21)
6
+
7
+ ### Bug Fixes
8
+
9
+ - bump jsforce to latest v2 ([8a05add](https://github.com/forcedotcom/sfdx-core/commit/8a05add08c78f2bc3b6e6c30d4f1763e9fda24b0))
10
+
11
+ ### [3.21.1](https://github.com/forcedotcom/sfdx-core/compare/v3.21.0...v3.21.1) (2022-06-15)
12
+
13
+ ### Bug Fixes
14
+
15
+ - deprecate maxQueryLimit config var ([48105be](https://github.com/forcedotcom/sfdx-core/commit/48105bedf01d69b38a7fa527ad74c78053f7d4ef))
16
+
17
+ ## [3.21.0](https://github.com/forcedotcom/sfdx-core/compare/v3.20.3...v3.21.0) (2022-06-15)
18
+
19
+ ### Features
20
+
21
+ - add getConnection method to MockTestOrgData ([#600](https://github.com/forcedotcom/sfdx-core/issues/600)) ([a642f28](https://github.com/forcedotcom/sfdx-core/commit/a642f28dc1179552ba5c646c96d2d55f5b6f3f61))
22
+
5
23
  ### [3.20.3](https://github.com/forcedotcom/sfdx-core/compare/v3.20.2...v3.20.3) (2022-06-15)
6
24
 
7
25
  ### Bug Fixes
@@ -177,17 +177,6 @@ export declare const SFDX_ALLOWED_PROPERTIES: ({
177
177
  failedMessage: string;
178
178
  };
179
179
  encrypted?: undefined;
180
- } | {
181
- key: SfdxPropertyKeys;
182
- description: string;
183
- hidden: boolean;
184
- newKey: OrgConfigProperties;
185
- input: {
186
- validator: (value: ConfigValue) => boolean;
187
- failedMessage: string;
188
- };
189
- deprecated?: undefined;
190
- encrypted?: undefined;
191
180
  })[];
192
181
  export declare const SfProperty: {
193
182
  [index: string]: ConfigPropertyMeta;
@@ -217,6 +217,7 @@ exports.SFDX_ALLOWED_PROPERTIES = [
217
217
  description: messages.getMessage(SfdxPropertyKeys.MAX_QUERY_LIMIT),
218
218
  hidden: true,
219
219
  newKey: orgConfigProperties_1.OrgConfigProperties.ORG_MAX_QUERY_LIMIT,
220
+ deprecated: true,
220
221
  input: {
221
222
  // the bit shift will remove the negative bit, and any decimal numbers
222
223
  // then the parseFloat will handle converting it to a number from a string
@@ -3,6 +3,7 @@ import { EventEmitter } from 'events';
3
3
  import * as sinonType from 'sinon';
4
4
  import { AnyJson, JsonMap, Optional } from '@salesforce/ts-types';
5
5
  import { ConfigContents } from './config/configStore';
6
+ import { Connection } from './org/connection';
6
7
  import { Logger } from './logger';
7
8
  import { SfError } from './sfError';
8
9
  import { CometClient, CometSubscription, Message, StreamingExtension } from './status/streamingClient';
@@ -414,6 +415,7 @@ export declare class MockTestOrgData {
414
415
  createUser(user: string): MockTestOrgData;
415
416
  getMockUserInfo(): JsonMap;
416
417
  getConfig(): Promise<AuthFields>;
418
+ getConnection(): Promise<Connection>;
417
419
  }
418
420
  export declare class MockTestSandboxData {
419
421
  id: string;
package/lib/testSetup.js CHANGED
@@ -25,6 +25,7 @@ const sfError_1 = require("./sfError");
25
25
  const sfProject_1 = require("./sfProject");
26
26
  const streamingClient_1 = require("./status/streamingClient");
27
27
  const stateAggregator_1 = require("./stateAggregator");
28
+ const org_1 = require("./org");
28
29
  const sandboxAccessor_1 = require("./stateAggregator/accessors/sandboxAccessor");
29
30
  const aliasesConfig_1 = require("./config/aliasesConfig");
30
31
  const global_1 = require("./global");
@@ -600,6 +601,9 @@ class MockTestOrgData {
600
601
  config.isDevHub = this.isDevHub;
601
602
  return config;
602
603
  }
604
+ async getConnection() {
605
+ return (await org_1.Org.create({ aliasOrUsername: this.username })).getConnection();
606
+ }
603
607
  }
604
608
  exports.MockTestOrgData = MockTestOrgData;
605
609
  class MockTestSandboxData {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/core",
3
- "version": "3.20.3",
3
+ "version": "3.21.2",
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",
@@ -49,7 +49,7 @@
49
49
  "form-data": "^4.0.0",
50
50
  "graceful-fs": "^4.2.9",
51
51
  "js2xmlparser": "^4.0.1",
52
- "jsforce": "2.0.0-beta.10",
52
+ "jsforce": "2.0.0-beta.11",
53
53
  "jsonwebtoken": "8.5.1",
54
54
  "mkdirp": "1.0.4",
55
55
  "ts-retry-promise": "^0.6.0"