Commit Graph

146 Commits

Author SHA1 Message Date
Maximilian Alexander 775bd8e2ff adding ts and package.json typings (#1076)
* adding ts and package.json typings

* remove DefinitelyTyped needed comments, we are hosting this ourselves

* adding licensing comments

* Added initial contribution support

Thanks @akim95

* changing year

* adding parameters

* Expand on collection typings

* update the windows pre-gyp script (#1072)

* Extract admin status from the refresh token (#1078)

* Extract admin status from the refresh token

Fixes #1063

* wire up rpc

* Make sure all callbacks enqueue on the Node.js event loop (#1079)

Fixes #1077

* Use an uncached realm instance for _waitForDownload (#1083)

Fixes #1061

* Add objectSchema method to Realm Object (#1055)

* Add objectSchema property to Realm Object

* fix

* fixes

* move typings under lib/

* changelog
2017-06-20 13:09:01 +02:00
Yavor Georgiev 0f5d6a1df4
[1.8.0] Bump version 2017-06-15 16:27:43 +02:00
Niklas Nisbeth 236f8df1aa update pre-gyp info in package.json (#1030) 2017-06-15 15:52:32 +02:00
kristiandupont 401a6043bf [1.3.1] Bump version 2017-05-18 13:13:28 +02:00
blagoev 26a0079135 remove obsolete scripts 2017-05-18 07:53:37 +03:00
blagoev be328accb4 Merge pull request #1021 from realm/download-api-3
Download API with fixes for windows build
2017-05-17 20:07:00 +03:00
blagoev 468e69d76e Improve VS Code debug
Allow debugging of session-tests and improve VS Code debug tasks.
New VS Code task to download and start server for debugging
New VS Code tasks to build only changed files and full rebuild
2017-05-17 16:05:15 +03:00
blagoev 018afe6207 Revert "Download api (aka open async api)" 2017-05-17 15:12:30 +03:00
blagoev 8258e184f4 Merge pull request #1005 from realm/download-api
Download api (aka open async api)
2017-05-17 14:29:42 +03:00
kristiandupont a916958941 [1.3.0] Bump version 2017-05-11 14:34:52 +02:00
blagoev 9a73d9d215 Improve VS Code debug
Allow debugging of session-tests and improve VS Code debug tasks.
New VS Code task to download and start server for debugging
New VS Code tasks to build only changed files and full rebuild
2017-05-06 15:19:19 +03:00
blagoev 8069c7e25a fix npm scripts 2017-04-20 14:03:54 +03:00
blagoev 8b1bec1123 enable android build on windows 2017-04-20 14:03:54 +03:00
blagoev a33577eccb remove obsolete test nosync targets 2017-03-30 11:24:46 +03:00
blagoev 68e75a4265 enable js debugging of node tests from within vs code 2017-03-28 23:22:31 +03:00
Yavor Georgiev 2881cf5502
[1.2.0] Bump version 2017-03-28 14:49:58 +02:00
blagoev d23d60f272 refactor test.sh to use npm commands
fixed license-check npm command
added test-runners npm command
2017-03-27 19:18:56 +03:00
blagoev 1de37b5844 fix license-check command 2017-03-27 19:18:56 +03:00
blagoev edf4cb5760 rewrite most test commands to be platform agnostic 2017-03-27 19:18:56 +03:00
Kristian Dupont c4535bdf1a Improve api docs (#920)
* Set docs title in configuration

* Add markdown plugin to jsdoc

* Add query language tutorial to docs

* jsdoc template submodule updated

* Add query docs

* Document placeholders and composition operators

* Add logo

* Add note about boolean checks

* Fixes as per PR comments
2017-03-22 12:54:35 +01:00
Yavor Georgiev cfc330305b
[1.1.1] Bump version 2017-03-09 14:35:30 +01:00
Yavor Georgiev 9e70a493e9 Make sure there is only one .gyp file in the tarball (#901) 2017-03-09 14:34:01 +01:00
Yavor Georgiev 72329865ec
[1.1.0] Bump version 2017-03-09 11:53:00 +01:00
Yavor Georgiev db8ebd9333 Node.js Win32 support (#864)
* Remove the windows install check

* Node.js Win32 support

* Bring back the `REALM_HAVE_CONFIG` definition

* Download core for Windows when building

* Implement cross-platform node platform.cpp with libuv

* wip

* Make jasmine run quicker

https://github.com/jasmine/jasmine/issues/1204

* Wait for worker process to close in AsyncTests

* Cross-platform paths in tests

* Normalize path separator for forward slash on Windows

* MSVC exception voodoo

* cross-platform uv_cwd

* fix linux build

* make the prepublish script cross-platform

* Disable encryption tests on windows

* ignore vendor/realm-node

* jenkinsfile work

* Only run the prepublish script for publish and pack

* Jenkinsfile work

* Include gyp files in package

* rewrite default_realm_file_directory()

* fix React Native Android build

* delete all realm artifacts in remove_realm_files_from_directory

* bring back build environment variables

* node-pre-gyp windows

* Update CHANGELOG.md
2017-03-07 23:24:30 +01:00
kristiandupont 0840c136b9 [1.0.2] Bump version 2017-02-07 13:01:16 +01:00
Kristian Dupont 9eaba13f12 Validate that dependencies have valid licenses (#841) 2017-02-06 11:33:14 +01:00
Yavor Georgiev f22efa7117
[1.0.1] Bump version 2017-02-02 15:50:17 +01:00
Yavor Georgiev de3c3e6788
[1.0.0] Bump version 2017-02-02 13:51:53 +01:00
Kristian Dupont 0c9c5ac407 Add missing chrome debugging apis for Sync.User (#801)
* Add user tests

* Add Sync member to Realm

* Add a simple test for addListener

* Introduce browser User class

* Introduce Sync.User proxy

* Fix User.all

* Add User.logout

* Remove some console.log statements

* Update rpc.cpp from tests-folder

* Use user.current from user-methods, not cpp

* remove user.current from two missing places

* Start server in realmjs and react tests

* Add user tests

* Add Sync member to Realm

* Add a simple test for addListener

* Introduce browser User class

* Introduce Sync.User proxy

* Fix User.all

* Add User.logout

* Remove some console.log statements

* Update rpc.cpp from tests-folder

* Use user.current from user-methods, not cpp

* remove user.current from two missing places

* Start server in realmjs and react tests

* Replace needle with node-fetch

* Make AuthError work in the browser

* Allow for persistent callbacks

* Expose _authenticateRealm to native

* Use clear_test_state in roc

* Streamline test inclusion

* Fix login tests

* Promisify testLogin()

* Disable AsyncTests for now

* Mode jasmine timeout to spec/unit_tests.js

* Avoid use of global for fetch module

* Only include user-tests is sync is enabled

* Skip ROS for android tests

* Add some comments about persistent callbacks

* Fix results-test

* Run async-tests in node

* Add a comment about (user object)

* Cache all users in User.current and return promises in fetch

* node_require async-tests so RN doesn't try and package them

* Add missing parenthesis
2017-01-31 14:07:29 +01:00
Kristian Dupont 35c21c203f [0.15.4] Bump version 2017-01-11 12:53:01 +01:00
Kristian Dupont f9f61aeb36 [0.15.3] Bump version 2017-01-10 16:21:11 +01:00
Kristian Dupont f0fd0d4308 [0.15.2] Bump version 2016-12-29 10:35:07 +01:00
Kristian Dupont 63cd9013cc Add install script to conditionally launch node-pre-gyp (#689)
* Add user file

* Add install script to conditionally launch node-pre-gyp

* Let install script deal with plain npm install

* Make eslint happy

* Use require.resolve instead of brittle relative path

* Update install script to forward pre-gyp error

* Fix error in install.js

* Revert "Add user file"

This reverts commit 2948f4cfc2dfd2d5d75594307b1e89806b817eb7.
2016-12-20 17:10:37 +01:00
Radu Tutueanu d7c44fa7e9 Use mockery in tests to setup the realm module path(#727)
* Use mockery to set up the realm module path

* Use the right path

* Add mockery to devDependencies

* Remove unnecessary symbolic link
2016-12-09 09:05:15 +01:00
Adam Lebsack 9900d24181 Merge pull request #664 from realm/ajl/add-tests
Added tests directory to package.json
2016-11-28 13:44:44 +01:00
Ari Lazier f44f31e721 [0.15.1-rc] Bump version 2016-11-22 16:42:07 -08:00
Adam Lebsack e5293f9ef0 Added tests directory to package.json 2016-11-17 16:15:08 +01:00
Kristian Dupont bb837b4580 Add request dependency 2016-11-16 20:49:32 +01:00
Ari Lazier 038a025b81 [0.15.0] Bump version 2016-11-15 11:10:07 -08:00
Ari Lazier fabaf5e819 Merge pull request #653 from realm/nh/update_android
Nh/update android
2016-11-15 10:06:20 -08:00
Ari Lazier db524a56a2 [0.15.0-rc] Bump version 2016-11-15 05:42:25 -08:00
Ari Lazier ca3fb62c59 ci build fixes for android 2016-11-15 05:08:26 -08:00
Søren Vind 06d277aacd Bumped version of ESLint, added eslinting of specs, make all linting pass 2016-11-14 10:48:50 -08:00
Nabil Hachicha fdf88c2f78 Adding a build type to switch between Core & Core+Sync 2016-11-14 13:26:33 +00:00
Radu Tutueanu 63371d1e2b Fix package.json 2016-11-10 13:57:06 +01:00
Radu Tutueanu b38c428e82 Use dependencies.list
Fixes  #644
2016-11-10 13:53:28 +01:00
Søren Vind d5cd3d7266 Download and start ROS before running tests + Run all tests + Run using node4.4.7 2016-11-08 16:47:20 -08:00
Ari Lazier 5a49dbc325 make sync work with RealmJS tests 2016-10-27 13:49:41 -07:00
Yavor Georgiev 5623653477 prepare for the glorious future 2016-10-08 19:36:03 +02:00
Ari Lazier 9d0df0de3d Sync and fine grained notifications 2016-10-04 15:07:14 -07:00
Ari Lazier 860519c6b5 [0.14.3] Bump version 2016-08-15 11:12:36 -07:00
Ari Lazier 3e55944818 [0.14.3-rc] Bump version 2016-08-15 11:12:36 -07:00
Ari Lazier ad97836d19 [0.14.2] Bump version 2016-07-31 14:25:13 -07:00
Scott Kyle 717d6781a1 Add support for debugging in Visual Studio Code
Since Code runs in Node, rather than Chrome, we need to require the `sync-request` module. The global `__debug__` object was exposed by the vscode-react-native plugin v0.1.5 for us to be able to do that.

Resolves #374
2016-06-29 16:02:50 -07:00
Scott Kyle c026c198ea Merge tag 'v0.14.1'
* tag 'v0.14.1':
  [0.14.1] Bump version
  [0.14.0-rc] Bump version
  Disable "Strip Linked Product" on our static libs
  Fix for linker error when building for iOS 7
2016-06-28 17:32:48 -07:00
Scott Kyle 51ec21e37b [0.14.1] Bump version 2016-06-28 17:27:49 -07:00
Scott Kyle 63adf8732e [0.14.0-rc] Bump version 2016-06-28 12:15:36 -07:00
Scott Kyle e0ff68059b Remove rnpm post install script
This will mean we only support rnpm 1.9.0 and above.
2016-06-22 14:25:35 -04:00
Scott Kyle ebdf505194 Move mockery to dev dependency and upgrade to 1.7.0 2016-06-22 14:25:35 -04:00
Scott Kyle 4e714ac5c3 [0.14.0] Bump version 2016-06-22 11:42:27 -04:00
Scott Kyle dc3d88f053 [0.14.0-rc] Bump version 2016-06-16 17:55:45 -07:00
Scott Kyle 8f3c778b72 Add sharedLibraries to rnpm section of package.json
Now supported by rnpm 1.9.0!
2016-06-16 17:49:47 -07:00
Scott Kyle 846e3b976d Update ESLint dependencies 2016-05-26 15:47:30 -07:00
Scott Kyle 118567ca4e [0.13.2] Bump version 2016-05-26 13:35:29 -07:00
Scott Kyle 47776d9b0a [0.13.1] Bump version 2016-05-24 11:53:10 -07:00
Scott Kyle 64ae03512a [0.13.0] Bump version 2016-05-19 13:33:50 -07:00
Scott Kyle fb887d92f5 [0.13.0-rc] Bump version 2016-05-16 14:48:08 -07:00
Scott Kyle 323583ed67 Merge pull request #417 from realm/sk-node-6
Fix issues in Node 6
2016-05-12 12:39:31 -07:00
Scott Kyle 062b2dc9ed [0.12.0] Bump version 2016-05-04 13:48:19 -07:00
Scott Kyle 43e3f94ca6 Update to the latest nan for Node v6 support 2016-05-04 02:14:01 -07:00
Scott Kyle c8e7ddc3af [0.12.0-rc] Bump version 2016-05-03 12:06:15 -07:00
Scott Kyle 28150e27cb Bump rnpm dependency to 1.6.5 2016-05-02 01:41:37 -07:00
Scott Kyle 4731610a58 Merge branch 'master' into sk-node
* master:
  add keypath tests
  pr feedback, changelog
  typo
  bug fix
  tests
  support keypath comparisons for types that support it
  support for null queries
  don't require optional or link properties when creating objects
  [0.11.1] Bump version
  Update CHANGELOG with 0.11.1 fixes
  Update changelog script
  Remove changes_available implementation that asserts
  Get correct path to adb from Android Studio
  add some simple tests for Realm.write
  Update apps to use React Native 0.22
2016-04-18 14:19:06 -07:00
Scott Kyle 133289ad85 All tests now pass on Node 2016-04-15 16:06:44 -07:00
Scott Kyle 05c432deb1 WIP Node support
The JS engine details are mostly abstracted away. This breaks JSC support until the rest of the pieces are in place. The Node version builds and runs, but crashes when creating a Realm object.
2016-04-12 11:53:30 -07:00
Scott Kyle 2c0d8f8cef [0.11.1] Bump version 2016-03-29 15:30:39 -07:00
Scott Kyle d62f78050e [0.11.0] Bump version 2016-03-24 13:10:24 -07:00
Scott Kyle 4b929f4c02 [0.11.0-rc.1] Bump version 2016-03-23 16:08:02 -07:00
Scott Kyle daa2948028 Move RealmJS.xcodeproj to be under src/ios 2016-03-23 13:39:12 -07:00
Scott Kyle 42485045f3 Support linking project with rnpm
The postlink script takes care of linking in libc++ and libz. So now the only setup instructions will be: `rnpm link realm`.

Resolves #226
2016-03-23 10:51:57 -07:00
Ari Lazier b9475ad772 pr feedback 2016-03-21 11:46:34 -07:00
Scott Kyle 480a9b1327 Update eslint dependencies
The release of 2.4.0 broke babel-eslint 5.x, so updated to the 6.x beta.
2016-03-17 02:04:20 -07:00
Scott Kyle cf3b0c5f15 [0.11.0-rc] Bump version 2016-03-16 13:33:59 -07:00
Scott Kyle 4d6adb9835 Support publishing prerelease version tags 2016-03-16 13:12:55 -07:00
Scott Kyle 27073a9e66 Properly configure ESLint for syntax checking
Added a test case to run on CI as well.
2016-03-16 13:01:38 -07:00
Scott Kyle f26415cd02 Bump version to 0.10.0 2016-02-21 20:43:13 -08:00
Tim Anglade ceee56cb9b Fix ampersand in package.json 2016-02-21 19:19:55 -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 5b2e7b37af Add script to update version in package.json and iOS
This uses agvtool to update the CURRENT_PROJECT_VERSION and DYLIB_CURRENT_VERSION project variables. The Info.plist files have been updated to propagate this value.
2016-02-18 13:58:12 -08:00
Scott Kyle b63dfd1c04 API documentation
This includes the initial draft of API docs that are generated by JSDoc using a template that was greatly improved to best handle this content.
2016-02-12 16:57:13 -08:00
Scott Kyle 69f0241adb Skip building Android module for iOS tests 2016-02-11 13:24:21 -08:00
Nabil Hachicha 7afdbba2ed adding a 'publishAndroid' task to generate the AAR with prebuilt .so files 2016-02-10 16:11:36 -08:00
Scott Kyle 0702fed747 Add `npm test` command 2016-02-08 14:19:16 -08:00
Scott Kyle 1c1b2ec4ab Add postinstall script to create symlinks
This includes a top-level "android" symlink that should allow `react-native link` command to work.
2016-02-08 03:26:27 -08:00
Scott Kyle 3da6b54df6 Add ability to publish NPM module to git
The top-level package.json explicitly includes the directories it needs (vendor/.npmignore cuts down the cruft). The publish-beta.sh script essentially uses `npm pack` to package up the NPM module and then push it into an orphaned `beta` branch.
2015-12-28 22:01:17 -08:00