@salesforce/core 3.7.0 → 3.7.1
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,8 @@
|
|
|
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.7.1](https://github.com/forcedotcom/sfdx-core/compare/v3.7.0...v3.7.1) (2021-10-28)
|
|
6
|
+
|
|
5
7
|
## [3.7.0](https://github.com/forcedotcom/sfdx-core/compare/v3.6.6...v3.7.0) (2021-10-12)
|
|
6
8
|
|
|
7
9
|
|
|
@@ -2,7 +2,7 @@ import { AsyncOptionalCreatable, Duration, Env } from '@salesforce/kit/lib';
|
|
|
2
2
|
import { AnyJson } from '@salesforce/ts-types/lib';
|
|
3
3
|
import type { Client as CometClient, StreamProcessor } from 'sfdx-faye';
|
|
4
4
|
import { Org } from '../org/org';
|
|
5
|
-
export { Client as CometClient, StreamProcessor, CometSubscription, StatusResult, StreamingExtension } from 'sfdx-faye';
|
|
5
|
+
export { Client as CometClient, Message, StreamProcessor, CometSubscription, StatusResult, StreamingExtension, } from 'sfdx-faye';
|
|
6
6
|
/**
|
|
7
7
|
* Inner streaming client interface. This implements the Cometd behavior.
|
|
8
8
|
* Also allows for mocking the functional behavior.
|
package/lib/testSetup.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="sfdx-faye" />
|
|
1
2
|
/// <reference types="node" />
|
|
2
3
|
import { EventEmitter } from 'events';
|
|
3
4
|
import * as sinonType from 'sinon';
|
|
@@ -5,7 +6,7 @@ import { AnyJson, JsonMap, Optional } from '@salesforce/ts-types';
|
|
|
5
6
|
import { ConfigContents } from './config/configStore';
|
|
6
7
|
import { Logger } from './logger';
|
|
7
8
|
import { SfdxError } from './sfdxError';
|
|
8
|
-
import { CometClient, CometSubscription, StreamingExtension } from './status/streamingClient';
|
|
9
|
+
import { CometClient, CometSubscription, Message, StreamingExtension } from './status/streamingClient';
|
|
9
10
|
import { SfOrg } from './globalInfo';
|
|
10
11
|
/**
|
|
11
12
|
* Different parts of the system that are mocked out. They can be restored for
|
|
@@ -306,7 +307,7 @@ export interface StreamingMockCometSubscriptionOptions {
|
|
|
306
307
|
/**
|
|
307
308
|
* A list of messages to playback for the client. One message per process tick.
|
|
308
309
|
*/
|
|
309
|
-
messagePlaylist?:
|
|
310
|
+
messagePlaylist?: Message[];
|
|
310
311
|
}
|
|
311
312
|
/**
|
|
312
313
|
* Simulates a comet subscription to a streaming channel.
|
|
@@ -366,7 +367,7 @@ export declare class StreamingMockCometClient extends CometClient {
|
|
|
366
367
|
* @param channel The streaming channel.
|
|
367
368
|
* @param callback The function to invoke after the subscription completes.
|
|
368
369
|
*/
|
|
369
|
-
subscribe(channel: string, callback: (message:
|
|
370
|
+
subscribe(channel: string, callback: (message: Message) => void): CometSubscription;
|
|
370
371
|
/**
|
|
371
372
|
* Fake disconnect. Does Nothing.
|
|
372
373
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/core",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
|
5
5
|
"main": "lib/exported",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"@types/debug": "0.0.30",
|
|
66
66
|
"@types/jsen": "0.0.19",
|
|
67
67
|
"@types/jsonwebtoken": "8.3.2",
|
|
68
|
+
"@types/sfdx-faye": "^1.0.0",
|
|
68
69
|
"@types/shelljs": "0.7.8",
|
|
69
70
|
"@types/sinon": "^9.0.8",
|
|
70
71
|
"@typescript-eslint/eslint-plugin": "^4.2.0",
|