Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kt3k opened this issue May 2, 2024 · 1 comment
Open

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

kt3k opened this issue May 2, 2024 · 1 comment
Labels
feature New feature or request

Comments

@kt3k
Copy link
Contributor

kt3k commented May 2, 2024

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

@lucacasonato
Copy link
Member

lucacasonato commented May 6, 2024

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 lucacasonato added the feature New feature or request label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Needs Plan
Development

No branches or pull requests

2 participants