Skip to content

Client runtime uses Promise.withResolvers, which needs Safari 17.4 #16617

Description

@Nic-Polumeyv

Describe the bug

The remote functions client code calls Promise.withResolvers() in query/instance.svelte.js and query-live/instance.svelte.js. That needs Safari 17.4 / Chrome 119 / Firefox 121, but Vite 8's default target is Safari 16.4 / Chrome 111 / Firefox 114 and APIs aren't polyfilled, so remote functions throw on Safari 16.4-17.3. Replace with a plain executor, or document the higher floor? I'll PR the former if that's the call.

Reproduction

Code inspection, so no repo:

The built client bundle ships the calls verbatim; any app using remote functions on those browsers hits it. Old Safari can't be demonstrated in a hosted repro anyway.

Logs

No response

System Info

version-3 @ e76b3d77, vite ^8.1.5 (default build.target)

Severity

serious, but I can work around it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions