Skip to content

fix: Update dio #959

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

Closed
wants to merge 2 commits into from
Closed

fix: Update dio #959

wants to merge 2 commits into from

Conversation

mbfakourii
Copy link
Member

Pull Request

Issue

Closes: #958

Approach

Update dio to dio: ^5.3.2

Tasks

  • Add tests
  • Add changes to documentation (guides, repository pages, code comments)

@parse-github-assistant
Copy link

Thanks for opening this pull request!

@mbfakourii mbfakourii requested a review from a team August 3, 2023 05:46
@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (aefc84e) 39.33% compared to head (5145c8c) 39.33%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #959   +/-   ##
=======================================
  Coverage   39.33%   39.33%           
=======================================
  Files          60       60           
  Lines        3356     3356           
=======================================
  Hits         1320     1320           
  Misses       2036     2036           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, could you write a PR title that describes the issue (not the solution)

Copy link
Member

@mtrezza mtrezza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this is a fix, we'd also need a changelog entry + version increment.

@mbfakourii
Copy link
Member Author

Looks good, could you write a PR title that describes the issue (not the solution)

I have no other idea, only dio was updated, the reason was a bug in the dio package

@mtrezza
Copy link
Member

mtrezza commented Aug 4, 2023

Why do we have to update the dio package, if we are using a range operator anyway?

- dio: ^5.2.0+1
+ dio: ^5.3.2

If I understand this correctly, ^5.2.0+1 will use the latest dio version <6.0.0 as soon as a newer version is released, right?

@mbfakourii
Copy link
Member Author

mbfakourii commented Aug 5, 2023

Why do we have to update the dio package, if we are using a range operator anyway?

- dio: ^5.2.0+1
+ dio: ^5.3.2

If I understand this correctly, ^5.2.0+1 will use the latest dio version <6.0.0 as soon as a newer version is released, right?

Because of these issues, we have to give a new version quickly, and the current version cannot be used.

I checked the dio package and did not see anything from version 6

@mtrezza
Copy link
Member

mtrezza commented Aug 5, 2023

But why do we have to update our package? In my understanding, the Parse Flutter SDK will always install the latest release of dio >= 5.2.0 < 6, because the dependency is ^5.2.0+1. So even if we don't update the package, Parse Flutter SDK should already use 5.3.2, not 5.2.0. I thought that was the whole point of Dart/Flutter forcing people to use version ranges and not allowing a lock file to be uploaded to the registry, or am I missing something?

I think not only do we not have to release a new version, we also don't have to update any dependency manually unless it's a major version increment. The only reason to upgrade a dependency without being a major version increment is if the Parse Flutter SDK requires a higher minimum version because it uses a certain feature for example that is not available in a lower version. But if it's just a bug fix in the dependency, then we shouldn't have to care, that's what the version range is for.

@mbfakourii
Copy link
Member Author

Yes, I think the problem was solved with Revert on the dio side!
I am waiting for the answer of those who have problems

@mtrezza
Copy link
Member

mtrezza commented Aug 5, 2023

I think we should see this also in our CI. In fact the CI previously failed and now passes. In my opinion this PR can be closed, as well as the related issue, because it was a dio issue, not a Parse issue.

@mbfakourii
Copy link
Member Author

I think we should see this also in our CI. In fact the CI previously failed and now passes. In my opinion this PR can be closed, as well as the related issue, because it was a dio issue, not a Parse issue.

sure

@mbfakourii mbfakourii closed this Aug 6, 2023
@mbfakourii mbfakourii deleted the mbfakourii-patch-1-2 branch August 6, 2023 11:10
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.

Version 5.1.2 compile problems
2 participants