Skip to content

[ci][web] Ignore always_specify_types for JSArray. - #5669

Merged
auto-submit[bot] merged 1 commit into
flutter:mainfrom
ditman:web-ignore-typed-jsarray
Dec 13, 2023
Merged

[ci][web] Ignore always_specify_types for JSArray.#5669
auto-submit[bot] merged 1 commit into
flutter:mainfrom
ditman:web-ignore-typed-jsarray

Conversation

@ditman

@ditmanditman commented Dec 13, 2023

Copy link
Copy Markdown
Member

The definition of JSArray (and JSPromise) from dart:js_interop is changing to JSArray<T>, and our analyzer complains about our usage of it with default Ts, blocking Dart SDK rolls.

This PR ignores the always_specify_types lint in the usages of JSArray, so this code passes analysis both with the current version of dart:js_interop and the next one.

Issues

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@ditman

Copy link
Copy Markdown
MemberAuthor

(I don't think this even warrants a NEXT changelog entry, but I might be wrong :S)

@ditmanditman added the autosubmit Merge PR when tree becomes green via auto submit App label Dec 13, 2023
@auto-submit
auto-submitBot merged commit da7532d into flutter:mainDec 13, 2023
@ditman
ditman deleted the web-ignore-typed-jsarray branch December 13, 2023 22:56
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 14, 2023
auto-submitBot pushed a commit to flutter/flutter that referenced this pull request Dec 14, 2023
flutter/packages@b5958e2...1151191
2023-12-14 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 2.22.8 to 3.22.11 (flutter/packages#5674)
2023-12-13 ditman@gmail.com [ci][web] Ignore always_specify_types for JSArray. (flutter/packages#5669)
2023-12-13 mikemcguiness@protonmail.com [tool] Add support for `.java`, `.gradle`, `.sh`, and `.m` files� (flutter/packages#5567)
2023-12-13 ditman@gmail.com [google_sign_in] Update (web) example app. (flutter/packages#5634)
2023-12-13 34871572+gmackall@users.noreply.github.com [path_provider] De-flake getExternalStorageDirectories test (flutter/packages#5628)
2023-12-13 ditman@gmail.com [google_sign_in_web] Stop relying on framework internals. (flutter/packages#5660)
2023-12-13 43054281+camsim99@users.noreply.github.com [Android] Bump Gradle version to 7.6.3 (flutter/packages#5522)
2023-12-13 mikemcguiness@protonmail.com [google_sign_in] Adopt code excerpts in README (flutter/packages#5521)
2023-12-13 mikemcguiness@protonmail.com [css_colors] Adopt code excerpts in README (flutter/packages#5478)
2023-12-13 JeroenWeener@users.noreply.github.com [webview_flutter] Support for handling basic authentication requests (Android) (flutter/packages#5454)
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://issues.skia.org/issues/new?component=1389291&template=1850622
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
@reidbakerreidbaker mentioned this pull request Jan 12, 2024
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
The definition of `JSArray` (and `JSPromise`) from `dart:js_interop` is changing to `JSArray<T>`, and our analyzer complains about our usage of it with default `T`s, blocking Dart SDK rolls.
This PR ignores the `always_specify_types` lint in the usages of `JSArray`, so this code passes analysis both with the current version of `dart:js_interop` and the next one.
## Issues
* Fixesflutter/flutter#140076
* Cleanup flutter/flutter#140095
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
The definition of `JSArray` (and `JSPromise`) from `dart:js_interop` is changing to `JSArray<T>`, and our analyzer complains about our usage of it with default `T`s, blocking Dart SDK rolls.
This PR ignores the `always_specify_types` lint in the usages of `JSArray`, so this code passes analysis both with the current version of `dart:js_interop` and the next one.
## Issues
* Fixesflutter/flutter#140076
* Cleanup flutter/flutter#140095
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appp: file_selectorp: google_sign_inplatform-web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Engine->framework roller blocked due to JSArray/JSPromise type annotation requirement

2 participants

@ditman@kevmoo