Commit Graph

100 Commits

Author SHA1 Message Date
Salakar d0b6972e39 [database][js] fixed a regression where snapshot.child() would no longer work on array values 2018-04-22 00:29:33 +01:00
Salakar 5589ed7f4f [database] fix flow issue 2018-04-16 10:11:18 +01:00
Salakar f1e9d28869 [firestore] add support for `DocumentSnapshot.get('dot.notated.field.path')` 2018-04-12 12:30:41 +01:00
Chris Bianca 804ef772c0 [database] Fix issue with server time offset #910 2018-03-27 16:33:51 +01:00
Chris Bianca 1a5253997d [database] Multi database check url format, and make logging static 2018-03-23 08:42:10 +00:00
JinHao Chen cc8799b465 Implement multiple database shard support 2018-03-21 12:51:02 -07:00
Simon Bengtsson aa2511cbd3 [database][js] Reject promise instead of resolving an error object when ref.once('value') fails 2018-03-08 14:10:41 +01:00
Salakar a21fc755a1 merge master 2018-03-01 16:32:44 +00:00
Chris Bianca c57c6a74a8 [flow] Remove custom flow error tag 2018-02-17 12:55:19 +00:00
Chris Bianca 4e81527246 [types] Export app, auth, database and firestore types 2018-02-14 13:00:19 +00:00
Chris Bianca 1199b2bb33 [types] Rename back to proper capitalised file name 2018-02-14 10:07:07 +00:00
Chris Bianca 0d348392eb [types] More temp renames for capitalisation 2018-02-14 10:05:28 +00:00
Chris Bianca c8106a3897 [types] Temp rename of file to allow capitalisation 2018-02-14 10:02:34 +00:00
Salakar 609324e292 [database] remove transaction listener instance from class 2018-02-13 13:58:52 +00:00
Chris Bianca 0ace49ca81 [database] Fix wrong path from snapshot reference #679 2018-01-26 11:55:37 +00:00
Chris Bianca fba6380729 [js] Run prettier for the first time 2018-01-25 18:25:39 +00:00
Chris Bianca 301f2749c0 [internals] Migrate multi app flag to module configuration 2018-01-09 17:32:08 +00:00
Chris Bianca d1f2b3fcfa [internals][types] Fix a couple of minor issues 2018-01-05 18:23:38 +00:00
Chris Bianca 80cb54ee6d [internals][types] Last part of internal refactor; Got rid of remaining flow errors 2018-01-05 17:20:10 +00:00
Chris Bianca 0fe2fec819 [internals] More tidy up and hiding of internal functions 2018-01-03 20:00:38 +00:00
Chris Bianca 61d7c3b2eb [internals] Move native events to individual modules to make it easier to see the relationship 2017-12-22 15:57:33 +00:00
Chris Bianca f2c2007fdc [internals] Start refactoring some of the internals to simplify, tidy up and also reduce flow type pollution 2017-12-22 15:24:31 +00:00
Chris Bianca 19cec2cd8b Better flow config to remove unrelated errors 2017-12-04 12:07:41 +00:00
Chris Bianca d9b033f6c7 Merge branch 'master' of https://github.com/invertase/react-native-firebase 2017-11-23 17:30:12 +00:00
Chris Bianca ff95c21b9d [typings] Continue work on flow 2017-11-23 17:29:40 +00:00
Elliot Hesp 78a2b0a81a
Merge pull request #603 from gyfelton/transaction-promise-resolve
Make sure the promise is resolved/rejected for transaction
2017-11-20 09:27:14 +00:00
Chris Bianca fbe73f5dcb [types] Get types properly exporting as part of the build 2017-11-17 16:17:27 +00:00
Elton Gao 0c550f3586 Make sure the promise is resolved/rejected for transaction
Right now the following code will be broken:
```
async function() {
  await ref.transaction(
              function(foo) {
                 // deal with foo
              },
              function(error, committed, ss) {
                 // additional work on complete callback
              },
              true
          );
  // NOTE: Code from here will never execute because promise above never gets resolved
}
```
v2 is not returning at the point of calling onComplete, v3 code does
2017-11-09 13:06:51 -05:00
Salakar 7efb14f5b0 [js][database] added `enableLogging(boolean)` method to fix #525 2017-11-08 15:58:44 +00:00
Salakar bd4dc28391 change incorrect comment annotations 2017-10-29 01:27:45 +01:00
Salakar 07204789f0 Fix for #532 2017-10-29 01:10:34 +01:00
Chris Bianca 9822cb34d4 [database] Correctly differentiate limitToLast and other similar clauses 2017-10-23 17:03:49 +01:00
Chris Bianca bc1e827273 [database][js] Fix strict mode issue 2017-10-18 10:40:18 +01:00
Salakar 658821a631 [database] misc todo note 2017-10-05 12:53:47 +01:00
Salakar 701491df18 [database] serverTimeOffset 2017-10-05 12:45:54 +01:00
Salakar ef16ed1d4b remove invalid return from thenable 2017-09-20 11:53:50 +01:00
Michael Diarmid d23c048304 Fix ThenanbleRef promise 2017-09-20 11:50:34 +01:00
Salakar 557face5eb [js][database] fix OnDisconnect incorrectly being constructed + added misc typings 2017-09-07 16:36:47 +01:00
Salakar 63e417fae3 [db][js] fix modifiers not returning new ref instance 2017-08-28 13:28:16 +01:00
Chris Bianca c3f32e54e3 [db] Clean up old files 2017-08-25 17:38:24 +01:00
Chris Bianca d5de6a5b21 [db] Correctly named module for statics 2017-08-25 17:37:52 +01:00
Salakar 9825226665 [js][internals] _NAMESPACE & _NATIVE_MODULE static props for all modules 2017-08-17 17:58:28 +01:00
Salakar 5ccbd9f369 [js][database] synctree cleanup 2017-08-16 21:43:24 +01:00
Salakar e4d27029b9 [js][android] database sync tree implementation with adjusted tests 2017-08-15 21:29:50 +01:00
Salakar c6a26606d1 [js][database] fixed an issue where thenable ref promise would sometimes cause other promises to hang - no idea why ;p 2017-08-14 18:42:39 +01:00
Salakar dedfa48aa0 [js][database] _handleCancelEvent completed - now correctly handles cancellation events from .on() 2017-08-14 18:41:50 +01:00
Salakar 534a52d16a [database][js] remove unused import 2017-08-14 14:01:10 +01:00
Salakar f90db16019 [database][js] ref.isEqual() now correctly compares query modifiers 2017-08-14 13:51:52 +01:00
Salakar e1fc30bc8f [database][js] thenable ref fix for #147 2017-08-14 13:30:44 +01:00
Salakar f1709970e9 [database][wip] on/off logic refactor - heavily still wip so things still to change 2017-08-14 11:05:49 +01:00