LemmyNet / lemmy-js-client

A javascript / typescript http and websocket client and type system for Lemmy.
GNU Affero General Public License v3.0
135 stars 56 forks source link

Remove `form-data` and `cross-fetch` dependencies #250

Closed aeharding closed 5 months ago

aeharding commented 5 months ago

FormData and fetch() are now supported in all modern/supported browsers and Node versions.

The last version of Node to not support these APIs was v16, which is EOL as of September 11th, 2023.

fetch():

FormData:

These dependencies add additional unnecessary bundle size for users. Therefore, I propose removing these dependencies and using the native implementations directly.

If support is still needed, they can be easily polyfilled by the consumer.