mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 22:36:01 +00:00
30e58022cf
* Add and adopt `Value::is_binary` / `Value::to_binary` / `Value::from_binary`. These methods allow conversions between `BinaryData` and the equivalent JavaScript types without using `NativeAccessor`. Instead, `NativeAccessor` now itself delegates to these methods. * Have `NativeAccessor::value_for_property` and `RealmObjectClass::set_property` verify that values are valid for the property in question. If not, we throw an exception that includes the name and type of the property in question. `NativeAccessor` is changed to always hold a reference to a `Realm` and an `ObjectSchema` in order to make this validation possible. * Fix the Windows build. * Remove an unused, incorrect forward declaration of a template class named `Realm` that caused ambiguity with object store's `Realm` class. * Disambiguate between `realm::js::PropertyType` and `realm::PropertyType`. * Update CHANGELOG.md