-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
1,926 additions
and
11,465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# Change Log | ||
|
||
This document contains only major functionality changes in certain versions. Minor fixes/updates are omitted. | ||
|
||
## 3.0 | ||
|
||
- SDK no longer runs refresh queue across multiple tabs | ||
- SDK is no longer shipped with the bundle, you need to add polyfills and PUBNUB manually | ||
- Migration Guides merged into one Change Log | ||
- `SDK.core.Observable` has been replaced by NodeJS's `EventEmitter` and is accessible via `SDK.core.EventEmitter` | ||
- `Platform.login` does not support `remember` parameter anymore, if you wish to supply custom token TTLs, | ||
use `accessTokenTtl` and `refreshTokenTtl` | ||
- `Subscription` will not throw an error when it can't renew because it's expired when timeout hits (computer woke up | ||
after sleep, for example), it will automatically `subscribe` again with the same `eventFilter`s | ||
|
||
## 2.0 | ||
|
||
- Helpers were moved to separate repository: [RingCentral JS Helpers](https://github.com/ringcentral/ringcentral-js-helpers). | ||
- Root JS name has changed from `RCSDK` to `RingCentral.SDK` | ||
- New naming convention: `getSomething()` methods are now simply `something()` | ||
- `Auth` class inside `Platform` | ||
- `AjaxObserver` functionality been moved to `Client` | ||
- New `ApiResponse` interface that wraps native Requests/Responses: | ||
- `apiResponse.json()` instead of `ajax.json` | ||
- `apiResponse.multipart()` instead of `ajax.responses` | ||
- `apiResponse.request()` and `ajax.response()` to access to DOM Request and DOM Response accordingly | ||
- `apiResponse.request().headers` and `ajax.response().headers` should be used to access headers | ||
- `Subscription` interface changes | ||
|
||
## 1.2 | ||
|
||
- AJAX object is now represented by 2 separate objects: | ||
- `Request` | ||
- `Response` | ||
- AJAX error has 2 properties: `e.request` and `e.response` and backward-compatible `e.ajax` which is equal to | ||
`e.response`. | ||
- AJAX Response now has `responses` property and `json` property along with backward-compatible `data` property | ||
|
||
## 0.14 | ||
|
||
The key differences between versions: | ||
- Promises/A+ | ||
- Native ECMAScript6 where available (Chrome, FireFox, Safari) | ||
- RSVP polyfill for older browsers | ||
- RCSDK is now a constructor | ||
- Instance has a context, so it is possible to have multiple simultaneous connections to API | ||
- All other objects are obtained through RCSDK instance's getters instead of static methods of classes | ||
|
||
### Initialization | ||
|
||
Before: | ||
|
||
```js | ||
var platform = RCSDK.core.Platform.getInstance(); | ||
``` | ||
|
||
After: | ||
|
||
```js | ||
var rcsdk = new RCSDK(), // save this object, everything else is provided by it | ||
platform = rcsdk.getPlatform(); | ||
``` | ||
|
||
### Promises and API Calls | ||
|
||
Before: | ||
|
||
```js | ||
platform.apiCall({ | ||
url: '...', | ||
success: function(data){ ... } | ||
error: function(e){ ... } | ||
}); | ||
``` | ||
|
||
After: | ||
|
||
```js | ||
platform.apiCall({url: '...'}).then(function(ajax){ | ||
// do something with ajax.data | ||
}).catch(function(e){ ... }); | ||
``` | ||
|
||
This also applies to any other place that formerly accepted `success` and `error` callbacks. | ||
|
||
- platform.isAuthorized|refresh|authorize|logout | ||
- subscription.register|subscribe|renew|remove | ||
|
||
### AjaxObserver | ||
|
||
Before: | ||
|
||
```js | ||
RCSDK.core.Ajax.observer.on(...) | ||
``` | ||
|
||
After: | ||
|
||
```js | ||
rcsdk.getAjaxObserver().on(...); | ||
``` | ||
|
||
### Call Monitoring Object is deprecated | ||
|
||
Call Monitoring object is now replaced with a number of Helper objects, which gives developers more control over | ||
application logic while processing logic is still maintained by SDK. | ||
|
||
Take a look on **Call Management Using JavaScript** section of **Usage Manual**, and big **AngularJS Demo** for | ||
implementation examples. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.