diff --git a/CHANGELOG.md b/CHANGELOG.md index cb2d327e..db60b94e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ - For non-synced Realms, all privileges are always granted. - For more details, please read the reference documentation. * [Sync] Revoke refresh token upon logout (#1354). -* Added `Realm.defaultSyncConfiguration()` which will return the configuration for a default synced Realm (#1688). +* Added `Realm.automaticSyncConfiguration()` which will return the configuration for a default synced Realm (#1688). * [Sync] Deprecated `Realm.Sync.setFeatureToken` (#1689). ### Bug fixes @@ -34,7 +34,7 @@ ### Internal * Updated to Realm Core 5.4.0. -* Updated to Realm Sync 3.0.0-rc.1. +* Updated to Realm Sync 3.0.0. * Tested against Realm Object Server 3.0.0-alpha.8. * Added `_disablePartialSyncUrlChecks` to `Realm.Configuration`. diff --git a/dependencies.list b/dependencies.list index 492c6379..be3714c3 100644 --- a/dependencies.list +++ b/dependencies.list @@ -1,5 +1,5 @@ PACKAGE_NAME=realm-js VERSION=2.3.0-beta.3 REALM_CORE_VERSION=5.4.0 -REALM_SYNC_VERSION=3.0.0-rc.1 -REALM_OBJECT_SERVER_VERSION=3.0.0-alpha.8 \ No newline at end of file +REALM_SYNC_VERSION=3.0.0 +REALM_OBJECT_SERVER_VERSION=3.0.0-alpha.8 diff --git a/docs/realm.js b/docs/realm.js index 1959151e..7c259441 100644 --- a/docs/realm.js +++ b/docs/realm.js @@ -126,7 +126,7 @@ class Realm { * @returns {Realm~Configuration} - a configuration matching a default synced Realm. * @since 2.3.0 */ - static defaultSyncConfiguration() {} + static automaticSyncConfiguration() {} /** * Closes this Realm so it may be re-opened with a newer schema version. diff --git a/lib/extensions.js b/lib/extensions.js index 93d08322..852b57a4 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -152,7 +152,7 @@ module.exports = function(realmConstructor) { setConstructorOnPrototype(realmConstructor.Sync.Session); // A configuration for a default Realm - realmConstructor.defaultSyncConfiguration = function() { + realmConstructor.automaticSyncConfiguration = function() { let users = this.Sync.User.all; let identities = Object.keys(users); if (identities.length === 1) { @@ -215,7 +215,8 @@ module.exports = function(realmConstructor) { name: '__User', primaryKey: 'id', properties: { - id: 'string' + id: 'string', + role: '__Role' } }); diff --git a/lib/index.d.ts b/lib/index.d.ts index 95c0b991..4ef88293 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -569,7 +569,7 @@ declare class Realm { /** * Return a configuration for a default Realm. */ - static defaultSyncConfiguration(): string; + static automaticSyncConfiguration(): string; /** * Delete the Realm file for the given configuration. diff --git a/tests/js/session-tests.js b/tests/js/session-tests.js index 7edc22d1..dfce3715 100644 --- a/tests/js/session-tests.js +++ b/tests/js/session-tests.js @@ -180,7 +180,7 @@ module.exports = { .then(() => Realm.Sync.User.login('http://localhost:9080', username, 'password')) .then(u => { user = u; - return Realm.open(Realm.defaultSyncConfiguration()); + return Realm.open(Realm.automaticSyncConfiguration()); }) .then(realm => { let actualObjectsCount = realm.objects('Dog').length;