es-tooling / ecosystem-cleanup

A place to keep track of ongoing efforts to clean up the JS ecosystem
362 stars 2 forks source link

migrate swagger to URLSearchParams & AbortController #6

Open 43081j opened 7 months ago

43081j commented 7 months ago

the swagger library can be found here: https://github.com/swagger-api/swagger-js

it currently depends on packages for providing URLSearchParams behaviour (qs), and AbortController (node-abort-controller).

We should migrate to URLSearchParams as a minimum.

If the maintainers are happy to require a later node version (>=15 iirc), we can also use the native AbortController instead of a package.

if nesting is required, we should use picoquery

benmccann commented 2 months ago

I think swagger was renamed to open-api. I switched immich to this client, which uses Node's built-in fetch: https://github.com/oazapfts/oazapfts