Commit Graph

1098 Commits

Author SHA1 Message Date
Scott Kyle 42cdf9daad Disallow non-constructors to have schema property
Non-constructor functions (e.g. arrow functions and native functions) as well as regular objects should not be allowed as valid schema hosts. Neither of these cases were ever actually tested or used anywhere.
2016-03-03 02:52:15 -08:00
Scott Kyle 85832f0f02 Rename some functions according to PR feedback 2016-03-03 02:49:37 -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 578e6b9742 Merge pull request #288 from realm/sk-array-methods
Steal Array.prototype methods for List and Results
2016-03-01 00:38:27 -08:00
Scott Kyle 72bf66e57e Check for some iterator methods before testing them
Some JS engines (like Chrome) are skipping over values() due to a web compatibility reason for right now.
2016-03-01 00:14:18 -08:00
Scott Kyle bceef3c340 Move encryption-tests to right directory
This wasn't caught in a rebase, oops!
2016-02-29 12:39:00 -08:00
Scott Kyle 3858ede7c7 Rename RJSObjectSetProperty to RJSValidatedSetProperty 2016-02-29 12:37:28 -08:00
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 e495cc4685 add encryption support 2016-02-26 11:08:59 -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
Scott Kyle ba0ff5fbaf Merge pull request #265 from realm/nh/fixes_255_debug_server
start debug server only on when using chrome debug
2016-02-19 16:25:14 -08:00
Nabil Hachicha 9bcebfaf29 PR feedback 2016-02-19 22:50:30 +00:00
Scott Kyle f4f6d67a4c Change license headers on analytics files 2016-02-19 14:30:38 -08:00
Scott Kyle f5a15473b9 Merge pull request #263 from realm/sk-packager-bugfix
No longer delete before npm installing local modules
2016-02-19 14:19:05 -08:00
Nabil Hachicha 76981229ab start debug server only on when using chrome debug 2016-02-19 19:05:07 +00:00
Scott Kyle 4647ab4543 Remove installArchives for Android from test script
This is no longer needed
2016-02-19 02:53:47 -08:00
Scott Kyle d81ce5c49a Update test script to always use nvm if possible 2016-02-19 02:53:10 -08:00
Scott Kyle 600a8909d3 Install all modules before running packager for tests 2016-02-19 02:28:59 -08:00
Scott Kyle 1ab3a8a985 No longer delete before npm installing local modules
This doesn't appear to have been necessary and seems to sometimes cause an issue because the packager will start and look for a JS file that was just deleted.
2016-02-19 02:03:54 -08:00
Scott Kyle 2e3a3b5db8 Merge pull request #257 from realm/sk-schema-prop
The schema property should be directly on constructor
2016-02-18 16:27:47 -08:00
Scott Kyle 54d5dd3aeb Revert "Temporarily remove License from README"
This reverts commit 1cf4debd9f.
2016-02-18 15:32:54 -08:00
Karson Miller 84b06fd8e0 missed a couple 2016-02-18 15:30:44 -08:00
Karson Miller 55e8555c23 Add LICENSE file 2016-02-18 15:30:44 -08:00
Karson Miller 5e9333b699 no message 2016-02-18 15:30:44 -08:00
Scott Kyle 1cf4debd9f Temporarily remove License from README 2016-02-18 15:28:41 -08:00
Scott Kyle a661350e59 Merge branch 'sk-sorted-results'
* sk-sorted-results:
  Add sorted() method to List
  Further improve argument checking for sorted()
  Improve error message in sorted() method
  Change sortedBy API as discussed
  Allow sortedBy to accept array of properties
  Change sortByProperty to return new Results
2016-02-18 15:21:35 -08:00
Scott Kyle b6154b4138 Merge pull request #248 from realm/sk-mixpanel
Add Mixpanel Analytics
2016-02-18 14:59:48 -08:00