supabase-cache-helpers icon indicating copy to clipboard operation
supabase-cache-helpers copied to clipboard

migrate to Bun

Open psteinroe opened this issue 1 year ago • 10 comments

Is your feature request related to a problem? Please describe. Since this is a small-enough project, we should migrate to bun to save time (and for the sake of it, of course).

Describe the solution you'd like Migrate to bun for the package management, and as a test runner.

The latter could require refactoring a bunch of tests, due to missing mock features in the bun test runner.

psteinroe avatar Sep 12 '23 10:09 psteinroe

Assign to me pls. I will try. It's good challenge

corners2wall avatar Sep 12 '23 15:09 corners2wall

@psteinroe after research I'm blocked by this issue: turborepo doesn't support bun :(

corners2wall avatar Sep 13 '23 09:09 corners2wall

@corners2wall thanks for the research. Given the nature of the issue, this is most likely a few months off. Let's keep this issue open and regularly check for their progress.

psteinroe avatar Sep 13 '23 09:09 psteinroe

@psteinroe totally agree with you

corners2wall avatar Sep 13 '23 09:09 corners2wall

turbo now have beta support for bun https://x.com/turborepo/status/1702791416672387094?s=46&t=EsyqrpgYWcCvn97nnTxwww

pontusab avatar Sep 16 '23 12:09 pontusab

@corners2wall are you still interested in taking this?

psteinroe avatar Sep 29 '23 09:09 psteinroe

@psteinroe yes, I'll do it this week

corners2wall avatar Sep 29 '23 10:09 corners2wall

The next version of bun will support module mocking, which will make the migration of the tests way simpler: https://x.com/jarredsumner/status/1716802352253112722?s=46&t=6in1CtH0XPGZTdWeLKr4gg

psteinroe avatar Oct 24 '23 13:10 psteinroe

Hey @psteinroe I saw your tweet on X platform and I would love to work on bun support.

aggmoulik avatar Feb 15 '24 03:02 aggmoulik

@aggmoulik awesome, thanks! Let me know if you need any support.

psteinroe avatar Feb 15 '24 06:02 psteinroe

migrated to vitest instead of bun test due to better maturity and dx

psteinroe avatar Jul 15 '24 10:07 psteinroe