Skip to content

Conversation

@rap1ds
Copy link
Member

@rap1ds rap1ds commented Jan 15, 2026

Use native FormData and Node's Fetch instead of cljs-ajax.

Since Node version 18, FormData has been natively supported. Also, Node 18 introduced Fetch which we can use to go HTTP instead of cljs-ajax library. In addition, cljs-ajax didn't see to have good support for binaries, which is needed for asset pulling with CLI.

Due to this PR, we now require Node version 18 or later. Node 18 was released Apr 19, 2022.

Since Node v18, FormData is natively supported, no need for library.
Since v18, Node has had a native support for cljs-ajax. In addition, the
native fetch seems to be able to handle binaries and streaming, which we
need for downloading the asset zip

The client implementation of do-* functions contain a bit of duplication
which could be removed, but I didn't want to do it yet since the asset
zip download may change things a bit.
@rap1ds rap1ds marked this pull request as ready for review January 19, 2026 08:15
@rap1ds rap1ds added the Pending review Pending review label Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Pending review Pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants