Skip to content

Conversation

Lyokone
Copy link
Contributor

@Lyokone Lyokone commented Jul 24, 2025

Summary

Removes all deprecated methods from the cloud_firestore package's front-facing API in preparation for a breaking change release.

Removed Methods

  • databaseURL parameter/property → Use databaseId instead
  • enablePersistence() method → Use Settings.persistenceEnabled instead
  • setIndexConfiguration() method → Use PersistentCacheIndexManager instead
  • enableIndexedDbPersistence() function → Use FirestoreSettings.localCache instead
  • cacheSizeBytes setter → Use FirestoreSettings.localCache instead

Migration Guide

// Before FirebaseFirestore.instanceFor(app: app, databaseURL: 'db'); await firestore.enablePersistence(); await firestore.setIndexConfiguration(indexes: [...]); // After  FirebaseFirestore.instanceFor(app: app, databaseId: 'db'); firestore.settings = const Settings(persistenceEnabled: true); final indexManager = firestore.persistentCacheIndexManager(); await indexManager?.enableIndexAutoCreation();
@Lyokone Lyokone changed the title feat!(firestore): remove deprecated functions feat(firestore)!: remove deprecated functions Jul 24, 2025
Copy link
Member

@russellwheatley russellwheatley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need CI fixing on this one

@Lyokone Lyokone force-pushed the feat/firestore-deprecation branch from 1466627 to 690f050 Compare July 25, 2025 12:03
@Lyokone Lyokone merged commit 67017fd into main Jul 25, 2025
30 of 32 checks passed
@Lyokone Lyokone deleted the feat/firestore-deprecation branch July 25, 2025 14:13
@firebase firebase locked and limited conversation to collaborators Aug 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants