Vincent Voyer

Results 359 comments of Vincent Voyer

@brc-dd Can't build the example due to some issue with peculiar/webcrypto import. Can you have a look? I published [email protected] (beta) with the latest changes. ``` [09:15:46.265] Cloning github.com/vvo/iron-session (Branch:...

I guess this file is maybe a bit too weird for all bundlers to use it well? https://github.com/brc-dd/iron-webcrypto/blob/main/src/crypto.js.

Would this work better? ```ts import { Crypto as CryptoPolyfill } from '@peculiar/webcrypto'; export const crypto = typeof globalThis?.crypto?.subtle === 'object' ? globalThis.crypto : new CryptoPolyfill(); ```

BTW, what's the platform that matches this? `if (typeof globalThis?.crypto?.webcrypto?.subtle === 'object') return globalThis.crypto.webcrypto;`

The vc-file-system:index.js:2833:38: error: Could not resolve "@peculiar/webcrypto" error could be one from Vercel. Have you thought about not including a polyfill and instead either use Node.js crypto API/Webcrypto based on...

Hey I am confused because I also use baseUrl: "." in my projects so I am wondering what's really wrong here? If someone can reduce the necessary changes too that...

Hey there, you can see that our official TypeScript example is also using baseUrl as seen here: https://github.com/vvo/iron-session/blob/f9d0351e11c2553ad605f17cf1c139b79eee1db1/examples/next.js-typescript/tsconfig.json#L20 and we then import this way: https://github.com/vvo/iron-session/blob/f9d0351e11c2553ad605f17cf1c139b79eee1db1/examples/next.js-typescript/pages/api/login.ts#L4 which has no problem. So...

This is now available in 6.2.0, thanks!

Hey @josiahwiebe. I just published a brand new version of iron-session, see here: https://github.com/vvo/iron-session/releases/tag/v6.0.0 About your question, for now it's now feasible but we could easily add it and it...

> I figured out an alternate solution for now, How did you do it? As for contributing you could start duplicating this test here: https://github.com/vvo/iron-session/blob/bd98c524d9aefaf6d5a87d4836e4adcbcb4c121d/src/index.test.ts#L83-L113 Don't bother too much about...