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

* Dart/Flutter 1.9 compatibility #159

Closed

Conversation

TobiasHeidingsfeld
Copy link

Since updating to Flutter 1.9 /Dart 2.5 mongo_dart does not work due to change in List to Uint8List. Pull request fixes this

@Pacane
Copy link
Collaborator

Pacane commented Sep 11, 2019

Thank you!

@Pacane
Copy link
Collaborator

Pacane commented Sep 11, 2019

The tests are breaking, can you take a look?

@TobiasHeidingsfeld
Copy link
Author

added a new commit for failing test´s

@ShivamArora
Copy link

@TobiasHeidingsfeld Thanks for being quick and taking efforts to resolve this issue.

When can we expect this to get stable, merged and released through the pub package manager so that we can upgrade to Flutter 1.9.0?

@thosakwe
Copy link
Contributor

thosakwe commented Sep 12, 2019

I just looked into why the tests are failing. From what I've gathered, MongoDB 3.6 modified the way that aggregate works, so the cursor is mandatory: https://docs.mongodb.com/manual/reference/command/aggregate/

I wonder how backwards-compatible that change is. It may be possible to test agains different MongoDB versions in Travis (or just declare that we target 3.6 after some version, etc.).

TL;DR - The PR itself is correct, but we may have to update the aggregate tests to get Travis to be happy.

@steve-cahn
Copy link

Is the current solution to downgrade to flutter 1.9.0?

@thumbert
Copy link

The test that fails is an old issue. See #120 You can work around it. But you can't work around this issue if you want to upgrade to Dart 2.5.0.

@thosakwe
Copy link
Contributor

@Pacane Am I ok to merge the PR, and publish a patch (with the test fixed)?

@Pacane
Copy link
Collaborator

Pacane commented Sep 17, 2019 via email

@TobiasHeidingsfeld
Copy link
Author

Let me know when the new version is up on pub.dev as I have an package building onto of mongo_dart and will need to update the depedency! Thank you for the great package.

@a14n
Copy link
Contributor

a14n commented Sep 17, 2019

Regardless the test issue I believe the right fix is the change I did in #162 because it should be compatible with Dart<2.5 (and is the changes advised by Dart 2.5 CHANGELOG)

@thosakwe
Copy link
Contributor

Resolved, see the discussions at #159, #160, and #162. https://pub.dev/packages/mongo_dart/versions/0.3.6

@thosakwe thosakwe closed this Sep 17, 2019
@thosakwe thosakwe mentioned this pull request Sep 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants