Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@srujzs
Copy link
Contributor

@srujzs srujzs commented Apr 14, 2023

dart:js_interop and package:js will start conflicting. Eventually, we want people to only use dart:js_interop, so this CL refactors code to do that.

Unblocks https://dart-review.googlesource.com/c/sdk/+/294130/8 and prevents confusing shadowing of dart:js_interop annotations like we do today.

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 [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • [Mentioned CL that is unblocked] I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • [Need test-exemption] I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@flutter-dashboard flutter-dashboard bot changed the base branch from master to main April 14, 2023 18:26
@flutter-dashboard
Copy link

This pull request was opened against a branch other than main. Since Flutter pull requests should not normally be opened against branches other than main, I have changed the base to main. If this was intended, you may modify the base back to master. See the Release Process for information about how other branches get updated.

Reviewers: Use caution before merging pull requests to branches other than main, unless this is an intentional hotfix/cherrypick.

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Apr 14, 2023
@srujzs
Copy link
Contributor Author

srujzs commented Apr 14, 2023

@eyebrowsoffire PTAL, thanks!

Copy link
Contributor

@eyebrowsoffire eyebrowsoffire left a comment

Choose a reason for hiding this comment

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

LGTM!

@yjbanov
Copy link
Contributor

yjbanov commented Apr 17, 2023

Do we still need the dependencies in pubspec.yaml files?

@Hixie
Copy link
Contributor

Hixie commented Apr 17, 2023

test-exempt: preparing for dependency roll

@srujzs
Copy link
Contributor Author

srujzs commented Apr 17, 2023

Do we still need the dependencies in pubspec.yaml files?

I haven't focused on removing package:js/js_util.dart references in favor of dart:js_util (I've only been targeting js.dart), but if that's desired, I can do that in this pull request and remove dependencies on js in various pubspecs.

Edit: It looks like I can't use dart:js_util directly in some files (I come across static errors), so we can't remove package:js just yet.

@srujzs srujzs force-pushed the master branch 7 times, most recently from 3162409 to b5d8f16 Compare April 24, 2023 16:05
@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

Changes reported for pull request #41212 at sha b5d8f16

@srujzs srujzs force-pushed the master branch 3 times, most recently from e91f380 to 94e55e5 Compare April 24, 2023 23:14
dart:js_interop and package:js will start conflicting.
Eventually, we want people to only use dart:js_interop, so
this CL refactors code to stop using js.dart. Once we migrate
code to JS types, we can remove references to package:js
altogether and not have to use js_util.dart.
@joshualitt joshualitt merged commit 469e5b4 into flutter:main Apr 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform-web Code specifically for the web engine will affect goldens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants