986 Commits

Author SHA1 Message Date
Thomas Goyne
d46f2c65ba Refactor the transaction log parsers to eliminate some duplication 2016-05-11 16:08:30 -07:00
Thomas Goyne
f4aaa7c9de Add fine-grained notifications for Results 2016-05-11 16:08:30 -07:00
Thomas Goyne
6609bcaed7 Add fine-grained notifications for List 2016-05-11 16:08:30 -07:00
Thomas Goyne
6380335fc3 Extract out the parts of AsyncQuery not directly related to query running 2016-05-11 16:08:30 -07:00
Nabil Hachicha
895c6a3056 Copying embedded Realm files using AssetManager from JNI 2016-05-11 19:56:59 +01:00
Thomas Goyne
deea1e8f5f Merge pull request #67 from realm/tg/tvos-ech
Watch changes for tvOS without named pipes
2016-05-11 09:58:16 -07:00
Thomas Goyne
8d115ad42d Merge pull request #68 from realm/tg/schema-validation-error
Split SchemaValidationException into SchemaValidationException and SchemaMismatchException
2016-05-11 09:58:06 -07:00
Ari Lazier
cf4fd74f52 pr fixes for build script 2016-05-10 14:01:27 -07:00
Thomas Goyne
c07fb9c963 Merge pull request #64 from realm/tg/leak
Fix the initial ref count for WeakRealmNotifier
2016-05-10 11:55:06 -07:00
kishikawa katsumi
23d9c1c6e8 Split SchemaValidationException into SchemaValidationException and SchemaMismatchException
Because SchemaValidationException is thrown both case that a schema definition is incorrect and case that two schema definitions are mismatched.
In the former case, the migration does not solve the problem. But the exception message shows "Migration is required..."

Therefore the latter as MismatchException, to distinguish between the two cases.
2016-05-10 11:53:58 -07:00
kishikawa katsumi
8e24d4331f Watch changes for tvOS without named pipes 2016-05-10 11:47:37 -07:00
Scott Kyle
26d2c169a9 Support ES6 class inheritance from Realm.Object
Unfortunately, this was broken because our native Realm.Object constructor was not presenting itself as a function in JS. This fixes that and adds tests.
2016-05-09 16:49:05 -07:00
Scott Kyle
651449108e Improve usage of js::PropertyAttributes 2016-05-09 16:08:04 -07:00
Ari Lazier
a960d88893 add project for building/debugging node 2016-05-09 15:16:37 -07:00
Ari Lazier
e71fb3766b convert old date columns 2016-05-09 13:12:48 -07:00
Ari Lazier
9c7b01091f convert old date columns 2016-05-09 13:12:48 -07:00
Scott Kyle
40855f789c Prevent accidental leak of RealmDelegate
If a binding context already exists, we make sure it's a js::RealmDelegate for the same JS context. If not, then we throw an exception because this could lead to serious trouble.

Also, we update the defaults and constructors only if new ones were provided.
2016-05-06 15:40:35 -07:00
Ari Lazier
477f7b1f33 add hook for detecting file format upgrade 2016-05-05 19:39:50 -07:00
Ari Lazier
87c9dda321 add hook for detecting file format upgrade 2016-05-05 19:39:50 -07:00
Ari Lazier
28a7efcd1b add test for current date 2016-05-05 17:36:48 -07:00
Ari Lazier
7b3fa3bc42 fix leaking realm 2016-05-05 17:10:56 -07:00
Ari Lazier
76c2d3cd54 fix leaking realm 2016-05-05 17:10:56 -07:00
Ari Lazier
3b24a4270e fix for object link nullification 2016-05-05 14:08:58 -07:00
Ari Lazier
7a6141e066 fix for object link nullification 2016-05-05 14:08:58 -07:00
Ari Lazier
4daa1ff5a1 upgrade to latest core and object store 2016-05-05 13:09:07 -07:00
Ari Lazier
54fede2715 upgrade to latest core and object store 2016-05-05 13:09:07 -07:00
Thomas Goyne
56def7daa0 Merge pull request #65 from realm/tg/timestamp
Update to core 0.100.0
2016-05-05 10:25:06 -07:00
Thomas Goyne
507882d663 Update to core 0.100.1 2016-05-05 10:19:48 -07:00
Thomas Goyne
25d245deda Use erase-remove_if in RealmCoordinator::unregister_realm() 2016-05-04 10:21:44 -07:00
Scott Kyle
24dab1e8d7 Heed v8 warning in Node v6 from v8::Template::Set 2016-05-04 02:14:50 -07:00
Ari Lazier
513c0fee77 Merge pull request #416 from realm/al-ignored
Allow setting of non-persisted properties
2016-05-03 13:47:44 -07:00
Ari Lazier
d26924e2f9 allow setting of non-persisted properties 2016-05-03 13:05:48 -07:00
Scott Kyle
c8e7ddc3af [0.12.0-rc] Bump version 2016-05-03 12:06:15 -07:00
Scott Kyle
18a4d66903 Explicitly stop the RPCWorker in RPCServer destructor 2016-05-03 12:06:15 -07:00
Scott Kyle
32219cf0a3 Clear protected value maps in RPCServer destructor 2016-05-03 11:42:37 -07:00
Scott Kyle
741db2037f Merge pull request #407 from realm/sk-chrome-migration
All tests now pass in Chrome debug mode (including migration)
2016-05-02 16:19:09 -07:00
Ari Lazier
6e4a7f1019 remove extraneous quote 2016-05-02 12:57:15 -07:00
Ari Lazier
8eef37a46f remove extraneous quote 2016-05-02 12:57:15 -07:00
Ari Lazier
bf488274a3 improve error message when specifying invalid schema 2016-05-02 12:45:42 -07:00
Ari Lazier
0d1b22b10d improve error message when specifying invalid schema 2016-05-02 12:45:42 -07:00
Scott Kyle
e8cd20d7bb Use RPC callback mechanism for writes and listeners
The callbacks are stored by their id in the RPCServer so they are properly uniqued. This prevents the same callback from being added multiple times as a change listener.
2016-05-02 12:41:53 -07:00
Scott Kyle
889b762566 Allow protected values to be empty
This makes them much more friendly to being put inside of STL containers, like maps.
2016-05-02 12:33:20 -07:00
Scott Kyle
dd23c66e69 Address some PR feedback with more comments 2016-05-01 14:35:18 -07:00
Scott Kyle
32a8a2ed72 Make migration tests work in Chrome debug mode
All realm operations for the RPC are now done in their own thread so it can be allowed to block on waiting for callback results. The recursive and multi-threaded nature of this makes it pretty tricky, but it works!
2016-04-29 13:55:49 -07:00
Ari Lazier
2b6b0b97f4 Merge pull request #406 from realm/al-workspace
Add workspace and clean up xcproject layout
2016-04-29 13:53:26 -07:00
Ari Lazier
5a9e24cb06 tab to space 2016-04-29 13:11:19 -07:00
Ari Lazier
0c05259558 remove old umbrella header 2016-04-29 12:58:25 -07:00
Ari Lazier
c493a8070b add workspace and clean up xcproject layout 2016-04-29 12:00:40 -07:00
Scott Kyle
85919dc66f Fix realm.schema property in Chrome debug mode 2016-04-29 11:16:10 -07:00
Ari Lazier
2b35360117 add readOnly property 2016-04-28 15:50:43 -07:00