Scott Kyle
5a9ad4f2b9
Rename InvalidConstructor to UncallableConstructor
2016-02-29 12:35:12 -08:00
Scott Kyle
ad24673776
Rename util.createList to createCollection
...
Sounds more generic this way.
2016-02-29 12:34:29 -08:00
Scott Kyle
4ea2e729b4
Support many Array methods on List and Results
...
Resolves #18
2016-02-29 03:24:58 -08:00
Scott Kyle
236d0a5eed
Ensure List and Results constructors throw exception
...
This was already done from native code, but needed to happen for the browser shim and be tested.
2016-02-29 03:24:58 -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
a5ec799a7c
Copy whole lib module into JS test bundle
...
This meant we needed to rename tests/lib to tests/js so they folder names would not conflict.
2016-02-29 03:24:58 -08:00
Scott Kyle
154422a3d1
Make realm instances pass instanceof check
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
Ari Lazier
66404c4d81
Merge pull request #282 from realm/al-encryption
...
Add encryption support
2016-02-26 11:55:03 -08:00
Ari Lazier
4177b0fb40
fix for test naming
2016-02-26 11:18:47 -08:00
Ari Lazier
00d2c2a74a
add encryption support
2016-02-26 11:08:59 -08:00
Ari Lazier
e495cc4685
add encryption support
2016-02-26 11:08:59 -08:00
Thomas Goyne
086192f8d3
Add minimal Results notification tests
2016-02-26 10:24:46 -08:00
Thomas Goyne
773e7db14d
Add a helper class to generate temp paths for tests
2016-02-26 09:47:51 -08:00
Thomas Goyne
b7b2822082
Make it possible to disable the commit notifier background worker
...
This makes it much easier to write tests which test the work done on the
background thread.
2016-02-25 11:19:00 -08:00
Thomas Goyne
cfc88b6fd5
Rename CachedRealm to WeakRealmNotfier
2016-02-24 16:58:11 -08:00
Thomas Goyne
143cc3b696
Fix compilation with GCC 4.9
...
4.9 does not correctly implement C++14 aggregate initialization.
2016-02-24 16:58:11 -08:00
Thomas Goyne
99037a7c72
Add an AtomicSharedPtr implementation for gcc 4.9
2016-02-24 16:58:11 -08:00
Thomas Goyne
1e35324d97
Avoid holding locks while calling transaction::advance()
...
It can call user code due to change notifications, which leads to
deadlocks if that code then tries to add async queries (and advancing is
a potentially expensive operation, so doing it while holding a lock
inhibits parallelism anyway).
2016-02-24 16:58:11 -08:00
Thomas Goyne
8284340729
Remove redundant check in RealmCoordinator::advance_helper_shared_group_to_latest()
2016-02-24 16:58:11 -08:00
Thomas Goyne
4e18a99dfd
Update some out-of-date comments
2016-02-24 16:58:10 -08:00
Thomas Goyne
aa67216574
Write a much better comment about thread stuff for AsyncQuery
2016-02-24 16:58:10 -08:00
Thomas Goyne
ad46e307a2
Update the comments for Realm::Internal
2016-02-24 16:58:10 -08:00
Thomas Goyne
1430fcf474
Rename AsyncFriend to Interal
2016-02-24 16:58:10 -08:00
Thomas Goyne
c46a2a34de
Fix typos and minor errors in comments
2016-02-24 16:58:10 -08:00
Thomas Goyne
db7d6fa2a8
Don't hold onto the tableview between runs of async queries
...
Updating the table view in advance_read() can be very expensive, and the
updated data is never actually used.
2016-02-24 16:58:10 -08:00
Thomas Goyne
a95eb50915
Don't create background queries for Results on threads without runloops
2016-02-24 16:58:09 -08:00
Thomas Goyne
3e90c30571
Add more tests and fix bugs
2016-02-24 16:58:09 -08:00
Thomas Goyne
8c4f2a4f30
Reduce the scope of class friendships
2016-02-24 16:58:09 -08:00
Thomas Goyne
13e1054553
Don't continue to run queries in the background if the result is unused
2016-02-24 16:58:09 -08:00
Thomas Goyne
934263f76a
Automatically create the async query when converting to a TableView
2016-02-24 16:58:09 -08:00
Thomas Goyne
8f668fdf09
Use a single AsyncQuery per Results regardless of number of callbacks added
2016-02-24 16:58:08 -08:00
Thomas Goyne
d165458601
Add support for running queries asynchronously
2016-02-24 16:58:08 -08:00
Thomas Goyne
565e39a287
Merge pull request #47 from realm/tg/core-0.96.2
...
Update to core 0.96.2
2016-02-24 10:12:04 -08:00
Thomas Goyne
bceec93a69
Update to core 0.96.2
2016-02-23 15:01:35 -08:00
Scott Kyle
f26415cd02
Bump version to 0.10.0
2016-02-21 20:43:13 -08:00
Tim Anglade
4df1b9785f
Fix getting started link
2016-02-21 19:25:43 -08:00
Tim Anglade
36326217f8
Fix repo mention in README
2016-02-21 19:23:54 -08:00
Tim Anglade
ceee56cb9b
Fix ampersand in package.json
2016-02-21 19:19:55 -08:00
Scott Kyle
fb97973f64
Merge pull request #260 from realm/sk-package-json
...
Update package.json with stuff needed for npm
2016-02-21 19:09:09 -08:00
Tim Anglade
7a6bec9649
Tweaks
2016-02-21 19:07:47 -08:00
Scott Kyle
66572c139b
Update package.json with stuff needed for npm
...
Resolves #220
2016-02-21 19:07:33 -08:00
Scott Kyle
89ce54799f
Merge pull request #271 from realm/sk-docs-update
...
Update API docs with sorted/filtered changes
2016-02-21 19:03:49 -08:00
Tim Anglade
7cc2f69736
Merge pull request #264 from realm/km-js-fixlicense
...
License update
2016-02-21 18:56:59 -08:00
Scott Kyle
ab94f5f314
Merge pull request #270 from realm/sk-port-forward
...
Automatically forward port 8082 for Android
2016-02-21 18:05:09 -08:00
Scott Kyle
c1e5cb03cf
Update API docs with sorted/filtered changes
2016-02-21 17:51:58 -08:00
Ari Lazier
4c965fd09c
Merge pull request #269 from realm/al-example-class
...
Use classes in the example
2016-02-21 17:40:28 -08:00
Scott Kyle
52a1fa9196
Automatically forward port 8082 for Android
...
Fixes #249
2016-02-21 16:57:05 -08:00
Ari Lazier
349d227252
use classes in the examples
2016-02-21 12:16:42 -08:00