Commit Graph

3431 Commits

Author SHA1 Message Date
Nikola Irinchev 0b14436dc4 Fix type definitions - generics return <T & Object> (#2110)
* Be explicit that the return type of generic methods will be an intersection with Object
2018-11-15 11:33:24 +01:00
Nikola Irinchev f0fc556f6e
Give the app a chance to disable analytics (#2108)
* Give the app a chance to disable analytics

* Add changelog and stub for getWindowsIdentifier

* Use node-machine-id to get machine identifier for analytics

* Be async-ier

* Update changelog
2018-11-14 13:33:55 +01:00
Christian Melchior 6549f7ce4e
Add link to issue 2018-11-13 10:26:09 +01:00
Christian Melchior 8d902a7942
Fix Typescript definition for Permission (#2106) 2018-11-13 10:21:31 +01:00
Christian Melchior 4047a826e8
API docs (#2105) 2018-11-12 15:59:47 +01:00
Kenneth Geisshirt b028829f12 Adding changelog template 2018-11-08 11:48:36 +01:00
Brian Munkholm e875c4d897
Update CHANGELOG.md 2018-11-08 11:31:44 +01:00
Kenneth Geisshirt e26bef3cd6 [2.19.0] Bump version 2018-11-08 11:14:58 +01:00
Kenneth Geisshirt f930c0c3b3
Updating CHANGELOG.md for v2.19.0 (#2098)
* Updating CHANGELOG.md for v2.19.0
2018-11-08 11:12:53 +01:00
Kenneth Geisshirt ab9396121b
Node 10 support (#2092)
* Revert "Revert "Fix Node.js 10 support (#1937)""
* Upgrading to Realm Core v5.12.0 and Realm Sync v3.13.1
* Only use node 6, 8, and 10 in pre-gyp
2018-11-08 09:39:42 +01:00
Brian Munkholm 40489ef6e3
Update README.md 2018-11-05 13:38:07 +01:00
Nikola Irinchev 4e6f95d3d0
Throw a meaningful error when refreshing a token for an invalid Realm path (#2084)
* Throw a meaningful error when refreshing a token for an invalid Realm path

* Changelog

* Fix a typo

* Fix a test
2018-10-24 00:33:34 +02:00
Kenneth Geisshirt bc7b98d8c0 Update changelog 2018-10-19 11:22:02 +02:00
Sandy Chapman e1989051d0 Added support for the `n` node version manager (#2078)
Currently Realm expects to use nvm. However, (n)[https://github.com/tj/n} is a valid alternative. This change adds support for users using the `n` version manager.

Expanded script content:

```sh
if [[ -d "$HOME/.asdf/shims" ]]; then
  export PATH=$HOME/.asdf/shims:$PATH
fi

if [[ -d "$HOME/.n" ]]; then
  export N_PREFIX="$HOME/.n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin"
fi

if [[ "$(command -v n)" ]]; then
 n 7.10.0
else
  [ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"

  if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
    . "$HOME/.nvm/nvm.sh"
  elif [[ -x "$(command -v brew)" && -s "$(brew --prefix nvm)/nvm.sh" ]]; then
    . "$(brew --prefix nvm)/nvm.sh"
  fi
 
  if [[ "$(command -v nvm)" ]]; then
    nvm install 7.10.0
  else
    echo "RealmJS requires a node package manager (n or nvm)."
    exit 1
  fi
fi
 
node ../scripts/download-realm.js ios --sync
```
2018-10-19 10:22:41 +02:00
Kenneth Geisshirt 45590b36b8 Fix version number 2018-10-17 10:55:05 +02:00
Kenneth Geisshirt 03643f6c9a Adding changelog template 2018-10-17 10:51:15 +02:00
Kenneth Geisshirt 995a1326e3 [2.19.0-rc.4] Bump version 2018-10-17 09:31:33 +02:00
Kenneth Geisshirt 482c44c129 fix package.json 2018-10-17 08:53:33 +02:00
Nikola Irinchev d88143711c
Unit test for partial Realm schema updates (#2064)
* Add a unit test to verify that the schema of partial Realms gets updated after open

* Add another test that demonstrates the problem

* ensure realm is uploaded

* Add a test to ensure the schema change handler is invoked
2018-10-17 08:51:26 +02:00
Henri Yandell 1a560c3bfe Clarifying licensing per #1987 (#2056)
The README doesn't mention all of the licensing for this project.
2018-10-17 08:49:30 +02:00
Henri Yandell ba7aed5fef Update package.json (#2069)
Pointing to the LICENSE file as Realm JS has mixed licensing
2018-10-17 08:48:54 +02:00
Thomas Goyne ba734467d0 Add a test for using a dynamic schema with query-based sync (#2077)
* Split the partial sync test into several test cases
* Add a test for using a dynamic schema with query-based sync
* Replace some long sleeps in a test with polling with a timeout
* Update objectstore to latest master
* Update changelog
2018-10-17 08:46:39 +02:00
Nikola Irinchev 7cc4e0feee
Use regex instead of simple substring (#2075) 2018-10-16 15:45:59 +02:00
Kenneth Geisshirt 142c626e4f Adding changelog template 2018-10-16 14:34:58 +02:00
Kenneth Geisshirt ac9172ee6e [2.19.0-rc.3] Bump version 2018-10-16 14:09:26 +02:00
Kenneth Geisshirt 1389858e6c
Preparing 2.19.0-rc.3 (#2073) 2018-10-16 14:08:03 +02:00
Thomas Goyne bfb06ac0df Restore support for opening query-based sync Realms with a dynamic schema (#2065)
* Restore support for opening query-based sync Realms with a dynamic schema

* Adjust how the schema is extended for query-based Realms

* Register constructors for permissions types even no schema is supplied

* Remove some cruft from tests

* Fix a use-after-free in dynamic schema mode

* Fix a test
2018-10-16 09:49:16 +02:00
Nikola Irinchev 10f72c5444
Don't schedule multiple token refreshes for the same user/realm (#2071)
* Don't schedule multiple token refreshes for the same user/realm

* Avoid setting a const property
2018-10-15 14:20:19 +02:00
Brian Munkholm cf1632eb0f
Update changelog (#2054)
* Update changelog-header.sh

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
2018-10-10 13:13:32 +02:00
Kenneth Geisshirt 20e21333f5 fixing version 2018-10-10 12:39:14 +02:00
Kenneth Geisshirt 5af5226b5a Adding changelog template 2018-10-10 12:29:34 +02:00
Kenneth Geisshirt 2ef8fd5297 [2.19.0-rc.2] Bump version 2018-10-10 12:03:20 +02:00
Kenneth Geisshirt ffb48ec2ed
Enhancements of subscription api (#2060)
* Adding Realm.subscriptions() and Realm.unsubscribe()
* Update changelog
* RN support
2018-10-10 12:00:04 +02:00
Brian Munkholm d6c1c62a47
Update CHANGELOG.md 2018-10-09 13:26:13 +02:00
Kenneth Geisshirt 305e59b280 Adding changelog template 2018-10-09 12:52:09 +02:00
Nikola Irinchev eead078c0e [2.19.0-rc.1] Bump version 2018-10-09 11:02:00 +02:00
Nikola Irinchev 90c0661715
Auth fixes (#2050)
* Auth fixes
- Typescript definitions for User.login
- Exception thrown from registerWithProvider when a userInfo is not specified

* Ensure we don't use adminUser internally
2018-10-08 15:01:12 +02:00
Nikola Irinchev e9f0113218
Expose customQueryBasedSyncIdentifier in the sync config (#2055)
* Expose customQueryBasedSyncIdentifier in the sync config

* Close the correct Realm
2018-10-08 12:02:44 +02:00
Kenneth Geisshirt e176a3c91d
Typo: file format 9 instead of 7 (#2051) 2018-10-08 09:15:55 +02:00
Kenneth Geisshirt 27c5216c2e Adding changelog template 2018-10-04 14:37:48 +02:00
Kenneth Geisshirt 6ddcdf5255 [2.18.0] Bump version 2018-10-04 14:13:48 +02:00
Kenneth Geisshirt a0585ed739
Prepare v2.18.0 (#2048) 2018-10-04 14:12:08 +02:00
Nikola Irinchev e5c9016424
Handle sync config in Realm.deleteFile (#2045)
* Handle sync config in Realm.deleteFile

* Add changelog and address review comment

* Try to fix tests

* Fix rebase conflicts
2018-10-04 11:04:15 +02:00
Christian Melchior 434e8ca2bc
Align permission API's with Java/Swift (#2036) 2018-10-04 10:09:31 +02:00
Brian Munkholm 188101fac2
Update changelog-header.sh 2018-10-02 11:40:19 +02:00
Brian Munkholm 36947b76c8
Aligned release note template (#2044) 2018-10-02 09:55:39 +02:00
Kenneth Geisshirt b8dad21120 Adding changelog template 2018-09-28 14:52:09 +02:00
Kenneth Geisshirt f5d32a2414 [2.17.0] Bump version 2018-09-28 14:13:50 +02:00
Kenneth Geisshirt 2b12db2370
2.17.x (#2034)
* Upgrading core+sync+ros. Feature token is required and stored in Jenkins.
2018-09-28 14:09:29 +02:00
Kenneth Geisshirt cfe9cbb881 Adding changelog template 2018-09-25 09:03:45 +02:00