Skip to content

Latest commit

 

History

History
267 lines (211 loc) · 13.5 KB

CHANGELOG.md

File metadata and controls

267 lines (211 loc) · 13.5 KB

Changelog

All notable changes, fixes, and additions to the project is listed in this changelog.
The project adheres to semantic versioning.

v1.6.9

Added

  • ec5f3dd EventHistory now supports both to_pandas() and to_polars() when extra dependencies are installed.

v1.6.8

Fixed

  • #136 Explicit event attributes and types on Reported class.

v1.6.7

Added

  • #135 Added new value is_backfilled to Temperature event.

v1.6.6

Fixed

  • #134 Added connection constants to ConnectionStatus event.

v1.6.5

Fixed

  • #133 Added missing state on ProbeWireStatus event.

v1.6.4

Added

  • #132 Added support for Contact and ProbeWireStatus events.

v1.6.3

Added

  • #130 Added support for Python 3.12.

v1.6.2

Added

  • #129 Added optional organization_id in method claim_info().

v1.6.1

Fixed

  • #126 Fixed an issue where UTC tzinfo "Z" was appended to iso-strings already containing tzinfo, resulting in an invalid format.

v1.6.0

Changed

  • #124 Bumped pandas extras dependency to major 2.0.
  • #125 Python 3.7 is end-of-life and has been deprecated.

v1.5.6

Fixed

  • #123 Added missing constant disruptive.Device.MOTION.

v1.5.5

Fixed

  • #122 Explicit definition of Key and Member classes.

v1.5.4

Added

  • #121 Support for new remarks field in deskOccupancy events.

v1.5.3

Fixed

  • #120 Unhandled RequestExceptions now raised directly.
  • #119 Redirected /v2/:claim-info to /v2/claimInfo.

Added

  • #118 Python 3.11 support.

v1.5.2

Fixed

  • #117 Method dt.Claim.claim parameter dry_run True by default.

v1.5.1

Fixed

  • #116 Namespace conflict between dt.Device and dt.Claim.Device in documentation.

v1.5.0

Added

  • #114 Implemented Claim API under the dt.Claim namespace.

v1.4.2

Added

  • #112 Event state constants for code completion ease.
  • #113 Experimental events DataFrame support.

v1.4.1

Added

  • #108 Emulator desk occupancy support.

v1.4.0

Fixed

  • #106 NetworkStatus event parameters made optional to better reflect API.
  • #107 Co2 event parameter ppm should be int.

Added

  • #105 Added support for new Desk Occupancy sensor and event.

v1.3.5

Fixed

  • #104 Ensure event constants and classes are re-exported and seen by LSPs.

v1.3.4

Fixed

  • #103 Ensure modules are re-exported and seen by LSPs.

v1.3.3

Added

  • #102 Type-checkers like MyPy will now assume we're PEP 561 compliant.

v1.3.2

Fixed

  • #101 Member class should have attribute member_id.

v1.3.1

Changed

  • #100 Method get_device optional parameter project_id default changed to None for consistency.

v1.3.0

Fixed

  • #95 Changed stream decoding from ascii to utf-8.
  • #97 Retry policy refined to account for more exceptions.

Added

  • #98 Added support for motion sensor and event.
  • #99 Added raw attribute to all resource result classes.

v1.2.2

Changed

  • #93 Attribute Project.id deprecated in favor of Project.project_id.

Added

  • #91 Added Co2- and Pressure events in publish_event() parameter types.
  • #92 Added members errors and outputs to disruptive module.

v1.2.1

Fixed

  • #90 Added missing EVENT_TYPES constant of list of all types.

v1.2.0

Added

  • #89 Added support for new Co2 sensor and its Co2- and Pressure event types.

v1.1.0

Added

  • #87 Package will now authenticate using service account credential environment variables if set.

v1.0.3

Changed

  • #86 Added custom User-Agent header.

v1.0.2

Changed

v1.0.1

Fixed

  • #82 Invalid log_level string would cause recusion fixed.

v1.0.0

Moved to development stage Production/Stable.

v0.7.1

