1485 Commits

Author SHA1 Message Date
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
f66dcf943f Header fix 2016-05-09 12:36:25 -07:00
Scott Kyle
062b2dc9ed [0.12.0] Bump version v0.12.0 2016-05-04 13:48:19 -07:00
Scott Kyle
d93f5d7584 Merge pull request #419 from realm/sk-close-docs
Add close() method API doc
2016-05-04 11:48:27 -07:00
Scott Kyle
9fff367ce0 Reword close() API doc based on PR feedback 2016-05-04 11:47:11 -07:00
Scott Kyle
4cecb0a612 Add close() method API doc 2016-05-04 02:39:06 -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
df08fad4ea changelog 2016-05-03 13:06:41 -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 v0.12.0-rc 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
4fa35b7a12 Merge pull request #413 from realm/sk-schema-docs
Add schema property to API docs and update CHANGELOG
2016-05-03 07:34:23 -07:00
Scott Kyle
4ceafd182d Update CHANGELOG with missing items 2016-05-02 19:14:21 -07:00
Scott Kyle
77a55ee024 Add API docs for the schema property 2016-05-02 18:28:54 -07:00
Scott Kyle
aad9960aea Merge pull request #396 from realm/sk-react-native-24
Update test and example apps to use React Native 0.24.1
2016-05-02 18:11:02 -07:00
Scott Kyle
a1c090c406 Merge pull request #411 from realm/sk-rnpm-bump
Bump rnpm dependency to 1.6.5
2016-05-02 18:10:20 -07:00
Scott Kyle
9afeb06131 Merge pull request #402 from realm/sk-api-docs
API doc updates
2016-05-02 17:52:14 -07:00
Scott Kyle
db1283255f Make React reloads and testing more reliable
Changed where we wait on the previous JS thread, which ultimately makes it more reliable and no longer leak memory on reloads.

Resolves #397
2016-05-02 16:19:29 -07:00
Scott Kyle
933e6070c5 Update test and example apps to use React Native 0.24.1
This might make tests run more reliably on iOS due to some internal changes, mainly "Stop the runloop from invalidate instead of dealloc" (99c7de2).
2016-05-02 16:19:29 -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
Scott Kyle
02dfed99bd Add API docs for migration functions 2016-05-02 13:49:40 -07:00
Scott Kyle
15b69e381d Add API docs for readOnly 2016-05-02 13:21:02 -07:00
Ari Lazier
9b9f721f29 Merge pull request #412 from realm/al-schema-error
Fix error message when specifying invalid schema
2016-05-02 13:13:52 -07:00
Scott Kyle
f59e1d972c API doc update for Realm.Object class 2016-05-02 13:12:49 -07:00
Scott Kyle
b50870b040 API doc updates for path and schemaVersion properties 2016-05-02 13:12:49 -07:00
Ari Lazier
8eef37a46f remove extraneous quote 2016-05-02 12:57:15 -07:00
Ari Lazier
f8bd610050 changelog 2016-05-02 12:46:34 -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
28150e27cb Bump rnpm dependency to 1.6.5 2016-05-02 01:41:37 -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
29c214021a Merge pull request #405 from realm/al-read-only
Support for readOnly realms
2016-04-29 13:53:15 -07:00
Ari Lazier
9af26fb603 remove references to dead projects 2016-04-29 13:41:37 -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
950b75fd2f Fix broken testResultsInvalidation test on Chrome
We needed more actions to actually get sent over the RPC.
2016-04-29 11:16:21 -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
0fdb008477 test fixes/additions 2016-04-28 14:08:54 -07:00
Ari Lazier
2c85f032d9 compare non-existent properties to undefined 2016-04-28 13:21:30 -07:00
Ari Lazier
a9eaf93acb test dynamic schema access 2016-04-28 13:03:42 -07:00
Ari Lazier
af9b54074e pr feedback 2016-04-28 13:03:38 -07:00