bugsnag-source-maps icon indicating copy to clipboard operation
bugsnag-source-maps copied to clipboard

"form-data" library is dead, use native FormData

Open attenzione opened this issue 1 year ago • 2 comments

Describe the bug

form-data library is old, abandoned and has deprecation warning with Node 21.

Environment

  • bugsnag-source-maps version: 2.0.0
  • Uploading for:
    • [ ] Node
      • Node version: 21.8.0
  • Command that was run: webpack build

attenzione avatar Sep 10 '24 16:09 attenzione

Hi @attenzione

Thanks for bringing this to our attention.

You mention that you used the webpack build command - does this mean that you are using our Webpack plugin, or are you using bugsnag-source-maps directly? Generally we would recommend trying to use the BugSnag CLI for source map uploads if you can, as we have made a lot of improvements to this recently, and are moving towards this being the primary recommended tool for source map uploads.

If you are using our Webpack plugin, then this does still currently use bugsnag-source-maps as a dependency, but eventually this will be updated to seamlessly use the CLI instead. We don't have an exact ETA for this work yet, but if you are using the Webpack plugin and would like to be kept updated on this, then we would be happy to do so.

Please let us know if you have any questions about this, otherwise our recommendation would be to try and switch to using the BugSnag CLI for your source maps if you start using a Node version where form-data is fully deprecated.

mclack avatar Sep 16 '24 15:09 mclack

Hi @mclack,

Thanks for the quick response.

I’m currently using the plugin only for source maps upload and hadn't looked into the CLI version before. I’ll give the CLI version a try and get back to you with comments in about a week.

attenzione avatar Sep 17 '24 07:09 attenzione

Hi @attenzione

As there hasn't been any activity here in a while, we are now going to close this issue. I see you mentioned this when you were trying to migrate to bugsnag-cli, but had issues using yarn, and this should now be resolved.

If you do have any further questions or problems, then you may prefer to open a ticket with us directly by contacting [email protected], and we will be happy to assist you further.

mclack avatar Oct 22 '24 13:10 mclack

Hi @mclack,

Thanks for the update. I'll definitely migrate to bugsnag-cli.

attenzione avatar Oct 22 '24 14:10 attenzione

form-data library is old, https://github.com/form-data/form-data/issues/544 and has https://github.com/form-data/form-data/issues/563 with Node 21.

fwiw, none of these remain true (except "old", i guess?)

ljharb avatar Oct 28 '24 16:10 ljharb