-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Prepare for utf8.encode() to return more precise Uint8List type #4342
Conversation
To avoid analyzer warnings when `utf8.encode()` will return the more precise `Uint8List` type, we use `const Utf8Encoder().convert()` which already returns `Uint8List` See dart-lang/sdk#52801
After skimming through this (enormously long) wiki page, it's still unclear why this PR would need a version + changelog update (as it's simply changing internals to use an API which avoids an explicit downcast - nothing that would affect/concern an end user). The For |
If you have suggestions for shortening the section I linked to without removing useful information, please let me know.
I think the last item in the version exemption list may have been unclear, I've adjusted it. Does that help, or do you still believe the
That's not strictly true; |
I think of the change in itself falls into a category of changes that a) are not urgent to get published b) have no real user-visible effect. Other things that may fall into this category may be e.g. tiny perf/memory improvements, better code quality, formatting of code, smaller refactoring, ... None of those are very urgent to be published as they have little user impact, also users may have no interest in knowing about them (good to keep high signal-to-noise ratio in CHANGELOG). That being said: The reason for the PR is a related change to Dart SDK's
Our dart-flutter CI does flag that as an analyzer error when doing the Dart SDK change to
My preference would be to lean on as little process as possible (lowering the barrier for contributors) e.g.:
@stuartmorgan Is there anything I should change before the PR can be approved? |
I think you're answering a different question than I asked; it seems like you are arguing why you personally wouldn't version it if the policy were to leave it to everyone's individual judgement, I'm asking what part of the documentation (if any) is still unclear that it isn't exempt according to our actual policy.
I'm talking about the CI check that was failing when you were missing a version bump for rfw, where you were changing production code, not the analyzer: The CI was correctly only flagging that rfw needed a version and changelog change.
That's not shortening the section without removing information, that's rewriting the policy. The reason that we have the policy that's written there now is because when we had a policy like the one you are describing, it had worse outcomes and more manual overhead.
It already was approved (and is now passing CI). Were you looking for additional review? |
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.
Thanks for the cleanup!
@ditman Thanks for approving & merging! |
flutter/packages@53ed5a0...cdae854 2023-07-01 engine-flutter-autoroll@skia.org Roll Flutter from ff838bc to aa5f4a2 (29 revisions) (flutter/packages#4363) 2023-07-01 stuartmorgan@google.com [tool] Add a flag to skip cleanup (flutter/packages#4357) 2023-07-01 stuartmorgan@google.com [file_selector] Endorse Android (flutter/packages#4329) 2023-07-01 stuartmorgan@google.com [google_sign_in] Convert Android to Pigeon (flutter/packages#4344) 2023-06-30 tarrinneal@gmail.com [Pigeon] readme updates (flutter/packages#3705) 2023-06-30 43054281+camsim99@users.noreply.github.com [camera_android] Support concurrently image capture and image streaming (flutter/packages#4332) 2023-06-30 kustermann.martin@gmail.com Prepare for utf8.encode() to return more precise Uint8List type (flutter/packages#4342) 2023-06-30 tarrinneal@gmail.com [shared_preferences] Adds allowList to setPrefix method. (flutter/packages#3794) 2023-06-30 engine-flutter-autoroll@skia.org Roll Flutter from 51bef1b to ff838bc (12 revisions) (flutter/packages#4346) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
To avoid analyzer warnings when
utf8.encode()
will return the more preciseUint8List
type, we useconst Utf8Encoder().convert()
which already returnsUint8List
See dart-lang/sdk#52801