Skip to content

Feat/cognito/wasm#7094

Draft
cadivus wants to merge 3 commits into
mainfrom
feat/cognito/wasm
Draft

Feat/cognito/wasm#7094
cadivus wants to merge 3 commits into
mainfrom
feat/cognito/wasm

Conversation

@cadivus

@cadivus cadivus commented Jul 3, 2026

Copy link
Copy Markdown
Member

No description provided.

cadivus added 2 commits July 3, 2026 15:21
Under dart2wasm the state machine emitted Configured before the analytics
metadata was registered, so consumers could read it back null. Moving the
registration into the same wait as the other configure steps closes that
window. dart2js masked it by scheduling the microtasks differently.
Adds a wasm smoke test, which opts the package into the dart2wasm CI job
(regenerated via aft). The dart2js run stays as-is, so both web compilers
are covered now. Also wires dart2wasm_args into build.yaml to match the
other wasm-enabled packages.
@codecov-commenter

codecov-commenter commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.23%. Comparing base (f8c75ec) to head (a0a3d53).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7094   +/-   ##
=======================================
  Coverage   43.23%   43.23%           
=======================================
  Files          99       99           
  Lines        7769     7769           
  Branches     3401     3401           
=======================================
  Hits         3359     3359           
  Misses       4410     4410           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Flutter's web dev server serves package assets from the assets/ prefix
in both debug and release modes. The worker_bee_builder previously only
generated the assets/ path for release builds, causing workers to fail
loading in debug mode (server returns 404 HTML instead of JS).

Changes:
- Fix JsGenerator to use assets/ path for all Flutter web modes (debug
  and release), selecting workers.js vs workers.min.js based on mode.
- Add workers.js + workers.js.map to Flutter asset declarations in
  amplify_auth_cognito_dart and amplify_secure_storage_dart so they are
  bundled in debug builds.
- Regenerate worker.js.dart files.
@cadivus cadivus force-pushed the feat/cognito/wasm branch from 9d9c95b to a0a3d53 Compare July 4, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants