changelogs.md


digitalliving/firedantic

Repository  -  API  -  Source

0.2.4

May 24, 2021

Fixed

  • Allow firedantic to be used with older versions of google-cloud-firestore that works with the firestore emulator on Windows.

0.2.3

May 21, 2021

Added

  • firedantic.operators with operators as constants to avoid gotchas with filters like not-in and array_contains. Preferable way to build queries is to import firedantic.operators as op and then use op.NOT_IN, op.ARRAY_CONTAINS, op.GTE and so on.

Fixed

  • Fix filter bug affecting array_contains and array_contains_any
  • Update pydantic to ^1.8.2 that fixes CVE-2021-29510

0.2.2

April 29, 2021

Added

  • Helpers for truncating collections

Changed

  • Make the filter optional for find and find_one

0.2.1

March 31, 2021

Changed

  • Update google-cloud-firestore to 2.1.0 that supports async with firestore emulator. Using an officially released version of google-cloud-firestore from PyPI will also make it possible to get this release of firedantic uploaded to PyPI.

0.2.0

March 29, 2021

Added

  • New AsyncModel that supports async and await syntax.

Changed

  • Refactor file structure; models.py no longer exists, so make sure to import Model directly from firedantic: from firedantic import Model
  • Update google-cloud-firestore. The 2.0.2 version has an issue with running in async mode against the emulator, that has been fixed in the git master, but not included in any official release yet. Using the latest master (pinned to the commit hash). In case you are using poetry to install firedantic, please be aware that poetry has an issue with updating from a pypi package to a git commit. The simplest work-around is to after updating firedantic (and thus also google-cloud-firestore) delete the virtualenv and then run poetry install again
  • Update pydantic to 1.8.1 and grpcio to 1.36.1
  • Fixes for Mypy errors and warnings
  • Updated examples in README

0.1.4

December 8, 2020

Added

  • Model.find to do more complex queries supporting all Firestore operators

0.1.3

November 9, 2020

Changed

  • Respect model's aliases when saving a model

Added

  • CollectionNotDefined error
  • truncate_collection class method for Model

0.1.2

September 21, 2020

Changed

  • Update README.md
  • Add imports to root level init
  • Update CHANGELOG.md
  • Bump version

0.1.1

September 21, 2020

Removed

  • .nvmrc
  • .prettierrc.yaml

Updated

  • README.md with build status badge
  • Only run deploy to PyPi on Python 3.6 environment
  • CHANGELOG.md
  • Bump version

0.1.0

September 21, 2020

Added

  • Project files
  • CHANGELOG.md

Changed

  • Update README.md
  • Update .gitignore