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
351543ca09
Rename callback based on PR feedback
2016-05-10 11:37:09 -07:00
Scott Kyle
4300e865c7
Abstracted check for Node v6
2016-05-10 11:34:33 -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
919d8f7da5
bump version
2016-05-09 15:35:36 -07:00
Ari Lazier
a960d88893
add project for building/debugging node
2016-05-09 15:16:37 -07:00
Ari Lazier
da5a1fb2d8
remove files from test project - they are only needed in the test bundle
2016-05-09 13:44:35 -07:00
Ari Lazier
21b58b6a1e
test that conversion actually works
2016-05-09 13:32:10 -07:00
Ari Lazier
9c7b01091f
convert old date columns
2016-05-09 13:12:48 -07:00
Ari Lazier
f66dcf943f
Header fix
2016-05-09 12:36:25 -07:00
Thomas Goyne
e4ace9ca20
Merge pull request #45 from realm/tg/coverage
...
Add cmake target to generate a code coverage report
2016-05-06 16:15:48 -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
fef4be96bd
Update tests for changing defaults and constructors
2016-05-06 15:41:17 -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
Thomas Goyne
fafc4232ad
Rewrite the code coverage generation
...
Make lcov/gcovr an optional dependency that's only needed for Coverage
configurations, remove some pointless noisy messages when not generating
coverage, and generally simplify the whole thing.
2016-05-06 15:23:30 -07:00
Thomas Goyne
7ab91ea75e
Add cmake target to generate a code coverage report
2016-05-06 12:37:59 -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
047c414e59
update download core script
2016-05-05 13:15:28 -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
Scott Kyle
062b2dc9ed
[0.12.0] Bump version
2016-05-04 13:48:19 -07:00
Thomas Goyne
399b6d88dc
Merge pull request #66 from realm/tg/unregister-realm
...
Use erase-remove_if in RealmCoordinator::unregister_realm()
2016-05-04 12:36:28 -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
Thomas Goyne
25d245deda
Use erase-remove_if in RealmCoordinator::unregister_realm()
2016-05-04 10:21:44 -07:00
Scott Kyle
4cecb0a612
Add close() method API doc
2016-05-04 02:39:06 -07:00
Scott Kyle
4a5ac413cc
Skip test in Node v6 due to v8 regression
2016-05-04 02:15:17 -07:00
Scott Kyle
24dab1e8d7
Heed v8 warning in Node v6 from v8::Template::Set
2016-05-04 02:14:50 -07:00
Scott Kyle
43e3f94ca6
Update to the latest nan for Node v6 support
2016-05-04 02:14:01 -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
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