Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: microbit-foundation/makecode-embed
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: microbit-foundation/makecode-embed
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: load-error
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 10 files changed
  • 1 contributor

Commits on Mar 27, 2026

  1. Add startup robustness API (waitUntilReady, timeout, offline, load er…

    …ror)
    
    Move MakeCode iframe startup detection into the library so consumers
    don't need to reimplement timeout, offline, and load error handling.
    
    - Add waitUntilReady() on MakeCodeFrameDriver that races editor
      readiness against configurable timeout, offline detection, and
      iframe load errors
    - Add startUpTimeout option (default 90s)
    - Add notifyLoadError() and isReady getter
    - Export StartUpResult and StartUpFailure types
    microbit-matt-hillsdon committed Mar 27, 2026
    Configuration menu
    Copy the full SHA
    69634b2 View commit details
    Browse the repository at this point in the history
  2. Add unit tests for waitUntilReady

    Tests cover ready, timeout, offline, load error, and isReady lifecycle.
    Adds vitest and happy-dom as dev dependencies.
    microbit-matt-hillsdon committed Mar 27, 2026
    Configuration menu
    Copy the full SHA
    e04b3e8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1686e24 View commit details
    Browse the repository at this point in the history
  4. Node 24

    microbit-matt-hillsdon committed Mar 27, 2026
    Configuration menu
    Copy the full SHA
    d39a319 View commit details
    Browse the repository at this point in the history
Loading