Scott Kyle
cdcb99a502
Improvements from PR feedback
2016-06-09 13:07:05 -07:00
Scott Kyle
cd0bb079b7
Implement objectForPrimaryKey() method
...
Resolves #328
2016-06-03 16:51:32 -07:00
Ari Lazier
e7b341dfdb
merge latest from master
2016-05-13 15:05:19 -07:00
Ari Lazier
9c1b923797
fixes for test app
2016-05-13 13:05:39 -07:00
Scott Kyle
d4b7a6bed3
Update RPC layer for changing constructors
...
This is very important for hot module reloading.
2016-05-06 15:42:17 -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
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
2b35360117
add readOnly property
2016-04-28 15:50:43 -07:00
Scott Kyle
df14c7760d
Fix Realm.Object in Chrome debug mode
2016-04-26 17:33:33 -07:00
Ari Lazier
b59784670b
create RealmObject class and make isValid a member
2016-04-26 16:30:04 -07:00
Ari Lazier
3509caedd5
bugfix for empty results, fix for realm.isValid
2016-04-19 17:29:34 -07:00
Scott Kyle
275334fa7e
Remove definition of Realm.Types from browser shim
...
It's added in the top-level index.js file
2016-04-19 03:24:15 -07:00
Scott Kyle
0e74362e4c
Merge pull request #340 from realm/sk-collection
...
Make List and Results inherit from Collection
2016-03-21 15:27:18 -07:00
Ari Lazier
836cfc1c6b
add chrome debugging, use -1 for not versioned
2016-03-21 13:34:12 -07:00
Scott Kyle
b5ce02c0ce
Make List and Results inherit from Collection
...
This will allow for easier type checking, documentation, etc.
2016-03-20 11:51:16 -07:00
Scott Kyle
1e652d9f2a
Merge pull request #292 from realm/sk-debug-on-device
...
Use device IP addresses to connect to RPC host
2016-03-16 12:51:24 -07:00
Scott Kyle
00b19d95b8
Use device IP addresses to connect to RPC host
...
It still only tries localhost for the simulator, but for devices, we now get a list of possible IP addresses to attempt to connect to before throw a more helpful exception.
Resolves #284 and fixes #276
2016-03-01 00:56:45 -08:00
Scott Kyle
4a81b091cb
Accept constructor in create() and objects() methods
...
This will help the linter prevent spelling mistakes and make some code more easily readable.
Resolves #233
2016-03-01 00:46:03 -08:00
Scott Kyle
b1f656a252
Convert browser module to use ES6 modules
2016-02-29 03:24:58 -08:00
Scott Kyle
44a29d8dd4
Expose List and Results constructors into JS
2016-02-29 03:24:58 -08:00
Scott Kyle
97e6166597
Move browser JS shim under its own directory
2016-02-29 03:24:58 -08:00