Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,18 @@ | ||
1.2.1 Release notes (2021-02-17) | ||
============================================================= | ||
### Breaking Changes | ||
* None | ||
### Enhancements | ||
* None | ||
### Fixed | ||
* Fixed app hydration to be more robust: Errors are now logged instead of thrown. ([#3549](https://github.com/realm/realm-js/pull/3549)) | ||
* Fixed a potential lock, when refreshing an access token or fetching custom user data, failed due to 401/unauthorized. An unauthorized response, during token-refresh, will now clear all the users' tokens. ([#3549](https://github.com/realm/realm-js/pull/3549)) | ||
* Fixed user profile type, making less assumptions on the value type of custom profile data (changing from string to unknown). ([#3576](https://github.com/realm/realm-js/pull/3576), since 1.2.0) | ||
### Internal | ||
* None | ||
1.2.0 Release notes (2021-01-11) | ||
@@ -2,0 +19,0 @@ ============================================================= |
@@ -920,3 +920,3 @@ /// <reference path="../types/realm/app.d.ts" /> | ||
*/ | ||
get allUsers(): Readonly<Record<string, Realm.User<FunctionsFactoryType, CustomDataType>>>; | ||
get allUsers(): Readonly<Record<string, User<FunctionsFactoryType, CustomDataType>>>; | ||
/** | ||
@@ -923,0 +923,0 @@ * @returns A promise of the app URL, with the app location resolved. |
{ | ||
"name": "realm-web", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Authenticate and communicate with the MongoDB Realm platform, from your web-browser", | ||
@@ -5,0 +5,0 @@ "main": "./dist/bundle.cjs.js", |
@@ -16,3 +16,3 @@ # Realm Web | ||
```html | ||
<script src="https://unpkg.com/realm-web@1.2.0/dist/bundle.iife.js"></script> | ||
<script src="https://unpkg.com/realm-web@1.2.1/dist/bundle.iife.js"></script> | ||
``` | ||
@@ -19,0 +19,0 @@ |
@@ -345,3 +345,3 @@ //////////////////////////////////////////////////////////////////////////// | ||
/** | ||
* Logs out and removes a user from the app. | ||
* Logs out and removes a user from the client. | ||
* | ||
@@ -613,5 +613,5 @@ * @returns A promise that resolves once the user has been logged out and removed from the app. | ||
/** | ||
* Authentication providers might store other data here. | ||
* Authentication providers might store additional data here. | ||
*/ | ||
[key: string]: string; | ||
[key: string]: unknown; | ||
}; | ||
@@ -618,0 +618,0 @@ |
@@ -346,4 +346,11 @@ //////////////////////////////////////////////////////////////////////////// | ||
type ErrorCallback = (session: App.Sync.Session, error: SyncError) => void; | ||
interface ClientResetError { | ||
name: "ClientReset"; | ||
path: string; | ||
config: SyncConfiguration; | ||
readOnly: true; | ||
} | ||
type ErrorCallback = (session: App.Sync.Session, error: SyncError | ClientResetError) => void; | ||
const enum SessionStopPolicy { | ||
@@ -475,3 +482,3 @@ AfterUpload = "after-upload", | ||
*/ | ||
type RealmInsertionModel<T> = | ||
type RealmInsertionModel<T> = | ||
Omit<Omit<Omit<T, ExtractPropertyNamesOfType<T, Function>>, keyof Realm.Object>, ExtractPropertyNamesOfType<T, Realm.Collection<any>>> | ||
@@ -478,0 +485,0 @@ & RealmListsRemappedModelPart<Pick<T, ExtractPropertyNamesOfType<T, Realm.List<any>>>> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1045546
26466