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

Deno support #198

Open
talentlessguy opened this issue Dec 10, 2020 · 1 comment
Open

Deno support #198

talentlessguy opened this issue Dec 10, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed medium
Milestone

Comments

@talentlessguy
Copy link
Member

talentlessguy commented Dec 10, 2020

Now that @tinyhttp/router v1.0.5+ no longer depends on http module of Node.js, it should be very easy to implement basic Deno support for tinyhttp. Probably it would be cool to have it located in the separate deno folder with all editor settings specifically for it.

There aren't strict requirements on how it should be implemented, but i suppose we need to use either raw gh links, jspm or skypack to import the router

and we should use Deno's std http lib to pass request and response as generics, e.g. smth like this:

import { Router } from 'https://...'
import { ServerRequest } from 'https://...'

export class App extends Router<ServerRequest, ...> {
 // ...
}

so it works instantly

@talentlessguy talentlessguy added enhancement New feature or request good first issue Good for newcomers medium labels Dec 10, 2020
@talentlessguy talentlessguy pinned this issue Dec 10, 2020
@talentlessguy talentlessguy added the help wanted Extra attention is needed label Dec 22, 2020
@talentlessguy talentlessguy added this to the v2.0 milestone Feb 18, 2021
@talentlessguy
Copy link
Member Author

talentlessguy commented Feb 19, 2021

I'm happy to announce that I started working on the port of tinyhttp for Deno!

See the repo here: https://github.com/deno-libs/tinyhttp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed medium
Projects
None yet
Development

No branches or pull requests

1 participant