Visitar URL original
Final nail in the coffin · Issue #537 · form-data/form-data · GitHub
Skip to content

Final nail in the coffin #537

Open
Open

Description

@jimmywarting

FormData is shipped natively in all ever green browser and backends now.

Will this be the time for deprecation? form-data haven't been updated in a while and it still lacks some method that should be provided according to the spec. node-fetch@3 stopp recommended ppl using form-data due to inconsistency with spec compatible FormData and recommend that ppl use built in FormData or a spec:ed formdata polyfill that supports iterating over all fields and having Blob/File support. There is at least 3 other spec compatible FormData implementation out there that i know of

  • one provided by undici, the same one that is now also shipped globally in NodeJS v18.
  • fromdata-polyfill used by node-fetch
  • And lastly formdata-node

All of which supports adding 3th party blob/files backed up by a filesystem thanks due to fetch-blob...
formdata-node also has built in fileFromPath()
this is now also being more or less obsolete by the fs.openAsBlob(path)

Perhaps it's time to arcive the repo and put a deprication notice on npm?

Activity

  1. motoyasu-saburi commented on Mar 30, 2023

    @motoyasu-saburi

    I found a vulnerability in this library and sent a report via Snyk & email,
    but received no response.

    Therefore, a patch will probably never be provided.
    I'm also wondering if I should go public about this issue.

    For this reason, I personally feel that it is better to archive it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions