unjs / runtime-compat

Display APIs compatibility across different JavaScript runtimes
https://runtime-compat.unjs.io/
MIT License
238 stars 5 forks source link

Add versions for certain runtimes. #156

Open MengLinMaker opened 4 months ago

MengLinMaker commented 4 months ago

Describe the feature

The issue:

I'm creating an ESLint plugin based of runtime-compat-data ---> eslint-plugin-runtime-compat.

However the data does not specify compatibility for specific runtime versions.

In the case of Node, Deno and Bun, the compat data may be inaccurate depending on the runtime version.

Potential solution:

Capture compat data with different Node, Deno and Bun versions.

I'm aware that CompatStatement -> SupportBlock -> SupportStatement -> SimpleSupportStatement can be assigned a version string.

I assume versioning runtimes like Netlify is difficult.

Additional information

MengLinMaker commented 1 month ago

Just wanted to follow up to see if this is a necessary feature, or feasible to implement. For closed sourced runtimes, maybe this is unnecessary for infeasible. But for runtimes like node, deno &bun, this could be helpful.

I did read the limitations mentioned.