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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Miniflare 3] Add getFetcher() for dispatching fetch/scheduled/queue events #708

Merged
merged 2 commits into from
Oct 10, 2023

Commits on Oct 5, 2023

  1. Add getFetcher() for dispatching fetch/scheduled/queue events

    This change adds back support for dispatching `scheduled` and `queue`
    events directly. Miniflare 2 previously provided similar
    `dispatchScheduled()` and `dispatchQueue()` methods, but these
    implemented an inconsistent, non-standard API.
    
    With `getFetcher()`, we're able to reuse magic proxy code to support
    arbitrary Workers APIs. This is important for `queue()`, which
    supports sending any structured serialisable as a message `body`.
    
    `getFetcher()` also provides an idiomatic Miniflare API for dealing
    with multiple workers, matching that provided by `getBindings()`.
    mrbbot committed Oct 5, 2023
    Configuration menu
    Copy the full SHA
    e6bef58 View commit details
    Browse the repository at this point in the history

Commits on Oct 10, 2023

  1. Configuration menu
    Copy the full SHA
    4a23fba View commit details
    Browse the repository at this point in the history