Vìncent Le Goff
Vìncent Le Goff
```js const uri = require('fast-uri') const urijs = require('uri-js') let parsed = uri.parse('../one/two.three?q1=a1&q2=a2#body') console.log(parsed) console.log(uri.serialize(parsed)) parsed = urijs.parse('../one/two.three?q1=a1&q2=a2#body') console.log(parsed) console.log(urijs.serialize(parsed)) ``` ```console { scheme: undefined, userinfo: undefined, host: undefined, port:...
Same for import type syntax: foo.ts ```ts import type { Bar } from 'bar' export type Foo = { bar: string; }; export function doFoo() { return true; } ```...
I really like the idea as it will definitely simplifies the code and developer experience of typescript developers without impacting the JS codebase itself. I have 2 things that comes...
I'd assume people to use: ```ts fastify.get('/', (req, res) => { return res.send('hello') }) ``` maybe it's only in `async` but @climba03003 and i were discussing several issues we had...
@climba03003 any idea how we could solve this?
I'd rather wait for the environment feature to be released to add it in combination with OTP tokens. Also i think we can add make this organization wise with this...
Yes.
like so? ```javascript fastify.get("/", async (request, reply) => { const links = [ "Link: ; rel=preload; as=style", "Link: ; rel=preload; as=script", ]; const rawHttpRequest = `HTTP/1.1 103 Early Hints\r\n${links.join( "\r\n"...
it's an interesting feature and we can make a plugin for that. I'll make a draft repo for it.
Here is the draft repo i've written: https://github.com/zekth/fastify-early-hints Feel free to comment / contribute. Also for testing, it seems that i can't acces the full HTTP message throught the `reply.raw`,...