Upgrading firebase-admin 6 to 7
Breaking6.9.0 → 7.7.0Breaking3Platform1Deprecated2New7Changed2Fixed6Other14
BreakingUpgrade verdict
3 breaking changes and a platform requirement change.
In plain terms
- AutoML features are no longer available in the SDK.
- The bulk FCM send methods are removed; use the send-each APIs instead.
- The SDK no longer depends on google-api-python-client, making it much smaller.
- The SDK no longer runs on Python 3.7 or 3.8.
Must act Top 5 of 6 that need code or config changes
Python requirement changed in 7.0.0: >=3.7 → >=3.9.
Drops google-api-python-client.
Installs 34 packages in all (was 39).
What you must change
Breaking3
Drops AutoML support.
Drops the send_all() and send_multicast() FCM APIs.
send_all()send_multicast()Removes the dependency on google-api-python-client, greatly reducing bundle size.
google-api-python-clientPlatform1
Drops support for Python 3.7 and 3.8.
Deprecations to plan for
Deprecated2
Deprecates the Machine Learning APIs.
Deprecates support for Python 3.9 and requires Python 3.10 or higher.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- changed:
function verify_token(token: str, app=…) -> Dict[str, Any] → function verify_token(token: str, app=…, consume: bool=…) -> Dict[str, Any]
- added:
variable InvalidHostingLinkDomainError
- removed:
function send_all(messages, dry_run=…, app=…) - removed:
function send_multicast(multicast_message, dry_run=…, app=…) - changed:
function subscribe_to_topic(tokens, topic, app=…) → function subscribe_to_topic(tokens: Union[str, List[str]], topic: str, app: Optional[App]=…) -> TopicManagementResponse - changed:
function unsubscribe_from_topic(tokens, topic, app=…) → function unsubscribe_from_topic(tokens: Union[str, List[str]], topic: str, app: Optional[App]=…) -> TopicManagementResponse - added:
async function subscribe_to_topic_async(tokens: Union[str, List[str]], topic: str, app: Optional[App]=…) -> TopicManagementResponse - added:
async function unsubscribe_from_topic_async(tokens: Union[str, List[str]], topic: str, app: Optional[App]=…) -> TopicManagementResponse - added:
function subscribe_to_topic_legacy(tokens: Union[str, List[str]], topic: str, app: Optional[App]=…) -> TopicManagementResponse - added:
function unsubscribe_from_topic_legacy(tokens: Union[str, List[str]], topic: str, app: Optional[App]=…) -> TopicManagementResponse
- removed:
class TFLiteAutoMlSource(TFLiteModelSource) - removed:
constructor TFLiteAutoMlSource(auto_ml_model, app=…) - removed:
method TFLiteAutoMlSource.as_dict(for_upload=…) - removed:
property TFLiteAutoMlSource.auto_ml_model
- added:
class ExpiredTokenError(InvalidTokenError) - added:
class InvalidTokenError(exceptions.InvalidArgumentError) - added:
class PhoneNumberVerificationToken(dict) - added:
constructor ExpiredTokenError(message, cause=…, http_response=…) - added:
constructor InvalidTokenError(message, cause=…, http_response=…) - added:
constructor PhoneNumberVerificationToken(claims) - added:
function verify_token(token: str, app: Optional[App]=…) -> PhoneNumberVerificationToken - added:
property PhoneNumberVerificationToken.audience -> str - added:
property PhoneNumberVerificationToken.claims - added:
property PhoneNumberVerificationToken.exp -> int - added:
property PhoneNumberVerificationToken.iat -> int - added:
property PhoneNumberVerificationToken.issuer -> str - added:
property PhoneNumberVerificationToken.phone_number -> str - added:
property PhoneNumberVerificationToken.sub -> str