Skip to content

Latest commit

 

History

History
138 lines (97 loc) · 6.24 KB

File metadata and controls

138 lines (97 loc) · 6.24 KB

CHANGELOG

3.1.1 - 2017-06-17

  • Fixed the error that Service Account Autodiscovery was not working when no Discoverer was given.

3.1.0 - 2017-06-10

  • Deprecated Kreait\Firebase\Factory::withCredentials() (Documentation)
  • Extracted Service Account discovery to a distinct component (Documentation)
    • Added Kreait\Firebase\ServiceAccount::discover()
    • You can now add your own discovery methods (Documentation)
  • Updated and restructured the documentation

3.0.2 - 2017-06-08

  • Added additional checks to ensure given credentials are valid and readable
  • When using the Factory and passing the path to an invalid credentials file, the factory would continue to try to get the credentials e.g. from one of the environment variables. This has now changed: the factory immediately quits when given invalid credentials.

3.0.1 - 2017-04-25

  • When the credentials file has not been found, a CredentialsNotFound exception is thrown, including the information which paths have been tried.

3.0.0 - 2017-04-22

  • Moved all classes inside the Kreait namespace to avoid possible conflicts with official Firebase PHP libraries using the Firebase namespace.
  • Removed database secret authentication, as it has been deprecated by Firebase.

Please visit the Migration section in the docs to see which changes in your code are required when upgrading from 2.x to 3.0.

2.3.1 - 2017-04-12

  • Fixes the problem that it wasn't possible to use startAt/endAt/equalTo with string values.

2.3.0 - 2017-04-06

  • Allow the usage of a custom token handler when creating a new Firebase instance by adding the factory method withTokenHandler(\Firebase\Auth\Token\Handler $handler)

2.2.0 - 2017-03-14

  • Introduce Firebase\Factory to create Firebase instances, and deprecate the previous static instantiation methods on the Firebase class. It is now possible to omit an explicit JSON credentials file,
    • if one of the following environment variables is set with the path to the credentials file:
      • FIREBASE_CREDENTIALS
      • GOOGLE_APPLICATION_CREDENTIALS
    • or if the file is located at
      • ~/.config/gcloud/application_default_credentials.json (Linux, MacOS)
      • $APPDATA/gcloud/application_default_credentials.json (Windows)
  • Updated documentation at http://firebase-php.readthedocs.io

2.1.3 - 2017-02-23

  • Ensure that guzzlehttp/psr7 1.4.0 is not used, as it breaks backwards compatibility (see guzzle/psr7#138)

2.1.2 - 2017-02-19

2.1.1 - 2017-02-18

2.1.0 - 2017-02-07

2.0.2 - 2016-12-26

  • Added a SERVER_TIMESTAMP constant to the Firebase\Database class to ease the population of fields with Firebase's timestamp server value

    use Firebase\Database;
    
    $ref = $db->getReference('my-ref')
              ->set('created_at', Database::SERVER_TIMESTAMP); 

2.0.1 - 2016-12-02

  • Rename "Firebase SDK" to "Firebase Admin SDK for PHP" to emphasize the similarity to the newly introduced official Admin SDKs.
  • Added method Reference::getPath() to retrieve the full relative path to a node.
  • Updated docs to make clearer that authenticating with a Database Secret is not recommended since the official deprecation by Firebase (see the "Database Secrets" section in the "Service Accounts" tab of a project )
  • It is now possible to pass a JSON string as the Service Account parameter on Firebase::fromServiceAccount(). Until now, a string would have been treated as the path to a JSON file.

2.0.0 - 2016-11-06

  • First stable release

2.0.0-beta3 - 2016-11-05

  • A PermissionDenied exception is thrown when a request violates the Firebase Realtime Database rules
  • An IndexNotDefined exception is thrown when a Query is performed on an unindexed subtree
  • Removes the query option to sort results in descending order.
    • Nice in theory, conflicted in practice: when combined with limitToFirst() or limitToLast(), results were lost because Firebase sorts in ascending order and limits the results before we can process them further.
  • Adds a new Method Reference::getChildKeys() to retrieve the key names of a reference's children

2.0.0-beta2 - 2016-10-11

2.0.0-beta1 - 2016-08-14

  • Rewrite, beta status due to missing documentation for the new version.

1.x