566 Commits

Author SHA1 Message Date
Scott Kyle
5bc72ab2cf Make Date testing work for Node 2016-05-13 16:30:57 -07:00
Scott Kyle
0b1a686f60 Add platform.cpp file for Node 2016-05-13 16:26:31 -07:00
Ari Lazier
e32df4e815 fix copy bundled files for ios 2016-05-13 15:44:25 -07:00
Ari Lazier
125dd0d1c7 merge it 2016-05-13 15:41:10 -07:00
Ari Lazier
d1dcd4ff3f add additional tests 2016-05-13 15:29:59 -07:00
Scott Kyle
0250234a30 Cleanup Android platform.cpp 2016-05-13 15:25:18 -07:00
Ari Lazier
e7b341dfdb merge latest from master 2016-05-13 15:05:19 -07:00
Ari Lazier
78f74211b1 fix for android - create notifier after opening realm 2016-05-13 14:55:36 -07:00
Ari Lazier
0ce3cdf81d hopeful fix for android test 2016-05-13 14:15:34 -07:00
Scott Kyle
323583ed67 Merge pull request #417 from realm/sk-node-6
Fix issues in Node 6
2016-05-12 12:39:31 -07:00
Ari Lazier
299c82b7d2 pr feedback 2016-05-12 11:42:22 -07:00
Nabil Hachicha
895c6a3056 Copying embedded Realm files using AssetManager from JNI 2016-05-11 19:56:59 +01:00
Ari Lazier
cf4fd74f52 pr fixes for build script 2016-05-10 14:01:27 -07:00
Ari Lazier
a960d88893 add project for building/debugging node 2016-05-09 15:16:37 -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
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
76c2d3cd54 fix leaking realm 2016-05-05 17:10:56 -07:00
Ari Lazier
7a6141e066 fix for object link nullification 2016-05-05 14:08:58 -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
8eef37a46f remove extraneous quote 2016-05-02 12:57:15 -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
Ari Lazier
b9b3812c86 support for read-only realms 2016-04-28 15:42:28 -07:00
Ari Lazier
a2ed550dde Merge pull request #383 from realm/al-migration
Basic data migrations
2016-04-28 15:40:27 -07:00
Ari Lazier
2c85f032d9 compare non-existent properties to undefined 2016-04-28 13:21:30 -07:00
Ari Lazier
af9b54074e pr feedback 2016-04-28 13:03:38 -07:00
Ari Lazier
79446f957a test and bug fixes 2016-04-28 12:44:48 -07:00
Ari Lazier
cff099a4af tests and bugfixes 2016-04-28 12:16:16 -07:00
Scott Kyle
041530ee72 Add validate_read() check to Results::set_live()
If the Results is detached, then this can cause a crash.
2016-04-28 09:39:53 -07:00