-
Notifications
You must be signed in to change notification settings - Fork 44
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
Refactor: Reduce reliance of the package on 3rd party dependencies #72
Refactor: Reduce reliance of the package on 3rd party dependencies #72
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if you should get rid of the collection
package.
We could bump it by a few versions since you are now targeting sdk >= 3.0.0
collection was only used for |
…raverhealth#72) * refactor: remove dependency to pedantic * refactor: removed equatable * refactor: enforce typing of MessageSerializer callbacks * refactor: removed dependency to meta * chore: bump dev_dependencies * refactor: removed dependency to collection * refactor: removed dependency to quiver * refactor: made PhoenixSocketEvent const * refactor: set empty list for receivers * refactor: one line addition to list * refactor: one line clear * refactor: feedbacks * refactor: feedbacks * refactor: expression bodies * refactor: 1 line receivers assignation
I'm seeing that this package has a lot of 3rd party dependencies that could be avoided. This is not good as some might conflict in projects that also depend on it (and it might also make the maintenance more cumbersome).
This PR aims to reduce the number of dependencies to its bare minimum.
Removed dependencies
collection
-> implementedfirstWhereOrNull
locallyequatable
-> override equality operator and hashCode for the classes that needed itmeta
-> RefactoredPhoenixSocketOptions
so it can be madeconst
pedantic
-> Not needed and deprecatedquiver
-> ReplacedListMultimap<String, void Function(PushResponse)>
with aMap<String, List<void Function(PushResponse)>>
I've also bumped the version of the dev dependencies and bumped the minimum version of the Dart SDK to
3.0.0
so pattern matching can be used.