Fixed

  • #80 Fixed formatting bug for non-datetime timestamps.

v0.7.0

Changed

  • #78 Renamed NetworkStatusCloudConnector attribute cloudconnector_id to device_id for consistency.

v0.6.2

Fixed

  • #77 Fixed a bug where Device constructor crashed if productNumber was missing in response.

v0.6.1

Fixed

  • #74 Fixed a bug where the stream would simply exit silently if an error were returned by the API.

Added

  • #75 Added new product_number attribute to Device class.

v0.6.0

Changed

  • #69 Renamed Humidity event attribute "humidity" to "relative_humidity".
  • #70 Replaced EmptyStringError with more general ConfigurationError.

Added

  • #72 Added support for 2nd generation temperature sensors.

v0.5.1

Released on 2021-06-07.

Fixed

  • e1ae80b Added missing constructor for UnknownError.

Added

  • #68 Added stricter rules for MyPy, resulting in stronger typing.

v0.5.0

Released on 2021-05-13.

Changed

  • #52 Replaced disruptive.errors.TypeError and disruptive.errors.ValueError with built-ins.
  • #54 Combined disruptive.Stream.device() and .project() into .event_stream().
  • #56 Method disruptive.Project.update_member() roles parameter no longer optional.
  • #57 Method disruptive.EventHistory.list_events() now returns a list of events, not an EventHistory object.
  • #58 A few key names have been changed.
    • All serviceaccount occurances have been renamed to service_account.
    • All dataconnector occurances have been renamed to data_connector.
  • #60 Auth methods now returns instances of classes special to the chosen method, like ServiceAccountAuth.
  • #61 Renamed a few variables and parameters.
    • Renamed ServiceAccount attribute basic_auth to basic_auth_enabled.
    • Renamed api_url to base_url.
    • Renamed emulator_url to emulator_base_url.
  • #64 Method disruptive.Stream.event_stream() parameter label_filters now takes dict instead of list.

Added

  • #62 Batch-style resource methods now return a list of errors objects.
  • #63 Exceptions are now grouped into four main groups for easier handling.

v0.4.1

Released on 2021-05-04.

Fixed

  • #49 Fixed forgotten Humidity attribute rename from temperature to celsius.
  • #50 ConnectionStatus event parameter available should be list[str], not str.

v0.4.0

Released on 2021-05-02.

Changed

  • #44 A few parameters and attributes has been renamed for consistency.
    • Organization attribute id renamed to organization_id.
    • Methods create_dataconnector() and update_dataconnector() parameter events renamed to event_types.
    • Method get_device() parameter project_id now defaults to wildcard "-" instead of None.
  • #45 Config variable request_retries renamed to request_attempts to better reflect what is actually does.
  • #46 Logging has been expanded to use either disruptive.log_level or the logging module.

v0.3.1

Released on 2021-04-24.

Fixed

  • #39 Request retry logic ran 1 loop too few.

Added

  • #38 Type constant CLOUD_CONNECTOR were missing on the Device resource.
  • #41 Added events module type constants on the form disruptive.events.EVENT_TYPE.

v0.3.0

Released on 2021-04-22.

Changed

  • #27 Various attributes has been changed.
    • Device attribute type renamed to device_type.
    • Device attribute is_emulator renamed to is_emulated.
    • Humidity attribute temperature replaced with celsius and fahrenheit.
  • #35 Moved Data Connector configuration classes to the DataConnector resource.

Fixed

  • #29 Log would show default request_retries even when it was overwritten.
  • #30 Stream.project() did not support **kwargs, which it should.
  • #31 Stream retry logic ran one too many times.

V0.2.3

Released on 2021-04-20.

Fixed

  • #25 Double timezone info (+00:00Z) would break allowed format.

Added

  • #24 Public classes provided with __repr__ that adheres to eval(repr(x)).
  • #26 Added type constants to Device, DataConnector, and Role resource classes.

v0.2.2

Released on 2021-04-18.

Added

  • #23 Added missing metadata about the project for better PyPI presentation.

v0.2.1

Released on 2021-04-17.
Initial pre-release, open-sourcing, and PyPI publication of the project.