Closed yusukebe closed 1 month ago
It looks like @Kyiro has started this: https://jsr.io/@kyiro/hono/0.1.1/deno.json
How did he do it?
I described what I did in the discord server but I'll post it here as well:
ContextVariableMap
can't be augmented and JSX support had to be removed completely deno_dist
folder instead of src
(doesn't really matter except for the fact I forgot to add other adapter code in)I was pretty much just experimenting, so that's why it's published as version 0.1.1
.
Thanks @Kyiro
I too would like to make Hono support JSR, but I haven't started working on it yet. Even if we could, I think we would have to figure out the release flow.
Any news on this?
@ericlery I was just wondering the same thing.
I spent 20 minutes looking at Oak instead. And while I respect it, I concluded that hono is still the best.
Then I added this to my deno.json and pretended it's on JSR:
{
"imports": {
"hono": "https://deno.land/x/hono@v4.3.1/mod.ts"
}
}
I'll be working on it for the next minor release.
I think that deno_dist
will be unnecessary in the future if hono jsr package loads from src
.
If you do that, we need to add publish command allowing sloppy-imports flag.
I have some ideas. Wait a minute.
I have seen people who doesn't know that deno.land/x has been deprecated. As a solution, what do you think about share to Hono users? For example, using X is most efficient way. Also publishing new version to deno.land/x with warning message on README is better way.
@nakasyou
You are right! I'll work on it. Thank you!
@nakasyou
I've added the description for it on the migration guide and the readme: https://github.com/honojs/hono/pull/2879
Plus, announced it on X.
Thanks for your suggestion!
Hey! This was really completed by #2662. Closing!
What is the feature you are proposing?
A new package repository:
https://jsr.io/
I've already got the namespace: