Skip to content

Releases: google/observable

0.22.1+5

10 Dec 22:19
04eae7a
Compare
Choose a tag to compare

Fix generic type error that occurs when using ChangeNotifier with a subclass of
ChangeRecord. Previously, calling notifyChanges() on
class Foo with ChangeNotifier<CustomChangeRecord> {} would throw a type error.
Now, the changes stream emits a custom ChangeRecords class that implements
the List interface. This change is backwards compatible.

0.22.1+3

25 May 17:13
9d09e57
Compare
Choose a tag to compare

Update implementations of the cast() and the deprecated retype() methods.

  • The retype() method on List and Map is deprecated and will be removed.
  • The cast() method should do what the retype() method did.

0.22.1+2

18 May 22:14
baa813d
Compare
Choose a tag to compare

Widen dependency on the quiver package.

0.22.1+1

03 May 16:20
1174dec
Compare
Choose a tag to compare

Fixes for Dart2 runtime type errors.

0.22.1

23 Mar 23:29
Compare
Choose a tag to compare

0.22.1

  • Added ObservableList.castFrom, similar to List.castFrom.

  • Changed ObservableList's cast and retype function to create a forwarding
    instance of ObservableList instead of an instance of List.

0.22.0

19 Mar 17:07
0f6ea75
Compare
Choose a tag to compare

0.22.0

  • Added ObservableMap.castFrom, similar to Map.castFrom.

  • Fixed a bug where ObservableMap's cast and retype function would create
    a new empty instance instead of a forwarding instance.

0.21.3

13 Mar 16:59
635268e
Compare
Choose a tag to compare
  • Support Dart 2 collection methods where previously threw UnimplementedError.

0.21.2

07 Mar 23:31
Compare
Choose a tag to compare
  • Fix toObservable(deep: false) to be shallow again.
  • Remove use of Maps, for better compatibility with Dart 2.

Merge fork between two repos

12 Feb 18:19
Compare
Choose a tag to compare

Breaking Changes

Version 0.21.0 reverts to version 0.17.0+1 with fixes to support Dart 2.
Versions 0.18, 0.19, and 0.20 were not used by the package authors and
effectively unsupported. This resolves the fork that happened at version 0.18
and development can now be supported by the authors.

Reverted Changes

(From 0.20.1)

  • Revert add Observable<List|Set|Map>.unmodifiable for immutable collections
  • Revert add Observable<List|Set|Map>.EMPTY for empty immutable collections
    • This can be used as an optimization for libraries that always need to return
      an observable collection, but don't want to allocate a new instance to
      represent an empty immutable.

(From 0.20.0)

  • Revert add ObservableSet, SetChangeRecord, and SetDiffer

(From 0.19.0)

  • Revert refactor and deprecate ObservableMap-specific API
    • ObservableMap no longer emits #keys and #values change records
    • ObservableMap.spy is deprecated, becomes .delegate instead
  • Revert Potentially breaking: ObservableMap may no longer be extended

Revert considered deprecated to be notified of length changes.

(From 0.18.0)

  • Revert refactor and deprecate ObservableList-specific API
    • ObservableList.applyChangeRecords
    • ObservableList.calculateChangeRecords
    • ObservableList.withLength
    • ObservableList.deliverListChanges
    • ObservableList.discardListChanges
    • ObservableList.hasListChanges
    • ObservableList.listChanges
    • ObservableList.notifyListChange
  • Revert potentially breaking: ObservableList may no longer be extended

Revert considered deprecated to be notified of length, isEmpty and
isNotEmpty PropertyChangeRecords on ObservableList

Changes Applied on top of version 0.17.0+1

(With internal change numbers)

  • Flip deliverChanges from @protected to @visibleForTesting. cl/147029982
  • Fix a typing bug in observable when running with DDC: ChangeRecord.NONE
    creates a List<ChangeRecord>, while the call sites expect a
    List<ListChangeRecord> or List<MapChangeRecord>, respectively.
    cl/155201160
  • Fix Observable._isNotGeneric check. cl/162282107
  • Fix issue with type in deliverChanges. cl/162493576
  • Stop using the comment syntax for generics. cl/163224019
  • Fix ListChangeRecord's added getter. Add checks for the added and removed
    getters in listChangeTests. cl/169261086.
  • Migrate observable to real generic method syntax. cl/170239122
  • Fix only USES_DYNAMIC_AS_BOTTOM error in observable. cl/179946618
  • Cherry pick #46.
  • Stub out Dart 2 core lib changes in ObservableMap.
  • Removed Observable{List|Map}.NONE (not Dart2 compatible).
  • Fix issue with type in ObservableList._notifyListChange. cl/182284033

0.20.4

23 Feb 18:27
Compare
Choose a tag to compare

0.20.4

  • Bug fix: Additional fix around ObservableList.listChanges