PackageTrack
Sign in Get early access

fake_cloud_firestore

Previously known as cloud_firestore_mocks. Fake implementation of Cloud Firestore. Use this package to unit test apps that use Cloud Firestore.

4.2.0 219K downloads/mo #817 most downloaded on pub.dev atn832/fake_cloud_firestore

What this package is like to depend on

Last release 1 months ago

17 Jul 2026

Release timing varies

gaps range from 2 weeks to 9 months

Most releases are documented

notes for 44 of 52 stable releases

Nothing withdrawn

no release was ever pulled

5 years old

52 releases · first in 2021

7 releases in the last 12 months

see the full history below

Release timeline

52 releases · May 2021 to Jul 2026
2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 52
  1. 4.2.0 17 Jul 2026
    Release notes

    Upgraded MockWriteBatch's update() signature to match cloud_firestore 6.7.1 (PR-339). Thank you jt274 and jamesdhutton!

    Open source →
  2. 4.1.1 16 May 2026
    Release notes

    Upgraded cloud_firestore_platform_interface to ^8.0.0 (PR-336). Thank you Wim-Hexagons!

    Open source →
  3. 4.1.0 25 Mar 2026

    Nothing published for this version

  4. 4.1.0+1 25 Mar 2026
    Release notes

    Update Transaction.update and WriteBatch.update signatures for cloud_firestore 6.2.0 (PR-335). Thank you TonyDowney!

    Open source →
  5. 4.0.2 11 Mar 2026

    Nothing published for this version

  6. 4.0.2+1 11 Mar 2026
    Release notes

    Remove the dependency on package:quiver (switch from quiver's hash2 function to dart:core's Object.hash) (PR-333). Thank you devoncarew!

    Open source →
  7. 4.0.1 26 Dec 2025
    Release notes

    Support querying by __name__ (PR-330). Thank you ben-milanko!

    Open source →
  8. 4.0.0 31 Jul 2025
    Release notes

    Upgrade to Firestore 6.0.0. PR-325. Thank you jt274!

    Open source →
  9. 3.1.0 06 Nov 2024
    Release notes

    Improvements to Queries:

    • Support Filters.
    • Fix order by multiple fields.

    Thank you ominibyte! PR-319

    Open source →
  10. 3.0.3 17 Sep 2024
    Release notes
    Open source →
  11. 3.0.2 28 Jul 2024
    Release notes
    • Support including multiple docChanges when documents are added in parallel. Thank you KholmatovS! PR-312.
    • Support including multiple docChanges when documents are modified or deleted in parallel. PR-314.
    Open source →
  12. 3.0.1 18 Jun 2024
    Release notes

    Fixed batch commit to properly await commands. Thank you nomtats! PR-310

    Open source →
  13. 3.0.0 05 Jun 2024
    Release notes

    Upgrade to Firestore 5.0.0. PR-309

    Open source →
  14. 2.5.2 31 May 2024
    Release notes

    Fixed broadcast of non converted snapshots when modifying a converted document. Thank you diegogarciar! PR-295.

    Open source →
  15. 2.5.1 19 Apr 2024
    Release notes
    • Added ListenSource? source to Query.snapshots() and DocumentReference.snapshots() to match firestore 4.17.0. Thank you fwal! PR-306.
    • Upgraded rx to 0.4.0. PR-307.
    Open source →
  16. 2.5.0 19 Apr 2024

    Nothing published for this version

  17. 2.4.9 31 Mar 2024
    Release notes
    • Fixed composite key query on empty document. Thank you KholmatovS! PR-298.
    • Fixed documentReference.get() on empty document. PR-299.
    Open source →
  18. 2.4.8 14 Jan 2024

    Nothing published for this version

  19. 2.4.7 09 Jan 2024
    Release notes

    Support aggregate queries for converted queries. Thank you ming-chu! PR-291.

    Open source →
  20. 2.4.6 04 Jan 2024
    Release notes

    Support passing a Clock for FieldValue.serverTimestamp(). Thank you ming-chu! PR-287.

    Open source →
  21. 2.4.5 26 Dec 2023
    Release notes
    • Fixed query snapshots to correctly fire and emit document changes (PR-284).
    • Implemented limit to arrayContainsAny and fixed the limit to whereIn (PR-286).
    • Implemented FakeFirebaseFirestore.clearPersistence() (PR-285).

    Thank you KholmatovS for all 3 PRs!

    Open source →
  22. 2.4.4 23 Nov 2023
    Release notes
    • Fixed a concurrency error when someone subscribed to a query during an update to that same query. Thank you jonasN5! PR-282, PR-283.
    Open source →
  23. 2.4.3 24 Oct 2023
    Release notes
    • Support mocking Exceptions for DocumentReference.update, set, delete. Thank you mrunix00! PR-276.
    Open source →
  24. 2.4.2 19 Oct 2023
    Release notes

    Upgraded rx to ^0.3.0 and cloud_firestore_platform_interface to ^6.0.1. PR-274

    Open source →
  25. 2.4.1 12 Mar 2023

    Nothing published for this version

  26. 2.4.1+1 12 Mar 2023
    Release notes
    • Support querying with FieldPath.documentID. Thank you agent3bood!
    Open source →
  27. 2.4.0 18 Feb 2023
    Release notes

    Fixed API to support cloud_firestore 4.4.0:

    • support Iterable in queries instead of List.
    • support FieldPath on DocumentReference.update.

    Thank you sydneyagcaoili!

    Also fixed deletion so that it reflects on dump. Thank you ga-bri-el!

    Open source →
  28. 2.3.0 10 Jan 2023
    Release notes
    • Implemented checking Document access with Security Rules (PR-260).
    • Fixed DocumentReference.path to always return a path without a starting '/' (commit c01eb23).
    Open source →
  29. 2.3.0+1 10 Jan 2023
    Release notes

    Fixed changelog to include a fix in version 2.2.0.

    Open source →
  30. 2.3.0+2 10 Jan 2023

    Nothing published for this version

  31. 2.3.0+3 10 Jan 2023
    Release notes

    Added imports in the README example on security rules.

    Open source →
  32. 2.2.0 03 Jan 2023
    Release notes
    • Support mocking Exceptions for DocumentReference.set (PR-258).
    • Support printing out GeoPoint in dump (PR-257). Thank you ga-bri-el!
    Open source →
  33. 2.1.0 11 Dec 2022
    Release notes
    • support GetOptions.source when querying data. Thank you danReynolds!
    • fixed Exception code from cloud_firestore/not-found to not-found to match Firestore. Thank you Zambrella!
    • fixed comparison of FieldValue.delete() and FieldValue.serverTimestamp() values. Thank you Zohenn!
    • fixed exception when ordering with null values. Thank you ming-chu!
    • implemented QuerySnapshot.metadata. Thank you agent3bood!
    Open source →
  34. 2.0.1 20 Oct 2022
    Release notes
    • implemented Query.count for converted queries.
    Open source →
  35. 2.0.0 20 Oct 2022

    Nothing published for this version

  36. 2.0.0+1 20 Oct 2022

    Nothing published for this version

  37. 2.0.0+2 20 Oct 2022
    Release notes
    • migrated to Firestore 4.0.0.
    • implemented Query.count for collections (converted or not) and non-converted queries.
    Open source →
  38. 1.3.2 15 Oct 2022
    Release notes
    • fixed the handling of maps in FieldValue.arrayUnion and FieldValue.arrayRemove.
    • correctly throws an exception when attempting to save nested lists.
    • DocumentSnapshot.get correctly throws an exception when a value is not found.

    Thank you Zohenn for all 3 fixes!

    Open source →
  39. 1.3.1 26 Aug 2022
    Release notes
    • support Query.limit for converted queries. Thank you xni06!
    • support DateTime in Query.where. Thank you Zohenn!
    Open source →
  40. 1.3.0 31 Jul 2022
    Release notes
    Open source →
  41. 1.2.4 01 Jul 2022
    Release notes
    • made Document.update throw an exception if trying to update a non-existent document.
    Open source →
  42. 1.2.3 26 Jun 2022
    Release notes
    • fixed an exception Document.update when replacing a non map value with a map value. Thank you Sapphirewhale!
    • support whereNotIn in Query.where. Thank you KingOfDog!
    • fixed orderBy when used with startAt, endAt. Thank you cedvdb!
    Open source →
  43. 1.2.2 20 Mar 2022
    Release notes
    • support FieldPath in DocumentSnapshot.get(). Thank you jpangburn!
    • make notEqualTo ignore docs when the field does not exist. Thank you jpangburn!
    • implemented endAtDocument, endBefore, endBeforeDocument and startAtDocument in Query. Thank you Andrew-Bekhiet!
    • make DocumentReference.snapshots() emit the first event as soon as the stream is returned. Thank you Andrew-Bekhiet!
    Open source →
  44. 1.2.1 18 Feb 2022
    Release notes
    • fixed a regression where DocumentReference stopped firing an event when deleted.
    • fixed a null pointer exception when getting a deleted document's snapshot with converter. Thank you cedvdb!
    Open source →
  45. 1.2.0 24 Nov 2021
    Release notes
    • migrated to Firestore 3.0.0. Thank you mboyamike!
    • fixed a null pointer exception when deleting a document using a converter. Thank you wesleyfuchter!
    • fixed a null pointer exception when using isGreaterThan and the likes on null values. Thank you fkoch-tgm!
    Open source →
  46. 1.1.3 23 Aug 2021
    Release notes
    • support Converters for startAt/startAfter/endAt queries.
    • fixed a bug where a collection would not fire a snapshot if one of its documents was modified if it was in a sub-collection instead of the root.
    • fire an exception when a batch contains more than 500 updates. Thank you YuKiO-output!
    Open source →
  47. 1.1.2 11 Jun 2021
    Release notes
    • implemented Query.startAfter.
    Open source →
  48. 1.1.1 06 Jun 2021
    Release notes
    • fixed a bug where the snapshot wouldn't fire if you got a Query.snapshot, then started listening to it after.
    • fixed a bug where the snapshot wouldn't fire on an empty collection.
    Open source →
  49. 1.1.0 20 May 2021
    Release notes
    • migrated to Firestore 2.2.0.
    Open source →
  50. 1.0.2 20 May 2021
    Release notes
    • fixed an exception when calling snapshots() on both the raw and converted reference.
    • implemented DocumentReference.set when using withConverter.
    • implemented Query.firestore.
    Open source →
  51. 1.0.1 19 May 2021
    Release notes
    • implemented withConverter for CollectionReference, DocumentReference and Query.
    Open source →
  52. 1.0.0 19 May 2021
    Release notes

    Breaking change:

    • renamed the library from cloud_firestore_mocks to fake_cloud_firestore
    • renamed MockFirestoreInstance to FakeFirebaseFirestore.

    Migration notes

    In pubspec.yaml file, replace cloud_firestore_mocks: ^0.9.0 by fake_cloud_firestore: ^1.0.0.

    Then in tests, replace:

    import 'package:cloud_firestore_mocks/cloud_firestore_mocks.dart';
    
    final firestore = MockFirestoreInstance();
    

    By:

    import 'package:fake_cloud_firestore/fake_cloud_firestore.dart';
    
    final firestore = FakeFirebaseFirestore();
    
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive