Bun runtime upgraded to v1.3.3

We've upgraded the Bun runtime for deployments to v1.3.3, bringing improved performance and the latest features to your Bun-based tasks.

Nick undefined

Nick

Founding Engineer, Trigger.dev

Bun v1.3.3

We've upgraded our Bun deployment runtime from v1.2.20 to v1.3.3, giving you access to the latest improvements in JavaScript execution speed and Bun's evolving ecosystem.

What's improved

Bun v1.3.3 includes significant performance optimizations and bug fixes that will make your tasks run more efficiently:

  • Faster module resolution - Improved import performance for packages with complex dependency trees
  • Better memory management - More efficient garbage collection reduces memory usage during long-running tasks
  • Enhanced compatibility - Better support for Node.js APIs and npm packages
  • Stability improvements - Fixes for edge cases that could cause runtime errors

Upgrade to the latest Trigger.dev CLI and your existing Bun tasks will automatically benefit from these improvements on your next deployment. No code changes required.

Official release notes: Bun v1.3.3

Using Bun in your tasks

To use Bun for your deployments, set the runtime in your trigger.config.ts:


import { defineConfig } from "@trigger.dev/sdk";
export default defineConfig({
project: "your-project-ref",
runtime: "bun", // Uses Bun v1.3.3
// ... other config
});

The updated runtime is available for both new deployments and when you redeploy existing projects using Bun.

Performance impact

Early testing shows improved cold start times and reduced memory usage, particularly for tasks that import many packages or process large amounts of data. The exact performance gain depends on your specific use case.

If you're using Node.js and considering switching to Bun, this is a great time to try it - the runtime compatibility has improved significantly with each release.

Ready to start building?

Build and deploy your first task in 3 minutes.

Get started now