Commit Graph

1927 Commits

Author SHA1 Message Date
Ari Lazier 9d0df0de3d Sync and fine grained notifications 2016-10-04 15:07:14 -07:00
Ari Lazier c8e4dc39c0 Merge pull request #572 from realm/al-npm-dedupe
Don't run npm install multiple times
2016-09-14 12:49:04 -04:00
Yavor Georgiev 33eb3fe06f Make Collection prototype methods configurable and writable (#592)
* Make Collection prototype methods configurable and writable

* Make `Realm.Types` re-definable
2016-09-09 01:33:42 +03:00
Ari Lazier 1ea107258f don't run npm install multiple times 2016-08-19 10:07:15 -07:00
Ari Lazier 876417716f Merge pull request #567 from realm/al-latest
Update changelog/version on master
2016-08-19 06:55:17 -07:00
Mark Rowe d01fe2440c Merge pull request #568 from realm/mar/core-1.5.0
Update to core 1.5.0
2016-08-15 14:32:31 -07:00
Mark Rowe 5b888ed91d Update to core 1.5.0 and the latest version of the object store. 2016-08-15 11:29:58 -07:00
Ari Lazier ee3b59c829 add empty changelog section 2016-08-15 11:13:28 -07:00
Ari Lazier 860519c6b5 [0.14.3] Bump version 2016-08-15 11:12:36 -07:00
Ari Lazier 3e55944818 [0.14.3-rc] Bump version 2016-08-15 11:12:36 -07:00
Ari Lazier 712f4dd5cd [0.14.2] Bump version 2016-08-15 11:11:59 -07:00
Yavor Georgiev b88d8a6359 Merge pull request #561 from realm/yg/testrunner-tests
Make realm-js usable in some major test runners
2016-08-11 11:33:38 +02:00
Yavor Georgiev b352b7eaaf Ignore the test runner tests in eslint 2016-08-10 16:10:33 +02:00
Yavor Georgiev fb7911e3fa add support for the jest runner’s node environment 2016-08-10 15:50:37 +02:00
Yavor Georgiev 1a98077794 Add tests to ensure realm-js is usable inside mocha and ava tests 2016-08-10 15:47:55 +02:00
Ari Lazier af0ddcdd3d Merge pull request #533 from realm/mr/deprecate-type
Remove usage of Realm.Types in the spec and deprecate it
2016-08-08 12:27:11 -07:00
Ari Lazier 53f223a403 Merge pull request #556 from realm/al-rn-31
Fixes for RN 0.31.0
2016-08-08 11:54:29 -07:00
Ari Lazier d1be354392 get the JSContext using working apis 2016-08-08 10:16:43 -07:00
Ari Lazier 9c8a1ed8ae fixes for RN 0.31.0 2016-08-07 09:33:36 -07:00
Ari Lazier 1b1c6b9cbc wipe simulators between runs 2016-08-04 11:12:46 -07:00
Marius Rackwitz 48b106e610 Check if there is a global console to silent eslint 2016-08-04 10:12:16 -07:00
Ari Lazier c361031e36 rebase fixes 2016-08-04 10:11:53 -07:00
Marius Rackwitz 7755e7030b Warn when Realm.Types is still used 2016-08-04 10:10:28 -07:00
Marius Rackwitz 9d25435105 [Tests] Stop using Realm.Types 2016-08-04 10:10:28 -07:00
Mark Rowe b08db9f768 Merge pull request #548 from realm/mar/object-store-as-submodule
Switch to pulling the object store in as a submodule
2016-08-02 11:34:29 -07:00
Ari Lazier 1522fb3689 Merge pull request #523 from realm/al-rn-29
Support latest react-native version
2016-08-02 09:59:57 -07:00
Ari Lazier e5344035bf pr feedback 2016-08-02 09:49:08 -07:00
Thomas Goyne f8ed437003 Update the binding for object store API changes 2016-08-02 09:31:25 -07:00
Mark Rowe b62a5e6d99 Pull in the object store as a submodule. 2016-08-02 09:25:17 -07:00
Ari Lazier d31a6d56a6 Merge pull request #537 from realm/yg/relative-nan-path
Get the path to nan relatively
2016-07-31 16:55:07 -07:00
Ari Lazier 67cdae387e revert to creating the context manullay for all react-native versions 2016-07-31 14:25:13 -07:00
Ari Lazier 3b75de4554 test app and compile fixes for RN android 0.29.0+ 2016-07-31 14:25:13 -07:00
Ari Lazier ad97836d19 [0.14.2] Bump version 2016-07-31 14:25:13 -07:00
Ari Lazier c73075c0e6 create JSContext by calling for RN versions which support this 2016-07-31 14:23:12 -07:00
Ari Lazier d2f733f168 support latest react-native version 2016-07-31 14:23:12 -07:00
Scott Kyle d303c7bea1 [0.14.0-rc] Bump version 2016-07-31 14:23:12 -07:00
Scott Kyle 502feab8be Fix for linker error when building for iOS 7
By default, React Native projects target a minimum of iOS 7, but our projects were set to iOS 8 because previously we used a dynamic framework.

When building for an iOS 7 minimum target version, the linker would complain about thread local variables not working on iOS 7. So it was necessary to add even more checks (iOS >= 8 or OS X >= 10.7) before using native thread local variables rather than our shim.

This also changes our projects to target iOS 7 so we can catch these issues quicker in the future.
2016-07-31 14:22:46 -07:00
Yavor Georgiev 6a6ed5a214 Get the path to nan relatively
Under npm3 the `realm` and `nan` modules might end up as siblings so the best way to get the path to `nan` is to require it from within the `realm` module. The `nan` module prints its path so it can be captured by an external build system like in this patch.
2016-07-21 17:39:03 +02:00
Ari Lazier 47c1c2d400 Merge pull request #535 from realm/tg/update-object-store
Update to the latest objectstore code
2016-07-19 08:47:22 -07:00
Thomas Goyne 6a2e86cf93 Use the correct extension for the non-node core download 2016-07-18 15:09:44 -07:00
Thomas Goyne 88b3be3e30 Update to core 1.4.0 2016-07-18 14:55:38 -07:00
Thomas Goyne a4c8d745cf Use List::snapshot() 2016-07-18 14:42:10 -07:00
Thomas Goyne b59af706ea Update binding code for API changes 2016-07-18 14:15:25 -07:00
Yavor Georgiev 9320be158c Allow for non-nullterminated object type names (#97)
`StringData::data()` returns the underlying buffer, which might not be null-terminated, so the resulting string from appending to `"class_"` has garbage in the end. Use the `std::string` conversion of `StringData` because it takes the size of the string into account.
2016-07-18 14:15:25 -07:00
Thomas Goyne 847b6852c9 Change the API-misuse exceptions from runtime_error to logic_error 2016-07-18 14:15:25 -07:00
Mark Rowe 11018952e9 Change API misuse exceptions in object_accessor.hpp to derive from `std::logic_error` rather than `std::runtime_error`.
Also includes the following minor changes:
* Renames `ReadOnlyPropertyValueException` to
  `ReadOnlyPropertyException` since it's the property that's read-only,
  not the value.
* Elminiates some unnecessary copies of arguments passed to the
  exception constructors.
* Makes the exception type data members public, since otherwise there's
  no point in storing them at.
2016-07-18 14:15:25 -07:00
Mark Rowe 00e4790353 Have `List` and `Results` fetch their object schema when requested.
This avoids the need to eagerly fetch the object schema in order to
construct a `List` or `Results`. Instead the work can be deferred until
the object schema is requested. Since `List` and `Results` never use the
object schema themselves this can avoid unnecessary work in some bindings.
2016-07-18 14:15:25 -07:00
Mark Rowe f529ec9f58 Fix a typo in the name of a #define. 2016-07-18 14:15:25 -07:00
Mark Rowe f00eb4f52d Enable clang's warning about implicit fallthrough. 2016-07-18 14:15:25 -07:00
Mark Rowe ac2223b32d Fix compiler checks to match clang on OS X, which CMake labels AppleClang. 2016-07-18 14:12:58 -07:00