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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overhaul fetch implementation and host API #52

Merged
merged 31 commits into from
Jun 21, 2024
Merged

Commits on May 29, 2024

  1. Use SpiderMonkey's encoding_c instead of our own crate

    SpiderMonkey uses the `encoding_c` Rust crate and comes bundled with it. This lead to either duplication or linking errors when using our own crate re-exporting `encoding_c`.
    
    Instead, with this PR we just bundle a C header file for interacting with the crate's functionality, and rely on SpiderMonkey's version.
    tschneidereit committed May 29, 2024
    Configuration menu
    Copy the full SHA
    34cf1ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0d02283 View commit details
    Browse the repository at this point in the history
  3. WIP: rework headers

    tschneidereit committed May 29, 2024
    Configuration menu
    Copy the full SHA
    bfe3158 View commit details
    Browse the repository at this point in the history
  4. WIP: rework headers

    tschneidereit committed May 29, 2024
    Configuration menu
    Copy the full SHA
    86db17e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d4e43db View commit details
    Browse the repository at this point in the history
  6. More headers rework!

    tschneidereit committed May 29, 2024
    Configuration menu
    Copy the full SHA
    dae6953 View commit details
    Browse the repository at this point in the history
  7. Use string_view instead of HostString in core::decode

    `HostString` converts to `string_view`, so this makes `decode` easy to use from more places.
    tschneidereit committed May 29, 2024
    Configuration menu
    Copy the full SHA
    aa5a32c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    d1984e9 View commit details
    Browse the repository at this point in the history
  9. And yet more headers rework—along with an overhaul of lots of the hos…

    …t API abstraction and various other fixes
    tschneidereit committed May 29, 2024
    Configuration menu
    Copy the full SHA
    ca335a7 View commit details
    Browse the repository at this point in the history
  10. Support creating a component without evaluating a top-level script du…

    …ring wizening
    
    The idea is that with this, builtins handling runtime events can dynamically load and execute a top-level script as needed.
    
    This functionality isn't actually used in this commit, but will be in another commit changing how incoming HTTP requests are handled.
    tschneidereit committed May 29, 2024
    Configuration menu
    Copy the full SHA
    3bb6b5d View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c8cf151 View commit details
    Browse the repository at this point in the history
  12. Substantially more reworking of the fetch related host API surface

    Gets back to passing all current tests, and most of the WPT suite that Fastly's JS Compute runtime passes.
    tschneidereit committed May 29, 2024
    Configuration menu
    Copy the full SHA
    c44b816 View commit details
    Browse the repository at this point in the history
  13. fix: release build on fetch rework (#54)

    fix: release build
    guybedford authored and tschneidereit committed May 29, 2024
    Configuration menu
    Copy the full SHA
    2d68405 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2024

  1. Use a templated WASIHandle class to represent handles for WASI 0.2.0

    This changes the implementation of the handle abstraction to make it more robust, and cleans it up at least somewhat.
    tschneidereit committed Jun 1, 2024
    Configuration menu
    Copy the full SHA
    2bad18a View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2024

  1. Configuration menu
    Copy the full SHA
    ec28998 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    429daec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a0781f0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7f4ba5a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e2f3b37 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. Configuration menu
    Copy the full SHA
    4820fdf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f992afe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f40bafb View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

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

Commits on Jun 6, 2024

  1. Configuration menu
    Copy the full SHA
    5033ce2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    259fdb2 View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

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

Commits on Jun 10, 2024

  1. Merge branch 'refs/heads/main' into fetch-rework

    # Conflicts:
    #	CMakeLists.txt
    tschneidereit committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    394f03d View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. Configuration menu
    Copy the full SHA
    81391c8 View commit details
    Browse the repository at this point in the history
  2. Don't special-case TransformStream readables when streaming outgoing …

    …bodies
    
    This special-casing used to make sense in the JS-Compute runtime, where certain TransformStreams were more optimizable. It doesn't anymore, and in any case would have to come with actually reading from the stream, which the code as written before this patch didn't 🤷
    tschneidereit committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    16b28ea View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Address review comments

    tschneidereit committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    c26f0c6 View commit details
    Browse the repository at this point in the history