Skip to content

Releases: kreait/firebase-php

6.5.0

21 Jun 22:56
2ed045c
Compare
Choose a tag to compare

Added

  • Problems while fetching Dynamic Link statistics now result in more helpful exception messages. (#707)

Changed

6.4.1

14 Jun 23:19
c14ed1b
Compare
Choose a tag to compare

Fixed

  • Updating a Realtime Database Ruleset converted lists to objects with numeric keys. (#707)

5.26.3

14 Jun 23:10
8eb92e2
Compare
Choose a tag to compare

Fixed

  • Updating a Realtime Database Ruleset converted lists to objects with numeric keys. (backported from #707)

6.4.0

08 Jun 15:55
8aa5b12
Compare
Choose a tag to compare

Added

  • If not already set, APNs configs are enriched with the necessary headers and fields to ensure the delivery of iOS background messages and alerts.
    • The apns-push-type header is set to background or alert
    • The content-available field is set to 1 in case of a background message
  • FCM Messages are now annotated for better PHPStan/Psalm resolution
  • Added methods
    • \Kreait\Firebase\Messaging\AndroidConfig::withMinimalNotificationPriority()
    • \Kreait\Firebase\Messaging\AndroidConfig::withLowNotificationPriority()
    • \Kreait\Firebase\Messaging\AndroidConfig::withDefaultNotificationPriority()
    • \Kreait\Firebase\Messaging\AndroidConfig::withHighNotificationPriority()
    • \Kreait\Firebase\Messaging\AndroidConfig::withMaximalNotificationPriority()
    • \Kreait\Firebase\Messaging\AndroidConfig::withNotificationPriority()
    • \Kreait\Firebase\Messaging\AndroidConfig::withUnspecifiedNotificationPriority()
    • \Kreait\Firebase\Messaging\AndroidConfig::withPrivateNotificationVisibility()
    • \Kreait\Firebase\Messaging\AndroidConfig::withPublicNotificationVisibility()
    • \Kreait\Firebase\Messaging\AndroidConfig::withSecretNotificationVisibility()
    • \Kreait\Firebase\Messaging\AndroidConfig::withNotificationVisibility()
    • \Kreait\Firebase\Messaging\ApnsConfig::data()
    • \Kreait\Firebase\Messaging\ApnsConfig::hasHeader()
    • \Kreait\Firebase\Messaging\ApnsConfig::isAlert()
    • \Kreait\Firebase\Messaging\ApnsConfig::toArray()
    • \Kreait\Firebase\Messaging\ApnsConfig::withApsField()
    • \Kreait\Firebase\Messaging\ApnsConfig::withDataField()
    • \Kreait\Firebase\Messaging\ApnsConfig::withHeader()

Changed

  • FCM notifications (Kreait\Firebase\Messaging\Notification) can now be created with null values. If a notification has only null values, the notification payload will be removed on serialization as if it wasn't provided at all.
  • Deprecations
    • \Kreait\Firebase\Messaging\AndroidConfig::withHighPriority(), use \Kreait\Firebase\Messaging\AndroidConfig::withHighMessagePriority() instead
    • \Kreait\Firebase\Messaging\AndroidConfig::withNormalPriority(), use \Kreait\Firebase\Messaging\AndroidConfig::withNormalMessagePriority() instead
    • \Kreait\Firebase\Messaging\AndroidConfig::withPriority(), use \Kreait\Firebase\Messaging\AndroidConfig::withMessagePriority() instead

6.3.1

06 May 23:29
dba320d
Compare
Choose a tag to compare

Fixed

  • Nested lists in custom user claims were not correctly encoded. (#699)

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

5.26.2

06 May 23:24
da0e60f
Compare
Choose a tag to compare

Fixed

  • Nested lists in custom user claims were not correctly encoded. (#699)

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

6.3.0

24 Apr 20:41
611a578
Compare
Choose a tag to compare

Added

  • Added support for the Firebase Auth Emulator. (#692) (Documentation)
  • Tenant aware session cookie handling is now officially supported.

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

6.2.0

02 Mar 23:34
7eee99e
Compare
Choose a tag to compare

Added

  • Cloud Messaging: Added support for APNS subtitles (supported by iOS 9+, silently ignored for others) (#692)
  • Auth: In Auth::listUsers(), if the specified batch size exceeds the specified maximum number of to be returned users, the batch size will be reduced from the default 1000. As an example: previously, Auth::listUsers(2) would have downloaded 1000 accounts (the default batch size), but return only the first two. After the change, only two accounts will be downloaded.
  • Added methods
    • Kreait\Firebase\Messaging\ApnsConfig::withSubtitle()

Changed

  • Replaced internal JSON helper class with beste/json
  • Deprecated classes
    • Kreait\Firebase\Util\JSON

6.1.0

28 Jan 10:29
c498938
Compare
Choose a tag to compare

Added

  • Added convenience method to bulk-remove multiple children of an RTDB Reference (#686)
  • Added support for Session Cookie Verification.
    • Tenants don't seem to be supported at the moment (creating or verifying a Session Cookie with a tenant-enabled Firebase project yields an UNSUPPORTED_TENANT_OPERATION error), but once it is supported, the SDK will need no or just minimal updates. Integration tests are in place to checking for this error so that we know early on when it starts working.
  • Added methods:
    • Kreait\Firebase\Auth::verifySessionCookie()
    • Kreait\Firebase\Database\Reference::removeChildren()

Changed

  • Tenant-aware auth methods are now tested the same way as tenant-unaware methods. In order to achieve this, some internal implementations had to be changed, warranting this minor version bump. Please note that the tests uncovered that creating session tokens is currently not possible when working with tenants. (GitHub issue / Google Issue Tracker issue))
  • Deprecated classes
    • Kreait\Firebase\Auth\CreateActionLink\ApiRequest
    • Kreait\Firebase\Auth\CreateSessionCookie\ApiRequest
    • Kreait\Firebase\Auth\SendActionLink\ApiRequest

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏

6.0.1

16 Jan 12:01
fe3bc70
Compare
Choose a tag to compare

Fixed

  • When signing in with IdP credentials a user's Firebase UID is retrieved from the returned localId field, if present

If you or your team rely on this project and me maintaining it, please consider becoming a Sponsor 🙏