Open lishaduck opened 1 month ago
Known wasm-incompatible dependencies:
package:flutter_web_auth_2@^3
(v4 alphas support package:web
; should be non-breaking beyond a min. An Android SDK & Flutter bump is all.)web_socket_channel@2
(doesn't support package:web@^1
; @3
is out, but other dependencies don't support it)To work around this, put this in your pubspec.yaml:
dependency_overrides:
flutter_web_auth_2: 4.0.0-alpha.8
web_socket_channel: 3.0.1
Ok, looked into it more, looks like appwrite/sdk-generator#893 fixed the web_socket_channel
, this repo just needs a re-gen (though it is unnecessarily breaking, v2 & v3 are virtually identical and you could support both with 0 effort).
Appwrite shouldn't depend on alphas for flutter_web_auth_2
, I can wait a few weeks.
🔖 Feature description
Update dependencies (& replace unmaintained dependencies, etc) to remove all dependence on
dart:html
, as it is not WASM compatible. You should usepackage:web
&dart:js_interop
for modern JS FFI.🎤 Pitch
It allows migrating WASM-compatible apps to Appwrite, and migrating existing Appwrite apps to WASM. The WASM renderer is up to 3x faster[^1], and smaller[citation needed].
[^1]: Averaging 2x; source: https://medium.com/flutter/whats-new-in-flutter-3-22-fbde6c164fe3
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?