jsr icon indicating copy to clipboard operation
jsr copied to clipboard

[Feature request] Show whether a module is sync or not

Open kt3k opened this issue 1 year ago • 1 comments

Node.js will add support of 'require'ing of sync ESM soon. If the module page shows whether it is sync or not, then CommonJS consumers can see whether it's usable for them or not. I think this alleviates the pain of switching to JSR for existing npm package authors

kt3k avatar May 02 '24 15:05 kt3k

I don't know how to easially achieve this. Not only does the module itself need to not have TLA, but also all of it's dependencies (at all versions that match the constraint now, or in the future) also must not have TLA.

This means we can make this determination for a package at one point in time, but it may then get invalidated if one of it's dependencies adds TLA.

lucacasonato avatar May 06 '24 08:05 lucacasonato