Skip to content

feat: Add Bun runtime detection and CI testing#3768

Open
dandaka wants to merge 1 commit into
apify:masterfrom
dandaka:feat/bun-runtime-support
Open

feat: Add Bun runtime detection and CI testing#3768
dandaka wants to merge 1 commit into
apify:masterfrom
dandaka:feat/bun-runtime-support

Conversation

@dandaka

@dandaka dandaka commented Jun 19, 2026

Copy link
Copy Markdown

Summary

  • Add isBunRuntime() and warnIfBunRuntime() utilities to @crawlee/utils for runtime detection
  • Wire a one-time warning into GotScrapingHttpClient constructor — users running under Bun get a clear message suggesting ImpitHttpClient instead of a cryptic got-scraping failure
  • Add a bun_test CI job that runs core, storage, session-pool, router, and HTTP crawler tests under Bun (all verified passing locally with Bun 1.3.14)

Complements #3767 (making impit the default) by adding CI coverage to catch Bun regressions going forward.

Relates to #2046

Add runtime detection utilities (`isBunRuntime`, `warnIfBunRuntime`) to
`@crawlee/utils` and wire a one-time warning into `GotScrapingHttpClient`
so users running under Bun get a clear message suggesting `ImpitHttpClient`
instead of a cryptic got-scraping failure.

Add a `bun_test` CI job that runs core, storage, session-pool, router,
and HTTP crawler tests under Bun to catch regressions.

Relates to apify#2046

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants