farmOS / farmOS.js

A JavaScript library for working with farmOS data structures and interacting with farmOS servers.
MIT License
17 stars 13 forks source link

Specify Node requirements #24

Closed jgaehring closed 2 years ago

jgaehring commented 3 years ago

As mentioned in #23, if we want to use ES Modules instead of CommonJS, we'll need to specify that in our docs. ESM requires Node v13.2.0 or higher. Also, I've already started using Object.fromEntries() in the connect library, which requires at least v12.0.0, so in a sense we've already committed down this path; might as well just make it official and document it.

jgaehring commented 3 years ago

Another consideration is using Promise.allSettled() which requires Node v12.9.0 or higher. This might be helpful when handling batched requests, as for fetching multiple bundles.

jgaehring commented 2 years ago

I added a quick note about stating:

farmOS.js requires Node versions 12.9.0 and higher. IE 11 is not supported.

I could get into more details but that seems sufficient for now.

jgaehring commented 11 months ago

ESM requires Node v13.2.0 or higher.

I'm going to bump this up to 13.2.0 because that provides a lot of features (c26f6e5). Also to EcmaScript 2020 while I'm at it (214d421).