Removing deprecated setAccessToken(). (#1371)

This commit is contained in:
Kenneth Geisshirt 2017-10-02 21:03:29 +02:00 committed by GitHub
parent feb59ae859
commit 7c5572b451
3 changed files with 4 additions and 11 deletions

View File

@ -1,7 +1,7 @@
X.Y.Z-rc Release notes
X.Y.Z Release notes
=============================================================
### Breaking changes
* None
* Removed `setAccessToken()`; use `setFeatureToken()` instead.
### Enhancements
* Support migration from Realms sync 1.0 to sync 2.0 versions
@ -9,7 +9,8 @@ X.Y.Z-rc Release notes
* Added `Realm.subscribeToObjects()` to listen for changes in partially synced Realms.
### Bug fixes
* None
* None.
2.0.0-rc16 Release notes (2017-9-29)
=============================================================

View File

@ -137,9 +137,6 @@ module.exports = function(realmConstructor) {
realmConstructor.Sync._setFeatureToken(featureToken.trim());
}
//enable deprecated setAccessToken
realmConstructor.Sync.setAccessToken = realmConstructor.Sync.setFeatureToken;
}

5
lib/index.d.ts vendored
View File

@ -418,11 +418,6 @@ declare namespace Realm.Sync {
function initiateClientReset(path: string): void;
function setFeatureToken(token: string): void;
/**
* @deprecated, to be removed in 2.0
*/
function setAccessToken(accessToken: string): void;
type Instruction = {
type: 'INSERT' | 'SET' | 'DELETE' | 'CLEAR' | 'LIST_SET' | 'LIST_INSERT' | 'LIST_ERASE' | 'LIST_CLEAR' | 'ADD_TYPE' | 'ADD_PROPERTIES' | 'CHANGE_IDENTITY' | 'SWAP_IDENTITY'
object_type: string,