Skip to content

Commit 30b6b3c

Browse files
authored
Decouple botframework-directlinejs from business logics (#4645)
* Decouple botframework-directlinejs * Update entry * Update entry
1 parent f33d437 commit 30b6b3c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2222

2323
## [Unreleased]
2424

25+
### Added
26+
27+
- Resolved [#4643](https://github.com/microsoft/BotFramework-WebChat/issues/4643). Decoupling `botframework-directlinejs` from business logic of Web Chat for better tree-shaking, by [@compulim](https://github.com/compulim), in PR [#4645](https://github.com/microsoft/BotFramework-WebChat/pull/4645)
28+
2529
## [4.15.7] - 2023-02-15
2630

2731
### Added

packages/core/src/sagas/connectSaga.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import { call, cancel, cancelled, fork, put, race, take } from 'redux-saga/effects';
44

5-
import { ConnectionStatus } from 'botframework-directlinejs';
65
import decode from 'jwt-decode';
76

87
import { CONNECT } from '../actions/connect';
@@ -15,7 +14,9 @@ import { DISCONNECT, DISCONNECT_PENDING, DISCONNECT_FULFILLED } from '../actions
1514

1615
import { RECONNECT } from '../actions/reconnect';
1716

18-
const { Connecting: CONNECTING, Online: ONLINE, Uninitialized: UNINITIALIZED } = ConnectionStatus;
17+
const CONNECTING = 1;
18+
const ONLINE = 2;
19+
const UNINITIALIZED = 0;
1920

2021
function randomUserID() {
2122
return `r_${uniqueID().substr(0, 10)}`;

0 commit comments

Comments
 (0)