Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ChangeNotifier generic typing issue #76

Merged
merged 2 commits into from
Dec 10, 2018

Conversation

buhhy
Copy link
Contributor

@buhhy buhhy commented Dec 5, 2018

Fix ChangeNotifier generic typing issue - ChangeRecord.ANY and ChangeRecord.None is not typesafe for any subclasses of ChangeNotifier that subclass the generic.

Proposed solution is to output a ChangeRecords extends List<ChangeRecord> with additional metadata to indicate the change is ANY or NONE.

Advantage of this change is that it is backwards compatible with existing code while fixing type exceptions for future code.

…Record.None is not typesafe for any subclasses of ChangeNotifier that subclass the generic.

Proposed solution is to output a `ChangeRecords extends List<ChangeRecord>` with additional metadata to indicate the change is ANY or NONE.

Advantage of this change is that it is backwards compatible with existing code while fixing type exceptions for future code.
@buhhy buhhy changed the title Fix ChangeNotifier generic typing issue - ChangeRecord.ANY and Change… Fix ChangeNotifier generic typing issue Dec 5, 2018
@nshahan
Copy link
Contributor

nshahan commented Dec 5, 2018

Thanks! Could you push one more change that includes a description of the new features/behavior in the CHANGELOG.md?

I'll handle updating the versions and publishing it once this is merged.

@nshahan nshahan self-assigned this Dec 5, 2018
@nshahan nshahan merged commit 0153584 into google:master Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants