-
-
Notifications
You must be signed in to change notification settings - Fork 405
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
Update js dependency and migrate to web #680
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||
name: flutter_secure_storage_web | ||||
description: Web implementation of flutter_secure_storage. Use flutter_secure_storage for the full flutter package. | ||||
repository: https://github.com/mogol/flutter_secure_storage | ||||
version: 1.1.2 | ||||
version: 1.2.0 | ||||
|
||||
environment: | ||||
sdk: ">=2.12.0 <4.0.0" | ||||
|
@@ -13,7 +13,8 @@ dependencies: | |||
flutter_secure_storage_platform_interface: ^1.0.1 | ||||
flutter_web_plugins: | ||||
sdk: flutter | ||||
js: ^0.6.3 | ||||
js: '>=0.6.3 <1.0.0' | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
The migration to the new js-interop approach also means getting rid of the package:js. https://dart.dev/interop/js-interop/package-web See also these comments firebase/flutterfire#12027 (comment) from Kevin Moore (Flutter Web PM) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh yes, thanks for reminding me about this... Currently, I don't have enough free time to also address this, but hopefully I will do so soon! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No worries 😌 I hear your struggle to find time to maintain/contribute to open-source projects! |
||||
web: '>=0.5.0 <1.0.0' | ||||
|
||||
dev_dependencies: | ||||
lint: ^2.0.0 | ||||
|
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.
Everything looks good, however the only thing that's a bit annoying is that the web package is available from dart 3.3, which is basically the latest flutter version, meaning that if we publish this, everyone is required to run the latest Flutter version.
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.
Yes, this is true. I have pushed the constraints for
web
down as far as possible. Older versions lack features that are (IMHO) critical for the functionality offlutter_secure_storage
. Maybe, the constraints could be pushed even lower than that using some hacky workarounds, but I am unsure.This is also one of the reasons why it makes sense to apply this PR (and #698 for that matter) only after a major version bump