Commit Graph

3445 Commits

Author SHA1 Message Date
Kenneth Geisshirt 8b9fc3c3b7 [2.20.0] Bump version 2018-11-22 16:14:28 +01:00
Kenneth Geisshirt b49f2f594b
Protect the context from being GCed (#2127)
* Protect the context from being GCed
2018-11-22 16:12:58 +01:00
Kenneth Geisshirt 85a92ca85c
Realm._constructor() has been replaced by Realm._asyncOpen() (#2111)
* Realm._constructor() has been replaced by Realm._asyncOpen()
2018-11-22 09:27:46 +01:00
Christian Melchior a680084788
Add support for uploading and downloading all changes (#2124) 2018-11-21 23:40:03 +01:00
Thomas Goyne 05a65ce49c Check the correct name when adding permissions object schemas to the schema
The `name` property of the schema object is the name of the class (i.e. `Role`
for the role object) rather than the schema name (i.e. `__Role`). This happened
to work if only the predefined schema objects were used and no user-defined
classes had the non-underscore-prefixed names, but broke otherwise.
2018-11-20 07:47:08 -08:00
Brian Munkholm 3637e07a96
Update README.md 2018-11-20 14:24:55 +01:00
Nikola Irinchev c173d3cca7
Don't refresh tokens for sessions that have been closed (#2119)
* Don't refresh tokens for sessions that have been closed

* Changelog entry
2018-11-19 12:05:59 +01:00
Christian Melchior 6f36efb81e
Add support for a custom User Agent (#2114) 2018-11-19 10:45:58 +01:00
Christian Melchior 747709df02
Add lower bound when refreshing tokens. (#2116) 2018-11-16 13:58:32 +01:00
Kenneth Geisshirt f676724fde Adding changelog template 2018-11-15 21:56:16 +01:00
Kenneth Geisshirt 28b3525bb5 Merge branch 'master' of github.com:realm/realm-js 2018-11-15 15:36:52 +01:00
Kenneth Geisshirt 0a178397e2 [2.19.1] Bump version 2018-11-15 15:36:34 +01:00
Kenneth Geisshirt d4b798ef89 [2.19.1] Bump version 2018-11-15 15:32:21 +01:00
Kenneth Geisshirt d67cf99f33
Preparing v2.19.1 (#2113)
* Upgrading core + sync
* Updating to an object store with a sync fix
* Steeling from https://github.com/realm/realm-js/pull/2114 to match sync/object store
2018-11-15 15:30:28 +01:00
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