vicary
vicary5mo ago

Is there a way to pull a module from x in favour of jsr?

I have ported my module @vicary/fresh-graphql to JSR and I would like to redirect my users go JSR instead of the unmaintained version in x. Is there a way to do that?
4 Replies
Deno AI Helper
Deno AI Helper5mo ago
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, if you're looking to redirect users from the Deno x repository to the jsr (which I assume stands for "JSPM Standard Registry"), there isn't a built-in feature in Deno to automatically redirect modules from one registry to another. If you have control over the module in the x repository, you might consider updating the documentation and the module itself to inform users of the new location. You could potentially release a new minor version of your module on x with a console warning that informs users about the move when they import the module. Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice. It's also a good practice to communicate such changes clearly in your repository's README and through other communication channels with your users.
vicary
vicary5mo ago
These AI response are really no better then canned responses from customer services. I would rather take a "no" as an answer.
AapoAlas
AapoAlas5mo ago
Hmm. Maybe publish a new version that just redirects to JSR and/or exports deprecated APIs.
vicary
vicary5mo ago
That works, thanks! I created a new tag on a branch to trigger an update via webhook, then delete the tag and branch to keep my repo clean.