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

[web] Updates package:web dependency to ^0.5.0. #5791

Merged
merged 20 commits into from
Feb 20, 2024

Conversation

kevmoo
Copy link
Contributor

@kevmoo kevmoo commented Jan 3, 2024

This PR updates the packages that are using package:web to version ^0.5.0.

Ancilliary changes:

  • Bump environment to flutter: ">=3.19.0" and sdk: ^3.3.0.
  • Bump version to next Y
  • Clean-up code that was kept for compatibility with versions of web: <0.5.0.

The main exception to this is package:google_sign_in_web, which depends on a version of google_identity_services_web that has a dependency on package:web that is <0.5.0, so that package needs to have a range until google_identity_services_web gets published with the new ^0.5.0 dependency.

Co-Authored-By: @ditman

@kevmoo kevmoo force-pushed the url_launcher_web_drop_js_util branch 2 times, most recently from 3e5c823 to 1fae6fe Compare January 9, 2024 21:17
@kevmoo kevmoo changed the title WIP: drop dart:js_util, require Dart 3.3 [url_launcher_web] WIP: drop dart:js_util, require Dart 3.3 Jan 17, 2024
@kevmoo kevmoo force-pushed the url_launcher_web_drop_js_util branch from f28a73c to f61d8c7 Compare January 17, 2024 18:22
@kevmoo kevmoo force-pushed the url_launcher_web_drop_js_util branch from f61d8c7 to 2b99c89 Compare February 5, 2024 23:32
@kevmoo kevmoo force-pushed the url_launcher_web_drop_js_util branch from 2b99c89 to cbc80ed Compare February 13, 2024 20:30
@kevmoo kevmoo changed the title [url_launcher_web] WIP: drop dart:js_util, require Dart 3.3 [url_launcher_web] drop dart:js_util, require Dart 3.3 Feb 13, 2024
@kevmoo kevmoo force-pushed the url_launcher_web_drop_js_util branch from a9c9910 to c7f71f2 Compare February 15, 2024 20:07
@stuartmorgan stuartmorgan added the waiting for stable update Can't be landed until functionality reaches the stable channel label Feb 15, 2024
@kevmoo kevmoo force-pushed the url_launcher_web_drop_js_util branch from 7bf1cef to 70859ab Compare February 15, 2024 21:03
@kevmoo kevmoo force-pushed the url_launcher_web_drop_js_util branch from 7c97874 to 66ca672 Compare February 15, 2024 22:36
@stuartmorgan stuartmorgan removed the waiting for stable update Can't be landed until functionality reaches the stable channel label Feb 16, 2024
@ditman
Copy link
Member

ditman commented Feb 16, 2024

I'll take over landing this one!

@ditman ditman force-pushed the url_launcher_web_drop_js_util branch from 66ca672 to 735f84b Compare February 16, 2024 19:24
@ditman
Copy link
Member

ditman commented Feb 16, 2024

$ grep js_util * -Irn | grep "_web" | grep "dart:" | cut -d: -f1 | sort | uniq -c | sort -r
      5 camera/camera_web/example/integration_test/camera_service_test.dart
      4 camera/camera_web/lib/src/shims/dart_js_util.dart
      3 camera/camera_web/lib/src/camera_service.dart
      1 google_maps_flutter/google_maps_flutter_web/lib/google_maps_flutter_web.dart
      1 google_maps_flutter/google_maps_flutter_web/example/integration_test/google_maps_plugin_test.dart
      1 camera/camera_web/example/integration_test/helpers/mocks.dart

js_util seems to be almost gone from the repo (except from known non-migrated packages)

@ditman ditman changed the title [web] Update web packages to Dart 3.3, Flutter 3.19, and web: ^0.5.0 (or <0.6.0) [web] Updates package:web dependency to ^0.5.0. Feb 16, 2024
ditman

This comment was marked as outdated.

@ditman
Copy link
Member

ditman commented Feb 17, 2024

I think this is OK now. PTAL @stuartmorgan (and @kevmoo)!

@kevmoo
Copy link
Contributor Author

kevmoo commented Feb 17, 2024

I'd review it if I could! Thanks @ditman

packages/google_sign_in/google_sign_in_web/CHANGELOG.md Outdated Show resolved Hide resolved
@@ -25,7 +25,7 @@ dependencies:
google_identity_services_web: ^0.3.0
google_sign_in_platform_interface: ^2.4.0
http: ">=0.13.0 <2.0.0"
web: ">=0.3.0 <0.5.0"
web: ">=0.3.0 <0.6.0" # because google_identity_services
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this comment explaining the lower limit or the upper limit? More details would help.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is because google_identity_services has not been upgraded yet...

Copy link
Member

Choose a reason for hiding this comment

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

The comment explains the upper limit, this is the package I'll immediately update after landing this PR, so the upper limit will live there only for one small publish.

packages/metrics_center/pubspec.yaml Outdated Show resolved Hide resolved
Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM modulo the changelog nits

@ditman ditman added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 20, 2024
@ditman
Copy link
Member

ditman commented Feb 20, 2024

Applying autosubmit 🤞

@auto-submit auto-submit bot merged commit b21dce5 into flutter:main Feb 20, 2024
78 checks passed
@kevmoo kevmoo deleted the url_launcher_web_drop_js_util branch February 20, 2024 22:03
auto-submit bot pushed a commit that referenced this pull request Feb 20, 2024
This PR updates `google_sign_in_web` to use package `web: ^0.5.0`.

## Testing

Manually verified using the `example/lib/button_tester.dart` app.

This should be text exempt? This is a refactor with no semantic change (also, I wouldn't know how to test we're using `package:web` the expected way!) I removed a couple of `//ignore` at least!

## Issues

* Fast follow of: #5791
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 21, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 21, 2024
flutter/packages@8bba41b...48048f6

2024-02-20 [email protected] [google_sign_in_web] Updates package:web dependency to 0.5.0. (flutter/packages#6167)
2024-02-20 [email protected] [web] Updates package:web dependency to ^0.5.0. (flutter/packages#5791)

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 [email protected],[email protected] 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
arc-yong pushed a commit to Arctuition/packages-arc that referenced this pull request Jun 14, 2024
This PR updates the packages that are using `package:web` to version `^0.5.0`.

Ancilliary changes:

* Bump `environment` to `flutter: ">=3.19.0"` and `sdk: ^3.3.0`.
* Bump version to next `Y`
* Clean-up code that was kept for compatibility with versions of `web: <0.5.0`.

The main exception to this is `package:google_sign_in_web`, which depends on a version of `google_identity_services_web` that has a dependency on package:web that is `<0.5.0`, so that package needs to have a range until `google_identity_services_web` gets published with the new ^0.5.0 dependency.

Co-Authored-By: David Iglesias<[email protected]>
arc-yong pushed a commit to Arctuition/packages-arc that referenced this pull request Jun 14, 2024
…r#6167)

This PR updates `google_sign_in_web` to use package `web: ^0.5.0`.

## Testing

Manually verified using the `example/lib/button_tester.dart` app.

This should be text exempt? This is a refactor with no semantic change (also, I wouldn't know how to test we're using `package:web` the expected way!) I removed a couple of `//ignore` at least!

## Issues

* Fast follow of: flutter#5791
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants