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

feat: sew 25 replace node runtime with bun #377

Merged
merged 70 commits into from
Feb 3, 2025

Conversation

Tzal3x
Copy link
Collaborator

@Tzal3x Tzal3x commented Jan 30, 2025

The core feature of Bun is that it uses the JavascriptCore instead of V8.
It's a drop-in replacement for node.js.

Benefits

Changelog

  • Replace pnpm with bun wherever it applied.
  • Update github actions
  • Remove the Codspeed integration. There is no benefit having it around, we were only using it for file decompression checks.
  • Update package.json files. A lot of scripts defined there are not used, so why keep them around?
  • Move static files to the service worker: refactor: sew 30 move static files from common lib to the service worker #379

Tzal3x added 30 commits January 28, 2025 14:52
This is better than a non-exhaustive switch statement.
Plus it follows the Open/Closed Principle - extend by
adding to map, not modifying code.

The main tradeoff is that it's slightly more abstract
than a switch statement. It becomes more valuable as
we add more variants.
asserts in typescript only log the errors,
they don't throw an exception as in other
languages.
Separates the configuration/setup files and
middleware code from the source files.
Copy link
Collaborator

@giac-mysten giac-mysten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a first pass of comments 🙏

portal/server/next-env.d.ts Outdated Show resolved Hide resolved
portal/server/package.json Outdated Show resolved Hide resolved
portal/common/tsconfig.json Show resolved Hide resolved
portal/worker/pnpm-lock.yaml Outdated Show resolved Hide resolved
portal/worker/README.md Show resolved Hide resolved
portal/vercel.json Show resolved Hide resolved
@Tzal3x Tzal3x force-pushed the alextzimas/sew-25-replace-node-runtime-with-bun branch from 7b8a0ed to aad7ca7 Compare January 31, 2025 13:35
Copy link
Collaborator

@giac-mysten giac-mysten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's try this out!

@Tzal3x Tzal3x merged commit 4cc9ac1 into main Feb 3, 2025
20 checks passed
@Tzal3x Tzal3x deleted the alextzimas/sew-25-replace-node-runtime-with-bun branch February 3, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants