minio / minio-js

MinIO Client SDK for Javascript
https://docs.min.io/docs/javascript-client-quickstart-guide.html
Apache License 2.0
951 stars 277 forks source link

Update the JavaScript SDK Quickstart #1236

Closed feorlen closed 10 months ago

feorlen commented 11 months ago

Some small updates so the text better matches Docs style, since this README is imported directly into the web docs.

I made a few changes to the example also, like make it work if the bucket exists. I'm not a great JavaScript person so please let me know the usual style so it makes sense.

I was able to run the example with the latest Node.js, seems like it requires at least v 16. Is that accurate? When I tried with v12.22.9 I got required: { node: '^16 || ^18 || >=20' }.

Corresponding Docs issue https://github.com/minio/docs/issues/1042

prakashsvmx commented 11 months ago

We focus on supporting node LTS versions. https://nodejs.org/en/about/previous-releases @feorlen .

trim21 commented 11 months ago

in fact it support down to node v12

feorlen commented 11 months ago

Finally able to get back to this, it's become a lower priority task for other reasons. But I still need to know something about JS for future work, so worth getting right. Appreciate any additional comments.

feorlen commented 10 months ago

Updated the file-uploader.mjs example in the README, although I don't know where to see the linter's issue with it. The check detail doesn't say.

Are there still needed changes in the examples dir?

aldy505 commented 10 months ago

@feorlen formatter check is failing, you should do npm run format

feorlen commented 10 months ago

Looks like I installed prettier correctly yay. One small fix, update branch, maybe this is good now. 🎉

Appreciate the guidance getting through this!