Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

realm-web

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

realm-web - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

12

CHANGELOG.md

@@ -13,2 +13,14 @@ ?.?.? Release notes (2020-??-??)

0.8.1 Release notes (2020-08-17)
=============================================================
### Enhancements
* None
### Fixed
* Fixed error `"function not found: 'argsTransformation'"` when calling `user.functions.callFunction('functionName', args)` [#3134](https://github.com/realm/realm-js/pull/3134)
### Internal
* None
0.8.0 Release notes (2020-07-31)

@@ -15,0 +27,0 @@ =============================================================

2

package.json
{
"name": "realm-web",
"version": "0.8.0",
"version": "0.8.1",
"description": "Authenticate and communicate with the MongoDB Realm platform, from your web-browser",

@@ -5,0 +5,0 @@ "main": "./dist/bundle.cjs.js",

@@ -29,3 +29,2 @@ ////////////////////////////////////////////////////////////////////////////

deletions: number[];
modifications: number[];
newModifications: number[];

@@ -35,11 +34,4 @@ oldModifications: number[];

interface ObjectChanges {
insertions: Object[];
deletions: Object[];
newModifications: Object[];
oldModifications: Object[];
}
type CollectionChangeCallback<T> = (collection: Collection<T>, changes: CollectionChangeSet) => void;
type CollectionChangeCallback<T> = (collection: Collection<T>, change: ObjectChanges) => void;
/**

@@ -162,3 +154,3 @@ * PropertyType

*/
interface Object {
abstract class Object {
/**

@@ -199,2 +191,4 @@ * @returns An array of the names of the object's properties.

_objectId(): string;
/**

@@ -210,5 +204,7 @@ * @returns void

const Object: {
readonly prototype: Object;
}
/**
* RealmJsonSerializeReplacer solves circular structures when serializing Realm entities
* @example JSON.stringify(realm.objects("Person"), Realm.RealmJsonSerializeReplacer)
*/
const JsonSerializationReplacer: (key: string, val: any) => any;

@@ -229,2 +225,7 @@ /**

/**
* @returns An object for JSON serialization.
*/
toJSON(): Array<any>;
description(): string;

@@ -450,3 +451,25 @@

}
/**
* Extracts an intersection of keys from T, where the value extends the given PropType.
*/
type ExtractPropertyNamesOfType<T, PropType> = {
[K in keyof T]: T[K] extends PropType ? K : never
}[keyof T];
/**
* Exchanges properties defined as Realm.List<Model> with an optional Array<Model | RealmInsertionModel<Model>>.
*/
type RealmOptionalParMappedModel<T> = {
[K in keyof T]?: T[K] extends Realm.List<infer GT> ? Array<GT | RealmInsertionModel<GT>> : never
}
/**
* Joins T stripped of all keys which value extends Realm.Collection and all inherited from Realm.Object,
* with only the keys which value extends Realm.List, remapped as Arrays.
*/
//
type RealmInsertionModel<T> =
Omit<Omit<T, keyof Realm.Object>, ExtractPropertyNamesOfType<T, Realm.Collection<any>>>
& RealmOptionalParMappedModel<Pick<T, ExtractPropertyNamesOfType<T, Realm.List<any>>>>
declare class Realm {

@@ -523,5 +546,15 @@ static defaultPath: string;

/**
* @param {string|Realm.ObjectClass|Function} type
* @param {T&Realm.ObjectPropsType} properties
* @param {string} type
* @param {T} properties
* @param {boolean} update?
* @returns T & Realm.Object
*
* @deprecated, to be removed in future versions. Use `create(type, properties, UpdateMode)` instead.
*/
create<T>(type: string, properties: RealmInsertionModel<T>, update?: boolean): T & Realm.Object
/**
* @param {Class} type
* @param {T} properties
* @param {boolean} update?
* @returns T

@@ -531,11 +564,19 @@ *

*/
create<T>(type: string | Realm.ObjectClass | Function, properties: T | Realm.ObjectPropsType, update?: boolean): T;
create<T extends Realm.Object>(type: {new(...arg: any[]): T; }, properties: RealmInsertionModel<T>, update?: boolean): T
/**
* @param {string|Realm.ObjectClass|Function} type
* @param {T&Realm.ObjectPropsType} properties
* @param {string} type
* @param {T} properties
* @param {Realm.UpdateMode} mode? If not provided, `Realm.UpdateMode.Never` is used.
* @returns T & Realm.Object
*/
create<T>(type: string, properties: RealmInsertionModel<T>, mode?: Realm.UpdateMode): T & Realm.Object
/**
* @param {Class} type
* @param {T} properties
* @param {Realm.UpdateMode} mode? If not provided, `Realm.UpdateMode.Never` is used.
* @returns T
*/
create<T>(type: string | Realm.ObjectClass | Function, properties: T | Realm.ObjectPropsType, mode?: Realm.UpdateMode): T;
create<T extends Realm.Object>(type: {new(...arg: any[]): T; }, properties: RealmInsertionModel<T>, mode?: Realm.UpdateMode): T

@@ -566,8 +607,14 @@ /**

/**
* @param {string|Realm.ObjectType|Function} type
* @returns Realm
* @param {string} type
* @returns Realm.Results<T & Realm.Object>
*/
objects<T>(type: string | Realm.ObjectType | Function): Realm.Results<T & Realm.Object>;
objects<T>(type: string): Realm.Results<T & Realm.Object>;
/**
* @param {Class} type
* @returns Realm.Results<T>
*/
objects<T extends Realm.Object>(type: {new(...arg: any[]): T; }): Realm.Results<T>;
/**
* @param {string} name

@@ -574,0 +621,0 @@ * @param {()=>void} callback

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc