Skip to content

0.11.0

Choose a tag to compare

@github-actions github-actions released this 21 Sep 21:58
· 10 commits to main since this release
2a7e4f2

What's Changed

  • Fixed the a bug where the busy property on an EmpireViewModel returned an incorrect value if there are multiple different busyTaskKeys assigned.
  • Added additional functionality to EmpireListProperty to bring them closer in line with a plain Dart List object. The following has been added:
    • first (read-only property)
    • last (read-only property)
    • reversed (read-only property)
    • single (read-only property)
    • where (function)
    • firstWhere (function)
    • firstWhereOrNull (function)

BREAKING CHANGES

We found some issues with the arithmetic operator overrides in the EmpireIntProperty and EmpireDoubleProperty classes. For details on the issue, please see GitHub Issue #83. Ultimately, we had to scrap the operator overrides and implement the arithmetic operations as functions.

  • Implemented arithmetic functions for EmpireIntProperty and EmprieDoubleProperty, and their nullable variants
  • Removed the operator overrides

We have also made changes to the constructor signature for EmpireNullableDateTimeProperty and EmpireNullableIntProperty. This was to bring them in line with the other Empire Nullable properties.

  • Updated EmpireNullableDateTimeProperty and EmpireNullableIntProperty constructors so the value argument is optional instead of a required positional argument.

Pull Requests

  • List property improvements by @jshep23 in #82
  • Optional Value Constructor Argument on Nullable Properties by @jshep23 in #80
  • EmpireIntProperty and EmpireDoubleProperty Arithmetic Fixes by @jshep23 in #84
  • Fix setBusyStatus on EmpireViewModel by @jshep23 in #85
  • 0.11.0 Release by @jshep23 in #86

Full Changelog: 0.10.0...0.11.0