hapijs / hapijs/joi

Support for Bun javascript runtime

Open
#2,921 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
21.2k
Forks
1.5k
Avg merge
4h 57m
Merged PRs (30d)
14

Description

#### Support plan

* *is this issue currently blocking your project?* (yes/no): yes
* *is this issue affecting a production system?* (yes/no): no

#### Context

* *node version*: I use Bun 0.5.6
* *module version*:
* *environment* (e.g. node, browser, native): bun
* *used with* (e.g. hapi application, another framework, standalone, ...): standalone
* *any other relevant information*:

#### What problem are you trying to solve?

As early as I can remember, I've always used Joi as my go-to library from input/args validations.
I would be happy if Joi could work with Bun.

Right now any form of validation fails in Bun 0.5.6, and the error message is inconsistant.

#### Do you have a new or modified API suggestion to solve the problem?

Fallback to a polyfill for the methods not available in Bun ?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the validation failure with Bun 0.5.6 and inspect the repository's runtime compatibility assumptions. Identify the unsupported methods and define tests that demonstrate successful validation under Bun; done means Joi validation works consistently in the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, javascript
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.