Skip to content

5.2.6 ⚡

Latest
Compare
Choose a tag to compare
@poissoncorp poissoncorp released this 07 Mar 12:47
· 29 commits to v5.2 since this release
40b1baf

Breaking changes 🔥

Session methods - lazily.load() and include().load() - #210

  • set object_type argument as optional
  • inverted the object_type and key arguments order
  • lazily.load() now takes a list of str document IDs, not *ids

'Id' property won't be stored at the server anymore - #211

  • Document id is still available as a value of the Id property, but the value is set after serialization
  • Documents loaded as dict objects won't contain the Id key (still available via session.advanced.get_metadata_for(...)["@id"] or session.advanced.get_document_id())
  • Custom from_json methods that have been setting the Id property should skip that step, as the Id property will be set to a valid value after the serialization

What's new 🌬️

  • Added include time series API to subscription includes builder
  • Storing a dict-document while providing document id collection prefix (e.g. session.store({"Name":"Graziano"}, "Users/"}) stores the document under valid collection (e.g. Users), not "dicts"
  • Made object_type argument in get_compare_exchange_values() optional
  • Fixed load_starting_with_into_stream() and made it return bytes stream, instead of passing it as an argument to be modified within the method itself
  • Marked object_type argument as optional in many methods across the API
  • Fixed a bug that caused an error when disposing uninitialized RequestExecutor
  • Improved session.time_series_for() error messages