Commit Graph

56 Commits

Author SHA1 Message Date
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 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 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 07204789f0 Fix for #532 2017-10-29 01:10:34 +01:00
Chris Bianca bc1e827273 [database][js] Fix strict mode issue 2017-10-18 10:40:18 +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
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 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
Salakar 5e3cf0ad7f [js][database] todo comments 2017-08-11 15:58:42 +01:00
Salakar 425dfbcc43 [js][database] once now supports passing context - as per the web sdk 2017-08-07 09:46:05 +01:00
Salakar fb6251a6fd [js][database] cleanup transaction completion wrapper 2017-08-05 22:00:06 +01:00
Salakar 53acfe3584 [js][database] remove, update, setWithPriority, setPriority & set now correctly support callbacks or promises
[js][database] fixed query modifier methods - were accessing incorrect query property
2017-08-05 21:49:28 +01:00
Salakar b935034592 [database][wip] misc multi-app 2017-08-02 10:38:30 +01:00
Salakar c9efb0087f [database][wip] update reference to support 'ThenableReference' 2017-07-31 18:25:31 +01:00
Salakar e3d1261973 [database][wip] refactor & improvements to add support for multiple apps 2017-07-30 07:34:41 +01:00
Salakar 33470419ed Merge branch 'master' of https://github.com/invertase/react-native-firebase into multi-apps 2017-07-20 09:59:52 +01:00
Chris Bianca 46772d253d [android][ios][database] Add missing setPriority and setWithPriority methods 2017-07-19 18:18:16 +01:00
Salakar 282f953f52 [both] continued work on multi app support - storage now full supported and auth WIP 2017-07-12 15:49:33 +01:00
Salakar c6773dc808 Merge branch 'master' of https://github.com/invertase/react-native-firebase into multi-apps
# Conflicts:
#	android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java
2017-07-12 13:39:29 +01:00
Salakar d1196b98c4 [both][database] Fixed an issue where the reference from a child snapshot was being returned as the parent snapshot when listening to child events 2017-07-04 16:16:08 +01:00
Salakar ec22e510bc more work on multiple app initialization 2017-06-30 17:23:32 +01:00
Chris Bianca b3cd102077 [js][db] Rename .listeners 2017-05-30 12:46:28 +01:00
Chris Bianca ba24a80e09 [js] Fix permissions problem 2017-05-30 12:28:53 +01:00
Ben Styles 477bd2bf54 initial commit 2017-05-10 17:37:03 +01:00
Aleck Greenham 9d5cc856c7 [Database] Add more accurate comments of expected behaviour of Reference.on() 2017-05-09 08:09:03 +01:00
Aleck Greenham 8d665542cc [Database] Standardise error messages and add context support for Reference.on()
- Make error messages raised by Reference.on() same as Web API
- Add support for context argument to Reference.on()
- Add tests for Reference.on()
- Add JSDoc comments for Reference.on() and some other minor methods
2017-05-06 14:33:55 +01:00
Ben Styles 6cee2609b1 fixed some flow and eslint errors 2017-04-28 10:27:29 +01:00
Chris Bianca ef306162b4 [js][android] Support multiple listeners on a single ref 2017-04-26 12:21:53 +01:00
Aleck Greenham 3277126fb4 [js][database] Add ref().isEqual() 2017-04-22 18:00:05 +01:00
Aleck Greenham 3d863ac636 [js][database] Add ref property for consistency with web API 2017-04-22 09:27:37 +01:00
Salakar e6d2693f33 remove weird formatting 2017-04-19 11:30:08 +01:00
Ben Styles 5acea6d218 initial commit: basic flow errors 2017-04-04 17:58:20 +01:00
Salakar bb6b1aa7f2 [android,js][database] transactions support implemented 2017-03-24 22:53:56 +00:00
Salakar f509dfedff android: bump firebase version to 10.2.0 2017-03-10 10:46:55 +00:00