Skip to content
New issue

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

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

Already on GitHub? # to your account

refactor!: Make query() result an Iterable #3209

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

filiph
Copy link
Contributor

@filiph filiph commented Jun 25, 2024

Description

Avoid hard-to-detect bugs by disallowing people to touch the list that they get from query().

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Related Issues

filiph added 2 commits June 25, 2024 16:15
Avoid hard-to-detect bugs by disallowing people to touch the list that they get from `query()`.
@filiph
Copy link
Contributor Author

filiph commented Jun 25, 2024

As discussed, this PR includes a dart doc that might help developers when using query(). This change assumes the List --> Iterable change in OrderedSet.

@filiph filiph changed the title [WIP] refactor: Make query() result unmodifiable [WIP] refactor: Make query() result an Iterable Jun 25, 2024
@spydon
Copy link
Member

spydon commented Jun 28, 2024

ordered_set 6.0.0 is now released so this PR can be updated to depend on that :)

@filiph
Copy link
Contributor Author

filiph commented Jun 28, 2024

Done.

@filiph filiph changed the title [WIP] refactor: Make query() result an Iterable refactor: Make query() result an Iterable Jun 28, 2024
@spydon spydon changed the title refactor: Make query() result an Iterable refactor!: Make query() result an Iterable Jun 28, 2024
@spydon spydon merged commit c094caa into flame-engine:main Jun 28, 2024
10 checks passed
@filiph filiph deleted the feat/query-unmodifiable-list branch June 28, 2024 19:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants